@applica-software-guru/react-admin 1.5.324 → 1.5.325
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ra-forms/ChangePasswordForm.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +22 -22
- package/dist/react-admin.cjs.js.gz +0 -0
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1145 -1145
- package/dist/react-admin.es.js.gz +0 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +19 -19
- package/dist/react-admin.umd.js.gz +0 -0
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/ChangePasswordForm.tsx +4 -1
package/dist/react-admin.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var u5=Object.defineProperty;var Bb=e=>{throw TypeError(e)};var d5=(e,t,n)=>t in e?u5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ta=(e,t,n)=>d5(e,typeof t!="symbol"?t+"":t,n),_p=(e,t,n)=>t.has(e)||Bb("Cannot "+n);var On=(e,t,n)=>(_p(e,t,"read from private field"),n?n.call(e):t.get(e)),lo=(e,t,n)=>t.has(e)?Bb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Do=(e,t,n,r)=>(_p(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ia=(e,t,n)=>(_p(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),f5=require("@emotion/styled"),tn=require("@emotion/react"),A=require("react"),S=require("@mui/material"),We=require("@ant-design/icons"),ut=require("react-router-dom"),nn=require("@mui/icons-material"),Z=require("ra-core"),Di=require("react-router"),_=require("react-admin"),rn=require("react-hook-form"),js=require("react-query"),Cs=require("react-dom"),pw=require("ra-i18n-polyglot");function hw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=hw(A),gw=hw(Cs),mw=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bd=A.createContext({}),Zg=A.createContext(null),xd=typeof document<"u",p5=xd?A.useLayoutEffect:A.useEffect,vw=A.createContext({strict:!1}),Qg=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h5="framerAppearId",yw="data-"+Qg(h5);function g5(e,t,n,r){const{visualElement:o}=A.useContext(bd),i=A.useContext(vw),a=A.useContext(Zg),c=A.useContext(mw).reducedMotion,u=A.useRef();r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current;A.useInsertionEffect(()=>{d&&d.update(n,a)});const p=A.useRef(!!(n[yw]&&!window.HandoffComplete));return p5(()=>{d&&(d.render(),p.current&&d.animationState&&d.animationState.animateChanges())}),A.useEffect(()=>{d&&(d.updateFeatures(),!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),d}function ws(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function m5(e,t,n){return A.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ws(n)&&(n.current=r))},[t])}function nl(e){return typeof e=="string"||Array.isArray(e)}function Cd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Jg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],em=["initial",...Jg];function wd(e){return Cd(e.animate)||em.some(t=>nl(e[t]))}function bw(e){return!!(wd(e)||e.variants)}function v5(e,t){if(wd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||nl(n)?n:void 0,animate:nl(r)?r:void 0}}return e.inherit!==!1?t:{}}function y5(e){const{initial:t,animate:n}=v5(e,A.useContext(bd));return A.useMemo(()=>({initial:t,animate:n}),[Nb(t),Nb(n)])}function Nb(e){return Array.isArray(e)?e.join(" "):e}const $b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rl={};for(const e in $b)rl[e]={isEnabled:t=>$b[e].some(n=>!!t[n])};function b5(e){for(const t in e)rl[t]={...rl[t],...e[t]}}const xw=A.createContext({}),Cw=A.createContext({}),x5=Symbol.for("motionComponentSymbol");function C5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&b5(e);function i(c,u){let d;const p={...A.useContext(mw),...c,layoutId:w5(c)},{isStatic:g}=p,v=y5(c),y=r(c,g);if(!g&&xd){v.visualElement=g5(o,y,p,t);const b=A.useContext(Cw),x=A.useContext(vw).strict;v.visualElement&&(d=v.visualElement.loadFeatures(p,x,e,b))}return D.createElement(bd.Provider,{value:v},d&&v.visualElement?D.createElement(d,{visualElement:v.visualElement,...p}):null,n(o,c,m5(y,v.visualElement,u),y,g,v.visualElement))}const a=A.forwardRef(i);return a[x5]=o,a}function w5({layoutId:e}){const t=A.useContext(xw).id;return t&&e!==void 0?t+"-"+e:e}function S5(e){function t(r,o={}){return C5(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const A5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tm(e){return typeof e!="string"||e.includes("-")?!1:!!(A5.indexOf(e)>-1||/[A-Z]/.test(e))}const Tu={};function E5(e){Object.assign(Tu,e)}const xl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bi=new Set(xl);function ww(e,{layout:t,layoutId:n}){return Bi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Tu[e]||e==="opacity")}const Dn=e=>!!(e&&e.getVelocity),T5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I5=xl.length;function O5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<I5;a++){const c=xl[a];if(e[c]!==void 0){const u=T5[c]||c;i+=`${u}(${e[c]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Sw=e=>t=>typeof t=="string"&&t.startsWith(e),Aw=Sw("--"),Eh=Sw("var(--"),P5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,j5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ko=(e,t,n)=>Math.min(Math.max(n,e),t),Ni={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Va={...Ni,transform:e=>Ko(0,1,e)},Wc={...Ni,default:1},Wa=e=>Math.round(e*1e5)/1e5,Sd=/(-)?([\d]*\.?[\d])+/g,Ew=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,R5=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Cl(e){return typeof e=="string"}const wl=e=>({test:t=>Cl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=wl("deg"),Wr=wl("%"),Me=wl("px"),M5=wl("vh"),k5=wl("vw"),Vb={...Wr,parse:e=>Wr.parse(e)/100,transform:e=>Wr.transform(e*100)},Wb={...Ni,transform:Math.round},Tw={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,size:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Wc,scaleX:Wc,scaleY:Wc,scaleZ:Wc,skew:$o,skewX:$o,skewY:$o,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Va,originX:Vb,originY:Vb,originZ:Me,zIndex:Wb,fillOpacity:Va,strokeOpacity:Va,numOctaves:Wb};function nm(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:c}=e;let u=!1,d=!1,p=!0;for(const g in t){const v=t[g];if(Aw(g)){i[g]=v;continue}const y=Tw[g],b=j5(v,y);if(Bi.has(g)){if(u=!0,a[g]=b,!p)continue;v!==(y.default||0)&&(p=!1)}else g.startsWith("origin")?(d=!0,c[g]=b):o[g]=b}if(t.transform||(u||r?o.transform=O5(e.transform,n,p,r):o.transform&&(o.transform="none")),d){const{originX:g="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${g} ${v} ${y}`}}const rm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Iw(e,t,n){for(const r in t)!Dn(t[r])&&!ww(r,n)&&(e[r]=t[r])}function F5({transformTemplate:e},t,n){return A.useMemo(()=>{const r=rm();return nm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function D5(e,t,n){const r=e.style||{},o={};return Iw(o,r,e),Object.assign(o,F5(e,t,n)),e.transformValues?e.transformValues(o):o}function _5(e,t,n){const r={},o=D5(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const L5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Iu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||L5.has(e)}let Ow=e=>!Iu(e);function B5(e){e&&(Ow=t=>t.startsWith("on")?!Iu(t):e(t))}try{B5(require("@emotion/is-prop-valid").default)}catch{}function N5(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ow(o)||n===!0&&Iu(o)||!t&&!Iu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function zb(e,t,n){return typeof e=="string"?e:Me.transform(t+n*e)}function $5(e,t,n){const r=zb(t,e.x,e.width),o=zb(n,e.y,e.height);return`${r} ${o}`}const V5={offset:"stroke-dashoffset",array:"stroke-dasharray"},W5={offset:"strokeDashoffset",array:"strokeDasharray"};function z5(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?V5:W5;e[i.offset]=Me.transform(-r);const a=Me.transform(t),c=Me.transform(n);e[i.array]=`${a} ${c}`}function om(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},p,g,v){if(nm(e,d,p,v),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b,dimensions:x}=e;y.transform&&(x&&(b.transform=y.transform),delete y.transform),x&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=$5(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&z5(y,a,c,u,!1)}const Pw=()=>({...rm(),attrs:{}}),im=e=>typeof e=="string"&&e.toLowerCase()==="svg";function U5(e,t,n,r){const o=A.useMemo(()=>{const i=Pw();return om(i,t,{enableHardwareAcceleration:!1},im(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Iw(i,e.style,e),o.style={...i,...o.style}}return o}function H5(e=!1){return(n,r,o,{latestValues:i},a)=>{const u=(tm(n)?U5:_5)(r,i,a,n),p={...N5(r,typeof n=="string",e),...u,ref:o},{children:g}=r,v=A.useMemo(()=>Dn(g)?g.get():g,[g]);return A.createElement(n,{...p,children:v})}}function jw(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Rw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Mw(e,t,n,r){jw(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Rw.has(o)?o:Qg(o),t.attrs[o])}function sm(e,t){const{style:n}=e,r={};for(const o in n)(Dn(n[o])||t.style&&Dn(t.style[o])||ww(o,e))&&(r[o]=n[o]);return r}function kw(e,t){const n=sm(e,t);for(const r in e)if(Dn(e[r])||Dn(t[r])){const o=xl.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function am(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function G5(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ou=e=>Array.isArray(e),q5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Y5=e=>Ou(e)?e[e.length-1]||0:e;function au(e){const t=Dn(e)?e.get():e;return q5(t)?t.toValue():t}function K5({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:X5(r,o,i,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const Fw=e=>(t,n)=>{const r=A.useContext(bd),o=A.useContext(Zg),i=()=>K5(e,t,r,o);return n?i():G5(i)};function X5(e,t,n,r){const o={},i=r(e,{});for(const v in i)o[v]=au(i[v]);let{initial:a,animate:c}=e;const u=wd(e),d=bw(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const g=p?c:a;return g&&typeof g!="boolean"&&!Cd(g)&&(Array.isArray(g)?g:[g]).forEach(y=>{const b=am(e,y);if(!b)return;const{transitionEnd:x,transition:w,...T}=b;for(const j in T){let E=T[j];if(Array.isArray(E)){const P=p?E.length-1:0;E=E[P]}E!==null&&(o[j]=E)}for(const j in x)o[j]=x[j]}),o}const kt=e=>e;class Ub{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Z5(e){let t=new Ub,n=new Ub,r=0,o=!1,i=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const g=p&&o,v=g?t:n;return d&&a.add(u),v.add(u)&&g&&o&&(r=t.order.length),u},cancel:u=>{n.remove(u),a.delete(u)},process:u=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const p=t.order[d];p(u),a.has(p)&&(c.schedule(p),e())}o=!1,i&&(i=!1,c.process(u))}};return c}const zc=["prepare","read","update","preRender","render","postRender"],Q5=40;function J5(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=zc.reduce((g,v)=>(g[v]=Z5(()=>n=!0),g),{}),a=g=>i[g].process(o),c=()=>{const g=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(g-o.timestamp,Q5),1),o.timestamp=g,o.isProcessing=!0,zc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(c))},u=()=>{n=!0,r=!0,o.isProcessing||e(c)};return{schedule:zc.reduce((g,v)=>{const y=i[v];return g[v]=(b,x=!1,w=!1)=>(n||u(),y.schedule(b,x,w)),g},{}),cancel:g=>zc.forEach(v=>i[v].cancel(g)),state:o,steps:i}}const{schedule:Ct,cancel:xo,state:fn,steps:Lp}=J5(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),e6={useVisualState:Fw({scrapeMotionValuesFromProps:kw,createRenderState:Pw,onMount:(e,t,{renderState:n,latestValues:r})=>{Ct.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ct.render(()=>{om(n,r,{enableHardwareAcceleration:!1},im(t.tagName),e.transformTemplate),Mw(t,n)})}})},t6={useVisualState:Fw({scrapeMotionValuesFromProps:sm,createRenderState:rm})};function n6(e,{forwardMotionProps:t=!1},n,r){return{...tm(e)?e6:t6,preloadedFeatures:n,useRender:H5(t),createVisualElement:r,Component:e}}function ho(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Dw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ad(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const r6=e=>t=>Dw(t)&&e(t,Ad(t));function yo(e,t,n,r){return ho(e,t,r6(n),r)}const o6=(e,t)=>n=>t(e(n)),Go=(...e)=>e.reduce(o6);function _w(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Hb=_w("dragHorizontal"),Gb=_w("dragVertical");function Lw(e){let t=!1;if(e==="y")t=Gb();else if(e==="x")t=Hb();else{const n=Hb(),r=Gb();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Bw(){const e=Lw(!0);return e?(e(),!1):!0}class Jo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qb(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||Bw())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&Ct.update(()=>c[r](i,a))};return yo(e.current,n,o,{passive:!e.getProps()[r]})}class i6 extends Jo{mount(){this.unmount=Go(qb(this.node,!0),qb(this.node,!1))}unmount(){}}class s6 extends Jo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Go(ho(this.node.current,"focus",()=>this.onFocus()),ho(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Nw=(e,t)=>t?e===t?!0:Nw(e,t.parentElement):!1;function Bp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ad(n))}class a6 extends Jo{constructor(){super(...arguments),this.removeStartListeners=kt,this.removeEndListeners=kt,this.removeAccessibleListeners=kt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=yo(window,"pointerup",(c,u)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:p,globalTapTarget:g}=this.node.getProps();Ct.update(()=>{!g&&!Nw(this.node.current,c.target)?p&&p(c,u):d&&d(c,u)})},{passive:!(r.onTap||r.onPointerUp)}),a=yo(window,"pointercancel",(c,u)=>this.cancelPress(c,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Go(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Bp("up",(u,d)=>{const{onTap:p}=this.node.getProps();p&&Ct.update(()=>p(u,d))})};this.removeEndListeners(),this.removeEndListeners=ho(this.node.current,"keyup",a),Bp("down",(c,u)=>{this.startPress(c,u)})},n=ho(this.node.current,"keydown",t),r=()=>{this.isPressing&&Bp("cancel",(i,a)=>this.cancelPress(i,a))},o=ho(this.node.current,"blur",r);this.removeAccessibleListeners=Go(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ct.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Bw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ct.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=yo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ho(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Go(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Th=new WeakMap,Np=new WeakMap,l6=e=>{const t=Th.get(e.target);t&&t(e)},c6=e=>{e.forEach(l6)};function u6({root:e,...t}){const n=e||document;Np.has(n)||Np.set(n,{});const r=Np.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(c6,{root:e,...t})),r[o]}function d6(e,t,n){const r=u6(t);return Th.set(e,n),r.observe(e),()=>{Th.delete(e),r.unobserve(e)}}const f6={some:0,all:1};class p6 extends Jo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:f6[o]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=d?p:g;v&&v(u)};return d6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(h6(t,n))&&this.startObserver()}unmount(){}}function h6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const g6={inView:{Feature:p6},tap:{Feature:a6},focus:{Feature:s6},hover:{Feature:i6}};function $w(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function m6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function v6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ed(e,t,n){const r=e.getProps();return am(r,t,n!==void 0?n:r.custom,m6(e),v6(e))}let Sl=kt,jr=kt;process.env.NODE_ENV!=="production"&&(Sl=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},jr=(e,t)=>{if(!e)throw new Error(t)});const qo=e=>e*1e3,bo=e=>e/1e3,y6={current:!1},Vw=e=>Array.isArray(e)&&typeof e[0]=="number";function Ww(e){return!!(!e||typeof e=="string"&&zw[e]||Vw(e)||Array.isArray(e)&&e.every(Ww))}const La=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:La([0,.65,.55,1]),circOut:La([.55,0,1,.45]),backIn:La([.31,.01,.66,-.59]),backOut:La([.33,1.53,.69,.99])};function Uw(e){if(e)return Vw(e)?La(e):Array.isArray(e)?e.map(Uw):zw[e]}function b6(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:c,times:u}={}){const d={[t]:n};u&&(d.offset=u);const p=Uw(c);return Array.isArray(p)&&(d.easing=p),e.animate(d,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function x6(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,C6=1e-7,w6=12;function S6(e,t,n,r,o){let i,a,c=0;do a=t+(n-t)/2,i=Hw(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>C6&&++c<w6);return a}function Al(e,t,n,r){if(e===t&&n===r)return kt;const o=i=>S6(i,0,1,e,n);return i=>i===0||i===1?i:Hw(o(i),t,r)}const A6=Al(.42,0,1,1),E6=Al(0,0,.58,1),Gw=Al(.42,0,.58,1),T6=e=>Array.isArray(e)&&typeof e[0]!="number",qw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yw=e=>t=>1-e(1-t),lm=e=>1-Math.sin(Math.acos(e)),Kw=Yw(lm),I6=qw(lm),Xw=Al(.33,1.53,.69,.99),cm=Yw(Xw),O6=qw(cm),P6=e=>(e*=2)<1?.5*cm(e):.5*(2-Math.pow(2,-10*(e-1))),Yb={linear:kt,easeIn:A6,easeInOut:Gw,easeOut:E6,circIn:lm,circInOut:I6,circOut:Kw,backIn:cm,backInOut:O6,backOut:Xw,anticipate:P6},Kb=e=>{if(Array.isArray(e)){jr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Al(t,n,r,o)}else if(typeof e=="string")return jr(Yb[e]!==void 0,`Invalid easing type '${e}'`),Yb[e];return e},um=(e,t)=>n=>!!(Cl(n)&&R5.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Zw=(e,t,n)=>r=>{if(!Cl(r))return r;const[o,i,a,c]=r.match(Sd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},j6=e=>Ko(0,255,e),$p={...Ni,transform:e=>Math.round(j6(e))},Oi={test:um("rgb","red"),parse:Zw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$p.transform(e)+", "+$p.transform(t)+", "+$p.transform(n)+", "+Wa(Va.transform(r))+")"};function R6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ih={test:um("#"),parse:R6,transform:Oi.transform},Ss={test:um("hsl","hue"),parse:Zw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wr.transform(Wa(t))+", "+Wr.transform(Wa(n))+", "+Wa(Va.transform(r))+")"},Cn={test:e=>Oi.test(e)||Ih.test(e)||Ss.test(e),parse:e=>Oi.test(e)?Oi.parse(e):Ss.test(e)?Ss.parse(e):Ih.parse(e),transform:e=>Cl(e)?e:e.hasOwnProperty("red")?Oi.transform(e):Ss.transform(e)},Pt=(e,t,n)=>-n*e+n*t+e;function Vp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function M6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=Vp(u,c,e+1/3),i=Vp(u,c,e),a=Vp(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const Wp=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},k6=[Ih,Oi,Ss],F6=e=>k6.find(t=>t.test(e));function Xb(e){const t=F6(e);jr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Ss&&(n=M6(n)),n}const Qw=(e,t)=>{const n=Xb(e),r=Xb(t),o={...n};return i=>(o.red=Wp(n.red,r.red,i),o.green=Wp(n.green,r.green,i),o.blue=Wp(n.blue,r.blue,i),o.alpha=Pt(n.alpha,r.alpha,i),Oi.transform(o))};function D6(e){var t,n;return isNaN(e)&&Cl(e)&&(((t=e.match(Sd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ew))===null||n===void 0?void 0:n.length)||0)>0}const Jw={regex:P5,countKey:"Vars",token:"${v}",parse:kt},eS={regex:Ew,countKey:"Colors",token:"${c}",parse:Cn.parse},tS={regex:Sd,countKey:"Numbers",token:"${n}",parse:Ni.parse};function zp(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Pu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zp(n,Jw),zp(n,eS),zp(n,tS),n}function nS(e){return Pu(e).values}function rS(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Pu(e),i=t.length;return a=>{let c=o;for(let u=0;u<i;u++)u<r?c=c.replace(Jw.token,a[u]):u<r+n?c=c.replace(eS.token,Cn.transform(a[u])):c=c.replace(tS.token,Wa(a[u]));return c}}const _6=e=>typeof e=="number"?0:e;function L6(e){const t=nS(e);return rS(e)(t.map(_6))}const Xo={test:D6,parse:nS,createTransformer:rS,getAnimatableNone:L6},oS=(e,t)=>n=>`${n>0?t:e}`;function iS(e,t){return typeof e=="number"?n=>Pt(e,t,n):Cn.test(e)?Qw(e,t):e.startsWith("var(")?oS(e,t):aS(e,t)}const sS=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>iS(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}},B6=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=iS(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},aS=(e,t)=>{const n=Xo.createTransformer(t),r=Pu(e),o=Pu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Go(sS(r.values,o.values),n):(Sl(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),oS(e,t))},ol=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Zb=(e,t)=>n=>Pt(e,t,n);function N6(e){return typeof e=="number"?Zb:typeof e=="string"?Cn.test(e)?Qw:aS:Array.isArray(e)?sS:typeof e=="object"?B6:Zb}function $6(e,t,n){const r=[],o=n||N6(e[0]),i=e.length-1;for(let a=0;a<i;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=Go(u,c)}r.push(c)}return r}function lS(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(jr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=$6(t,r,o),c=a.length,u=d=>{let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const g=ol(e[p],e[p+1],d);return a[p](g)};return n?d=>u(Ko(e[0],e[i-1],d)):u}function V6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ol(0,t,r);e.push(Pt(n,1,o))}}function W6(e){const t=[0];return V6(t,e.length-1),t}function z6(e,t){return e.map(n=>n*t)}function U6(e,t){return e.map(()=>t||Gw).splice(0,e.length-1)}function ju({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=T6(r)?r.map(Kb):Kb(r),i={done:!1,value:t[0]},a=z6(n&&n.length===t.length?n:W6(t),e),c=lS(a,t,{ease:Array.isArray(o)?o:U6(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}function cS(e,t){return t?e*(1e3/t):0}const H6=5;function uS(e,t,n){const r=Math.max(t-H6,0);return cS(n-e(r),t-r)}const Up=.001,G6=.01,Qb=10,q6=.05,Y6=1;function K6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Sl(e<=qo(Qb),"Spring duration must be 10 seconds or less");let a=1-t;a=Ko(q6,Y6,a),e=Ko(G6,Qb,bo(e)),a<1?(o=d=>{const p=d*a,g=p*e,v=p-n,y=Oh(d,a),b=Math.exp(-g);return Up-v/y*b},i=d=>{const g=d*a*e,v=g*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-g),x=Oh(Math.pow(d,2),a);return(-o(d)+Up>0?-1:1)*((v-y)*b)/x}):(o=d=>{const p=Math.exp(-d*e),g=(d-n)*e+1;return-Up+p*g},i=d=>{const p=Math.exp(-d*e),g=(n-d)*(e*e);return p*g});const c=5/e,u=Z6(o,i,c);if(e=qo(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const X6=12;function Z6(e,t,n){let r=n;for(let o=1;o<X6;o++)r=r-e(r)/t(r);return r}function Oh(e,t){return e*Math.sqrt(1-t*t)}const Q6=["duration","bounce"],J6=["stiffness","damping","mass"];function Jb(e,t){return t.some(n=>e[n]!==void 0)}function eF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jb(e,J6)&&Jb(e,Q6)){const n=K6(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function dS({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:p,velocity:g,isResolvedFromDuration:v}=eF({...r,velocity:-bo(r.velocity||0)}),y=g||0,b=u/(2*Math.sqrt(c*d)),x=i-o,w=bo(Math.sqrt(c/d)),T=Math.abs(x)<5;n||(n=T?.01:2),t||(t=T?.005:.5);let j;if(b<1){const E=Oh(w,b);j=P=>{const O=Math.exp(-b*w*P);return i-O*((y+b*w*x)/E*Math.sin(E*P)+x*Math.cos(E*P))}}else if(b===1)j=E=>i-Math.exp(-w*E)*(x+(y+w*x)*E);else{const E=w*Math.sqrt(b*b-1);j=P=>{const O=Math.exp(-b*w*P),k=Math.min(E*P,300);return i-O*((y+b*w*x)*Math.sinh(k)+E*x*Math.cosh(k))/E}}return{calculatedDuration:v&&p||null,next:E=>{const P=j(E);if(v)a.done=E>=p;else{let O=y;E!==0&&(b<1?O=uS(j,E,P):O=0);const k=Math.abs(O)<=n,F=Math.abs(i-P)<=t;a.done=k&&F}return a.value=a.done?i:P,a}}}function ex({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},y=B=>c!==void 0&&B<c||u!==void 0&&B>u,b=B=>c===void 0?u:u===void 0||Math.abs(c-B)<Math.abs(u-B)?c:u;let x=n*t;const w=g+x,T=a===void 0?w:a(w);T!==w&&(x=T-g);const j=B=>-x*Math.exp(-B/r),E=B=>T+j(B),P=B=>{const H=j(B),q=E(B);v.done=Math.abs(H)<=d,v.value=v.done?T:q};let O,k;const F=B=>{y(v.value)&&(O=B,k=dS({keyframes:[v.value,b(v.value)],velocity:uS(E,B,v.value),damping:o,stiffness:i,restDelta:d,restSpeed:p}))};return F(0),{calculatedDuration:null,next:B=>{let H=!1;return!k&&O===void 0&&(H=!0,P(B),F(B)),O!==void 0&&B>O?k.next(B-O):(!H&&P(B),v)}}}const tF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ct.update(t,!0),stop:()=>xo(t),now:()=>fn.isProcessing?fn.timestamp:performance.now()}},tx=2e4;function nx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<tx;)t+=n,r=e.next(t);return t>=tx?1/0:t}const nF={decay:ex,inertia:ex,tween:ju,keyframes:ju,spring:dS};function Ru({autoplay:e=!0,delay:t=0,driver:n=tF,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:c="loop",onPlay:u,onStop:d,onComplete:p,onUpdate:g,...v}){let y=1,b=!1,x,w;const T=()=>{w=new Promise(J=>{x=J})};T();let j;const E=nF[o]||ju;let P;E!==ju&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&jr(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),P=lS([0,100],r,{clamp:!1}),r=[0,100]);const O=E({...v,keyframes:r});let k;c==="mirror"&&(k=E({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let F="idle",B=null,H=null,q=null;O.calculatedDuration===null&&i&&(O.calculatedDuration=nx(O));const{calculatedDuration:U}=O;let ne=1/0,te=1/0;U!==null&&(ne=U+a,te=ne*(i+1)-a);let Y=0;const X=J=>{if(H===null)return;y>0&&(H=Math.min(H,J)),y<0&&(H=Math.min(J-te/y,H)),B!==null?Y=B:Y=Math.round(J-H)*y;const ue=Y-t*(y>=0?1:-1),he=y>=0?ue<0:ue>te;Y=Math.max(ue,0),F==="finished"&&B===null&&(Y=te);let de=Y,pe=O;if(i){const ve=Math.min(Y,te)/ne;let Ce=Math.floor(ve),Te=ve%1;!Te&&ve>=1&&(Te=1),Te===1&&Ce--,Ce=Math.min(Ce,i+1),!!(Ce%2)&&(c==="reverse"?(Te=1-Te,a&&(Te-=a/ne)):c==="mirror"&&(pe=k)),de=Ko(0,1,Te)*ne}const ge=he?{done:!1,value:r[0]}:pe.next(de);P&&(ge.value=P(ge.value));let{done:we}=ge;!he&&U!==null&&(we=y>=0?Y>=te:Y<=0);const ye=B===null&&(F==="finished"||F==="running"&&we);return g&&g(ge.value),ye&&$(),ge},N=()=>{j&&j.stop(),j=void 0},Q=()=>{F="idle",N(),x(),T(),H=q=null},$=()=>{F="finished",p&&p(),N(),x()},oe=()=>{if(b)return;j||(j=n(X));const J=j.now();u&&u(),B!==null?H=J-B:(!H||F==="finished")&&(H=J),F==="finished"&&T(),q=H,B=null,F="running",j.start()};e&&oe();const W={then(J,ue){return w.then(J,ue)},get time(){return bo(Y)},set time(J){J=qo(J),Y=J,B!==null||!j||y===0?B=J:H=j.now()-J/y},get duration(){const J=O.calculatedDuration===null?nx(O):O.calculatedDuration;return bo(J)},get speed(){return y},set speed(J){J===y||!j||(y=J,W.time=bo(Y))},get state(){return F},play:oe,pause:()=>{F="paused",B=Y},stop:()=>{b=!0,F!=="idle"&&(F="idle",d&&d(),Q())},cancel:()=>{q!==null&&X(q),Q()},complete:()=>{F="finished"},sample:J=>(H=0,X(J))};return W}function rF(e){let t;return()=>(t===void 0&&(t=e()),t)}const oF=rF(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iF=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Uc=10,sF=2e4,aF=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Ww(t.ease);function lF(e,t,{onUpdate:n,onComplete:r,...o}){if(!(oF()&&iF.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,c,u,d=!1;const p=()=>{u=new Promise(E=>{c=E})};p();let{keyframes:g,duration:v=300,ease:y,times:b}=o;if(aF(t,o)){const E=Ru({...o,repeat:0,delay:0});let P={done:!1,value:g[0]};const O=[];let k=0;for(;!P.done&&k<sF;)P=E.sample(k),O.push(P.value),k+=Uc;b=void 0,g=O,v=k-Uc,y="linear"}const x=b6(e.owner.current,t,g,{...o,duration:v,ease:y,times:b}),w=()=>{d=!1,x.cancel()},T=()=>{d=!0,Ct.update(w),c(),p()};return x.onfinish=()=>{d||(e.set(x6(g,o)),r&&r(),T())},{then(E,P){return u.then(E,P)},attachTimeline(E){return x.timeline=E,x.onfinish=null,kt},get time(){return bo(x.currentTime||0)},set time(E){x.currentTime=qo(E)},get speed(){return x.playbackRate},set speed(E){x.playbackRate=E},get duration(){return bo(v)},play:()=>{a||(x.play(),xo(w))},pause:()=>x.pause(),stop:()=>{if(a=!0,x.playState==="idle")return;const{currentTime:E}=x;if(E){const P=Ru({...o,autoplay:!1});e.setWithVelocity(P.sample(E-Uc).value,P.sample(E).value,Uc)}T()},complete:()=>{d||x.finish()},cancel:T}}function cF({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:kt,pause:kt,stop:kt,then:i=>(i(),Promise.resolve()),cancel:kt,complete:kt});return t?Ru({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const uF={type:"spring",stiffness:500,damping:25,restSpeed:10},dF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fF={type:"keyframes",duration:.8},pF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hF=(e,{keyframes:t})=>t.length>2?fF:Bi.has(e)?e.startsWith("scale")?dF(t[1]):uF:pF,Ph=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xo.test(t)||t==="0")&&!t.startsWith("url(")),gF=new Set(["brightness","contrast","saturate","opacity"]);function mF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sd)||[];if(!r)return e;const o=n.replace(r,"");let i=gF.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const vF=/([a-z-]*)\(.*?\)/g,jh={...Xo,getAnimatableNone:e=>{const t=e.match(vF);return t?t.map(mF).join(" "):e}},yF={...Tw,color:Cn,backgroundColor:Cn,outlineColor:Cn,fill:Cn,stroke:Cn,borderColor:Cn,borderTopColor:Cn,borderRightColor:Cn,borderBottomColor:Cn,borderLeftColor:Cn,filter:jh,WebkitFilter:jh},dm=e=>yF[e];function fS(e,t){let n=dm(e);return n!==jh&&(n=Xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pS=e=>/^0[^.\s]+$/.test(e);function bF(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||pS(e)}function xF(e,t,n,r){const o=Ph(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let c;const u=[];for(let d=0;d<i.length;d++)i[d]===null&&(i[d]=d===0?a:i[d-1]),bF(i[d])&&u.push(d),typeof i[d]=="string"&&i[d]!=="none"&&i[d]!=="0"&&(c=i[d]);if(o&&u.length&&c)for(let d=0;d<u.length;d++){const p=u[d];i[p]=fS(t,c)}return i}function CF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:c,from:u,elapsed:d,...p}){return!!Object.keys(p).length}function fm(e,t){return e[t]||e.default||e}const wF={skipAnimations:!1},pm=(e,t,n,r={})=>o=>{const i=fm(r,e)||{},a=i.delay||r.delay||0;let{elapsed:c=0}=r;c=c-qo(a);const u=xF(t,e,n,i),d=u[0],p=u[u.length-1],g=Ph(e,d),v=Ph(e,p);Sl(g===v,`You are trying to animate ${e} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let y={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-c,onUpdate:b=>{t.set(b),i.onUpdate&&i.onUpdate(b)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(CF(i)||(y={...y,...hF(e,y)}),y.duration&&(y.duration=qo(y.duration)),y.repeatDelay&&(y.repeatDelay=qo(y.repeatDelay)),!g||!v||y6.current||i.type===!1||wF.skipAnimations)return cF(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const b=lF(t,e,y);if(b)return b}return Ru(y)};function Mu(e){return!!(Dn(e)&&e.add)}const hS=e=>/^\-?\d*\.?\d+$/.test(e);function hm(e,t){e.indexOf(t)===-1&&e.push(t)}function gm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class mm{constructor(){this.subscriptions=[]}add(t){return hm(this.subscriptions,t),()=>gm(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rx=new Set;function vm(e,t,n){e||rx.has(t)||(console.warn(t),rx.add(t))}const SF=e=>!isNaN(parseFloat(e));class AF{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:a}=fn;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=SF(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&vm(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new mm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?cS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ls(e,t){return new AF(e,t)}const gS=e=>t=>t.test(e),EF={test:e=>e==="auto",parse:e=>e},mS=[Ni,Me,Wr,$o,k5,M5,EF],Oa=e=>mS.find(gS(e)),TF=[...mS,Cn,Xo],IF=e=>TF.find(gS(e));function OF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ls(n))}function PF(e,t){const n=Ed(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const c=Y5(i[a]);OF(e,a,c)}}function jF(e,t,n){var r,o;const i=Object.keys(t).filter(c=>!e.hasValue(c)),a=i.length;if(a)for(let c=0;c<a;c++){const u=i[c],d=t[u];let p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(o=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&o!==void 0?o:t[u]),p!=null&&(typeof p=="string"&&(hS(p)||pS(p))?p=parseFloat(p):!IF(p)&&Xo.test(d)&&(p=fS(u,d)),e.addValue(u,Ls(p,{owner:e})),n[u]===void 0&&(n[u]=p),p!==null&&e.setBaseTarget(u,p))}}function RF(e,t){return t?(t[e]||t.default||t).from:void 0}function MF(e,t,n){const r={};for(const o in e){const i=RF(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function kF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function FF(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function vS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...c}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(i=r);const d=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in c){const v=e.getValue(g),y=c[g];if(!v||y===void 0||p&&kF(p,g))continue;const b={delay:n,elapsed:0,...fm(i||{},g)};if(window.HandoffAppearAnimations){const T=e.getProps()[yw];if(T){const j=window.HandoffAppearAnimations(T,g,v,Ct);j!==null&&(b.elapsed=j,b.isHandoff=!0)}}let x=!b.isHandoff&&!FF(v,y);if(b.type==="spring"&&(v.getVelocity()||b.velocity)&&(x=!1),v.animation&&(x=!1),x)continue;v.start(pm(g,v,y,e.shouldReduceMotion&&Bi.has(g)?{type:!1}:b));const w=v.animation;Mu(u)&&(u.add(g),w.then(()=>u.remove(g))),d.push(w)}return a&&Promise.all(d).then(()=>{a&&PF(e,a)}),d}function Rh(e,t,n={}){const r=Ed(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(vS(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:g}=o;return DF(e,t,d+u,p,g,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function DF(e,t,n=0,r=0,o=1,i){const a=[],c=(e.variantChildren.size-1)*r,u=o===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(_F).forEach((d,p)=>{d.notify("AnimationStart",t),a.push(Rh(d,t,{...i,delay:n+u(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function _F(e,t){return e.sortNodePosition(t)}function LF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Rh(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Rh(e,t,n);else{const o=typeof t=="function"?Ed(e,t,n.custom):t;r=Promise.all(vS(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const BF=[...Jg].reverse(),NF=Jg.length;function $F(e){return t=>Promise.all(t.map(({animation:n,options:r})=>LF(e,n,r)))}function VF(e){let t=$F(e);const n=zF();let r=!0;const o=(u,d)=>{const p=Ed(e,d);if(p){const{transition:g,transitionEnd:v,...y}=p;u={...u,...y,...v}}return u};function i(u){t=u(e)}function a(u,d){const p=e.getProps(),g=e.getVariantContext(!0)||{},v=[],y=new Set;let b={},x=1/0;for(let T=0;T<NF;T++){const j=BF[T],E=n[j],P=p[j]!==void 0?p[j]:g[j],O=nl(P),k=j===d?E.isActive:null;k===!1&&(x=T);let F=P===g[j]&&P!==p[j]&&O;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&k===null||!P&&!E.prevProp||Cd(P)||typeof P=="boolean")continue;let H=WF(E.prevProp,P)||j===d&&E.isActive&&!F&&O||T>x&&O,q=!1;const U=Array.isArray(P)?P:[P];let ne=U.reduce(o,{});k===!1&&(ne={});const{prevResolvedValues:te={}}=E,Y={...te,...ne},X=N=>{H=!0,y.has(N)&&(q=!0,y.delete(N)),E.needsAnimating[N]=!0};for(const N in Y){const Q=ne[N],$=te[N];if(b.hasOwnProperty(N))continue;let oe=!1;Ou(Q)&&Ou($)?oe=!$w(Q,$):oe=Q!==$,oe?Q!==void 0?X(N):y.add(N):Q!==void 0&&y.has(N)?X(N):E.protectedKeys[N]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(b={...b,...ne}),r&&e.blockInitialAnimation&&(H=!1),H&&(!F||q)&&v.push(...U.map(N=>({animation:N,options:{type:j,...u}})))}if(y.size){const T={};y.forEach(j=>{const E=e.getBaseTarget(j);E!==void 0&&(T[j]=E)}),v.push({animation:T})}let w=!!v.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(v):Promise.resolve()}function c(u,d,p){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(y=>{var b;return(b=y.animationState)===null||b===void 0?void 0:b.setActive(u,d)}),n[u].isActive=d;const v=a(p,u);for(const y in n)n[y].protectedKeys={};return v}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n}}function WF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$w(t,e):!1}function vi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zF(){return{animate:vi(!0),whileInView:vi(),whileHover:vi(),whileTap:vi(),whileDrag:vi(),whileFocus:vi(),exit:vi()}}class UF extends Jo{constructor(t){super(t),t.animationState||(t.animationState=VF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Cd(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let HF=0;class GF extends Jo{constructor(){super(...arguments),this.id=HF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const qF={animation:{Feature:UF},exit:{Feature:GF}},ox=(e,t)=>Math.abs(e-t);function YF(e,t){const n=ox(e.x,t.x),r=ox(e.y,t.y);return Math.sqrt(n**2+r**2)}class yS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Gp(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,y=YF(g.offset,{x:0,y:0})>=3;if(!v&&!y)return;const{point:b}=g,{timestamp:x}=fn;this.history.push({...b,timestamp:x});const{onStart:w,onMove:T}=this.handlers;v||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Hp(v,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Gp(g.type==="pointercancel"?this.lastMoveEventInfo:Hp(v,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,w),b&&b(g,w)},!Dw(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=Ad(t),c=Hp(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=fn;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(t,Gp(c,this.history)),this.removeListeners=Go(yo(this.contextWindow,"pointermove",this.handlePointerMove),yo(this.contextWindow,"pointerup",this.handlePointerUp),yo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xo(this.updatePoint)}}function Hp(e,t){return t?{point:t(e.point)}:e}function ix(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gp({point:e},t){return{point:e,delta:ix(e,bS(t)),offset:ix(e,KF(t)),velocity:XF(t,.1)}}function KF(e){return e[0]}function bS(e){return e[e.length-1]}function XF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bS(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qo(t)));)n--;if(!r)return{x:0,y:0};const i=bo(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Xn(e){return e.max-e.min}function Mh(e,t=0,n=.01){return Math.abs(e-t)<=n}function sx(e,t,n,r=.5){e.origin=r,e.originPoint=Pt(t.min,t.max,e.origin),e.scale=Xn(n)/Xn(t),(Mh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pt(n.min,n.max,e.origin)-e.originPoint,(Mh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function za(e,t,n,r){sx(e.x,t.x,n.x,r?r.originX:void 0),sx(e.y,t.y,n.y,r?r.originY:void 0)}function ax(e,t,n){e.min=n.min+t.min,e.max=e.min+Xn(t)}function ZF(e,t,n){ax(e.x,t.x,n.x),ax(e.y,t.y,n.y)}function lx(e,t,n){e.min=t.min-n.min,e.max=e.min+Xn(t)}function Ua(e,t,n){lx(e.x,t.x,n.x),lx(e.y,t.y,n.y)}function QF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pt(n,e,r.max):Math.min(e,n)),e}function cx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function JF(e,{top:t,left:n,bottom:r,right:o}){return{x:cx(e.x,n,o),y:cx(e.y,t,r)}}function ux(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function e8(e,t){return{x:ux(e.x,t.x),y:ux(e.y,t.y)}}function t8(e,t){let n=.5;const r=Xn(e),o=Xn(t);return o>r?n=ol(t.min,t.max-r,e.min):r>o&&(n=ol(e.min,e.max-o,t.min)),Ko(0,1,n)}function n8(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const kh=.35;function r8(e=kh){return e===!1?e=0:e===!0&&(e=kh),{x:dx(e,"left","right"),y:dx(e,"top","bottom")}}function dx(e,t,n){return{min:fx(e,t),max:fx(e,n)}}function fx(e,t){return typeof e=="number"?e:e[t]||0}const px=()=>({translate:0,scale:1,origin:0,originPoint:0}),As=()=>({x:px(),y:px()}),hx=()=>({min:0,max:0}),Wt=()=>({x:hx(),y:hx()});function ur(e){return[e("x"),e("y")]}function xS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function i8(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qp(e){return e===void 0||e===1}function Fh({scale:e,scaleX:t,scaleY:n}){return!qp(e)||!qp(t)||!qp(n)}function Ci(e){return Fh(e)||CS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function CS(e){return gx(e.x)||gx(e.y)}function gx(e){return e&&e!=="0%"}function ku(e,t,n){const r=e-n,o=t*r;return n+o}function mx(e,t,n,r,o){return o!==void 0&&(e=ku(e,o,r)),ku(e,n,r)+t}function Dh(e,t=0,n=1,r,o){e.min=mx(e.min,t,n,r,o),e.max=mx(e.max,t,n,r,o)}function wS(e,{x:t,y:n}){Dh(e.x,t.translate,t.scale,t.originPoint),Dh(e.y,n.translate,n.scale,n.originPoint)}function s8(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let c=0;c<o;c++){i=n[c],a=i.projectionDelta;const u=i.instance;u&&u.style&&u.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Es(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wS(e,a)),r&&Ci(i.latestValues)&&Es(e,i.latestValues))}t.x=vx(t.x),t.y=vx(t.y)}function vx(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Wo(e,t){e.min=e.min+t,e.max=e.max+t}function yx(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Pt(e.min,e.max,i);Dh(e,t[n],t[r],a,t.scale)}const a8=["x","scaleX","originX"],l8=["y","scaleY","originY"];function Es(e,t){yx(e.x,t,a8),yx(e.y,t,l8)}function SS(e,t){return xS(i8(e.getBoundingClientRect(),t))}function c8(e,t,n){const r=SS(e,n),{scroll:o}=t;return o&&(Wo(r.x,o.offset.x),Wo(r.y,o.offset.y)),r}const AS=({current:e})=>e?e.ownerDocument.defaultView:null,u8=new WeakMap;class d8{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ad(p,"page").point)},i=(p,g)=>{const{drag:v,dragPropagation:y,onDragStart:b}=this.getProps();if(v&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lw(v),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ur(w=>{let T=this.getAxisMotionValue(w).get()||0;if(Wr.test(T)){const{projection:j}=this.visualElement;if(j&&j.layout){const E=j.layout.layoutBox[w];E&&(T=Xn(E)*(parseFloat(T)/100))}}this.originPoint[w]=T}),b&&Ct.update(()=>b(p,g),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(p,g)=>{const{dragPropagation:v,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=f8(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&x(p,g)},c=(p,g)=>this.stop(p,g),u=()=>ur(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new yS(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:AS(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ct.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Hc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=QF(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&ws(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=JF(o.layoutBox,n):this.constraints=!1,this.elastic=r8(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ur(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=n8(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ws(t))return!1;const r=t.current;jr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=c8(r,o.root,this.visualElement.getTransformPagePoint());let a=e8(o.layout.layoutBox,i);if(n){const c=n(o8(a));this.hasMutatedConstraints=!!c,c&&(a=xS(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=ur(p=>{if(!Hc(p,n,this.currentDirection))return;let g=u&&u[p]||{};a&&(g={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,b={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(p,b)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(pm(t,r,0,n))}stopAnimation(){ur(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ur(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ur(n=>{const{drag:r}=this.getProps();if(!Hc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n];i.set(t[n]-Pt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ws(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ur(a=>{const c=this.getAxisMotionValue(a);if(c){const u=c.get();o[a]=t8({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ur(a=>{if(!Hc(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(Pt(u,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;u8.set(this.visualElement,this);const t=this.visualElement.current,n=yo(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ws(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=ho(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(ur(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=u[p].translate,g.set(g.get()+u[p].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=kh,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:c}}}function Hc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function f8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class p8 extends Jo{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new d8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const bx=e=>(t,n)=>{e&&Ct.update(()=>e(t,n))};class h8 extends Jo{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new yS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:AS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:bx(t),onStart:bx(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ct.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=yo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function g8(){const e=A.useContext(Zg);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=A.useId();return A.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const lu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=xx(e,t.target.x),r=xx(e,t.target.y);return`${n}% ${r}%`}},m8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Xo.parse(e);if(o.length>5)return r;const i=Xo.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const d=Pt(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class v8 extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;E5(y8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),lu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ct.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ES(e){const[t,n]=g8(),r=A.useContext(xw);return A.createElement(v8,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(Cw),isPresent:t,safeToRemove:n})}const y8={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:m8},TS=["TopLeft","TopRight","BottomLeft","BottomRight"],b8=TS.length,Cx=e=>typeof e=="string"?parseFloat(e):e,wx=e=>typeof e=="number"||Me.test(e);function x8(e,t,n,r,o,i){o?(e.opacity=Pt(0,n.opacity!==void 0?n.opacity:1,C8(r)),e.opacityExit=Pt(t.opacity!==void 0?t.opacity:1,0,w8(r))):i&&(e.opacity=Pt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<b8;a++){const c=`border${TS[a]}Radius`;let u=Sx(t,c),d=Sx(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||wx(u)===wx(d)?(e[c]=Math.max(Pt(Cx(u),Cx(d),r),0),(Wr.test(d)||Wr.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Pt(t.rotate||0,n.rotate||0,r))}function Sx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const C8=IS(0,.5,Kw),w8=IS(.5,.95,kt);function IS(e,t,n){return r=>r<e?0:r>t?1:n(ol(e,t,r))}function Ax(e,t){e.min=t.min,e.max=t.max}function cr(e,t){Ax(e.x,t.x),Ax(e.y,t.y)}function Ex(e,t,n,r,o){return e-=t,e=ku(e,1/n,r),o!==void 0&&(e=ku(e,1/o,r)),e}function S8(e,t=0,n=1,r=.5,o,i=e,a=e){if(Wr.test(t)&&(t=parseFloat(t),t=Pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=Pt(i.min,i.max,r);e===i&&(c-=t),e.min=Ex(e.min,t,n,c,o),e.max=Ex(e.max,t,n,c,o)}function Tx(e,t,[n,r,o],i,a){S8(e,t[n],t[r],t[o],t.scale,i,a)}const A8=["x","scaleX","originX"],E8=["y","scaleY","originY"];function Ix(e,t,n,r){Tx(e.x,t,A8,n?n.x:void 0,r?r.x:void 0),Tx(e.y,t,E8,n?n.y:void 0,r?r.y:void 0)}function Ox(e){return e.translate===0&&e.scale===1}function OS(e){return Ox(e.x)&&Ox(e.y)}function T8(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function PS(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Px(e){return Xn(e.x)/Xn(e.y)}class I8{constructor(){this.members=[]}add(t){hm(this.members,t),t.scheduleRender()}remove(t){if(gm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jx(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:d,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const O8=(e,t)=>e.depth-t.depth;class P8{constructor(){this.children=[],this.isDirty=!1}add(t){hm(this.children,t),this.isDirty=!0}remove(t){gm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(O8),this.isDirty=!1,this.children.forEach(t)}}function j8(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(xo(r),e(i-t))};return Ct.read(r,!0),()=>xo(r)}function R8(e){window.MotionDebug&&window.MotionDebug.record(e)}function M8(e){return e instanceof SVGElement&&e.tagName!=="svg"}function k8(e,t,n){const r=Dn(e)?e:Ls(e);return r.start(pm("",r,t,n)),r.animation}const Rx=["","X","Y","Z"],F8={visibility:"hidden"},Mx=1e3;let D8=0;const wi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t==null?void 0:t()){this.id=D8++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wi.totalNodes=wi.resolvedTargetDeltas=wi.recalculatedProjection=0,this.nodes.forEach(B8),this.nodes.forEach(z8),this.nodes.forEach(U8),this.nodes.forEach(N8),R8(wi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new P8)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new mm),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=M8(a),this.instance=a;const{layoutId:u,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=j8(v,250),lu.hasAnimatedSinceResize&&(lu.hasAnimatedSinceResize=!1,this.nodes.forEach(Fx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||p.getDefaultTransition()||K8,{onLayoutAnimationStart:w,onLayoutAnimationComplete:T}=p.getProps(),j=!this.targetLayout||!PS(this.targetLayout,b)||y,E=!v&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||E||v&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,E);const P={...fm(x,"layout"),onPlay:w,onComplete:T};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else v||Fx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(H8),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kx);return}this.isUpdating||this.nodes.forEach(V8),this.isUpdating=!1,this.nodes.forEach(W8),this.nodes.forEach(_8),this.nodes.forEach(L8),this.clearAllSnapshots();const c=performance.now();fn.delta=Ko(0,1e3/60,c-fn.timestamp),fn.timestamp=c,fn.isProcessing=!0,Lp.update.process(fn),Lp.preRender.process(fn),Lp.render.process(fn),fn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach($8),this.sharedNodes.forEach(G8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!OS(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;a&&(c||Ci(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),X8(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Wt();const c=a.measureViewportBox(),{scroll:u}=this.root;return u&&(Wo(c.x,u.offset.x),Wo(c.y,u.offset.y)),c}removeElementScroll(a){const c=Wt();cr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:g}=d;if(d!==this.root&&p&&g.layoutScroll){if(p.isRoot){cr(c,a);const{scroll:v}=this.root;v&&(Wo(c.x,-v.offset.x),Wo(c.y,-v.offset.y))}Wo(c.x,p.offset.x),Wo(c.y,p.offset.y)}}return c}applyTransform(a,c=!1){const u=Wt();cr(u,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Es(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ci(p.latestValues)&&Es(u,p.latestValues)}return Ci(this.latestValues)&&Es(u,this.latestValues),u}removeTransform(a){const c=Wt();cr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Ci(d.latestValues))continue;Fh(d.latestValues)&&d.updateSnapshot();const p=Wt(),g=d.measurePageBox();cr(p,g),Ix(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return Ci(this.latestValues)&&Ix(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=fn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Ua(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):cr(this.target,this.layout.layoutBox),wS(this.target,this.targetDelta)):cr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Ua(this.relativeTargetOrigin,this.target,y.target),cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}wi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Fh(this.parent.latestValues)||CS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===fn.timestamp&&(d=!1),d)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;cr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;s8(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:b}=c;if(!b){this.projectionTransform&&(this.projectionDelta=As(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=As(),this.projectionDeltaWithTransform=As());const x=this.projectionTransform;za(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=jx(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==v||this.treeScale.y!==y)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),wi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},p={...this.latestValues},g=As();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=Wt(),y=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=y!==b,w=this.getStack(),T=!w||w.members.length<=1,j=!!(x&&!T&&this.options.crossfade===!0&&!this.path.some(Y8));this.animationProgress=0;let E;this.mixTargetDelta=P=>{const O=P/1e3;Dx(g.x,a.x,O),Dx(g.y,a.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ua(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),q8(this.relativeTarget,this.relativeTargetOrigin,v,O),E&&T8(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Wt()),cr(E,this.relativeTarget)),x&&(this.animationValues=p,x8(p,d,this.latestValues,O,j,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{lu.hasAnimatedSinceResize=!0,this.currentAnimation=k8(0,Mx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&RS(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||Wt();const g=Xn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+g;const v=Xn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+v}cr(c,u),Es(c,p),za(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new I8),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const d={};for(let p=0;p<Rx.length;p++){const g="rotate"+Rx[p];u[g]&&(d[g]=u[g],a.setStaticValue(g,0))}a.render();for(const p in d)a.setStaticValue(p,d[p]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F8;const d={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=au(a==null?void 0:a.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none",d;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=au(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ci(this.latestValues)&&(x.transform=p?p({},""):"none",this.hasProjected=!1),x}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),d.transform=jx(this.projectionDeltaWithTransform,this.treeScale,v),p&&(d.transform=p(v,d.transform));const{x:y,y:b}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,g.animationValues?d.opacity=g===this?(u=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const x in Tu){if(v[x]===void 0)continue;const{correct:w,applyTo:T}=Tu[x],j=d.transform==="none"?v[x]:w(v[x],g);if(T){const E=T.length;for(let P=0;P<E;P++)d[T[P]]=j}else d[x]=j}return this.options.layoutId&&(d.pointerEvents=g===this?au(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(kx),this.root.sharedNodes.clear()}}}function _8(e){e.updateLayout()}function L8(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?ur(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Xn(v);v.min=r[g].min,v.max=v.min+y}):RS(i,n.layoutBox,r)&&ur(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Xn(r[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const c=As();za(c,r,n.layoutBox);const u=As();a?za(u,e.applyTransform(o,!0),n.measuredBox):za(u,r,n.layoutBox);const d=!OS(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const b=Wt();Ua(b,n.layoutBox,v.layoutBox);const x=Wt();Ua(x,r,y.layoutBox),PS(b,x)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function B8(e){wi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function N8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $8(e){e.clearSnapshot()}function kx(e){e.clearMeasurements()}function V8(e){e.isLayoutDirty=!1}function W8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function z8(e){e.resolveTargetDelta()}function U8(e){e.calcProjection()}function H8(e){e.resetRotation()}function G8(e){e.removeLeadSnapshot()}function Dx(e,t,n){e.translate=Pt(t.translate,0,n),e.scale=Pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _x(e,t,n,r){e.min=Pt(t.min,n.min,r),e.max=Pt(t.max,n.max,r)}function q8(e,t,n,r){_x(e.x,t.x,n.x,r),_x(e.y,t.y,n.y,r)}function Y8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const K8={duration:.45,ease:[.4,0,.1,1]},Lx=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Bx=Lx("applewebkit/")&&!Lx("chrome/")?Math.round:kt;function Nx(e){e.min=Bx(e.min),e.max=Bx(e.max)}function X8(e){Nx(e.x),Nx(e.y)}function RS(e,t,n){return e==="position"||e==="preserve-aspect"&&!Mh(Px(t),Px(n),.2)}const Z8=jS({attachResizeListener:(e,t)=>ho(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yp={current:void 0},MS=jS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yp.current){const e=new Z8({});e.mount(window),e.setOptions({layoutScroll:!0}),Yp.current=e}return Yp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Q8={pan:{Feature:h8},drag:{Feature:p8,ProjectionNode:MS,MeasureLayout:ES}},J8=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eD(e){const t=J8.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const tD=4;function _h(e,t,n=1){jr(n<=tD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=eD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return hS(a)?parseFloat(a):a}else return Eh(o)?_h(o,t,n+1):o}function nD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Eh(i))return;const a=_h(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!Eh(i))continue;const a=_h(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const rD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),kS=e=>rD.has(e),oD=e=>Object.keys(e).some(kS),Gc=e=>e===Ni||e===Me,$x=(e,t)=>parseFloat(e.split(", ")[t]),Vx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return $x(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?$x(i[1],e):0}},iD=new Set(["x","y","z"]),sD=xl.filter(e=>!iD.has(e));function aD(e){const t=[];return sD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Bs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vx(4,13),y:Vx(5,14)};Bs.translateX=Bs.x;Bs.translateY=Bs.y;const lD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{c[d]=Bs[d](r,i)}),t.render();const u=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);p&&p.jump(c[d]),e[d]=Bs[d](u,i)}),e},cD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(kS);let i=[],a=!1;const c=[];if(o.forEach(u=>{const d=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],g=Oa(p);const v=t[u];let y;if(Ou(v)){const b=v.length,x=v[0]===null?1:0;p=v[x],g=Oa(p);for(let w=x;w<b&&v[w]!==null;w++)y?jr(Oa(v[w])===y,"All keyframes must be of the same type"):(y=Oa(v[w]),jr(y===g||Gc(g)&&Gc(y),"Keyframes must be of the same dimension as the current value"))}else y=Oa(v);if(g!==y)if(Gc(g)&&Gc(y)){const b=d.get();typeof b=="string"&&d.set(parseFloat(b)),typeof v=="string"?t[u]=parseFloat(v):Array.isArray(v)&&y===Me&&(t[u]=v.map(parseFloat))}else g!=null&&g.transform&&(y!=null&&y.transform)&&(p===0||v===0)?p===0?d.set(y.transform(p)):t[u]=g.transform(v):(a||(i=aD(e),a=!0),c.push(u),r[u]=r[u]!==void 0?r[u]:t[u],d.jump(v))}),c.length){const u=c.indexOf("height")>=0?window.pageYOffset:null,d=lD(t,e,c);return i.length&&i.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),xd&&u!==null&&window.scrollTo({top:u}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function uD(e,t,n,r){return oD(t)?cD(e,t,n,r):{target:t,transitionEnd:r}}const dD=(e,t,n,r)=>{const o=nD(e,t,r);return t=o.target,r=o.transitionEnd,uD(e,t,n,r)},Lh={current:null},FS={current:!1};function fD(){if(FS.current=!0,!!xd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lh.current=e.matches;e.addListener(t),t()}else Lh.current=!1}function pD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Dn(i))e.addValue(o,i),Mu(r)&&r.add(o),process.env.NODE_ENV==="development"&&vm(i.version==="10.18.0",`Attempting to mix Framer Motion versions ${i.version} with 10.18.0 may not work as expected.`);else if(Dn(a))e.addValue(o,Ls(i,{owner:e})),Mu(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const c=e.getValue(o);!c.hasAnimated&&c.set(i)}else{const c=e.getStaticValue(o);e.addValue(o,Ls(c!==void 0?c:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Wx=new WeakMap,DS=Object.keys(rl),hD=DS.length,zx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gD=em.length;class mD{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);const{latestValues:c,renderState:u}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=wd(n),this.isVariantNode=bw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const v=p[g];c[g]!==void 0&&Dn(v)&&(v.set(c[g],!1),Mu(d)&&d.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Wx.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),FS.current||fD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lh.current,process.env.NODE_ENV!=="production"&&vm(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Wx.delete(this.current),this.projection&&this.projection.unmount(),xo(this.notifyUpdate),xo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Bi.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,c;if(process.env.NODE_ENV!=="production"&&o&&r){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Sl(!1,u):jr(!1,u)}for(let u=0;u<hD;u++){const d=DS[u],{isEnabled:p,Feature:g,ProjectionNode:v,MeasureLayout:y}=rl[d];v&&(a=v),p(n)&&(!this.features[d]&&g&&(this.features[d]=new g(this)),y&&(c=y))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:d,drag:p,dragConstraints:g,layoutScroll:v,layoutRoot:y}=n;this.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!p||g&&ws(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:v,layoutRoot:y})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zx.length;r++){const o=zx[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=pD(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<gD;r++){const o=em[r],i=this.props[o];(nl(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ls(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=am(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Dn(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new mm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _S extends mD{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let a=MF(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){jF(this,r,a);const c=dD(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function vD(e){return window.getComputedStyle(e)}class yD extends _S{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Bi.has(n)){const r=dm(n);return r&&r.default||0}else{const r=vD(t),o=(Aw(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return SS(t,n)}build(t,n,r,o){nm(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return sm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Dn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){jw(t,n,r,o)}}class bD extends _S{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Bi.has(n)){const r=dm(n);return r&&r.default||0}return n=Rw.has(n)?n:Qg(n),t.getAttribute(n)}measureInstanceViewportBox(){return Wt()}scrapeMotionValuesFromProps(t,n){return kw(t,n)}build(t,n,r,o){om(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Mw(t,n,r,o)}mount(t){this.isSVGTag=im(t.tagName),super.mount(t)}}const xD=(e,t)=>tm(e)?new bD(t,{enableHardwareAcceleration:!1}):new yD(t,{enableHardwareAcceleration:!0}),CD={layout:{ProjectionNode:MS,MeasureLayout:ES}},wD={...qF,...g6,...Q8,...CD},qc=S5((e,t)=>n6(e,t,wD,xD)),SD=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Ux(...e){const t=A.useRef(0),[n,r]=A.useState(e[t.current]),o=A.useCallback(i=>{t.current=typeof i!="number"?SD(0,e.length,t.current+1):i,r(e[t.current])},[e.length,...e]);return[n,o]}function AD({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let i,a;switch(n){case"up":case"left":i=r,a=0;break;case"right":case"down":default:i=0,a=r;break}const[c,u]=Ux(i,a),[d,p]=Ux(i,a);switch(t){case"rotate":return f.jsx(qc.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:e});case"slide":return n==="up"||n==="down"?f.jsx(qc.div,{animate:{y:d!==void 0?d:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):f.jsx(qc.div,{animate:{x:c!==void 0?c:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:e});case"scale":default:return typeof o=="number"&&(o={hover:o,tap:o}),f.jsx(qc.div,{whileHover:{scale:o==null?void 0:o.hover},whileTap:{scale:o==null?void 0:o.tap},children:e})}}function sn(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function _e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ao(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Bh={exports:{}},Yc={exports:{}},it={};/** @license React v16.13.1
|
|
1
|
+
"use strict";var u5=Object.defineProperty;var Bb=e=>{throw TypeError(e)};var d5=(e,t,n)=>t in e?u5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ta=(e,t,n)=>d5(e,typeof t!="symbol"?t+"":t,n),_p=(e,t,n)=>t.has(e)||Bb("Cannot "+n);var On=(e,t,n)=>(_p(e,t,"read from private field"),n?n.call(e):t.get(e)),lo=(e,t,n)=>t.has(e)?Bb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Do=(e,t,n,r)=>(_p(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ia=(e,t,n)=>(_p(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),f5=require("@emotion/styled"),tn=require("@emotion/react"),A=require("react"),S=require("@mui/material"),We=require("@ant-design/icons"),ut=require("react-router-dom"),nn=require("@mui/icons-material"),Z=require("ra-core"),_i=require("react-router"),_=require("react-admin"),rn=require("react-hook-form"),Mi=require("react-query"),ws=require("react-dom"),pw=require("ra-i18n-polyglot");function hw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=hw(A),gw=hw(ws),mw=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bd=A.createContext({}),Zg=A.createContext(null),xd=typeof document<"u",p5=xd?A.useLayoutEffect:A.useEffect,vw=A.createContext({strict:!1}),Qg=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h5="framerAppearId",yw="data-"+Qg(h5);function g5(e,t,n,r){const{visualElement:o}=A.useContext(bd),i=A.useContext(vw),a=A.useContext(Zg),c=A.useContext(mw).reducedMotion,u=A.useRef();r=r||i.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=u.current;A.useInsertionEffect(()=>{d&&d.update(n,a)});const p=A.useRef(!!(n[yw]&&!window.HandoffComplete));return p5(()=>{d&&(d.render(),p.current&&d.animationState&&d.animationState.animateChanges())}),A.useEffect(()=>{d&&(d.updateFeatures(),!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),d}function Ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function m5(e,t,n){return A.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ss(n)&&(n.current=r))},[t])}function nl(e){return typeof e=="string"||Array.isArray(e)}function Cd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Jg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],em=["initial",...Jg];function wd(e){return Cd(e.animate)||em.some(t=>nl(e[t]))}function bw(e){return!!(wd(e)||e.variants)}function v5(e,t){if(wd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||nl(n)?n:void 0,animate:nl(r)?r:void 0}}return e.inherit!==!1?t:{}}function y5(e){const{initial:t,animate:n}=v5(e,A.useContext(bd));return A.useMemo(()=>({initial:t,animate:n}),[Nb(t),Nb(n)])}function Nb(e){return Array.isArray(e)?e.join(" "):e}const $b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rl={};for(const e in $b)rl[e]={isEnabled:t=>$b[e].some(n=>!!t[n])};function b5(e){for(const t in e)rl[t]={...rl[t],...e[t]}}const xw=A.createContext({}),Cw=A.createContext({}),x5=Symbol.for("motionComponentSymbol");function C5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&b5(e);function i(c,u){let d;const p={...A.useContext(mw),...c,layoutId:w5(c)},{isStatic:g}=p,v=y5(c),y=r(c,g);if(!g&&xd){v.visualElement=g5(o,y,p,t);const b=A.useContext(Cw),x=A.useContext(vw).strict;v.visualElement&&(d=v.visualElement.loadFeatures(p,x,e,b))}return D.createElement(bd.Provider,{value:v},d&&v.visualElement?D.createElement(d,{visualElement:v.visualElement,...p}):null,n(o,c,m5(y,v.visualElement,u),y,g,v.visualElement))}const a=A.forwardRef(i);return a[x5]=o,a}function w5({layoutId:e}){const t=A.useContext(xw).id;return t&&e!==void 0?t+"-"+e:e}function S5(e){function t(r,o={}){return C5(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const A5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tm(e){return typeof e!="string"||e.includes("-")?!1:!!(A5.indexOf(e)>-1||/[A-Z]/.test(e))}const Tu={};function E5(e){Object.assign(Tu,e)}const xl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ni=new Set(xl);function ww(e,{layout:t,layoutId:n}){return Ni.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Tu[e]||e==="opacity")}const Dn=e=>!!(e&&e.getVelocity),T5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I5=xl.length;function O5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a<I5;a++){const c=xl[a];if(e[c]!==void 0){const u=T5[c]||c;i+=`${u}(${e[c]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const Sw=e=>t=>typeof t=="string"&&t.startsWith(e),Aw=Sw("--"),Eh=Sw("var(--"),P5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,j5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ko=(e,t,n)=>Math.min(Math.max(n,e),t),$i={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Va={...$i,transform:e=>Ko(0,1,e)},Wc={...$i,default:1},Wa=e=>Math.round(e*1e5)/1e5,Sd=/(-)?([\d]*\.?[\d])+/g,Ew=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,R5=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Cl(e){return typeof e=="string"}const wl=e=>({test:t=>Cl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=wl("deg"),Wr=wl("%"),Me=wl("px"),M5=wl("vh"),k5=wl("vw"),Vb={...Wr,parse:e=>Wr.parse(e)/100,transform:e=>Wr.transform(e*100)},Wb={...$i,transform:Math.round},Tw={borderWidth:Me,borderTopWidth:Me,borderRightWidth:Me,borderBottomWidth:Me,borderLeftWidth:Me,borderRadius:Me,radius:Me,borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomRightRadius:Me,borderBottomLeftRadius:Me,width:Me,maxWidth:Me,height:Me,maxHeight:Me,size:Me,top:Me,right:Me,bottom:Me,left:Me,padding:Me,paddingTop:Me,paddingRight:Me,paddingBottom:Me,paddingLeft:Me,margin:Me,marginTop:Me,marginRight:Me,marginBottom:Me,marginLeft:Me,rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Wc,scaleX:Wc,scaleY:Wc,scaleZ:Wc,skew:$o,skewX:$o,skewY:$o,distance:Me,translateX:Me,translateY:Me,translateZ:Me,x:Me,y:Me,z:Me,perspective:Me,transformPerspective:Me,opacity:Va,originX:Vb,originY:Vb,originZ:Me,zIndex:Wb,fillOpacity:Va,strokeOpacity:Va,numOctaves:Wb};function nm(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:c}=e;let u=!1,d=!1,p=!0;for(const g in t){const v=t[g];if(Aw(g)){i[g]=v;continue}const y=Tw[g],b=j5(v,y);if(Ni.has(g)){if(u=!0,a[g]=b,!p)continue;v!==(y.default||0)&&(p=!1)}else g.startsWith("origin")?(d=!0,c[g]=b):o[g]=b}if(t.transform||(u||r?o.transform=O5(e.transform,n,p,r):o.transform&&(o.transform="none")),d){const{originX:g="50%",originY:v="50%",originZ:y=0}=c;o.transformOrigin=`${g} ${v} ${y}`}}const rm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Iw(e,t,n){for(const r in t)!Dn(t[r])&&!ww(r,n)&&(e[r]=t[r])}function F5({transformTemplate:e},t,n){return A.useMemo(()=>{const r=rm();return nm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function D5(e,t,n){const r=e.style||{},o={};return Iw(o,r,e),Object.assign(o,F5(e,t,n)),e.transformValues?e.transformValues(o):o}function _5(e,t,n){const r={},o=D5(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const L5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Iu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||L5.has(e)}let Ow=e=>!Iu(e);function B5(e){e&&(Ow=t=>t.startsWith("on")?!Iu(t):e(t))}try{B5(require("@emotion/is-prop-valid").default)}catch{}function N5(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ow(o)||n===!0&&Iu(o)||!t&&!Iu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function zb(e,t,n){return typeof e=="string"?e:Me.transform(t+n*e)}function $5(e,t,n){const r=zb(t,e.x,e.width),o=zb(n,e.y,e.height);return`${r} ${o}`}const V5={offset:"stroke-dashoffset",array:"stroke-dasharray"},W5={offset:"strokeDashoffset",array:"strokeDasharray"};function z5(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?V5:W5;e[i.offset]=Me.transform(-r);const a=Me.transform(t),c=Me.transform(n);e[i.array]=`${a} ${c}`}function om(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},p,g,v){if(nm(e,d,p,v),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b,dimensions:x}=e;y.transform&&(x&&(b.transform=y.transform),delete y.transform),x&&(o!==void 0||i!==void 0||b.transform)&&(b.transformOrigin=$5(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&z5(y,a,c,u,!1)}const Pw=()=>({...rm(),attrs:{}}),im=e=>typeof e=="string"&&e.toLowerCase()==="svg";function U5(e,t,n,r){const o=A.useMemo(()=>{const i=Pw();return om(i,t,{enableHardwareAcceleration:!1},im(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Iw(i,e.style,e),o.style={...i,...o.style}}return o}function H5(e=!1){return(n,r,o,{latestValues:i},a)=>{const u=(tm(n)?U5:_5)(r,i,a,n),p={...N5(r,typeof n=="string",e),...u,ref:o},{children:g}=r,v=A.useMemo(()=>Dn(g)?g.get():g,[g]);return A.createElement(n,{...p,children:v})}}function jw(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Rw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Mw(e,t,n,r){jw(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Rw.has(o)?o:Qg(o),t.attrs[o])}function sm(e,t){const{style:n}=e,r={};for(const o in n)(Dn(n[o])||t.style&&Dn(t.style[o])||ww(o,e))&&(r[o]=n[o]);return r}function kw(e,t){const n=sm(e,t);for(const r in e)if(Dn(e[r])||Dn(t[r])){const o=xl.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function am(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function G5(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ou=e=>Array.isArray(e),q5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Y5=e=>Ou(e)?e[e.length-1]||0:e;function au(e){const t=Dn(e)?e.get():e;return q5(t)?t.toValue():t}function K5({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:X5(r,o,i,e),renderState:t()};return n&&(a.mount=c=>n(r,c,a)),a}const Fw=e=>(t,n)=>{const r=A.useContext(bd),o=A.useContext(Zg),i=()=>K5(e,t,r,o);return n?i():G5(i)};function X5(e,t,n,r){const o={},i=r(e,{});for(const v in i)o[v]=au(i[v]);let{initial:a,animate:c}=e;const u=wd(e),d=bw(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const g=p?c:a;return g&&typeof g!="boolean"&&!Cd(g)&&(Array.isArray(g)?g:[g]).forEach(y=>{const b=am(e,y);if(!b)return;const{transitionEnd:x,transition:w,...T}=b;for(const j in T){let E=T[j];if(Array.isArray(E)){const P=p?E.length-1:0;E=E[P]}E!==null&&(o[j]=E)}for(const j in x)o[j]=x[j]}),o}const kt=e=>e;class Ub{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Z5(e){let t=new Ub,n=new Ub,r=0,o=!1,i=!1;const a=new WeakSet,c={schedule:(u,d=!1,p=!1)=>{const g=p&&o,v=g?t:n;return d&&a.add(u),v.add(u)&&g&&o&&(r=t.order.length),u},cancel:u=>{n.remove(u),a.delete(u)},process:u=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const p=t.order[d];p(u),a.has(p)&&(c.schedule(p),e())}o=!1,i&&(i=!1,c.process(u))}};return c}const zc=["prepare","read","update","preRender","render","postRender"],Q5=40;function J5(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=zc.reduce((g,v)=>(g[v]=Z5(()=>n=!0),g),{}),a=g=>i[g].process(o),c=()=>{const g=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(g-o.timestamp,Q5),1),o.timestamp=g,o.isProcessing=!0,zc.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(c))},u=()=>{n=!0,r=!0,o.isProcessing||e(c)};return{schedule:zc.reduce((g,v)=>{const y=i[v];return g[v]=(b,x=!1,w=!1)=>(n||u(),y.schedule(b,x,w)),g},{}),cancel:g=>zc.forEach(v=>i[v].cancel(g)),state:o,steps:i}}const{schedule:Ct,cancel:xo,state:fn,steps:Lp}=J5(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),e6={useVisualState:Fw({scrapeMotionValuesFromProps:kw,createRenderState:Pw,onMount:(e,t,{renderState:n,latestValues:r})=>{Ct.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ct.render(()=>{om(n,r,{enableHardwareAcceleration:!1},im(t.tagName),e.transformTemplate),Mw(t,n)})}})},t6={useVisualState:Fw({scrapeMotionValuesFromProps:sm,createRenderState:rm})};function n6(e,{forwardMotionProps:t=!1},n,r){return{...tm(e)?e6:t6,preloadedFeatures:n,useRender:H5(t),createVisualElement:r,Component:e}}function ho(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Dw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ad(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const r6=e=>t=>Dw(t)&&e(t,Ad(t));function yo(e,t,n,r){return ho(e,t,r6(n),r)}const o6=(e,t)=>n=>t(e(n)),Go=(...e)=>e.reduce(o6);function _w(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Hb=_w("dragHorizontal"),Gb=_w("dragVertical");function Lw(e){let t=!1;if(e==="y")t=Gb();else if(e==="x")t=Hb();else{const n=Hb(),r=Gb();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Bw(){const e=Lw(!0);return e?(e(),!1):!0}class Jo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qb(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.pointerType==="touch"||Bw())return;const c=e.getProps();e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",t),c[r]&&Ct.update(()=>c[r](i,a))};return yo(e.current,n,o,{passive:!e.getProps()[r]})}class i6 extends Jo{mount(){this.unmount=Go(qb(this.node,!0),qb(this.node,!1))}unmount(){}}class s6 extends Jo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Go(ho(this.node.current,"focus",()=>this.onFocus()),ho(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Nw=(e,t)=>t?e===t?!0:Nw(e,t.parentElement):!1;function Bp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ad(n))}class a6 extends Jo{constructor(){super(...arguments),this.removeStartListeners=kt,this.removeEndListeners=kt,this.removeAccessibleListeners=kt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=yo(window,"pointerup",(c,u)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:p,globalTapTarget:g}=this.node.getProps();Ct.update(()=>{!g&&!Nw(this.node.current,c.target)?p&&p(c,u):d&&d(c,u)})},{passive:!(r.onTap||r.onPointerUp)}),a=yo(window,"pointercancel",(c,u)=>this.cancelPress(c,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Go(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Bp("up",(u,d)=>{const{onTap:p}=this.node.getProps();p&&Ct.update(()=>p(u,d))})};this.removeEndListeners(),this.removeEndListeners=ho(this.node.current,"keyup",a),Bp("down",(c,u)=>{this.startPress(c,u)})},n=ho(this.node.current,"keydown",t),r=()=>{this.isPressing&&Bp("cancel",(i,a)=>this.cancelPress(i,a))},o=ho(this.node.current,"blur",r);this.removeAccessibleListeners=Go(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ct.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Bw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ct.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=yo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ho(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Go(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Th=new WeakMap,Np=new WeakMap,l6=e=>{const t=Th.get(e.target);t&&t(e)},c6=e=>{e.forEach(l6)};function u6({root:e,...t}){const n=e||document;Np.has(n)||Np.set(n,{});const r=Np.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(c6,{root:e,...t})),r[o]}function d6(e,t,n){const r=u6(t);return Th.set(e,n),r.observe(e),()=>{Th.delete(e),r.unobserve(e)}}const f6={some:0,all:1};class p6 extends Jo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:f6[o]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=d?p:g;v&&v(u)};return d6(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(h6(t,n))&&this.startObserver()}unmount(){}}function h6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const g6={inView:{Feature:p6},tap:{Feature:a6},focus:{Feature:s6},hover:{Feature:i6}};function $w(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function m6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function v6(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ed(e,t,n){const r=e.getProps();return am(r,t,n!==void 0?n:r.custom,m6(e),v6(e))}let Sl=kt,jr=kt;process.env.NODE_ENV!=="production"&&(Sl=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},jr=(e,t)=>{if(!e)throw new Error(t)});const qo=e=>e*1e3,bo=e=>e/1e3,y6={current:!1},Vw=e=>Array.isArray(e)&&typeof e[0]=="number";function Ww(e){return!!(!e||typeof e=="string"&&zw[e]||Vw(e)||Array.isArray(e)&&e.every(Ww))}const La=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:La([0,.65,.55,1]),circOut:La([.55,0,1,.45]),backIn:La([.31,.01,.66,-.59]),backOut:La([.33,1.53,.69,.99])};function Uw(e){if(e)return Vw(e)?La(e):Array.isArray(e)?e.map(Uw):zw[e]}function b6(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:c,times:u}={}){const d={[t]:n};u&&(d.offset=u);const p=Uw(c);return Array.isArray(p)&&(d.easing=p),e.animate(d,{delay:r,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function x6(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,C6=1e-7,w6=12;function S6(e,t,n,r,o){let i,a,c=0;do a=t+(n-t)/2,i=Hw(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>C6&&++c<w6);return a}function Al(e,t,n,r){if(e===t&&n===r)return kt;const o=i=>S6(i,0,1,e,n);return i=>i===0||i===1?i:Hw(o(i),t,r)}const A6=Al(.42,0,1,1),E6=Al(0,0,.58,1),Gw=Al(.42,0,.58,1),T6=e=>Array.isArray(e)&&typeof e[0]!="number",qw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yw=e=>t=>1-e(1-t),lm=e=>1-Math.sin(Math.acos(e)),Kw=Yw(lm),I6=qw(lm),Xw=Al(.33,1.53,.69,.99),cm=Yw(Xw),O6=qw(cm),P6=e=>(e*=2)<1?.5*cm(e):.5*(2-Math.pow(2,-10*(e-1))),Yb={linear:kt,easeIn:A6,easeInOut:Gw,easeOut:E6,circIn:lm,circInOut:I6,circOut:Kw,backIn:cm,backInOut:O6,backOut:Xw,anticipate:P6},Kb=e=>{if(Array.isArray(e)){jr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Al(t,n,r,o)}else if(typeof e=="string")return jr(Yb[e]!==void 0,`Invalid easing type '${e}'`),Yb[e];return e},um=(e,t)=>n=>!!(Cl(n)&&R5.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Zw=(e,t,n)=>r=>{if(!Cl(r))return r;const[o,i,a,c]=r.match(Sd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},j6=e=>Ko(0,255,e),$p={...$i,transform:e=>Math.round(j6(e))},Oi={test:um("rgb","red"),parse:Zw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$p.transform(e)+", "+$p.transform(t)+", "+$p.transform(n)+", "+Wa(Va.transform(r))+")"};function R6(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ih={test:um("#"),parse:R6,transform:Oi.transform},As={test:um("hsl","hue"),parse:Zw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wr.transform(Wa(t))+", "+Wr.transform(Wa(n))+", "+Wa(Va.transform(r))+")"},Cn={test:e=>Oi.test(e)||Ih.test(e)||As.test(e),parse:e=>Oi.test(e)?Oi.parse(e):As.test(e)?As.parse(e):Ih.parse(e),transform:e=>Cl(e)?e:e.hasOwnProperty("red")?Oi.transform(e):As.transform(e)},Pt=(e,t,n)=>-n*e+n*t+e;function Vp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function M6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=Vp(u,c,e+1/3),i=Vp(u,c,e),a=Vp(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const Wp=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},k6=[Ih,Oi,As],F6=e=>k6.find(t=>t.test(e));function Xb(e){const t=F6(e);jr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===As&&(n=M6(n)),n}const Qw=(e,t)=>{const n=Xb(e),r=Xb(t),o={...n};return i=>(o.red=Wp(n.red,r.red,i),o.green=Wp(n.green,r.green,i),o.blue=Wp(n.blue,r.blue,i),o.alpha=Pt(n.alpha,r.alpha,i),Oi.transform(o))};function D6(e){var t,n;return isNaN(e)&&Cl(e)&&(((t=e.match(Sd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ew))===null||n===void 0?void 0:n.length)||0)>0}const Jw={regex:P5,countKey:"Vars",token:"${v}",parse:kt},eS={regex:Ew,countKey:"Colors",token:"${c}",parse:Cn.parse},tS={regex:Sd,countKey:"Numbers",token:"${n}",parse:$i.parse};function zp(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Pu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&zp(n,Jw),zp(n,eS),zp(n,tS),n}function nS(e){return Pu(e).values}function rS(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Pu(e),i=t.length;return a=>{let c=o;for(let u=0;u<i;u++)u<r?c=c.replace(Jw.token,a[u]):u<r+n?c=c.replace(eS.token,Cn.transform(a[u])):c=c.replace(tS.token,Wa(a[u]));return c}}const _6=e=>typeof e=="number"?0:e;function L6(e){const t=nS(e);return rS(e)(t.map(_6))}const Xo={test:D6,parse:nS,createTransformer:rS,getAnimatableNone:L6},oS=(e,t)=>n=>`${n>0?t:e}`;function iS(e,t){return typeof e=="number"?n=>Pt(e,t,n):Cn.test(e)?Qw(e,t):e.startsWith("var(")?oS(e,t):aS(e,t)}const sS=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>iS(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}},B6=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=iS(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},aS=(e,t)=>{const n=Xo.createTransformer(t),r=Pu(e),o=Pu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Go(sS(r.values,o.values),n):(Sl(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),oS(e,t))},ol=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Zb=(e,t)=>n=>Pt(e,t,n);function N6(e){return typeof e=="number"?Zb:typeof e=="string"?Cn.test(e)?Qw:aS:Array.isArray(e)?sS:typeof e=="object"?B6:Zb}function $6(e,t,n){const r=[],o=n||N6(e[0]),i=e.length-1;for(let a=0;a<i;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=Go(u,c)}r.push(c)}return r}function lS(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(jr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=$6(t,r,o),c=a.length,u=d=>{let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const g=ol(e[p],e[p+1],d);return a[p](g)};return n?d=>u(Ko(e[0],e[i-1],d)):u}function V6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ol(0,t,r);e.push(Pt(n,1,o))}}function W6(e){const t=[0];return V6(t,e.length-1),t}function z6(e,t){return e.map(n=>n*t)}function U6(e,t){return e.map(()=>t||Gw).splice(0,e.length-1)}function ju({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=T6(r)?r.map(Kb):Kb(r),i={done:!1,value:t[0]},a=z6(n&&n.length===t.length?n:W6(t),e),c=lS(a,t,{ease:Array.isArray(o)?o:U6(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}function cS(e,t){return t?e*(1e3/t):0}const H6=5;function uS(e,t,n){const r=Math.max(t-H6,0);return cS(n-e(r),t-r)}const Up=.001,G6=.01,Qb=10,q6=.05,Y6=1;function K6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Sl(e<=qo(Qb),"Spring duration must be 10 seconds or less");let a=1-t;a=Ko(q6,Y6,a),e=Ko(G6,Qb,bo(e)),a<1?(o=d=>{const p=d*a,g=p*e,v=p-n,y=Oh(d,a),b=Math.exp(-g);return Up-v/y*b},i=d=>{const g=d*a*e,v=g*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,b=Math.exp(-g),x=Oh(Math.pow(d,2),a);return(-o(d)+Up>0?-1:1)*((v-y)*b)/x}):(o=d=>{const p=Math.exp(-d*e),g=(d-n)*e+1;return-Up+p*g},i=d=>{const p=Math.exp(-d*e),g=(n-d)*(e*e);return p*g});const c=5/e,u=Z6(o,i,c);if(e=qo(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const X6=12;function Z6(e,t,n){let r=n;for(let o=1;o<X6;o++)r=r-e(r)/t(r);return r}function Oh(e,t){return e*Math.sqrt(1-t*t)}const Q6=["duration","bounce"],J6=["stiffness","damping","mass"];function Jb(e,t){return t.some(n=>e[n]!==void 0)}function eF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Jb(e,J6)&&Jb(e,Q6)){const n=K6(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function dS({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:p,velocity:g,isResolvedFromDuration:v}=eF({...r,velocity:-bo(r.velocity||0)}),y=g||0,b=u/(2*Math.sqrt(c*d)),x=i-o,w=bo(Math.sqrt(c/d)),T=Math.abs(x)<5;n||(n=T?.01:2),t||(t=T?.005:.5);let j;if(b<1){const E=Oh(w,b);j=P=>{const O=Math.exp(-b*w*P);return i-O*((y+b*w*x)/E*Math.sin(E*P)+x*Math.cos(E*P))}}else if(b===1)j=E=>i-Math.exp(-w*E)*(x+(y+w*x)*E);else{const E=w*Math.sqrt(b*b-1);j=P=>{const O=Math.exp(-b*w*P),k=Math.min(E*P,300);return i-O*((y+b*w*x)*Math.sinh(k)+E*x*Math.cosh(k))/E}}return{calculatedDuration:v&&p||null,next:E=>{const P=j(E);if(v)a.done=E>=p;else{let O=y;E!==0&&(b<1?O=uS(j,E,P):O=0);const k=Math.abs(O)<=n,F=Math.abs(i-P)<=t;a.done=k&&F}return a.value=a.done?i:P,a}}}function ex({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},y=B=>c!==void 0&&B<c||u!==void 0&&B>u,b=B=>c===void 0?u:u===void 0||Math.abs(c-B)<Math.abs(u-B)?c:u;let x=n*t;const w=g+x,T=a===void 0?w:a(w);T!==w&&(x=T-g);const j=B=>-x*Math.exp(-B/r),E=B=>T+j(B),P=B=>{const H=j(B),q=E(B);v.done=Math.abs(H)<=d,v.value=v.done?T:q};let O,k;const F=B=>{y(v.value)&&(O=B,k=dS({keyframes:[v.value,b(v.value)],velocity:uS(E,B,v.value),damping:o,stiffness:i,restDelta:d,restSpeed:p}))};return F(0),{calculatedDuration:null,next:B=>{let H=!1;return!k&&O===void 0&&(H=!0,P(B),F(B)),O!==void 0&&B>O?k.next(B-O):(!H&&P(B),v)}}}const tF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ct.update(t,!0),stop:()=>xo(t),now:()=>fn.isProcessing?fn.timestamp:performance.now()}},tx=2e4;function nx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<tx;)t+=n,r=e.next(t);return t>=tx?1/0:t}const nF={decay:ex,inertia:ex,tween:ju,keyframes:ju,spring:dS};function Ru({autoplay:e=!0,delay:t=0,driver:n=tF,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:c="loop",onPlay:u,onStop:d,onComplete:p,onUpdate:g,...v}){let y=1,b=!1,x,w;const T=()=>{w=new Promise(J=>{x=J})};T();let j;const E=nF[o]||ju;let P;E!==ju&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&jr(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),P=lS([0,100],r,{clamp:!1}),r=[0,100]);const O=E({...v,keyframes:r});let k;c==="mirror"&&(k=E({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let F="idle",B=null,H=null,q=null;O.calculatedDuration===null&&i&&(O.calculatedDuration=nx(O));const{calculatedDuration:U}=O;let ne=1/0,te=1/0;U!==null&&(ne=U+a,te=ne*(i+1)-a);let Y=0;const X=J=>{if(H===null)return;y>0&&(H=Math.min(H,J)),y<0&&(H=Math.min(J-te/y,H)),B!==null?Y=B:Y=Math.round(J-H)*y;const ue=Y-t*(y>=0?1:-1),he=y>=0?ue<0:ue>te;Y=Math.max(ue,0),F==="finished"&&B===null&&(Y=te);let de=Y,pe=O;if(i){const ve=Math.min(Y,te)/ne;let Ce=Math.floor(ve),Te=ve%1;!Te&&ve>=1&&(Te=1),Te===1&&Ce--,Ce=Math.min(Ce,i+1),!!(Ce%2)&&(c==="reverse"?(Te=1-Te,a&&(Te-=a/ne)):c==="mirror"&&(pe=k)),de=Ko(0,1,Te)*ne}const ge=he?{done:!1,value:r[0]}:pe.next(de);P&&(ge.value=P(ge.value));let{done:we}=ge;!he&&U!==null&&(we=y>=0?Y>=te:Y<=0);const ye=B===null&&(F==="finished"||F==="running"&&we);return g&&g(ge.value),ye&&$(),ge},N=()=>{j&&j.stop(),j=void 0},Q=()=>{F="idle",N(),x(),T(),H=q=null},$=()=>{F="finished",p&&p(),N(),x()},oe=()=>{if(b)return;j||(j=n(X));const J=j.now();u&&u(),B!==null?H=J-B:(!H||F==="finished")&&(H=J),F==="finished"&&T(),q=H,B=null,F="running",j.start()};e&&oe();const W={then(J,ue){return w.then(J,ue)},get time(){return bo(Y)},set time(J){J=qo(J),Y=J,B!==null||!j||y===0?B=J:H=j.now()-J/y},get duration(){const J=O.calculatedDuration===null?nx(O):O.calculatedDuration;return bo(J)},get speed(){return y},set speed(J){J===y||!j||(y=J,W.time=bo(Y))},get state(){return F},play:oe,pause:()=>{F="paused",B=Y},stop:()=>{b=!0,F!=="idle"&&(F="idle",d&&d(),Q())},cancel:()=>{q!==null&&X(q),Q()},complete:()=>{F="finished"},sample:J=>(H=0,X(J))};return W}function rF(e){let t;return()=>(t===void 0&&(t=e()),t)}const oF=rF(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iF=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Uc=10,sF=2e4,aF=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Ww(t.ease);function lF(e,t,{onUpdate:n,onComplete:r,...o}){if(!(oF()&&iF.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,c,u,d=!1;const p=()=>{u=new Promise(E=>{c=E})};p();let{keyframes:g,duration:v=300,ease:y,times:b}=o;if(aF(t,o)){const E=Ru({...o,repeat:0,delay:0});let P={done:!1,value:g[0]};const O=[];let k=0;for(;!P.done&&k<sF;)P=E.sample(k),O.push(P.value),k+=Uc;b=void 0,g=O,v=k-Uc,y="linear"}const x=b6(e.owner.current,t,g,{...o,duration:v,ease:y,times:b}),w=()=>{d=!1,x.cancel()},T=()=>{d=!0,Ct.update(w),c(),p()};return x.onfinish=()=>{d||(e.set(x6(g,o)),r&&r(),T())},{then(E,P){return u.then(E,P)},attachTimeline(E){return x.timeline=E,x.onfinish=null,kt},get time(){return bo(x.currentTime||0)},set time(E){x.currentTime=qo(E)},get speed(){return x.playbackRate},set speed(E){x.playbackRate=E},get duration(){return bo(v)},play:()=>{a||(x.play(),xo(w))},pause:()=>x.pause(),stop:()=>{if(a=!0,x.playState==="idle")return;const{currentTime:E}=x;if(E){const P=Ru({...o,autoplay:!1});e.setWithVelocity(P.sample(E-Uc).value,P.sample(E).value,Uc)}T()},complete:()=>{d||x.finish()},cancel:T}}function cF({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:kt,pause:kt,stop:kt,then:i=>(i(),Promise.resolve()),cancel:kt,complete:kt});return t?Ru({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const uF={type:"spring",stiffness:500,damping:25,restSpeed:10},dF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fF={type:"keyframes",duration:.8},pF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hF=(e,{keyframes:t})=>t.length>2?fF:Ni.has(e)?e.startsWith("scale")?dF(t[1]):uF:pF,Ph=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xo.test(t)||t==="0")&&!t.startsWith("url(")),gF=new Set(["brightness","contrast","saturate","opacity"]);function mF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sd)||[];if(!r)return e;const o=n.replace(r,"");let i=gF.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const vF=/([a-z-]*)\(.*?\)/g,jh={...Xo,getAnimatableNone:e=>{const t=e.match(vF);return t?t.map(mF).join(" "):e}},yF={...Tw,color:Cn,backgroundColor:Cn,outlineColor:Cn,fill:Cn,stroke:Cn,borderColor:Cn,borderTopColor:Cn,borderRightColor:Cn,borderBottomColor:Cn,borderLeftColor:Cn,filter:jh,WebkitFilter:jh},dm=e=>yF[e];function fS(e,t){let n=dm(e);return n!==jh&&(n=Xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pS=e=>/^0[^.\s]+$/.test(e);function bF(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||pS(e)}function xF(e,t,n,r){const o=Ph(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let c;const u=[];for(let d=0;d<i.length;d++)i[d]===null&&(i[d]=d===0?a:i[d-1]),bF(i[d])&&u.push(d),typeof i[d]=="string"&&i[d]!=="none"&&i[d]!=="0"&&(c=i[d]);if(o&&u.length&&c)for(let d=0;d<u.length;d++){const p=u[d];i[p]=fS(t,c)}return i}function CF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:c,from:u,elapsed:d,...p}){return!!Object.keys(p).length}function fm(e,t){return e[t]||e.default||e}const wF={skipAnimations:!1},pm=(e,t,n,r={})=>o=>{const i=fm(r,e)||{},a=i.delay||r.delay||0;let{elapsed:c=0}=r;c=c-qo(a);const u=xF(t,e,n,i),d=u[0],p=u[u.length-1],g=Ph(e,d),v=Ph(e,p);Sl(g===v,`You are trying to animate ${e} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let y={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-c,onUpdate:b=>{t.set(b),i.onUpdate&&i.onUpdate(b)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(CF(i)||(y={...y,...hF(e,y)}),y.duration&&(y.duration=qo(y.duration)),y.repeatDelay&&(y.repeatDelay=qo(y.repeatDelay)),!g||!v||y6.current||i.type===!1||wF.skipAnimations)return cF(y);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const b=lF(t,e,y);if(b)return b}return Ru(y)};function Mu(e){return!!(Dn(e)&&e.add)}const hS=e=>/^\-?\d*\.?\d+$/.test(e);function hm(e,t){e.indexOf(t)===-1&&e.push(t)}function gm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class mm{constructor(){this.subscriptions=[]}add(t){return hm(this.subscriptions,t),()=>gm(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rx=new Set;function vm(e,t,n){e||rx.has(t)||(console.warn(t),rx.add(t))}const SF=e=>!isNaN(parseFloat(e));class AF{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:a}=fn;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=SF(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&vm(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new mm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?cS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ls(e,t){return new AF(e,t)}const gS=e=>t=>t.test(e),EF={test:e=>e==="auto",parse:e=>e},mS=[$i,Me,Wr,$o,k5,M5,EF],Oa=e=>mS.find(gS(e)),TF=[...mS,Cn,Xo],IF=e=>TF.find(gS(e));function OF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ls(n))}function PF(e,t){const n=Ed(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const c=Y5(i[a]);OF(e,a,c)}}function jF(e,t,n){var r,o;const i=Object.keys(t).filter(c=>!e.hasValue(c)),a=i.length;if(a)for(let c=0;c<a;c++){const u=i[c],d=t[u];let p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(o=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&o!==void 0?o:t[u]),p!=null&&(typeof p=="string"&&(hS(p)||pS(p))?p=parseFloat(p):!IF(p)&&Xo.test(d)&&(p=fS(u,d)),e.addValue(u,Ls(p,{owner:e})),n[u]===void 0&&(n[u]=p),p!==null&&e.setBaseTarget(u,p))}}function RF(e,t){return t?(t[e]||t.default||t).from:void 0}function MF(e,t,n){const r={};for(const o in e){const i=RF(o,t);if(i!==void 0)r[o]=i;else{const a=n.getValue(o);a&&(r[o]=a.get())}}return r}function kF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function FF(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function vS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...c}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(i=r);const d=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in c){const v=e.getValue(g),y=c[g];if(!v||y===void 0||p&&kF(p,g))continue;const b={delay:n,elapsed:0,...fm(i||{},g)};if(window.HandoffAppearAnimations){const T=e.getProps()[yw];if(T){const j=window.HandoffAppearAnimations(T,g,v,Ct);j!==null&&(b.elapsed=j,b.isHandoff=!0)}}let x=!b.isHandoff&&!FF(v,y);if(b.type==="spring"&&(v.getVelocity()||b.velocity)&&(x=!1),v.animation&&(x=!1),x)continue;v.start(pm(g,v,y,e.shouldReduceMotion&&Ni.has(g)?{type:!1}:b));const w=v.animation;Mu(u)&&(u.add(g),w.then(()=>u.remove(g))),d.push(w)}return a&&Promise.all(d).then(()=>{a&&PF(e,a)}),d}function Rh(e,t,n={}){const r=Ed(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(vS(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:g}=o;return DF(e,t,d+u,p,g,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function DF(e,t,n=0,r=0,o=1,i){const a=[],c=(e.variantChildren.size-1)*r,u=o===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(_F).forEach((d,p)=>{d.notify("AnimationStart",t),a.push(Rh(d,t,{...i,delay:n+u(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function _F(e,t){return e.sortNodePosition(t)}function LF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Rh(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Rh(e,t,n);else{const o=typeof t=="function"?Ed(e,t,n.custom):t;r=Promise.all(vS(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const BF=[...Jg].reverse(),NF=Jg.length;function $F(e){return t=>Promise.all(t.map(({animation:n,options:r})=>LF(e,n,r)))}function VF(e){let t=$F(e);const n=zF();let r=!0;const o=(u,d)=>{const p=Ed(e,d);if(p){const{transition:g,transitionEnd:v,...y}=p;u={...u,...y,...v}}return u};function i(u){t=u(e)}function a(u,d){const p=e.getProps(),g=e.getVariantContext(!0)||{},v=[],y=new Set;let b={},x=1/0;for(let T=0;T<NF;T++){const j=BF[T],E=n[j],P=p[j]!==void 0?p[j]:g[j],O=nl(P),k=j===d?E.isActive:null;k===!1&&(x=T);let F=P===g[j]&&P!==p[j]&&O;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&k===null||!P&&!E.prevProp||Cd(P)||typeof P=="boolean")continue;let H=WF(E.prevProp,P)||j===d&&E.isActive&&!F&&O||T>x&&O,q=!1;const U=Array.isArray(P)?P:[P];let ne=U.reduce(o,{});k===!1&&(ne={});const{prevResolvedValues:te={}}=E,Y={...te,...ne},X=N=>{H=!0,y.has(N)&&(q=!0,y.delete(N)),E.needsAnimating[N]=!0};for(const N in Y){const Q=ne[N],$=te[N];if(b.hasOwnProperty(N))continue;let oe=!1;Ou(Q)&&Ou($)?oe=!$w(Q,$):oe=Q!==$,oe?Q!==void 0?X(N):y.add(N):Q!==void 0&&y.has(N)?X(N):E.protectedKeys[N]=!0}E.prevProp=P,E.prevResolvedValues=ne,E.isActive&&(b={...b,...ne}),r&&e.blockInitialAnimation&&(H=!1),H&&(!F||q)&&v.push(...U.map(N=>({animation:N,options:{type:j,...u}})))}if(y.size){const T={};y.forEach(j=>{const E=e.getBaseTarget(j);E!==void 0&&(T[j]=E)}),v.push({animation:T})}let w=!!v.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(v):Promise.resolve()}function c(u,d,p){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(y=>{var b;return(b=y.animationState)===null||b===void 0?void 0:b.setActive(u,d)}),n[u].isActive=d;const v=a(p,u);for(const y in n)n[y].protectedKeys={};return v}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n}}function WF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$w(t,e):!1}function vi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zF(){return{animate:vi(!0),whileInView:vi(),whileHover:vi(),whileTap:vi(),whileDrag:vi(),whileFocus:vi(),exit:vi()}}class UF extends Jo{constructor(t){super(t),t.animationState||(t.animationState=VF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Cd(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let HF=0;class GF extends Jo{constructor(){super(...arguments),this.id=HF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const qF={animation:{Feature:UF},exit:{Feature:GF}},ox=(e,t)=>Math.abs(e-t);function YF(e,t){const n=ox(e.x,t.x),r=ox(e.y,t.y);return Math.sqrt(n**2+r**2)}class yS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Gp(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,y=YF(g.offset,{x:0,y:0})>=3;if(!v&&!y)return;const{point:b}=g,{timestamp:x}=fn;this.history.push({...b,timestamp:x});const{onStart:w,onMove:T}=this.handlers;v||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Hp(v,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Gp(g.type==="pointercancel"?this.lastMoveEventInfo:Hp(v,this.transformPagePoint),this.history);this.startEvent&&y&&y(g,w),b&&b(g,w)},!Dw(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const a=Ad(t),c=Hp(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=fn;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(t,Gp(c,this.history)),this.removeListeners=Go(yo(this.contextWindow,"pointermove",this.handlePointerMove),yo(this.contextWindow,"pointerup",this.handlePointerUp),yo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xo(this.updatePoint)}}function Hp(e,t){return t?{point:t(e.point)}:e}function ix(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gp({point:e},t){return{point:e,delta:ix(e,bS(t)),offset:ix(e,KF(t)),velocity:XF(t,.1)}}function KF(e){return e[0]}function bS(e){return e[e.length-1]}function XF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bS(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qo(t)));)n--;if(!r)return{x:0,y:0};const i=bo(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Xn(e){return e.max-e.min}function Mh(e,t=0,n=.01){return Math.abs(e-t)<=n}function sx(e,t,n,r=.5){e.origin=r,e.originPoint=Pt(t.min,t.max,e.origin),e.scale=Xn(n)/Xn(t),(Mh(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pt(n.min,n.max,e.origin)-e.originPoint,(Mh(e.translate)||isNaN(e.translate))&&(e.translate=0)}function za(e,t,n,r){sx(e.x,t.x,n.x,r?r.originX:void 0),sx(e.y,t.y,n.y,r?r.originY:void 0)}function ax(e,t,n){e.min=n.min+t.min,e.max=e.min+Xn(t)}function ZF(e,t,n){ax(e.x,t.x,n.x),ax(e.y,t.y,n.y)}function lx(e,t,n){e.min=t.min-n.min,e.max=e.min+Xn(t)}function Ua(e,t,n){lx(e.x,t.x,n.x),lx(e.y,t.y,n.y)}function QF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pt(n,e,r.max):Math.min(e,n)),e}function cx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function JF(e,{top:t,left:n,bottom:r,right:o}){return{x:cx(e.x,n,o),y:cx(e.y,t,r)}}function ux(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function e8(e,t){return{x:ux(e.x,t.x),y:ux(e.y,t.y)}}function t8(e,t){let n=.5;const r=Xn(e),o=Xn(t);return o>r?n=ol(t.min,t.max-r,e.min):r>o&&(n=ol(e.min,e.max-o,t.min)),Ko(0,1,n)}function n8(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const kh=.35;function r8(e=kh){return e===!1?e=0:e===!0&&(e=kh),{x:dx(e,"left","right"),y:dx(e,"top","bottom")}}function dx(e,t,n){return{min:fx(e,t),max:fx(e,n)}}function fx(e,t){return typeof e=="number"?e:e[t]||0}const px=()=>({translate:0,scale:1,origin:0,originPoint:0}),Es=()=>({x:px(),y:px()}),hx=()=>({min:0,max:0}),Wt=()=>({x:hx(),y:hx()});function ur(e){return[e("x"),e("y")]}function xS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function o8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function i8(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qp(e){return e===void 0||e===1}function Fh({scale:e,scaleX:t,scaleY:n}){return!qp(e)||!qp(t)||!qp(n)}function Ci(e){return Fh(e)||CS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function CS(e){return gx(e.x)||gx(e.y)}function gx(e){return e&&e!=="0%"}function ku(e,t,n){const r=e-n,o=t*r;return n+o}function mx(e,t,n,r,o){return o!==void 0&&(e=ku(e,o,r)),ku(e,n,r)+t}function Dh(e,t=0,n=1,r,o){e.min=mx(e.min,t,n,r,o),e.max=mx(e.max,t,n,r,o)}function wS(e,{x:t,y:n}){Dh(e.x,t.translate,t.scale,t.originPoint),Dh(e.y,n.translate,n.scale,n.originPoint)}function s8(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let c=0;c<o;c++){i=n[c],a=i.projectionDelta;const u=i.instance;u&&u.style&&u.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ts(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wS(e,a)),r&&Ci(i.latestValues)&&Ts(e,i.latestValues))}t.x=vx(t.x),t.y=vx(t.y)}function vx(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Wo(e,t){e.min=e.min+t,e.max=e.max+t}function yx(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Pt(e.min,e.max,i);Dh(e,t[n],t[r],a,t.scale)}const a8=["x","scaleX","originX"],l8=["y","scaleY","originY"];function Ts(e,t){yx(e.x,t,a8),yx(e.y,t,l8)}function SS(e,t){return xS(i8(e.getBoundingClientRect(),t))}function c8(e,t,n){const r=SS(e,n),{scroll:o}=t;return o&&(Wo(r.x,o.offset.x),Wo(r.y,o.offset.y)),r}const AS=({current:e})=>e?e.ownerDocument.defaultView:null,u8=new WeakMap;class d8{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=p=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ad(p,"page").point)},i=(p,g)=>{const{drag:v,dragPropagation:y,onDragStart:b}=this.getProps();if(v&&!y&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Lw(v),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ur(w=>{let T=this.getAxisMotionValue(w).get()||0;if(Wr.test(T)){const{projection:j}=this.visualElement;if(j&&j.layout){const E=j.layout.layoutBox[w];E&&(T=Xn(E)*(parseFloat(T)/100))}}this.originPoint[w]=T}),b&&Ct.update(()=>b(p,g),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(p,g)=>{const{dragPropagation:v,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=f8(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&x(p,g)},c=(p,g)=>this.stop(p,g),u=()=>ur(p=>{var g;return this.getAnimationState(p)==="paused"&&((g=this.getAxisMotionValue(p).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new yS(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:AS(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ct.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Hc(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=QF(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=JF(o.layoutBox,n):this.constraints=!1,this.elastic=r8(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ur(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=n8(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ss(t))return!1;const r=t.current;jr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=c8(r,o.root,this.visualElement.getTransformPagePoint());let a=e8(o.layout.layoutBox,i);if(n){const c=n(o8(a));this.hasMutatedConstraints=!!c,c&&(a=xS(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=ur(p=>{if(!Hc(p,n,this.currentDirection))return;let g=u&&u[p]||{};a&&(g={min:0,max:0});const v=o?200:1e6,y=o?40:1e7,b={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(p,b)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(pm(t,r,0,n))}stopAnimation(){ur(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ur(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ur(n=>{const{drag:r}=this.getProps();if(!Hc(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n];i.set(t[n]-Pt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ss(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ur(a=>{const c=this.getAxisMotionValue(a);if(c){const u=c.get();o[a]=t8({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ur(a=>{if(!Hc(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(Pt(u,d,o[a]))})}addListeners(){if(!this.visualElement.current)return;u8.set(this.visualElement,this);const t=this.visualElement.current,n=yo(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ss(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=ho(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(ur(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=u[p].translate,g.set(g.get()+u[p].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=kh,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:c}}}function Hc(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function f8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class p8 extends Jo{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new d8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const bx=e=>(t,n)=>{e&&Ct.update(()=>e(t,n))};class h8 extends Jo{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new yS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:AS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:bx(t),onStart:bx(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Ct.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=yo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function g8(){const e=A.useContext(Zg);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=A.useId();return A.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const lu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Me.test(e))e=parseFloat(e);else return e;const n=xx(e,t.target.x),r=xx(e,t.target.y);return`${n}% ${r}%`}},m8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Xo.parse(e);if(o.length>5)return r;const i=Xo.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const d=Pt(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),i(o)}};class v8 extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;E5(y8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),lu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Ct.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ES(e){const[t,n]=g8(),r=A.useContext(xw);return A.createElement(v8,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(Cw),isPresent:t,safeToRemove:n})}const y8={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:m8},TS=["TopLeft","TopRight","BottomLeft","BottomRight"],b8=TS.length,Cx=e=>typeof e=="string"?parseFloat(e):e,wx=e=>typeof e=="number"||Me.test(e);function x8(e,t,n,r,o,i){o?(e.opacity=Pt(0,n.opacity!==void 0?n.opacity:1,C8(r)),e.opacityExit=Pt(t.opacity!==void 0?t.opacity:1,0,w8(r))):i&&(e.opacity=Pt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<b8;a++){const c=`border${TS[a]}Radius`;let u=Sx(t,c),d=Sx(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||wx(u)===wx(d)?(e[c]=Math.max(Pt(Cx(u),Cx(d),r),0),(Wr.test(d)||Wr.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Pt(t.rotate||0,n.rotate||0,r))}function Sx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const C8=IS(0,.5,Kw),w8=IS(.5,.95,kt);function IS(e,t,n){return r=>r<e?0:r>t?1:n(ol(e,t,r))}function Ax(e,t){e.min=t.min,e.max=t.max}function cr(e,t){Ax(e.x,t.x),Ax(e.y,t.y)}function Ex(e,t,n,r,o){return e-=t,e=ku(e,1/n,r),o!==void 0&&(e=ku(e,1/o,r)),e}function S8(e,t=0,n=1,r=.5,o,i=e,a=e){if(Wr.test(t)&&(t=parseFloat(t),t=Pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=Pt(i.min,i.max,r);e===i&&(c-=t),e.min=Ex(e.min,t,n,c,o),e.max=Ex(e.max,t,n,c,o)}function Tx(e,t,[n,r,o],i,a){S8(e,t[n],t[r],t[o],t.scale,i,a)}const A8=["x","scaleX","originX"],E8=["y","scaleY","originY"];function Ix(e,t,n,r){Tx(e.x,t,A8,n?n.x:void 0,r?r.x:void 0),Tx(e.y,t,E8,n?n.y:void 0,r?r.y:void 0)}function Ox(e){return e.translate===0&&e.scale===1}function OS(e){return Ox(e.x)&&Ox(e.y)}function T8(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function PS(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Px(e){return Xn(e.x)/Xn(e.y)}class I8{constructor(){this.members=[]}add(t){hm(this.members,t),t.scheduleRender()}remove(t){if(gm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jx(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:d,rotateY:p}=n;u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const O8=(e,t)=>e.depth-t.depth;class P8{constructor(){this.children=[],this.isDirty=!1}add(t){hm(this.children,t),this.isDirty=!0}remove(t){gm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(O8),this.isDirty=!1,this.children.forEach(t)}}function j8(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(xo(r),e(i-t))};return Ct.read(r,!0),()=>xo(r)}function R8(e){window.MotionDebug&&window.MotionDebug.record(e)}function M8(e){return e instanceof SVGElement&&e.tagName!=="svg"}function k8(e,t,n){const r=Dn(e)?e:Ls(e);return r.start(pm("",r,t,n)),r.animation}const Rx=["","X","Y","Z"],F8={visibility:"hidden"},Mx=1e3;let D8=0;const wi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t==null?void 0:t()){this.id=D8++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wi.totalNodes=wi.resolvedTargetDeltas=wi.recalculatedProjection=0,this.nodes.forEach(B8),this.nodes.forEach(z8),this.nodes.forEach(U8),this.nodes.forEach(N8),R8(wi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new P8)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new mm),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=M8(a),this.instance=a;const{layoutId:u,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let g;const v=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=j8(v,250),lu.hasAnimatedSinceResize&&(lu.hasAnimatedSinceResize=!1,this.nodes.forEach(Fx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeTargetChanged:y,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||p.getDefaultTransition()||K8,{onLayoutAnimationStart:w,onLayoutAnimationComplete:T}=p.getProps(),j=!this.targetLayout||!PS(this.targetLayout,b)||y,E=!v&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||E||v&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,E);const P={...fm(x,"layout"),onPlay:w,onComplete:T};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else v||Fx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(H8),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kx);return}this.isUpdating||this.nodes.forEach(V8),this.isUpdating=!1,this.nodes.forEach(W8),this.nodes.forEach(_8),this.nodes.forEach(L8),this.clearAllSnapshots();const c=performance.now();fn.delta=Ko(0,1e3/60,c-fn.timestamp),fn.timestamp=c,fn.isProcessing=!0,Lp.update.process(fn),Lp.preRender.process(fn),Lp.render.process(fn),fn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach($8),this.sharedNodes.forEach(G8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!OS(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;a&&(c||Ci(this.latestValues)||p)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),X8(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Wt();const c=a.measureViewportBox(),{scroll:u}=this.root;return u&&(Wo(c.x,u.offset.x),Wo(c.y,u.offset.y)),c}removeElementScroll(a){const c=Wt();cr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:g}=d;if(d!==this.root&&p&&g.layoutScroll){if(p.isRoot){cr(c,a);const{scroll:v}=this.root;v&&(Wo(c.x,-v.offset.x),Wo(c.y,-v.offset.y))}Wo(c.x,p.offset.x),Wo(c.y,p.offset.y)}}return c}applyTransform(a,c=!1){const u=Wt();cr(u,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Ts(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ci(p.latestValues)&&Ts(u,p.latestValues)}return Ci(this.latestValues)&&Ts(u,this.latestValues),u}removeTransform(a){const c=Wt();cr(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Ci(d.latestValues))continue;Fh(d.latestValues)&&d.updateSnapshot();const p=Wt(),g=d.measurePageBox();cr(p,g),Ix(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return Ci(this.latestValues)&&Ix(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=fn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Ua(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):cr(this.target,this.layout.layoutBox),wS(this.target,this.targetDelta)):cr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),Ua(this.relativeTargetOrigin,this.target,y.target),cr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}wi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Fh(this.parent.latestValues)||CS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===fn.timestamp&&(d=!1),d)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;cr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;s8(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:b}=c;if(!b){this.projectionTransform&&(this.projectionDelta=Es(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Es(),this.projectionDeltaWithTransform=Es());const x=this.projectionTransform;za(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=jx(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==v||this.treeScale.y!==y)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),wi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},p={...this.latestValues},g=Es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=Wt(),y=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=y!==b,w=this.getStack(),T=!w||w.members.length<=1,j=!!(x&&!T&&this.options.crossfade===!0&&!this.path.some(Y8));this.animationProgress=0;let E;this.mixTargetDelta=P=>{const O=P/1e3;Dx(g.x,a.x,O),Dx(g.y,a.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ua(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),q8(this.relativeTarget,this.relativeTargetOrigin,v,O),E&&T8(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Wt()),cr(E,this.relativeTarget)),x&&(this.animationValues=p,x8(p,d,this.latestValues,O,j,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{lu.hasAnimatedSinceResize=!0,this.currentAnimation=k8(0,Mx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:p}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&RS(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||Wt();const g=Xn(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+g;const v=Xn(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+v}cr(c,u),Ts(c,p),za(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new I8),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(c=!0),!c)return;const d={};for(let p=0;p<Rx.length;p++){const g="rotate"+Rx[p];u[g]&&(d[g]=u[g],a.setStaticValue(g,0))}a.render();for(const p in d)a.setStaticValue(p,d[p]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F8;const d={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=au(a==null?void 0:a.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none",d;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=au(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ci(this.latestValues)&&(x.transform=p?p({},""):"none",this.hasProjected=!1),x}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),d.transform=jx(this.projectionDeltaWithTransform,this.treeScale,v),p&&(d.transform=p(v,d.transform));const{x:y,y:b}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,g.animationValues?d.opacity=g===this?(u=(c=v.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const x in Tu){if(v[x]===void 0)continue;const{correct:w,applyTo:T}=Tu[x],j=d.transform==="none"?v[x]:w(v[x],g);if(T){const E=T.length;for(let P=0;P<E;P++)d[T[P]]=j}else d[x]=j}return this.options.layoutId&&(d.pointerEvents=g===this?au(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(kx),this.root.sharedNodes.clear()}}}function _8(e){e.updateLayout()}function L8(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?ur(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Xn(v);v.min=r[g].min,v.max=v.min+y}):RS(i,n.layoutBox,r)&&ur(g=>{const v=a?n.measuredBox[g]:n.layoutBox[g],y=Xn(r[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const c=Es();za(c,r,n.layoutBox);const u=Es();a?za(u,e.applyTransform(o,!0),n.measuredBox):za(u,r,n.layoutBox);const d=!OS(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const b=Wt();Ua(b,n.layoutBox,v.layoutBox);const x=Wt();Ua(x,r,y.layoutBox),PS(b,x)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function B8(e){wi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function N8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $8(e){e.clearSnapshot()}function kx(e){e.clearMeasurements()}function V8(e){e.isLayoutDirty=!1}function W8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function z8(e){e.resolveTargetDelta()}function U8(e){e.calcProjection()}function H8(e){e.resetRotation()}function G8(e){e.removeLeadSnapshot()}function Dx(e,t,n){e.translate=Pt(t.translate,0,n),e.scale=Pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _x(e,t,n,r){e.min=Pt(t.min,n.min,r),e.max=Pt(t.max,n.max,r)}function q8(e,t,n,r){_x(e.x,t.x,n.x,r),_x(e.y,t.y,n.y,r)}function Y8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const K8={duration:.45,ease:[.4,0,.1,1]},Lx=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Bx=Lx("applewebkit/")&&!Lx("chrome/")?Math.round:kt;function Nx(e){e.min=Bx(e.min),e.max=Bx(e.max)}function X8(e){Nx(e.x),Nx(e.y)}function RS(e,t,n){return e==="position"||e==="preserve-aspect"&&!Mh(Px(t),Px(n),.2)}const Z8=jS({attachResizeListener:(e,t)=>ho(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yp={current:void 0},MS=jS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yp.current){const e=new Z8({});e.mount(window),e.setOptions({layoutScroll:!0}),Yp.current=e}return Yp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Q8={pan:{Feature:h8},drag:{Feature:p8,ProjectionNode:MS,MeasureLayout:ES}},J8=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eD(e){const t=J8.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const tD=4;function _h(e,t,n=1){jr(n<=tD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=eD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return hS(a)?parseFloat(a):a}else return Eh(o)?_h(o,t,n+1):o}function nD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Eh(i))return;const a=_h(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!Eh(i))continue;const a=_h(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const rD=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),kS=e=>rD.has(e),oD=e=>Object.keys(e).some(kS),Gc=e=>e===$i||e===Me,$x=(e,t)=>parseFloat(e.split(", ")[t]),Vx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return $x(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?$x(i[1],e):0}},iD=new Set(["x","y","z"]),sD=xl.filter(e=>!iD.has(e));function aD(e){const t=[];return sD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Bs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vx(4,13),y:Vx(5,14)};Bs.translateX=Bs.x;Bs.translateY=Bs.y;const lD=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,c={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{c[d]=Bs[d](r,i)}),t.render();const u=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);p&&p.jump(c[d]),e[d]=Bs[d](u,i)}),e},cD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(kS);let i=[],a=!1;const c=[];if(o.forEach(u=>{const d=e.getValue(u);if(!e.hasValue(u))return;let p=n[u],g=Oa(p);const v=t[u];let y;if(Ou(v)){const b=v.length,x=v[0]===null?1:0;p=v[x],g=Oa(p);for(let w=x;w<b&&v[w]!==null;w++)y?jr(Oa(v[w])===y,"All keyframes must be of the same type"):(y=Oa(v[w]),jr(y===g||Gc(g)&&Gc(y),"Keyframes must be of the same dimension as the current value"))}else y=Oa(v);if(g!==y)if(Gc(g)&&Gc(y)){const b=d.get();typeof b=="string"&&d.set(parseFloat(b)),typeof v=="string"?t[u]=parseFloat(v):Array.isArray(v)&&y===Me&&(t[u]=v.map(parseFloat))}else g!=null&&g.transform&&(y!=null&&y.transform)&&(p===0||v===0)?p===0?d.set(y.transform(p)):t[u]=g.transform(v):(a||(i=aD(e),a=!0),c.push(u),r[u]=r[u]!==void 0?r[u]:t[u],d.jump(v))}),c.length){const u=c.indexOf("height")>=0?window.pageYOffset:null,d=lD(t,e,c);return i.length&&i.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),xd&&u!==null&&window.scrollTo({top:u}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function uD(e,t,n,r){return oD(t)?cD(e,t,n,r):{target:t,transitionEnd:r}}const dD=(e,t,n,r)=>{const o=nD(e,t,r);return t=o.target,r=o.transitionEnd,uD(e,t,n,r)},Lh={current:null},FS={current:!1};function fD(){if(FS.current=!0,!!xd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lh.current=e.matches;e.addListener(t),t()}else Lh.current=!1}function pD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Dn(i))e.addValue(o,i),Mu(r)&&r.add(o),process.env.NODE_ENV==="development"&&vm(i.version==="10.18.0",`Attempting to mix Framer Motion versions ${i.version} with 10.18.0 may not work as expected.`);else if(Dn(a))e.addValue(o,Ls(i,{owner:e})),Mu(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const c=e.getValue(o);!c.hasAnimated&&c.set(i)}else{const c=e.getStaticValue(o);e.addValue(o,Ls(c!==void 0?c:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Wx=new WeakMap,DS=Object.keys(rl),hD=DS.length,zx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gD=em.length;class mD{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);const{latestValues:c,renderState:u}=i;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=wd(n),this.isVariantNode=bw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const v=p[g];c[g]!==void 0&&Dn(v)&&(v.set(c[g],!1),Mu(d)&&d.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Wx.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),FS.current||fD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lh.current,process.env.NODE_ENV!=="production"&&vm(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Wx.delete(this.current),this.projection&&this.projection.unmount(),xo(this.notifyUpdate),xo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Ni.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,c;if(process.env.NODE_ENV!=="production"&&o&&r){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Sl(!1,u):jr(!1,u)}for(let u=0;u<hD;u++){const d=DS[u],{isEnabled:p,Feature:g,ProjectionNode:v,MeasureLayout:y}=rl[d];v&&(a=v),p(n)&&(!this.features[d]&&g&&(this.features[d]=new g(this)),y&&(c=y))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:d,drag:p,dragConstraints:g,layoutScroll:v,layoutRoot:y}=n;this.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!p||g&&Ss(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,layoutScroll:v,layoutRoot:y})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zx.length;r++){const o=zx[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=pD(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<gD;r++){const o=em[r],i=this.props[o];(nl(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ls(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=am(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Dn(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new mm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _S extends mD{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let a=MF(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){jF(this,r,a);const c=dD(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:t,transitionEnd:n,...r}}}function vD(e){return window.getComputedStyle(e)}class yD extends _S{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Ni.has(n)){const r=dm(n);return r&&r.default||0}else{const r=vD(t),o=(Aw(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return SS(t,n)}build(t,n,r,o){nm(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return sm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Dn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){jw(t,n,r,o)}}class bD extends _S{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ni.has(n)){const r=dm(n);return r&&r.default||0}return n=Rw.has(n)?n:Qg(n),t.getAttribute(n)}measureInstanceViewportBox(){return Wt()}scrapeMotionValuesFromProps(t,n){return kw(t,n)}build(t,n,r,o){om(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Mw(t,n,r,o)}mount(t){this.isSVGTag=im(t.tagName),super.mount(t)}}const xD=(e,t)=>tm(e)?new bD(t,{enableHardwareAcceleration:!1}):new yD(t,{enableHardwareAcceleration:!0}),CD={layout:{ProjectionNode:MS,MeasureLayout:ES}},wD={...qF,...g6,...Q8,...CD},qc=S5((e,t)=>n6(e,t,wD,xD)),SD=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Ux(...e){const t=A.useRef(0),[n,r]=A.useState(e[t.current]),o=A.useCallback(i=>{t.current=typeof i!="number"?SD(0,e.length,t.current+1):i,r(e[t.current])},[e.length,...e]);return[n,o]}function AD({children:e,type:t="scale",direction:n="right",offset:r=10,scale:o={hover:1.05,tap:.95}}){let i,a;switch(n){case"up":case"left":i=r,a=0;break;case"right":case"down":default:i=0,a=r;break}const[c,u]=Ux(i,a),[d,p]=Ux(i,a);switch(t){case"rotate":return f.jsx(qc.div,{animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:e});case"slide":return n==="up"||n==="down"?f.jsx(qc.div,{animate:{y:d!==void 0?d:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:e}):f.jsx(qc.div,{animate:{x:c!==void 0?c:""},onHoverEnd:()=>u(),onHoverStart:()=>u(),children:e});case"scale":default:return typeof o=="number"&&(o={hover:o,tap:o}),f.jsx(qc.div,{whileHover:{scale:o==null?void 0:o.hover},whileTap:{scale:o==null?void 0:o.tap},children:e})}}function sn(e,t){switch(t){case"secondary":return e.palette.secondary;case"error":return e.palette.error;case"warning":return e.palette.warning;case"info":return e.palette.info;case"success":return e.palette.success;default:return e.palette.primary}}function _e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ao(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Bh={exports:{}},Yc={exports:{}},it={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -17,7 +17,7 @@ object-assign
|
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
19
|
*/var Kp,Yx;function ID(){if(Yx)return Kp;Yx=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kp=o()?Object.assign:function(i,a){for(var c,u=r(i),d,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){d=e(c);for(var v=0;v<d.length;v++)n.call(c,d[v])&&(u[d[v]]=c[d[v]])}}return u},Kp}var Xp,Kx;function ym(){if(Kx)return Xp;Kx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xp=e,Xp}var Zp,Xx;function BS(){return Xx||(Xx=1,Zp=Function.call.bind(Object.prototype.hasOwnProperty)),Zp}var Qp,Zx;function OD(){if(Zx)return Qp;Zx=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ym(),n={},r=BS();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var v=Error((u||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=i[p](a,p,u,c,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+g.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Qp=o,Qp}var Jp,Qx;function PD(){if(Qx)return Jp;Qx=1;var e=LS(),t=ID(),n=ym(),r=BS(),o=OD(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Jp=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(W){var J=W&&(d&&W[d]||W[p]);if(typeof J=="function")return J}var v="<<anonymous>>",y={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:j(),arrayOf:E,element:P(),elementType:O(),instanceOf:k,node:q(),objectOf:B,oneOf:F,oneOfType:H,shape:ne,exact:te};function b(W,J){return W===J?W!==0||1/W===1/J:W!==W&&J!==J}function x(W,J){this.message=W,this.data=J&&typeof J=="object"?J:{},this.stack=""}x.prototype=Error.prototype;function w(W){if(process.env.NODE_ENV!=="production")var J={},ue=0;function he(pe,ge,we,ye,ve,Ce,Te){if(ye=ye||v,Ce=Ce||we,Te!==n){if(u){var fe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw fe.name="Invariant Violation",fe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ge=ye+":"+we;!J[Ge]&&ue<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ye+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),J[Ge]=!0,ue++)}}return ge[we]==null?pe?ge[we]===null?new x("The "+ve+" `"+Ce+"` is marked as required "+("in `"+ye+"`, but its value is `null`.")):new x("The "+ve+" `"+Ce+"` is marked as required in "+("`"+ye+"`, but its value is `undefined`.")):null:W(ge,we,ye,ve,Ce)}var de=he.bind(null,!1);return de.isRequired=he.bind(null,!0),de}function T(W){function J(ue,he,de,pe,ge,we){var ye=ue[he],ve=N(ye);if(ve!==W){var Ce=Q(ye);return new x("Invalid "+pe+" `"+ge+"` of type "+("`"+Ce+"` supplied to `"+de+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return w(J)}function j(){return w(a)}function E(W){function J(ue,he,de,pe,ge){if(typeof W!="function")return new x("Property `"+ge+"` of component `"+de+"` has invalid PropType notation inside arrayOf.");var we=ue[he];if(!Array.isArray(we)){var ye=N(we);return new x("Invalid "+pe+" `"+ge+"` of type "+("`"+ye+"` supplied to `"+de+"`, expected an array."))}for(var ve=0;ve<we.length;ve++){var Ce=W(we,ve,de,pe,ge+"["+ve+"]",n);if(Ce instanceof Error)return Ce}return null}return w(J)}function P(){function W(J,ue,he,de,pe){var ge=J[ue];if(!c(ge)){var we=N(ge);return new x("Invalid "+de+" `"+pe+"` of type "+("`"+we+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return w(W)}function O(){function W(J,ue,he,de,pe){var ge=J[ue];if(!e.isValidElementType(ge)){var we=N(ge);return new x("Invalid "+de+" `"+pe+"` of type "+("`"+we+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return w(W)}function k(W){function J(ue,he,de,pe,ge){if(!(ue[he]instanceof W)){var we=W.name||v,ye=oe(ue[he]);return new x("Invalid "+pe+" `"+ge+"` of type "+("`"+ye+"` supplied to `"+de+"`, expected ")+("instance of `"+we+"`."))}return null}return w(J)}function F(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function J(ue,he,de,pe,ge){for(var we=ue[he],ye=0;ye<W.length;ye++)if(b(we,W[ye]))return null;var ve=JSON.stringify(W,function(Te,fe){var Ge=Q(fe);return Ge==="symbol"?String(fe):fe});return new x("Invalid "+pe+" `"+ge+"` of value `"+String(we)+"` "+("supplied to `"+de+"`, expected one of "+ve+"."))}return w(J)}function B(W){function J(ue,he,de,pe,ge){if(typeof W!="function")return new x("Property `"+ge+"` of component `"+de+"` has invalid PropType notation inside objectOf.");var we=ue[he],ye=N(we);if(ye!=="object")return new x("Invalid "+pe+" `"+ge+"` of type "+("`"+ye+"` supplied to `"+de+"`, expected an object."));for(var ve in we)if(r(we,ve)){var Ce=W(we,ve,de,pe,ge+"."+ve,n);if(Ce instanceof Error)return Ce}return null}return w(J)}function H(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var J=0;J<W.length;J++){var ue=W[J];if(typeof ue!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(ue)+" at index "+J+"."),a}function he(de,pe,ge,we,ye){for(var ve=[],Ce=0;Ce<W.length;Ce++){var Te=W[Ce],fe=Te(de,pe,ge,we,ye,n);if(fe==null)return null;fe.data&&r(fe.data,"expectedType")&&ve.push(fe.data.expectedType)}var Ge=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new x("Invalid "+we+" `"+ye+"` supplied to "+("`"+ge+"`"+Ge+"."))}return w(he)}function q(){function W(J,ue,he,de,pe){return Y(J[ue])?null:new x("Invalid "+de+" `"+pe+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return w(W)}function U(W,J,ue,he,de){return new x((W||"React class")+": "+J+" type `"+ue+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+de+"`.")}function ne(W){function J(ue,he,de,pe,ge){var we=ue[he],ye=N(we);if(ye!=="object")return new x("Invalid "+pe+" `"+ge+"` of type `"+ye+"` "+("supplied to `"+de+"`, expected `object`."));for(var ve in W){var Ce=W[ve];if(typeof Ce!="function")return U(de,pe,ge,ve,Q(Ce));var Te=Ce(we,ve,de,pe,ge+"."+ve,n);if(Te)return Te}return null}return w(J)}function te(W){function J(ue,he,de,pe,ge){var we=ue[he],ye=N(we);if(ye!=="object")return new x("Invalid "+pe+" `"+ge+"` of type `"+ye+"` "+("supplied to `"+de+"`, expected `object`."));var ve=t({},ue[he],W);for(var Ce in ve){var Te=W[Ce];if(r(W,Ce)&&typeof Te!="function")return U(de,pe,ge,Ce,Q(Te));if(!Te)return new x("Invalid "+pe+" `"+ge+"` key `"+Ce+"` supplied to `"+de+"`.\nBad object: "+JSON.stringify(ue[he],null," ")+`
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var fe=Te(we,Ce,de,pe,ge+"."+Ce,n);if(fe)return fe}return null}return w(J)}function Y(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Y);if(W===null||c(W))return!0;var J=g(W);if(J){var ue=J.call(W),he;if(J!==W.entries){for(;!(he=ue.next()).done;)if(!Y(he.value))return!1}else for(;!(he=ue.next()).done;){var de=he.value;if(de&&!Y(de[1]))return!1}}else return!1;return!0;default:return!1}}function X(W,J){return W==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function N(W){var J=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":X(J,W)?"symbol":J}function Q(W){if(typeof W>"u"||W===null)return""+W;var J=N(W);if(J==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return J}function $(W){var J=Q(W);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function oe(W){return!W.constructor||!W.constructor.name?v:W.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Jp}var eh,Jx;function jD(){if(Jx)return eh;Jx=1;var e=ym();function t(){}function n(){}return n.resetWarningCache=t,eh=function(){function r(a,c,u,d,p,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},eh}if(process.env.NODE_ENV!=="production"){var RD=LS(),MD=!0;Bh.exports=PD()(RD.isElement,MD)}else Bh.exports=jD()();var kD=Bh.exports;const m=Yr(kD);function NS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=NS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=NS(e))&&(r&&(r+=" "),r+=t);return r}function Ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const c=t(a);c!==""&&i.push(c),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function bm(e,t){const n=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=z({},i),Object.keys(o).forEach(a=>{n[r][a]=bm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function FD(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bm(t.components[n].defaultProps,r)}function po(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 $S(e){if(D.isValidElement(e)||!po(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$S(e[n])}),t}function zr(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:po(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&po(e[o])?r[o]=zr(e[o],t[o],n):n.clone?r[o]=po(t[o])?$S(t[o]):t[o]:r[o]=t[o]}),r}const DD=Object.freeze(Object.defineProperty({__proto__:null,default:zr,isPlainObject:po},Symbol.toStringTag,{value:"Module"})),_D=["values","unit","step"],LD=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>z({},n,{[r.key]:r.val}),{})};function VS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_e(e,_D),i=LD(t),a=Object.keys(i);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function u(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function d(v,y){const b=a.indexOf(y);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:y)-r/100}${n})`}function p(v){return a.indexOf(v)+1<a.length?d(v,a[a.indexOf(v)+1]):c(v)}function g(v){const y=a.indexOf(v);return y===0?c(a[1]):y===a.length-1?u(a[y]):d(v,a[a.indexOf(v)+1]).replace("@media","@media not all and")}return z({keys:a,values:i,up:c,down:u,between:d,only:p,not:g,unit:n},o)}const BD={borderRadius:4},ei=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Ha(e,t){return t?zr(e,t,{clone:!1}):e}const xm={xs:0,sm:600,md:900,lg:1200,xl:1536},e1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xm[e]}px)`};function Co(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||e1;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||e1;return Object.keys(t).reduce((a,c)=>{if(Object.keys(i.values||xm).indexOf(c)!==-1){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function ND(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function $D(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var fe=Te(we,Ce,de,pe,ge+"."+Ce,n);if(fe)return fe}return null}return w(J)}function Y(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(Y);if(W===null||c(W))return!0;var J=g(W);if(J){var ue=J.call(W),he;if(J!==W.entries){for(;!(he=ue.next()).done;)if(!Y(he.value))return!1}else for(;!(he=ue.next()).done;){var de=he.value;if(de&&!Y(de[1]))return!1}}else return!1;return!0;default:return!1}}function X(W,J){return W==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function N(W){var J=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":X(J,W)?"symbol":J}function Q(W){if(typeof W>"u"||W===null)return""+W;var J=N(W);if(J==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return J}function $(W){var J=Q(W);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function oe(W){return!W.constructor||!W.constructor.name?v:W.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Jp}var eh,Jx;function jD(){if(Jx)return eh;Jx=1;var e=ym();function t(){}function n(){}return n.resetWarningCache=t,eh=function(){function r(a,c,u,d,p,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},eh}if(process.env.NODE_ENV!=="production"){var RD=LS(),MD=!0;Bh.exports=PD()(RD.isElement,MD)}else Bh.exports=jD()();var kD=Bh.exports;const m=Yr(kD);function NS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=NS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=NS(e))&&(r&&(r+=" "),r+=t);return r}function Ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const c=t(a);c!==""&&i.push(c),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function bm(e,t){const n=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=z({},i),Object.keys(o).forEach(a=>{n[r][a]=bm(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function FD(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bm(t.components[n].defaultProps,r)}function po(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 $S(e){if(D.isValidElement(e)||!po(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$S(e[n])}),t}function zr(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])?r[o]=t[o]:po(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&po(e[o])?r[o]=zr(e[o],t[o],n):n.clone?r[o]=po(t[o])?$S(t[o]):t[o]:r[o]=t[o]}),r}const DD=Object.freeze(Object.defineProperty({__proto__:null,default:zr,isPlainObject:po},Symbol.toStringTag,{value:"Module"})),_D=["values","unit","step"],LD=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>z({},n,{[r.key]:r.val}),{})};function VS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_e(e,_D),i=LD(t),a=Object.keys(i);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function u(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function d(v,y){const b=a.indexOf(y);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:y)-r/100}${n})`}function p(v){return a.indexOf(v)+1<a.length?d(v,a[a.indexOf(v)+1]):c(v)}function g(v){const y=a.indexOf(v);return y===0?c(a[1]):y===a.length-1?u(a[y]):d(v,a[a.indexOf(v)+1]).replace("@media","@media not all and")}return z({keys:a,values:i,up:c,down:u,between:d,only:p,not:g,unit:n},o)}const BD={borderRadius:4},ei=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Ha(e,t){return t?zr(e,t,{clone:!1}):e}const xm={xs:0,sm:600,md:900,lg:1200,xl:1536},e1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xm[e]}px)`};function Co(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||e1;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||e1;return Object.keys(t).reduce((a,c)=>{if(Object.keys(i.values||xm).indexOf(c)!==-1){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function ND(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function $D(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Li(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const VD=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function Ne(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Li(7));return e.charAt(0).toUpperCase()+e.slice(1)}const WD=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"}));function Td(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Fu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Td(e,n)||r,t&&(o=t(o,r,e)),o}function Lt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=Td(u,r)||{};return Co(a,c,g=>{let v=Fu(d,o,g);return g===v&&typeof g=="string"&&(v=Fu(d,o,`${t}${g==="default"?"":Ne(g)}`,g)),n===!1?v:{[n]:v}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ei}:{},i.filterProps=[t],i}function zD(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const UD={m:"margin",p:"padding"},HD={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},t1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GD=zD(e=>{if(e.length>2)if(t1[e])e=t1[e];else return[e];const[t,n]=e.split(""),r=UD[t],o=HD[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Id=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Od=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],qD=[...Id,...Od];function El(e,t,n,r){var o;const i=(o=Td(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
21
21
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
22
22
|
`))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
23
23
|
`)),()=>{})}function WS(e){return El(e,"spacing",8,"spacing")}function Tl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function YD(e,t){return n=>e.reduce((r,o)=>(r[o]=Tl(t,n),r),{})}function KD(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=GD(n),i=YD(o,r),a=e[n];return Co(e,a,i)}function zS(e,t){const n=WS(e.theme);return Object.keys(e).map(r=>KD(e,t,r,n)).reduce(Ha,{})}function Rt(e){return zS(e,Id)}Rt.propTypes=process.env.NODE_ENV!=="production"?Id.reduce((e,t)=>(e[t]=ei,e),{}):{};Rt.filterProps=Id;function Mt(e){return zS(e,Od)}Mt.propTypes=process.env.NODE_ENV!=="production"?Od.reduce((e,t)=>(e[t]=ei,e),{}):{};Mt.filterProps=Od;process.env.NODE_ENV!=="production"&&qD.reduce((e,t)=>(e[t]=ei,e),{});function XD(e=8){if(e.mui)return e;const t=WS({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Pd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ha(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pr(e){return typeof e!="number"?e:`${e}px solid`}function Cr(e,t){return Lt({prop:e,themeKey:"borders",transform:t})}const ZD=Cr("border",pr),QD=Cr("borderTop",pr),JD=Cr("borderRight",pr),e9=Cr("borderBottom",pr),t9=Cr("borderLeft",pr),n9=Cr("borderColor"),r9=Cr("borderTopColor"),o9=Cr("borderRightColor"),i9=Cr("borderBottomColor"),s9=Cr("borderLeftColor"),a9=Cr("outline",pr),l9=Cr("outlineColor"),jd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=El(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Tl(t,r)});return Co(e,e.borderRadius,n)}return null};jd.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ei}:{};jd.filterProps=["borderRadius"];Pd(ZD,QD,JD,e9,t9,n9,r9,o9,i9,s9,jd,a9,l9);const Rd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=El(e.theme,"spacing",8,"gap"),n=r=>({gap:Tl(t,r)});return Co(e,e.gap,n)}return null};Rd.propTypes=process.env.NODE_ENV!=="production"?{gap:ei}:{};Rd.filterProps=["gap"];const Md=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=El(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Tl(t,r)});return Co(e,e.columnGap,n)}return null};Md.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ei}:{};Md.filterProps=["columnGap"];const kd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=El(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Tl(t,r)});return Co(e,e.rowGap,n)}return null};kd.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ei}:{};kd.filterProps=["rowGap"];const c9=Lt({prop:"gridColumn"}),u9=Lt({prop:"gridRow"}),d9=Lt({prop:"gridAutoFlow"}),f9=Lt({prop:"gridAutoColumns"}),p9=Lt({prop:"gridAutoRows"}),h9=Lt({prop:"gridTemplateColumns"}),g9=Lt({prop:"gridTemplateRows"}),m9=Lt({prop:"gridTemplateAreas"}),v9=Lt({prop:"gridArea"});Pd(Rd,Md,kd,c9,u9,d9,f9,p9,h9,g9,m9,v9);function Rs(e,t){return t==="grey"?t:e}const y9=Lt({prop:"color",themeKey:"palette",transform:Rs}),b9=Lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rs}),x9=Lt({prop:"backgroundColor",themeKey:"palette",transform:Rs});Pd(y9,b9,x9);function qn(e){return e<=1&&e!==0?`${e*100}%`:e}const C9=Lt({prop:"width",transform:qn}),Cm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||xm[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:qn(n)}};return Co(e,e.maxWidth,t)}return null};Cm.filterProps=["maxWidth"];const w9=Lt({prop:"minWidth",transform:qn}),S9=Lt({prop:"height",transform:qn}),A9=Lt({prop:"maxHeight",transform:qn}),E9=Lt({prop:"minHeight",transform:qn});Lt({prop:"size",cssProperty:"width",transform:qn});Lt({prop:"size",cssProperty:"height",transform:qn});const T9=Lt({prop:"boxSizing"});Pd(C9,Cm,w9,S9,A9,E9,T9);const Il={border:{themeKey:"borders",transform:pr},borderTop:{themeKey:"borders",transform:pr},borderRight:{themeKey:"borders",transform:pr},borderBottom:{themeKey:"borders",transform:pr},borderLeft:{themeKey:"borders",transform:pr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jd},color:{themeKey:"palette",transform:Rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rs},backgroundColor:{themeKey:"palette",transform:Rs},p:{style:Mt},pt:{style:Mt},pr:{style:Mt},pb:{style:Mt},pl:{style:Mt},px:{style:Mt},py:{style:Mt},padding:{style:Mt},paddingTop:{style:Mt},paddingRight:{style:Mt},paddingBottom:{style:Mt},paddingLeft:{style:Mt},paddingX:{style:Mt},paddingY:{style:Mt},paddingInline:{style:Mt},paddingInlineStart:{style:Mt},paddingInlineEnd:{style:Mt},paddingBlock:{style:Mt},paddingBlockStart:{style:Mt},paddingBlockEnd:{style:Mt},m:{style:Rt},mt:{style:Rt},mr:{style:Rt},mb:{style:Rt},ml:{style:Rt},mx:{style:Rt},my:{style:Rt},margin:{style:Rt},marginTop:{style:Rt},marginRight:{style:Rt},marginBottom:{style:Rt},marginLeft:{style:Rt},marginX:{style:Rt},marginY:{style:Rt},marginInline:{style:Rt},marginInlineStart:{style:Rt},marginInlineEnd:{style:Rt},marginBlock:{style:Rt},marginBlockStart:{style:Rt},marginBlockEnd:{style:Rt},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:Rd},rowGap:{style:kd},columnGap:{style:Md},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:Cm},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function I9(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function O9(e,t){return typeof e=="function"?e(t):e}function US(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const v=Td(o,d)||{};return g?g(a):Co(a,r,b=>{let x=Fu(v,p,b);return b===x&&typeof b=="string"&&(x=Fu(v,p,`${n}${b==="default"?"":Ne(b)}`,b)),u===!1?x:{[u]:x}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Il;function c(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const p=ND(i.breakpoints),g=Object.keys(p);let v=p;return Object.keys(d).forEach(y=>{const b=O9(d[y],i);if(b!=null)if(typeof b=="object")if(a[y])v=Ha(v,e(y,b,i,a));else{const x=Co({theme:i},b,w=>({[y]:w}));I9(x,b)?v[y]=t({sx:b,theme:i}):v=Ha(v,x)}else v=Ha(v,e(y,b,i,a))}),$D(g,v)}return Array.isArray(o)?o.map(c):c(o)}return t}const Ol=US();Ol.filterProps=["sx"];function HS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const P9=["breakpoints","palette","spacing","shape"];function Fd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_e(e,P9),c=VS(n),u=XD(o);let d=zr({breakpoints:c,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:u,shape:z({},BD,i)},a);return d.applyStyles=HS,d=t.reduce((p,g)=>zr(p,g),d),d.unstable_sxConfig=z({},Il,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Ol({sx:g,theme:this})},d}const j9=Object.freeze(Object.defineProperty({__proto__:null,default:Fd,private_createBreakpoints:VS,unstable_applyStyles:HS},Symbol.toStringTag,{value:"Module"}));var R9=!1;function M9(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 k9(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 F9=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!R9:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(k9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=M9(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),dn="-ms-",Du="-moz-",nt="-webkit-",GS="comm",wm="rule",Sm="decl",D9="@import",qS="@keyframes",_9="@layer",L9=Math.abs,Dd=String.fromCharCode,B9=Object.assign;function N9(e,t){return en(e,0)^45?(((t<<2^en(e,0))<<2^en(e,1))<<2^en(e,2))<<2^en(e,3):0}function YS(e){return e.trim()}function $9(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,n){return e.replace(t,n)}function Nh(e,t){return e.indexOf(t)}function en(e,t){return e.charCodeAt(t)|0}function il(e,t,n){return e.slice(t,n)}function Br(e){return e.length}function Am(e){return e.length}function Kc(e,t){return t.push(e),e}function V9(e,t){return e.map(t).join("")}var _d=1,Ns=1,KS=0,_n=0,zt=0,Gs="";function Ld(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:_d,column:Ns,length:a,return:""}}function ja(e,t){return B9(Ld("",null,null,"",null,null,0),e,{length:-e.length},t)}function W9(){return zt}function z9(){return zt=_n>0?en(Gs,--_n):0,Ns--,zt===10&&(Ns=1,_d--),zt}function Yn(){return zt=_n<KS?en(Gs,_n++):0,Ns++,zt===10&&(Ns=1,_d++),zt}function Ur(){return en(Gs,_n)}function cu(){return _n}function Pl(e,t){return il(Gs,e,t)}function sl(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 XS(e){return _d=Ns=1,KS=Br(Gs=e),_n=0,[]}function ZS(e){return Gs="",e}function uu(e){return YS(Pl(_n-1,$h(e===91?e+2:e===40?e+1:e)))}function U9(e){for(;(zt=Ur())&&zt<33;)Yn();return sl(e)>2||sl(zt)>3?"":" "}function H9(e,t){for(;--t&&Yn()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return Pl(e,cu()+(t<6&&Ur()==32&&Yn()==32))}function $h(e){for(;Yn();)switch(zt){case e:return _n;case 34:case 39:e!==34&&e!==39&&$h(zt);break;case 40:e===41&&$h(e);break;case 92:Yn();break}return _n}function G9(e,t){for(;Yn()&&e+zt!==57;)if(e+zt===84&&Ur()===47)break;return"/*"+Pl(t,_n-1)+"*"+Dd(e===47?e:Yn())}function q9(e){for(;!sl(Ur());)Yn();return Pl(e,_n)}function Y9(e){return ZS(du("",null,null,null,[""],e=XS(e),0,[0],e))}function du(e,t,n,r,o,i,a,c,u){for(var d=0,p=0,g=a,v=0,y=0,b=0,x=1,w=1,T=1,j=0,E="",P=o,O=i,k=r,F=E;w;)switch(b=j,j=Yn()){case 40:if(b!=108&&en(F,g-1)==58){Nh(F+=rt(uu(j),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:F+=uu(j);break;case 9:case 10:case 13:case 32:F+=U9(b);break;case 92:F+=H9(cu()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Kc(K9(G9(Yn(),cu()),t,n),u);break;default:F+="/"}break;case 123*x:c[d++]=Br(F)*T;case 125*x:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:T==-1&&(F=rt(F,/\f/g,"")),y>0&&Br(F)-g&&Kc(y>32?r1(F+";",r,n,g-1):r1(rt(F," ","")+";",r,n,g-2),u);break;case 59:F+=";";default:if(Kc(k=n1(F,t,n,d,p,o,c,E,P=[],O=[],g),i),j===123)if(p===0)du(F,t,k,k,P,i,g,c,O);else switch(v===99&&en(F,3)===110?100:v){case 100:case 108:case 109:case 115:du(e,k,k,r&&Kc(n1(e,k,k,0,0,o,c,E,o,P=[],g),O),o,O,g,c,r?P:O);break;default:du(F,k,k,k,[""],O,0,c,O)}}d=p=y=0,x=T=1,E=F="",g=a;break;case 58:g=1+Br(F),y=b;default:if(x<1){if(j==123)--x;else if(j==125&&x++==0&&z9()==125)continue}switch(F+=Dd(j),j*x){case 38:T=p>0?1:(F+="\f",-1);break;case 44:c[d++]=(Br(F)-1)*T,T=1;break;case 64:Ur()===45&&(F+=uu(Yn())),v=Ur(),p=g=Br(E=F+=q9(cu())),j++;break;case 45:b===45&&Br(F)==2&&(x=0)}}return i}function n1(e,t,n,r,o,i,a,c,u,d,p){for(var g=o-1,v=o===0?i:[""],y=Am(v),b=0,x=0,w=0;b<r;++b)for(var T=0,j=il(e,g+1,g=L9(x=a[b])),E=e;T<y;++T)(E=YS(x>0?v[T]+" "+j:rt(j,/&\f/g,v[T])))&&(u[w++]=E);return Ld(e,t,n,o===0?wm:c,u,d,p)}function K9(e,t,n){return Ld(e,t,n,GS,Dd(W9()),il(e,2,-2),0)}function r1(e,t,n,r){return Ld(e,t,n,Sm,il(e,0,r),il(e,r+1,-1),r)}function Ms(e,t){for(var n="",r=Am(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function X9(e,t,n,r){switch(e.type){case _9:if(e.children.length)break;case D9:case Sm:return e.return=e.return||e.value;case GS:return"";case qS:return e.return=e.value+"{"+Ms(e.children,r)+"}";case wm:e.value=e.props.join(",")}return Br(n=Ms(e.children,r))?e.return=e.value+"{"+n+"}":""}function Z9(e){var t=Am(e);return function(n,r,o,i){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,i)||"";return a}}function Q9(e){return function(t){t.root||(t=t.return)&&e(t)}}var J9=function(t,n,r){for(var o=0,i=0;o=i,i=Ur(),o===38&&i===12&&(n[r]=1),!sl(i);)Yn();return Pl(t,_n)},e_=function(t,n){var r=-1,o=44;do switch(sl(o)){case 0:o===38&&Ur()===12&&(n[r]=1),t[r]+=J9(_n-1,n,r);break;case 2:t[r]+=uu(o);break;case 4:if(o===44){t[++r]=Ur()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Dd(o)}while(o=Yn());return t},t_=function(t,n){return ZS(e_(XS(t),n))},o1=new WeakMap,n_=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!o1.get(r))&&!o){o1.set(t,!0);for(var i=[],a=t_(n,i),c=r.props,u=0,d=0;u<a.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,c[p]):c[p]+" "+a[u]}}},r_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function QS(e,t){switch(N9(e,t)){case 5103:return nt+"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 nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nt+e+Du+e+dn+e+e;case 6828:case 4268:return nt+e+dn+e+e;case 6165:return nt+e+dn+"flex-"+e+e;case 5187:return nt+e+rt(e,/(\w+).+(:[^]+)/,nt+"box-$1$2"+dn+"flex-$1$2")+e;case 5443:return nt+e+dn+"flex-item-"+rt(e,/flex-|-self/,"")+e;case 4675:return nt+e+dn+"flex-line-pack"+rt(e,/align-content|flex-|-self/,"")+e;case 5548:return nt+e+dn+rt(e,"shrink","negative")+e;case 5292:return nt+e+dn+rt(e,"basis","preferred-size")+e;case 6060:return nt+"box-"+rt(e,"-grow","")+nt+e+dn+rt(e,"grow","positive")+e;case 4554:return nt+rt(e,/([^-])(transform)/g,"$1"+nt+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,nt+"$1"),/(image-set)/,nt+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,nt+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,nt+"box-pack:$3"+dn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nt+e+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,nt+"$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(Br(e)-1-t>6)switch(en(e,t+1)){case 109:if(en(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+nt+"$2-$3$1"+Du+(en(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Nh(e,"stretch")?QS(rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(en(e,t+1)!==115)break;case 6444:switch(en(e,Br(e)-3-(~Nh(e,"!important")&&10))){case 107:return rt(e,":",":"+nt)+e;case 101:return rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nt+(en(e,14)===45?"inline-":"")+"box$3$1"+nt+"$2$3$1"+dn+"$2box$3")+e}break;case 5936:switch(en(e,t+11)){case 114:return nt+e+dn+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nt+e+dn+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nt+e+dn+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nt+e+dn+e+e}return e}var o_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Sm:t.return=QS(t.value,t.length);break;case qS:return Ms([ja(t,{value:rt(t.value,"@","@"+nt)})],o);case wm:if(t.length)return V9(t.props,function(i){switch($9(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ms([ja(t,{props:[rt(i,/:(read-\w+)/,":"+Du+"$1")]})],o);case"::placeholder":return Ms([ja(t,{props:[rt(i,/:(plac\w+)/,":"+nt+"input-$1")]}),ja(t,{props:[rt(i,/:(plac\w+)/,":"+Du+"$1")]}),ja(t,{props:[rt(i,/:(plac\w+)/,dn+"input-$1")]})],o)}return""})}},i_=[o_],s_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||i_,i={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),T=1;T<w.length;T++)i[w[T]]=!0;c.push(x)});var u,d=[n_,r_];{var p,g=[X9,Q9(function(x){p.insert(x)})],v=Z9(d.concat(o,g)),y=function(w){return Ms(Y9(w),v)};u=function(w,T,j,E){p=j,y(w?w+"{"+T.styles+"}":T.styles),E&&(b.inserted[T.name]=!0)}}var b={key:n,sheet:new F9({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return b.sheet.hydrate(c),b};let Vh;typeof document=="object"&&(Vh=s_({key:"css",prepend:!0}));function JS(e){const{injectFirst:t,children:n}=e;return t&&Vh?f.jsx(tn.CacheProvider,{value:Vh,children:n}):n}process.env.NODE_ENV!=="production"&&(JS.propTypes={children:m.node,injectFirst:m.bool});function a_(e){return e==null||Object.keys(e).length===0}function eA(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(a_(o)?n:o):t;return f.jsx(tn.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(eA.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
@@ -29,9 +29,9 @@ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var fe=Te(we,Ce,de,pe,ge
|
|
|
29
29
|
*/function tA(e,t){const n=f5(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
30
30
|
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const nA=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},l_=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:eA,StyledEngineProvider:JS,ThemeContext:tn.ThemeContext,css:tn.css,default:tA,internal_processStyles:nA,keyframes:tn.keyframes},Symbol.toStringTag,{value:"Module"}));function c_(e){return Object.keys(e).length===0}function rA(e=null){const t=D.useContext(tn.ThemeContext);return!t||c_(t)?e:t}const u_=Fd();function Em(e=u_){return rA(e)}function d_({props:e,name:t,defaultTheme:n,themeId:r}){let o=Em(n);return r&&(o=o[r]||o),FD({theme:o,name:t,props:e})}const f_=["sx"],p_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Il;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function oA(e){const{sx:t}=e,n=_e(e,f_),{systemProps:r,otherProps:o}=p_(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return po(c)?z({},r,c):r}:i=z({},r,t),z({},o,{sx:i})}const h_=Object.freeze(Object.defineProperty({__proto__:null,default:Ol,extendSxProp:oA,unstable_createStyleFunctionSx:US,unstable_defaultSxConfig:Il},Symbol.toStringTag,{value:"Module"})),i1=e=>e,g_=()=>{let e=i1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i1}}},iA=g_(),sA={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 Bt(e,t,n="Mui"){const r=sA[t];return r?`${n}-${r}`:`${iA.generate(e)}-${t}`}function m_(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Nt={},aA={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(aA);var wr=aA.exports;const v_=Ao(VD);function lA(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const y_=Object.freeze(Object.defineProperty({__proto__:null,default:lA},Symbol.toStringTag,{value:"Module"})),b_=Ao(y_);var cA=wr;Object.defineProperty(Nt,"__esModule",{value:!0});var Vr=Nt.alpha=pA;Nt.blend=R_;Nt.colorChannel=void 0;var x_=Nt.darken=Im;Nt.decomposeColor=vr;var s1=Nt.emphasize=hA,a1=Nt.getContrastRatio=T_;Nt.getLuminance=_u;Nt.hexToRgb=uA;Nt.hslToRgb=fA;var C_=Nt.lighten=Om;Nt.private_safeAlpha=I_;Nt.private_safeColorChannel=void 0;Nt.private_safeDarken=O_;Nt.private_safeEmphasize=j_;Nt.private_safeLighten=P_;Nt.recomposeColor=qs;Nt.rgbToHex=E_;var l1=cA(v_),w_=cA(b_);function Tm(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,w_.default)(e,t,n)}function uA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function S_(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function vr(e){if(e.type)return e;if(e.charAt(0)==="#")return vr(uA(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
31
31
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,l1.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
32
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,l1.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const dA=e=>{const t=vr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Nt.colorChannel=dA;const A_=(e,t)=>{try{return dA(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Nt.private_safeColorChannel=A_;function qs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function E_(e){if(e.indexOf("#")===0)return e;const{values:t}=vr(e);return`#${t.map((n,r)=>S_(r===3?Math.round(255*n):n)).join("")}`}function fA(e){e=vr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),qs({type:c,values:u})}function _u(e){e=vr(e);let t=e.type==="hsl"||e.type==="hsla"?vr(fA(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function T_(e,t){const n=_u(e),r=_u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function pA(e,t){return e=vr(e),t=Tm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qs(e)}function I_(e,t,n){try{return pA(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Im(e,t){if(e=vr(e),t=Tm(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return qs(e)}function O_(e,t,n){try{return Im(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Om(e,t){if(e=vr(e),t=Tm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return qs(e)}function P_(e,t,n){try{return Om(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function hA(e,t=.15){return _u(e)>.5?Im(e,t):Om(e,t)}function j_(e,t,n){try{return hA(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function R_(e,t,n,r=1){const o=(u,d)=>Math.round((u**(1/r)*(1-n)+d**(1/r)*n)**r),i=vr(e),a=vr(t),c=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return qs({type:"rgb",values:c})}const al={black:"#000",white:"#fff"},M_={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"},
|
|
32
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,l1.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const dA=e=>{const t=vr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Nt.colorChannel=dA;const A_=(e,t)=>{try{return dA(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};Nt.private_safeColorChannel=A_;function qs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function E_(e){if(e.indexOf("#")===0)return e;const{values:t}=vr(e);return`#${t.map((n,r)=>S_(r===3?Math.round(255*n):n)).join("")}`}function fA(e){e=vr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),qs({type:c,values:u})}function _u(e){e=vr(e);let t=e.type==="hsl"||e.type==="hsla"?vr(fA(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function T_(e,t){const n=_u(e),r=_u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function pA(e,t){return e=vr(e),t=Tm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qs(e)}function I_(e,t,n){try{return pA(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Im(e,t){if(e=vr(e),t=Tm(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return qs(e)}function O_(e,t,n){try{return Im(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Om(e,t){if(e=vr(e),t=Tm(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return qs(e)}function P_(e,t,n){try{return Om(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function hA(e,t=.15){return _u(e)>.5?Im(e,t):Om(e,t)}function j_(e,t,n){try{return hA(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function R_(e,t,n,r=1){const o=(u,d)=>Math.round((u**(1/r)*(1-n)+d**(1/r)*n)**r),i=vr(e),a=vr(t),c=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return qs({type:"rgb",values:c})}const al={black:"#000",white:"#fff"},M_={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"},as={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ls={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ra={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},cs={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},us={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ds={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},k_=["mode","contrastThreshold","tonalOffset"],c1={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:al.white,default:al.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}},th={text:{primary:al.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:al.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function u1(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=C_(e.main,o):t==="dark"&&(e.dark=x_(e.main,i)))}function F_(e="light"){return e==="dark"?{main:cs[200],light:cs[50],dark:cs[400]}:{main:cs[700],light:cs[400],dark:cs[800]}}function D_(e="light"){return e==="dark"?{main:as[200],light:as[50],dark:as[400]}:{main:as[500],light:as[300],dark:as[700]}}function __(e="light"){return e==="dark"?{main:ls[500],light:ls[300],dark:ls[700]}:{main:ls[700],light:ls[400],dark:ls[800]}}function L_(e="light"){return e==="dark"?{main:us[400],light:us[300],dark:us[700]}:{main:us[700],light:us[500],dark:us[900]}}function B_(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:ds[800],light:ds[500],dark:ds[900]}}function N_(e="light"){return e==="dark"?{main:Ra[400],light:Ra[300],dark:Ra[700]}:{main:"#ed6c02",light:Ra[500],dark:Ra[900]}}function $_(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_e(e,k_),i=e.primary||F_(t),a=e.secondary||D_(t),c=e.error||__(t),u=e.info||L_(t),d=e.success||B_(t),p=e.warning||N_(t);function g(x){const w=a1(x,th.text.primary)>=n?th.text.primary:c1.text.primary;if(process.env.NODE_ENV!=="production"){const T=a1(x,w);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${w} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
33
33
|
`))}return w}const v=({color:x,name:w,mainShade:T=500,lightShade:j=300,darkShade:E=700})=>{if(x=z({},x),!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
34
|
-
The color object needs to have a \`main\` property or a \`${T}\` property.`:
|
|
34
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:Li(11,w?` (${w})`:"",T));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
35
35
|
\`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
|
|
36
36
|
|
|
37
37
|
Did you intend to use one of the following approaches?
|
|
@@ -44,8 +44,8 @@ const theme1 = createTheme({ palette: {
|
|
|
44
44
|
|
|
45
45
|
const theme2 = createTheme({ palette: {
|
|
46
46
|
primary: { main: green[500] },
|
|
47
|
-
} });`:
|
|
48
|
-
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:p1(a)} ${c} ${typeof u=="string"?u:p1(u)}`).join(",")}},e,{easing:t,duration:n})}const J_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},eL=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pm(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_e(e,eL);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":
|
|
47
|
+
} });`:Li(12,w?` (${w})`:"",JSON.stringify(x.main)));return u1(x,"light",j,r),u1(x,"dark",E,r),x.contrastText||(x.contrastText=g(x.main)),x},y={dark:th,light:c1};return process.env.NODE_ENV!=="production"&&(y[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),zr(z({common:z({},al),mode:t,primary:v({color:i,name:"primary"}),secondary:v({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:u,name:"info"}),success:v({color:d,name:"success"}),grey:M_,contrastThreshold:n,getContrastText:g,augmentColor:v,tonalOffset:r},y[t]),o)}const V_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function W_(e){return Math.round(e*1e5)/1e5}const d1={textTransform:"uppercase"},f1='"Roboto", "Helvetica", "Arial", sans-serif';function z_(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=f1,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:p,pxToRem:g}=n,v=_e(n,V_);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,b=g||(T=>`${T/d*y}rem`),x=(T,j,E,P,O)=>z({fontFamily:r,fontWeight:T,fontSize:b(j),lineHeight:E},r===f1?{letterSpacing:`${W_(P/j)}em`}:{},O,p),w={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(c,14,1.75,.4,d1),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,d1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zr(z({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u},w),v,{clone:!1})}const U_=.2,H_=.14,G_=.12;function St(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${U_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${H_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${G_})`].join(",")}const q_=["none",St(0,2,1,-1,0,1,1,0,0,1,3,0),St(0,3,1,-2,0,2,2,0,0,1,5,0),St(0,3,3,-2,0,3,4,0,0,1,8,0),St(0,2,4,-1,0,4,5,0,0,1,10,0),St(0,3,5,-1,0,5,8,0,0,1,14,0),St(0,3,5,-1,0,6,10,0,0,1,18,0),St(0,4,5,-2,0,7,10,1,0,2,16,1),St(0,5,5,-3,0,8,10,1,0,3,14,2),St(0,5,6,-3,0,9,12,1,0,3,16,2),St(0,6,6,-3,0,10,14,1,0,4,18,3),St(0,6,7,-4,0,11,15,1,0,4,20,3),St(0,7,8,-4,0,12,17,2,0,5,22,4),St(0,7,8,-4,0,13,19,2,0,5,24,4),St(0,7,9,-4,0,14,21,2,0,5,26,4),St(0,8,9,-5,0,15,22,2,0,6,28,5),St(0,8,10,-5,0,16,24,2,0,6,30,5),St(0,8,11,-5,0,17,26,2,0,6,32,5),St(0,9,11,-5,0,18,28,2,0,7,34,6),St(0,9,12,-6,0,19,29,2,0,7,36,6),St(0,10,13,-6,0,20,31,3,0,8,38,7),St(0,10,13,-6,0,21,33,3,0,8,40,7),St(0,10,14,-6,0,22,35,3,0,8,42,7),St(0,11,14,-7,0,23,36,3,0,9,44,8),St(0,11,15,-7,0,24,38,3,0,9,46,8)],Y_=["duration","easing","delay"],K_={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)"},X_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function p1(e){return`${Math.round(e)}ms`}function Z_(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Q_(e){const t=z({},K_,e.easing),n=z({},X_,e.duration);return z({getAutoHeightDuration:Z_,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0}=i,d=_e(i,Y_);if(process.env.NODE_ENV!=="production"){const p=v=>typeof v=="string",g=v=>!isNaN(parseFloat(v));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
48
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:p1(a)} ${c} ${typeof u=="string"?u:p1(u)}`).join(",")}},e,{easing:t,duration:n})}const J_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},eL=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pm(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_e(e,eL);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Li(18));const c=$_(r),u=Fd(e);let d=zr(u,{mixins:m_(u.breakpoints,n),palette:c,shadows:q_.slice(),typography:z_(c,i),transitions:Q_(o),zIndex:z({},J_)});if(d=zr(d,a),d=t.reduce((p,g)=>zr(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,y)=>{let b;for(b in v){const x=v[b];if(p.indexOf(b)!==-1&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const w=Bt("",b);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
49
49
|
`))}v[b]={}}}};Object.keys(d.components).forEach(v=>{const y=d.components[v].styleOverrides;y&&v.indexOf("Mui")===0&&g(y,v)})}return d.unstable_sxConfig=z({},Il,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(g){return Ol({sx:g,theme:this})},d}const jm=Pm(),ll="$$material";function Ht({props:e,name:t}){return d_({props:e,name:t,defaultTheme:jm,themeId:ll})}var jl={},nh={exports:{}},h1;function tL(){return h1||(h1=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nh)),nh.exports}var rh={exports:{}},g1;function nL(){return g1||(g1=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rh)),rh.exports}const gA=Ao(l_),rL=Ao(DD),oL=Ao(WD);var Wh={exports:{}},at={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.production.min.js
|
|
@@ -62,14 +62,14 @@ const theme2 = createTheme({ palette: {
|
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var v1;function sL(){return v1||(v1=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=!1,x=!1,w=!1,T=!1,j=!1,E;E=Symbol.for("react.module.reference");function P(me){return!!(typeof me=="string"||typeof me=="function"||me===n||me===o||j||me===r||me===d||me===p||T||me===y||b||x||w||typeof me=="object"&&me!==null&&(me.$$typeof===v||me.$$typeof===g||me.$$typeof===i||me.$$typeof===a||me.$$typeof===u||me.$$typeof===E||me.getModuleId!==void 0))}function O(me){if(typeof me=="object"&&me!==null){var Qe=me.$$typeof;switch(Qe){case e:var an=me.type;switch(an){case n:case o:case r:case d:case p:return an;default:var Et=an&&an.$$typeof;switch(Et){case c:case a:case u:case v:case g:case i:return Et;default:return Qe}}case t:return Qe}}}var k=a,F=i,B=e,H=u,q=n,U=v,ne=g,te=t,Y=o,X=r,N=d,Q=p,$=!1,oe=!1;function W(me){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(me){return oe||(oe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue(me){return O(me)===a}function he(me){return O(me)===i}function de(me){return typeof me=="object"&&me!==null&&me.$$typeof===e}function pe(me){return O(me)===u}function ge(me){return O(me)===n}function we(me){return O(me)===v}function ye(me){return O(me)===g}function ve(me){return O(me)===t}function Ce(me){return O(me)===o}function Te(me){return O(me)===r}function fe(me){return O(me)===d}function Ge(me){return O(me)===p}lt.ContextConsumer=k,lt.ContextProvider=F,lt.Element=B,lt.ForwardRef=H,lt.Fragment=q,lt.Lazy=U,lt.Memo=ne,lt.Portal=te,lt.Profiler=Y,lt.StrictMode=X,lt.Suspense=N,lt.SuspenseList=Q,lt.isAsyncMode=W,lt.isConcurrentMode=J,lt.isContextConsumer=ue,lt.isContextProvider=he,lt.isElement=de,lt.isForwardRef=pe,lt.isFragment=ge,lt.isLazy=we,lt.isMemo=ye,lt.isPortal=ve,lt.isProfiler=Ce,lt.isStrictMode=Te,lt.isSuspense=fe,lt.isSuspenseList=Ge,lt.isValidElementType=P,lt.typeOf=O}()),lt}process.env.NODE_ENV==="production"?Wh.exports=iL():Wh.exports=sL();var zh=Wh.exports;const aL=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mA(e){const t=`${e}`.match(aL);return t&&t[1]||""}function vA(e,t=""){return e.displayName||e.name||mA(e)||t}function y1(e,t,n){const r=vA(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function yA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vA(e,"Component");if(typeof e=="object")switch(e.$$typeof){case zh.ForwardRef:return y1(e,e.render,"ForwardRef");case zh.Memo:return y1(e,e.type,"memo");default:return}}}const lL=Object.freeze(Object.defineProperty({__proto__:null,default:yA,getFunctionName:mA},Symbol.toStringTag,{value:"Module"})),cL=Ao(lL),uL=Ao(j9),dL=Ao(h_);var Ys=wr;Object.defineProperty(jl,"__esModule",{value:!0});var fL=jl.default=TL;jl.shouldForwardProp=fu;jl.systemDefaultTheme=void 0;var dr=Ys(tL()),Uh=Ys(nL()),b1=CL(gA),pL=rL,hL=Ys(oL),gL=Ys(cL),mL=Ys(uL),vL=Ys(dL);const yL=["ownerState"],bL=["variants"],xL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function bA(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(bA=function(r){return r?n:t})(e)}function CL(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=bA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function wL(e){return Object.keys(e).length===0}function SL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AL=jl.systemDefaultTheme=(0,mL.default)(),x1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xc({defaultTheme:e,theme:t,themeId:n}){return wL(t)?e:t[n]||t}function EL(e){return e?(t,n)=>n[e]:null}function pu(e,t){let{ownerState:n}=t,r=(0,Uh.default)(t,yL);const o=typeof e=="function"?e((0,dr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>pu(i,(0,dr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,Uh.default)(o,bL);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,dr.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,dr.default)({ownerState:n},r,n)):u.style))}),c}return o}function TL(e={}){const{themeId:t,defaultTheme:n=AL,rootShouldForwardProp:r=fu,slotShouldForwardProp:o=fu}=e,i=a=>(0,vL.default)((0,dr.default)({},a,{theme:Xc((0,dr.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{(0,b1.internal_processStyles)(a,O=>O.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=EL(x1(d))}=c,y=(0,Uh.default)(c,xL),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${x1(d||"Root")}`);let T=fu;d==="Root"||d==="root"?T=r:d?T=o:SL(a)&&(T=void 0);const j=(0,b1.default)(a,(0,dr.default)({shouldForwardProp:T,label:w},y)),E=O=>typeof O=="function"&&O.__emotion_real!==O||(0,pL.isPlainObject)(O)?k=>pu(O,(0,dr.default)({},k,{theme:Xc({theme:k.theme,defaultTheme:n,themeId:t})})):O,P=(O,...k)=>{let F=E(O);const B=k?k.map(E):[];u&&v&&B.push(U=>{const ne=Xc((0,dr.default)({},U,{defaultTheme:n,themeId:t}));if(!ne.components||!ne.components[u]||!ne.components[u].styleOverrides)return null;const te=ne.components[u].styleOverrides,Y={};return Object.entries(te).forEach(([X,N])=>{Y[X]=pu(N,(0,dr.default)({},U,{theme:ne}))}),v(U,Y)}),u&&!b&&B.push(U=>{var ne;const te=Xc((0,dr.default)({},U,{defaultTheme:n,themeId:t})),Y=te==null||(ne=te.components)==null||(ne=ne[u])==null?void 0:ne.variants;return pu({variants:Y},(0,dr.default)({},U,{theme:te}))}),x||B.push(i);const H=B.length-k.length;if(Array.isArray(O)&&H>0){const U=new Array(H).fill("");F=[...O,...U],F.raw=[...O.raw,...U]}const q=j(F,...B);if(process.env.NODE_ENV!=="production"){let U;u&&(U=`${u}${(0,hL.default)(d||"")}`),U===void 0&&(U=`Styled(${(0,gL.default)(a)})`),q.displayName=U}return a.muiName&&(q.muiName=a.muiName),q};return j.withConfig&&(P.withConfig=j.withConfig),P}}function IL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rm=e=>IL(e)&&e!=="classes",ce=fL({themeId:ll,defaultTheme:jm,rootShouldForwardProp:Rm});function OL(e){return Ht}function Gt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Bt(e,o,n)}),r}function PL(e){return Bt("MuiSvgIcon",e)}Gt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],RL=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return Ut(o,PL,r)},ML=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,c,u,d,p,g,v,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?g:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Lu=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:v="0 0 24 24"}=r,y=_e(r,jL),b=D.isValidElement(o)&&o.type==="svg",x=z({},r,{color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:v,hasSvgAsChild:b}),w={};p||(w.viewBox=v);const T=RL(x);return f.jsxs(ML,z({as:c,className:Be(T.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},w,y,b&&o.props,{ownerState:x,children:[b?o.props.children:o,g?f.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(Lu.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});Lu.muiName="SvgIcon";function Mm(e,t){function n(r,o){return f.jsx(Lu,z({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Lu.muiName,D.memo(D.forwardRef(n))}const kL=Mm(f.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function FL(e){return Bt("MuiAvatar",e)}Gt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function $s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function on(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{$s(n,t)})},e)}function DL(e){return typeof e=="string"}function Ts(e,t,n){return e===void 0||DL(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}const _L={disableDefaultClasses:!1},xA=D.createContext(_L);process.env.NODE_ENV!=="production"&&(xA.displayName="ClassNameConfiguratorContext");function LL(e){const{disableDefaultClasses:t}=D.useContext(xA);return n=>t?"":e(n)}function CA(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wA(e,t,n){return typeof e=="function"?e(t,n):e}function Eo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function BL(e){const{prototype:t={}}=e;return!!t.isReactComponent}function SA(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;const u=i.type;return typeof u=="function"&&!BL(u)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ks=Eo(m.element,SA);Ks.isRequired=Eo(m.element.isRequired,SA);function NL(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $L(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!NL(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const VL=Eo(m.elementType,$L),WL="exact-prop: ";function Rl(e){return process.env.NODE_ENV==="production"?e:z({},e,{[WL]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function wo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Bd=m.oneOfType([m.func,m.object]);function Hh(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zL(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function UL(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const c=o||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function HL(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Kn(e){return e&&e.ownerDocument||document}function Nd(e){return Kn(e).defaultView||window}function GL(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?z({},t.propTypes):null;return o=>(i,a,c,u,d,...p)=>{const g=d||a,v=n==null?void 0:n[g];if(v){const y=v(i,a,c,u,d,...p);if(y)return y}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const Gr=typeof window<"u"?D.useLayoutEffect:D.useEffect;let C1=0;function qL(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(C1+=1,n(`mui-${C1}`))},[t]),r}const w1=D.useId;function $d(e){if(w1!==void 0){const t=w1();return e??t}return qL(e)}function YL(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function AA({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){D.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
65
|
+
*/var v1;function sL(){return v1||(v1=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=!1,x=!1,w=!1,T=!1,j=!1,E;E=Symbol.for("react.module.reference");function P(me){return!!(typeof me=="string"||typeof me=="function"||me===n||me===o||j||me===r||me===d||me===p||T||me===y||b||x||w||typeof me=="object"&&me!==null&&(me.$$typeof===v||me.$$typeof===g||me.$$typeof===i||me.$$typeof===a||me.$$typeof===u||me.$$typeof===E||me.getModuleId!==void 0))}function O(me){if(typeof me=="object"&&me!==null){var Qe=me.$$typeof;switch(Qe){case e:var an=me.type;switch(an){case n:case o:case r:case d:case p:return an;default:var Et=an&&an.$$typeof;switch(Et){case c:case a:case u:case v:case g:case i:return Et;default:return Qe}}case t:return Qe}}}var k=a,F=i,B=e,H=u,q=n,U=v,ne=g,te=t,Y=o,X=r,N=d,Q=p,$=!1,oe=!1;function W(me){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(me){return oe||(oe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue(me){return O(me)===a}function he(me){return O(me)===i}function de(me){return typeof me=="object"&&me!==null&&me.$$typeof===e}function pe(me){return O(me)===u}function ge(me){return O(me)===n}function we(me){return O(me)===v}function ye(me){return O(me)===g}function ve(me){return O(me)===t}function Ce(me){return O(me)===o}function Te(me){return O(me)===r}function fe(me){return O(me)===d}function Ge(me){return O(me)===p}lt.ContextConsumer=k,lt.ContextProvider=F,lt.Element=B,lt.ForwardRef=H,lt.Fragment=q,lt.Lazy=U,lt.Memo=ne,lt.Portal=te,lt.Profiler=Y,lt.StrictMode=X,lt.Suspense=N,lt.SuspenseList=Q,lt.isAsyncMode=W,lt.isConcurrentMode=J,lt.isContextConsumer=ue,lt.isContextProvider=he,lt.isElement=de,lt.isForwardRef=pe,lt.isFragment=ge,lt.isLazy=we,lt.isMemo=ye,lt.isPortal=ve,lt.isProfiler=Ce,lt.isStrictMode=Te,lt.isSuspense=fe,lt.isSuspenseList=Ge,lt.isValidElementType=P,lt.typeOf=O}()),lt}process.env.NODE_ENV==="production"?Wh.exports=iL():Wh.exports=sL();var zh=Wh.exports;const aL=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mA(e){const t=`${e}`.match(aL);return t&&t[1]||""}function vA(e,t=""){return e.displayName||e.name||mA(e)||t}function y1(e,t,n){const r=vA(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function yA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vA(e,"Component");if(typeof e=="object")switch(e.$$typeof){case zh.ForwardRef:return y1(e,e.render,"ForwardRef");case zh.Memo:return y1(e,e.type,"memo");default:return}}}const lL=Object.freeze(Object.defineProperty({__proto__:null,default:yA,getFunctionName:mA},Symbol.toStringTag,{value:"Module"})),cL=Ao(lL),uL=Ao(j9),dL=Ao(h_);var Ys=wr;Object.defineProperty(jl,"__esModule",{value:!0});var fL=jl.default=TL;jl.shouldForwardProp=fu;jl.systemDefaultTheme=void 0;var dr=Ys(tL()),Uh=Ys(nL()),b1=CL(gA),pL=rL,hL=Ys(oL),gL=Ys(cL),mL=Ys(uL),vL=Ys(dL);const yL=["ownerState"],bL=["variants"],xL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function bA(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(bA=function(r){return r?n:t})(e)}function CL(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=bA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function wL(e){return Object.keys(e).length===0}function SL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AL=jl.systemDefaultTheme=(0,mL.default)(),x1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xc({defaultTheme:e,theme:t,themeId:n}){return wL(t)?e:t[n]||t}function EL(e){return e?(t,n)=>n[e]:null}function pu(e,t){let{ownerState:n}=t,r=(0,Uh.default)(t,yL);const o=typeof e=="function"?e((0,dr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>pu(i,(0,dr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,Uh.default)(o,bL);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props((0,dr.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,dr.default)({ownerState:n},r,n)):u.style))}),c}return o}function TL(e={}){const{themeId:t,defaultTheme:n=AL,rootShouldForwardProp:r=fu,slotShouldForwardProp:o=fu}=e,i=a=>(0,vL.default)((0,dr.default)({},a,{theme:Xc((0,dr.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{(0,b1.internal_processStyles)(a,O=>O.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=EL(x1(d))}=c,y=(0,Uh.default)(c,xL),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${x1(d||"Root")}`);let T=fu;d==="Root"||d==="root"?T=r:d?T=o:SL(a)&&(T=void 0);const j=(0,b1.default)(a,(0,dr.default)({shouldForwardProp:T,label:w},y)),E=O=>typeof O=="function"&&O.__emotion_real!==O||(0,pL.isPlainObject)(O)?k=>pu(O,(0,dr.default)({},k,{theme:Xc({theme:k.theme,defaultTheme:n,themeId:t})})):O,P=(O,...k)=>{let F=E(O);const B=k?k.map(E):[];u&&v&&B.push(U=>{const ne=Xc((0,dr.default)({},U,{defaultTheme:n,themeId:t}));if(!ne.components||!ne.components[u]||!ne.components[u].styleOverrides)return null;const te=ne.components[u].styleOverrides,Y={};return Object.entries(te).forEach(([X,N])=>{Y[X]=pu(N,(0,dr.default)({},U,{theme:ne}))}),v(U,Y)}),u&&!b&&B.push(U=>{var ne;const te=Xc((0,dr.default)({},U,{defaultTheme:n,themeId:t})),Y=te==null||(ne=te.components)==null||(ne=ne[u])==null?void 0:ne.variants;return pu({variants:Y},(0,dr.default)({},U,{theme:te}))}),x||B.push(i);const H=B.length-k.length;if(Array.isArray(O)&&H>0){const U=new Array(H).fill("");F=[...O,...U],F.raw=[...O.raw,...U]}const q=j(F,...B);if(process.env.NODE_ENV!=="production"){let U;u&&(U=`${u}${(0,hL.default)(d||"")}`),U===void 0&&(U=`Styled(${(0,gL.default)(a)})`),q.displayName=U}return a.muiName&&(q.muiName=a.muiName),q};return j.withConfig&&(P.withConfig=j.withConfig),P}}function IL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rm=e=>IL(e)&&e!=="classes",ce=fL({themeId:ll,defaultTheme:jm,rootShouldForwardProp:Rm});function OL(e){return Ht}function Gt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Bt(e,o,n)}),r}function PL(e){return Bt("MuiSvgIcon",e)}Gt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],RL=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return Ut(o,PL,r)},ML=ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,c,u,d,p,g,v,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?g:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Lu=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:v="0 0 24 24"}=r,y=_e(r,jL),b=D.isValidElement(o)&&o.type==="svg",x=z({},r,{color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:v,hasSvgAsChild:b}),w={};p||(w.viewBox=v);const T=RL(x);return f.jsxs(ML,z({as:c,className:Be(T.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n},w,y,b&&o.props,{ownerState:x,children:[b?o.props.children:o,g?f.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(Lu.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});Lu.muiName="SvgIcon";function Mm(e,t){function n(r,o){return f.jsx(Lu,z({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Lu.muiName,D.memo(D.forwardRef(n))}const kL=Mm(f.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function FL(e){return Bt("MuiAvatar",e)}Gt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function $s(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function on(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{$s(n,t)})},e)}function DL(e){return typeof e=="string"}function Is(e,t,n){return e===void 0||DL(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}const _L={disableDefaultClasses:!1},xA=D.createContext(_L);process.env.NODE_ENV!=="production"&&(xA.displayName="ClassNameConfiguratorContext");function LL(e){const{disableDefaultClasses:t}=D.useContext(xA);return n=>t?"":e(n)}function CA(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wA(e,t,n){return typeof e=="function"?e(t,n):e}function Eo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function BL(e){const{prototype:t={}}=e;return!!t.isReactComponent}function SA(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;const u=i.type;return typeof u=="function"&&!BL(u)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ks=Eo(m.element,SA);Ks.isRequired=Eo(m.element.isRequired,SA);function NL(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $L(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!NL(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const VL=Eo(m.elementType,$L),WL="exact-prop: ";function Rl(e){return process.env.NODE_ENV==="production"?e:z({},e,{[WL]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function wo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Bd=m.oneOfType([m.func,m.object]);function Hh(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zL(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function UL(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const c=o||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function HL(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Kn(e){return e&&e.ownerDocument||document}function Nd(e){return Kn(e).defaultView||window}function GL(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?z({},t.propTypes):null;return o=>(i,a,c,u,d,...p)=>{const g=d||a,v=n==null?void 0:n[g];if(v){const y=v(i,a,c,u,d,...p);if(y)return y}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const Gr=typeof window<"u"?D.useLayoutEffect:D.useEffect;let C1=0;function qL(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(C1+=1,n(`mui-${C1}`))},[t]),r}const w1=D.useId;function $d(e){if(w1!==void 0){const t=w1();return e??t}return qL(e)}function YL(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function AA({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[i,a]=D.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){D.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
66
66
|
`))},[r,n,e]);const{current:d}=D.useRef(t);D.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
67
|
-
`))},[JSON.stringify(t)])}const u=D.useCallback(d=>{o||a(d)},[]);return[c,u]}function go(e){const t=D.useRef(e);return Gr(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}const S1={};function KL(e,t){const n=D.useRef(S1);return n.current===S1&&(n.current=e(t)),n}const XL=[];function ZL(e){D.useEffect(e,XL)}class Ml{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ml}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Is(){const e=KL(Ml.create).current;return ZL(e.disposeEffect),e}let Vd=!0,Gh=!1;const QL=new Ml,JL={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function eB(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&JL[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tB(e){e.metaKey||e.altKey||e.ctrlKey||(Vd=!0)}function oh(){Vd=!1}function nB(){this.visibilityState==="hidden"&&Gh&&(Vd=!0)}function rB(e){e.addEventListener("keydown",tB,!0),e.addEventListener("mousedown",oh,!0),e.addEventListener("pointerdown",oh,!0),e.addEventListener("touchstart",oh,!0),e.addEventListener("visibilitychange",nB,!0)}function oB(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Vd||eB(t)}function km(){const e=D.useCallback(o=>{o!=null&&rB(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(Gh=!0,QL.start(100,()=>{Gh=!1}),t.current=!1,!0):!1}function r(o){return oB(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function iB(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function sB(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function aB(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const lB=Number.isInteger||aB;function EA(e,t,n,r){const o=e[t];if(o==null||!lB(o)){const i=sB(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function TA(e,t,...n){return e[t]===void 0?null:EA(e,t,...n)}function qh(){return null}TA.isRequired=EA;qh.isRequired=qh;const hu=process.env.NODE_ENV==="production"?qh:TA;function A1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function IA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=z({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=z({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=CA(z({},o,r)),c=A1(r),u=A1(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=z({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=z({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const cB=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Bu(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_e(e,cB),c=i?{}:wA(r,o),{props:u,internalRef:d}=IA(z({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ts(n,z({},u,{ref:p}),o)}const uB=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],dB=["component","slots","slotProps"],fB=["component"];function pB(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:c}=t,u=_e(t,uB),{component:d,slots:p={[e]:void 0},slotProps:g={[e]:void 0}}=i;_e(i,dB);const v=p[e]||r,y=wA(g[e],o),b=IA(z({className:n},u,{externalForwardedProps:void 0,externalSlotProps:y})),{props:{component:x},internalRef:w}=b,T=_e(b.props,fB),j=on(w,y==null?void 0:y.ref,t.ref),E=a?a(T):{},P=z({},o,E),O=x,k=Ts(v,z({},e==="root",!p[e]&&c,T,O&&{as:O},{ref:j}),P);return Object.keys(E).forEach(F=>{delete k[F]}),[v,k]}const hB=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],gB=OL(),mB=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ut({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},FL,t)},vB=ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({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:z({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:z({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),yB=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),bB=ce(kL,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function xB({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=D.useState(!1);return D.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const OA=D.forwardRef(function(t,n){const r=gB({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:u={},slotProps:d={},imgProps:p,sizes:g,src:v,srcSet:y,variant:b="circular"}=r,x=_e(r,hB);let w=null;const T=xB(z({},p,{src:v,srcSet:y})),j=v||y,E=j&&T!=="error",P=z({},r,{colorDefault:!E,component:c,variant:b}),O=mB(P),[k,F]=pB("img",{className:O.img,elementType:yB,externalForwardedProps:{slots:u,slotProps:{img:z({},p,d.img)}},additionalProps:{alt:o,src:v,srcSet:y,sizes:g},ownerState:P});return E?w=f.jsx(k,z({},F)):i||i===0?w=i:j&&o?w=o[0]:w=f.jsx(bB,{ownerState:P,className:O.fallback}),f.jsx(vB,z({as:c,ownerState:P,className:Be(O.root,a),ref:n},x,{children:w}))});process.env.NODE_ENV!=="production"&&(OA.propTypes={alt:m.string,children:m.node,classes:m.object,className:m.string,component:m.elementType,imgProps:m.object,sizes:m.string,slotProps:m.shape({img:m.oneOfType([m.func,m.object])}),slots:m.shape({img:m.elementType}),src:m.string,srcSet:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["circular","rounded","square"]),m.string])});const CB=["ownerState"],wB=["variants"],SB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AB(e){return Object.keys(e).length===0}function EB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ih(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const TB=Fd(),E1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Zc({defaultTheme:e,theme:t,themeId:n}){return AB(t)?e:t[n]||t}function IB(e){return e?(t,n)=>n[e]:null}function gu(e,t){let{ownerState:n}=t,r=_e(t,CB);const o=typeof e=="function"?e(z({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>gu(i,z({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=_e(o,wB);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props(z({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style(z({ownerState:n},r,n)):u.style))}),c}return o}function OB(e={}){const{themeId:t,defaultTheme:n=TB,rootShouldForwardProp:r=ih,slotShouldForwardProp:o=ih}=e,i=a=>Ol(z({},a,{theme:Zc(z({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{nA(a,O=>O.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=IB(E1(d))}=c,y=_e(c,SB),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${E1(d||"Root")}`);let T=ih;d==="Root"||d==="root"?T=r:d?T=o:EB(a)&&(T=void 0);const j=tA(a,z({shouldForwardProp:T,label:w},y)),E=O=>typeof O=="function"&&O.__emotion_real!==O||po(O)?k=>gu(O,z({},k,{theme:Zc({theme:k.theme,defaultTheme:n,themeId:t})})):O,P=(O,...k)=>{let F=E(O);const B=k?k.map(E):[];u&&v&&B.push(U=>{const ne=Zc(z({},U,{defaultTheme:n,themeId:t}));if(!ne.components||!ne.components[u]||!ne.components[u].styleOverrides)return null;const te=ne.components[u].styleOverrides,Y={};return Object.entries(te).forEach(([X,N])=>{Y[X]=gu(N,z({},U,{theme:ne}))}),v(U,Y)}),u&&!b&&B.push(U=>{var ne;const te=Zc(z({},U,{defaultTheme:n,themeId:t})),Y=te==null||(ne=te.components)==null||(ne=ne[u])==null?void 0:ne.variants;return gu({variants:Y},z({},U,{theme:te}))}),x||B.push(i);const H=B.length-k.length;if(Array.isArray(O)&&H>0){const U=new Array(H).fill("");F=[...O,...U],F.raw=[...O.raw,...U]}const q=j(F,...B);if(process.env.NODE_ENV!=="production"){let U;u&&(U=`${u}${Ne(d||"")}`),U===void 0&&(U=`Styled(${yA(a)})`),q.displayName=U}return a.muiName&&(q.muiName=a.muiName),q};return j.withConfig&&(P.withConfig=j.withConfig),P}}const kl=OB();function PA(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),lA(e,t,n)}function PB(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Fm(e){if(e.type)return e;if(e.charAt(0)==="#")return Fm(PB(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
68
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
69
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
67
|
+
`))},[JSON.stringify(t)])}const u=D.useCallback(d=>{o||a(d)},[]);return[c,u]}function go(e){const t=D.useRef(e);return Gr(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}const S1={};function KL(e,t){const n=D.useRef(S1);return n.current===S1&&(n.current=e(t)),n}const XL=[];function ZL(e){D.useEffect(e,XL)}class Ml{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ml}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Os(){const e=KL(Ml.create).current;return ZL(e.disposeEffect),e}let Vd=!0,Gh=!1;const QL=new Ml,JL={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function eB(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&JL[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tB(e){e.metaKey||e.altKey||e.ctrlKey||(Vd=!0)}function oh(){Vd=!1}function nB(){this.visibilityState==="hidden"&&Gh&&(Vd=!0)}function rB(e){e.addEventListener("keydown",tB,!0),e.addEventListener("mousedown",oh,!0),e.addEventListener("pointerdown",oh,!0),e.addEventListener("touchstart",oh,!0),e.addEventListener("visibilitychange",nB,!0)}function oB(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Vd||eB(t)}function km(){const e=D.useCallback(o=>{o!=null&&rB(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(Gh=!0,QL.start(100,()=>{Gh=!1}),t.current=!1,!0):!1}function r(o){return oB(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function iB(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function sB(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function aB(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const lB=Number.isInteger||aB;function EA(e,t,n,r){const o=e[t];if(o==null||!lB(o)){const i=sB(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function TA(e,t,...n){return e[t]===void 0?null:EA(e,t,...n)}function qh(){return null}TA.isRequired=EA;qh.isRequired=qh;const hu=process.env.NODE_ENV==="production"?qh:TA;function A1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function IA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=z({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=z({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=CA(z({},o,r)),c=A1(r),u=A1(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=z({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=z({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const cB=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Bu(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_e(e,cB),c=i?{}:wA(r,o),{props:u,internalRef:d}=IA(z({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return Is(n,z({},u,{ref:p}),o)}const uB=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],dB=["component","slots","slotProps"],fB=["component"];function pB(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:c}=t,u=_e(t,uB),{component:d,slots:p={[e]:void 0},slotProps:g={[e]:void 0}}=i;_e(i,dB);const v=p[e]||r,y=wA(g[e],o),b=IA(z({className:n},u,{externalForwardedProps:void 0,externalSlotProps:y})),{props:{component:x},internalRef:w}=b,T=_e(b.props,fB),j=on(w,y==null?void 0:y.ref,t.ref),E=a?a(T):{},P=z({},o,E),O=x,k=Is(v,z({},e==="root",!p[e]&&c,T,O&&{as:O},{ref:j}),P);return Object.keys(E).forEach(F=>{delete k[F]}),[v,k]}const hB=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],gB=OL(),mB=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ut({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},FL,t)},vB=ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({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:z({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:z({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),yB=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),bB=ce(kL,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function xB({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=D.useState(!1);return D.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const OA=D.forwardRef(function(t,n){const r=gB({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:u={},slotProps:d={},imgProps:p,sizes:g,src:v,srcSet:y,variant:b="circular"}=r,x=_e(r,hB);let w=null;const T=xB(z({},p,{src:v,srcSet:y})),j=v||y,E=j&&T!=="error",P=z({},r,{colorDefault:!E,component:c,variant:b}),O=mB(P),[k,F]=pB("img",{className:O.img,elementType:yB,externalForwardedProps:{slots:u,slotProps:{img:z({},p,d.img)}},additionalProps:{alt:o,src:v,srcSet:y,sizes:g},ownerState:P});return E?w=f.jsx(k,z({},F)):i||i===0?w=i:j&&o?w=o[0]:w=f.jsx(bB,{ownerState:P,className:O.fallback}),f.jsx(vB,z({as:c,ownerState:P,className:Be(O.root,a),ref:n},x,{children:w}))});process.env.NODE_ENV!=="production"&&(OA.propTypes={alt:m.string,children:m.node,classes:m.object,className:m.string,component:m.elementType,imgProps:m.object,sizes:m.string,slotProps:m.shape({img:m.oneOfType([m.func,m.object])}),slots:m.shape({img:m.elementType}),src:m.string,srcSet:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["circular","rounded","square"]),m.string])});const CB=["ownerState"],wB=["variants"],SB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AB(e){return Object.keys(e).length===0}function EB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ih(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const TB=Fd(),E1=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Zc({defaultTheme:e,theme:t,themeId:n}){return AB(t)?e:t[n]||t}function IB(e){return e?(t,n)=>n[e]:null}function gu(e,t){let{ownerState:n}=t,r=_e(t,CB);const o=typeof e=="function"?e(z({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>gu(i,z({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=_e(o,wB);return i.forEach(u=>{let d=!0;typeof u.props=="function"?d=u.props(z({ownerState:n},r,n)):Object.keys(u.props).forEach(p=>{(n==null?void 0:n[p])!==u.props[p]&&r[p]!==u.props[p]&&(d=!1)}),d&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style(z({ownerState:n},r,n)):u.style))}),c}return o}function OB(e={}){const{themeId:t,defaultTheme:n=TB,rootShouldForwardProp:r=ih,slotShouldForwardProp:o=ih}=e,i=a=>Ol(z({},a,{theme:Zc(z({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,c={})=>{nA(a,O=>O.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:v=IB(E1(d))}=c,y=_e(c,SB),b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let w;process.env.NODE_ENV!=="production"&&u&&(w=`${u}-${E1(d||"Root")}`);let T=ih;d==="Root"||d==="root"?T=r:d?T=o:EB(a)&&(T=void 0);const j=tA(a,z({shouldForwardProp:T,label:w},y)),E=O=>typeof O=="function"&&O.__emotion_real!==O||po(O)?k=>gu(O,z({},k,{theme:Zc({theme:k.theme,defaultTheme:n,themeId:t})})):O,P=(O,...k)=>{let F=E(O);const B=k?k.map(E):[];u&&v&&B.push(U=>{const ne=Zc(z({},U,{defaultTheme:n,themeId:t}));if(!ne.components||!ne.components[u]||!ne.components[u].styleOverrides)return null;const te=ne.components[u].styleOverrides,Y={};return Object.entries(te).forEach(([X,N])=>{Y[X]=gu(N,z({},U,{theme:ne}))}),v(U,Y)}),u&&!b&&B.push(U=>{var ne;const te=Zc(z({},U,{defaultTheme:n,themeId:t})),Y=te==null||(ne=te.components)==null||(ne=ne[u])==null?void 0:ne.variants;return gu({variants:Y},z({},U,{theme:te}))}),x||B.push(i);const H=B.length-k.length;if(Array.isArray(O)&&H>0){const U=new Array(H).fill("");F=[...O,...U],F.raw=[...O.raw,...U]}const q=j(F,...B);if(process.env.NODE_ENV!=="production"){let U;u&&(U=`${u}${Ne(d||"")}`),U===void 0&&(U=`Styled(${yA(a)})`),q.displayName=U}return a.muiName&&(q.muiName=a.muiName),q};return j.withConfig&&(P.withConfig=j.withConfig),P}}const kl=OB();function PA(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),lA(e,t,n)}function PB(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Fm(e){if(e.type)return e;if(e.charAt(0)==="#")return Fm(PB(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
68
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Li(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
69
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Li(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function jA(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Je(e,t){return e=Fm(e),t=PA(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jA(e)}function Yh(e,t){if(e=Fm(e),t=PA(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return jA(e)}const Dm=D.createContext(null);process.env.NODE_ENV!=="production"&&(Dm.displayName="ThemeContext");function RA(){const e=D.useContext(Dm);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e}const jB=typeof Symbol=="function"&&Symbol.for,RB=jB?Symbol.for("mui.nested"):"__THEME_NESTED__";function MB(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
70
70
|
`))),n}return z({},e,t)}function Nu(e){const{children:t,theme:n}=e,r=RA();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
71
71
|
`));const o=D.useMemo(()=>{const i=r===null?n:MB(r,n);return i!=null&&(i[RB]=r!==null),i},[n,r]);return f.jsx(Dm.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Nu.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Nu.propTypes=Rl(Nu.propTypes));const kB=["value"],MA=D.createContext();function kA(e){let{value:t}=e,n=_e(e,kB);return f.jsx(MA.Provider,z({value:t??!0},n))}process.env.NODE_ENV!=="production"&&(kA.propTypes={children:m.node,value:m.bool});const FB=()=>{const e=D.useContext(MA);return e??!1},DB=D.createContext(void 0);function FA({value:e,children:t}){return f.jsx(DB.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(FA.propTypes={children:m.node,value:m.object});const T1={};function I1(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?z({},t,{[e]:i}):i;return r?()=>a:a}return e?z({},t,{[e]:n}):z({},t,n)},[e,t,n,r])}function $u(e){const{children:t,theme:n,themeId:r}=e,o=rA(T1),i=RA()||T1;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
72
|
-
`));const a=I1(r,o,n),c=I1(r,i,n,!0),u=a.direction==="rtl";return f.jsx(Nu,{theme:c,children:f.jsx(tn.ThemeContext.Provider,{value:a,children:f.jsx(kA,{value:u,children:f.jsx(FA,{value:a==null?void 0:a.components,children:t})})})})}process.env.NODE_ENV!=="production"&&($u.propTypes={children:m.node,theme:m.oneOfType([m.func,m.object]).isRequired,themeId:m.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&($u.propTypes=Rl($u.propTypes));function gt(){const e=Em(jm);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[ll]||e}const _B=["theme"];function DA(e){let{theme:t}=e,n=_e(e,_B);const r=t[ll];return f.jsx($u,z({},n,{themeId:r?ll:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(DA.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired});const O1=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function LB({theme:e,color:t,type:n}){const r=sn(e,t),{lighter:o,light:i,main:a,contrastText:c}=r;switch(n){case"filled":return{color:c,backgroundColor:a};case"outlined":return{color:a,border:"1px solid",borderColor:a,backgroundColor:"transparent"};case"combined":return{color:a,border:"1px solid",borderColor:i,backgroundColor:o};default:return{color:a,backgroundColor:o}}}function BB(e){switch(e){case"badge":return{border:"2px solid",fontSize:"0.675rem",width:20,height:20};case"xs":return{fontSize:"0.75rem",width:24,height:24};case"sm":return{fontSize:"0.875rem",width:32,height:32};case"lg":return{fontSize:"1.2rem",width:52,height:52};case"xl":return{fontSize:"1.5rem",width:64,height:64};case"md":default:return{fontSize:"1rem",width:40,height:40}}}const NB=ce(OA,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,color:t,type:n,size:r})=>({...BB(r),...LB({theme:e,color:t,type:n}),...r==="badge"&&{borderColor:e.palette.background.default}}));function Vu({variant:e="circular",children:t,color:n="primary",type:r,size:o="md",...i}){const a=gt();return f.jsx(NB,{variant:e,theme:a,color:n,type:r,size:o,...i,children:t})}const P1={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},Mn=A.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:o=!0,contentSX:i={},darkTitle:a,divider:c=!0,elevation:u,secondary:d,shadow:p,sx:g={},title:v,modal:y=!1,color:b="default",...x},w)=>{const T=gt();return t=T.palette.mode==="dark"?t||!0:t,f.jsxs(S.Card,{elevation:u||0,ref:w,...x,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:T.palette.mode==="dark"?T.palette.divider:T.palette.grey.A800,boxShadow:t&&(!e||T.palette.mode==="dark")?p||T.customShadows.z0:"inherit",":hover":{boxShadow:t?p||T.customShadows.z0:"inherit"},backgroundColor:b==="default"?T.palette.background.paper:Yh(b==="primary"?T.palette.primary[100]:T.palette.secondary[100],.5),...y&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"calc( 100% - 50px)",sm:"auto"},"& .MuiCardContent-root":{overflowY:"auto",minHeight:"auto",maxHeight:"calc(100vh - 200px)"}},...g},children:[!a&&v?f.jsx(S.CardHeader,{sx:P1,title:v,action:d,subheader:r}):null,a&&v?f.jsx(S.CardHeader,{sx:P1,title:f.jsx(S.Typography,{variant:"h4",children:v}),action:d}):null,v&&c?f.jsx(S.Divider,{}):null,o?f.jsx(S.CardContent,{sx:i,children:n}):null,!o&&n]})});function $B(e){return Bt("MuiTypography",e)}Gt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const VB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],WB=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ut(c,$B,a)},zB=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),j1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},UB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HB=e=>UB[e]||e,Wd=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiTypography"}),o=HB(r.color),i=oA(z({},r,{color:o})),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:v="body1",variantMapping:y=j1}=i,b=_e(i,VB),x=z({},i,{align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:g,variant:v,variantMapping:y}),w=u||(g?"p":y[v]||j1[v])||"span",T=WB(x);return f.jsx(zB,z({as:w,ref:n,ownerState:x,className:Be(T.root,c)},b))});process.env.NODE_ENV!=="production"&&(Wd.propTypes={align:m.oneOf(["center","inherit","justify","left","right"]),children:m.node,classes:m.object,className:m.string,component:m.elementType,gutterBottom:m.bool,noWrap:m.bool,paragraph:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),m.string]),variantMapping:m.object});const GB=Mm(f.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");function Kh(e,t){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kh(e,t)}function _m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kh(e,t)}const R1={disabled:!1};var qB=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.shape({enter:m.number,exit:m.number,appear:m.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&m.oneOfType([m.string,m.shape({enter:m.string,exit:m.string,active:m.string}),m.shape({enter:m.string,enterDone:m.string,enterActive:m.string,exit:m.string,exitDone:m.string,exitActive:m.string})]);const Wu=A.createContext(null);var YB=function(t){return t.scrollTop},Ba="unmounted",Si="exited",Ai="entering",ys="entered",Xh="exiting",Kr=function(e){_m(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?c?(u=Si,i.appearStatus=Ai):u=ys:r.unmountOnExit||r.mountOnEnter?u=Ba:u=Si,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ba?{status:Si}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ai&&a!==ys&&(i=Ai):(a===Ai||a===ys)&&(i=Xh)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Cs.findDOMNode(this);a&&YB(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Si&&this.setState({status:Ba})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[Cs.findDOMNode(this),c],d=u[0],p=u[1],g=this.getTimeouts(),v=c?g.appear:g.enter;if(!o&&!a||R1.disabled){this.safeSetState({status:ys},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:Ai},function(){i.props.onEntering(d,p),i.onTransitionEnd(v,function(){i.safeSetState({status:ys},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:Cs.findDOMNode(this);if(!i||R1.disabled){this.safeSetState({status:Si},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Xh},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Si},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Cs.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ba)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=_e(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(Wu.Provider,{value:null},typeof a=="function"?a(o,c):A.cloneElement(A.Children.only(a),c))},t}(A.Component);Kr.contextType=Wu;Kr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:m.shape({current:typeof Element>"u"?m.any:function(e,t,n,r,o,i){var a=e[t];return m.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:m.oneOfType([m.func.isRequired,m.element.isRequired]).isRequired,in:m.bool,mountOnEnter:m.bool,unmountOnExit:m.bool,appear:m.bool,enter:m.bool,exit:m.bool,timeout:function(t){var n=qB;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:m.func,onEnter:m.func,onEntering:m.func,onEntered:m.func,onExit:m.func,onExiting:m.func,onExited:m.func}:{};function ds(){}Kr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ds,onEntering:ds,onEntered:ds,onExit:ds,onExiting:ds,onExited:ds};Kr.UNMOUNTED=Ba;Kr.EXITED=Si;Kr.ENTERING=Ai;Kr.ENTERED=ys;Kr.EXITING=Xh;function KB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lm(e,t){var n=function(i){return t&&A.isValidElement(i)?t(i):i},r=Object.create(null);return e&&A.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function XB(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var d=r[u][a];c[r[u][a]]=n(d)}c[u]=n(u)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function Pi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ZB(e,t){return Lm(e.children,function(n){return A.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pi(n,"appear",e),enter:Pi(n,"enter",e),exit:Pi(n,"exit",e)})})}function QB(e,t,n){var r=Lm(e.children),o=XB(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(A.isValidElement(a)){var c=i in t,u=i in r,d=t[i],p=A.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[i]=A.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Pi(a,"exit",e),enter:Pi(a,"enter",e)}):!u&&c&&!p?o[i]=A.cloneElement(a,{in:!1}):u&&c&&A.isValidElement(d)&&(o[i]=A.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:Pi(a,"exit",e),enter:Pi(a,"enter",e)}))}}),o}var JB=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},e7={component:"div",childFactory:function(t){return t}},Bm=function(e){_m(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(KB(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,u=i.firstRender;return{children:u?ZB(o,c):QB(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=Lm(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var u=z({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=_e(o,["component","childFactory"]),u=this.state.contextValue,d=JB(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?A.createElement(Wu.Provider,{value:u},d):A.createElement(Wu.Provider,{value:u},A.createElement(i,c,d))},t}(A.Component);Bm.propTypes=process.env.NODE_ENV!=="production"?{component:m.any,children:m.node,appear:m.bool,enter:m.bool,exit:m.bool,childFactory:m.func}:{};Bm.defaultProps=e7;function _A(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:d}=e,[p,g]=D.useState(!1),v=Be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=Be(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&g(!0),D.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),f.jsx("span",{className:v,style:y,children:f.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(_A.propTypes={classes:m.object.isRequired,className:m.string,in:m.bool,onExited:m.func,pulsate:m.bool,rippleSize:m.number,rippleX:m.number,rippleY:m.number,timeout:m.number.isRequired});const fr=Gt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),t7=["center","classes","className"];let zd=e=>e,M1,k1,F1,D1;const Zh=550,n7=80,r7=tn.keyframes(M1||(M1=zd`
|
|
72
|
+
`));const a=I1(r,o,n),c=I1(r,i,n,!0),u=a.direction==="rtl";return f.jsx(Nu,{theme:c,children:f.jsx(tn.ThemeContext.Provider,{value:a,children:f.jsx(kA,{value:u,children:f.jsx(FA,{value:a==null?void 0:a.components,children:t})})})})}process.env.NODE_ENV!=="production"&&($u.propTypes={children:m.node,theme:m.oneOfType([m.func,m.object]).isRequired,themeId:m.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&($u.propTypes=Rl($u.propTypes));function gt(){const e=Em(jm);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[ll]||e}const _B=["theme"];function DA(e){let{theme:t}=e,n=_e(e,_B);const r=t[ll];return f.jsx($u,z({},n,{themeId:r?ll:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(DA.propTypes={children:m.node,theme:m.oneOfType([m.object,m.func]).isRequired});const O1=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function LB({theme:e,color:t,type:n}){const r=sn(e,t),{lighter:o,light:i,main:a,contrastText:c}=r;switch(n){case"filled":return{color:c,backgroundColor:a};case"outlined":return{color:a,border:"1px solid",borderColor:a,backgroundColor:"transparent"};case"combined":return{color:a,border:"1px solid",borderColor:i,backgroundColor:o};default:return{color:a,backgroundColor:o}}}function BB(e){switch(e){case"badge":return{border:"2px solid",fontSize:"0.675rem",width:20,height:20};case"xs":return{fontSize:"0.75rem",width:24,height:24};case"sm":return{fontSize:"0.875rem",width:32,height:32};case"lg":return{fontSize:"1.2rem",width:52,height:52};case"xl":return{fontSize:"1.5rem",width:64,height:64};case"md":default:return{fontSize:"1rem",width:40,height:40}}}const NB=ce(OA,{shouldForwardProp:e=>e!=="color"&&e!=="type"&&e!=="size"})(({theme:e,color:t,type:n,size:r})=>({...BB(r),...LB({theme:e,color:t,type:n}),...r==="badge"&&{borderColor:e.palette.background.default}}));function Vu({variant:e="circular",children:t,color:n="primary",type:r,size:o="md",...i}){const a=gt();return f.jsx(NB,{variant:e,theme:a,color:n,type:r,size:o,...i,children:t})}const P1={p:2.5,"& .MuiCardHeader-action":{m:"0px auto",alignSelf:"center"}},Mn=A.forwardRef(({border:e=!0,boxShadow:t,children:n,subheader:r,content:o=!0,contentSX:i={},darkTitle:a,divider:c=!0,elevation:u,secondary:d,shadow:p,sx:g={},title:v,modal:y=!1,color:b="default",...x},w)=>{const T=gt();return t=T.palette.mode==="dark"?t||!0:t,f.jsxs(S.Card,{elevation:u||0,ref:w,...x,sx:{position:"relative",border:e?"1px solid":"none",borderRadius:1,borderColor:T.palette.mode==="dark"?T.palette.divider:T.palette.grey.A800,boxShadow:t&&(!e||T.palette.mode==="dark")?p||T.customShadows.z0:"inherit",":hover":{boxShadow:t?p||T.customShadows.z0:"inherit"},backgroundColor:b==="default"?T.palette.background.paper:Yh(b==="primary"?T.palette.primary[100]:T.palette.secondary[100],.5),...y&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"calc( 100% - 50px)",sm:"auto"},"& .MuiCardContent-root":{overflowY:"auto",minHeight:"auto",maxHeight:"calc(100vh - 200px)"}},...g},children:[!a&&v?f.jsx(S.CardHeader,{sx:P1,title:v,action:d,subheader:r}):null,a&&v?f.jsx(S.CardHeader,{sx:P1,title:f.jsx(S.Typography,{variant:"h4",children:v}),action:d}):null,v&&c?f.jsx(S.Divider,{}):null,o?f.jsx(S.CardContent,{sx:i,children:n}):null,!o&&n]})});function $B(e){return Bt("MuiTypography",e)}Gt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const VB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],WB=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ut(c,$B,a)},zB=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),j1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},UB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HB=e=>UB[e]||e,Wd=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiTypography"}),o=HB(r.color),i=oA(z({},r,{color:o})),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:v="body1",variantMapping:y=j1}=i,b=_e(i,VB),x=z({},i,{align:a,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:g,variant:v,variantMapping:y}),w=u||(g?"p":y[v]||j1[v])||"span",T=WB(x);return f.jsx(zB,z({as:w,ref:n,ownerState:x,className:Be(T.root,c)},b))});process.env.NODE_ENV!=="production"&&(Wd.propTypes={align:m.oneOf(["center","inherit","justify","left","right"]),children:m.node,classes:m.object,className:m.string,component:m.elementType,gutterBottom:m.bool,noWrap:m.bool,paragraph:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),m.string]),variantMapping:m.object});const GB=Mm(f.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");function Kh(e,t){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Kh(e,t)}function _m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kh(e,t)}const R1={disabled:!1};var qB=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.shape({enter:m.number,exit:m.number,appear:m.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&m.oneOfType([m.string,m.shape({enter:m.string,exit:m.string,active:m.string}),m.shape({enter:m.string,enterDone:m.string,enterActive:m.string,exit:m.string,exitDone:m.string,exitActive:m.string})]);const Wu=A.createContext(null);var YB=function(t){return t.scrollTop},Ba="unmounted",Si="exited",Ai="entering",bs="entered",Xh="exiting",Kr=function(e){_m(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?c?(u=Si,i.appearStatus=Ai):u=bs:r.unmountOnExit||r.mountOnEnter?u=Ba:u=Si,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ba?{status:Si}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ai&&a!==bs&&(i=Ai):(a===Ai||a===bs)&&(i=Xh)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ai){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ws.findDOMNode(this);a&&YB(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Si&&this.setState({status:Ba})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[ws.findDOMNode(this),c],d=u[0],p=u[1],g=this.getTimeouts(),v=c?g.appear:g.enter;if(!o&&!a||R1.disabled){this.safeSetState({status:bs},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:Ai},function(){i.props.onEntering(d,p),i.onTransitionEnd(v,function(){i.safeSetState({status:bs},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:ws.findDOMNode(this);if(!i||R1.disabled){this.safeSetState({status:Si},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Xh},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Si},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ws.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ba)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=_e(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(Wu.Provider,{value:null},typeof a=="function"?a(o,c):A.cloneElement(A.Children.only(a),c))},t}(A.Component);Kr.contextType=Wu;Kr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:m.shape({current:typeof Element>"u"?m.any:function(e,t,n,r,o,i){var a=e[t];return m.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:m.oneOfType([m.func.isRequired,m.element.isRequired]).isRequired,in:m.bool,mountOnEnter:m.bool,unmountOnExit:m.bool,appear:m.bool,enter:m.bool,exit:m.bool,timeout:function(t){var n=qB;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:m.func,onEnter:m.func,onEntering:m.func,onEntered:m.func,onExit:m.func,onExiting:m.func,onExited:m.func}:{};function fs(){}Kr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fs,onEntering:fs,onEntered:fs,onExit:fs,onExiting:fs,onExited:fs};Kr.UNMOUNTED=Ba;Kr.EXITED=Si;Kr.ENTERING=Ai;Kr.ENTERED=bs;Kr.EXITING=Xh;function KB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lm(e,t){var n=function(i){return t&&A.isValidElement(i)?t(i):i},r=Object.create(null);return e&&A.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function XB(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var d=r[u][a];c[r[u][a]]=n(d)}c[u]=n(u)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function Pi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ZB(e,t){return Lm(e.children,function(n){return A.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pi(n,"appear",e),enter:Pi(n,"enter",e),exit:Pi(n,"exit",e)})})}function QB(e,t,n){var r=Lm(e.children),o=XB(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(A.isValidElement(a)){var c=i in t,u=i in r,d=t[i],p=A.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[i]=A.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Pi(a,"exit",e),enter:Pi(a,"enter",e)}):!u&&c&&!p?o[i]=A.cloneElement(a,{in:!1}):u&&c&&A.isValidElement(d)&&(o[i]=A.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:Pi(a,"exit",e),enter:Pi(a,"enter",e)}))}}),o}var JB=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},e7={component:"div",childFactory:function(t){return t}},Bm=function(e){_m(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(KB(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,u=i.firstRender;return{children:u?ZB(o,c):QB(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=Lm(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var u=z({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=_e(o,["component","childFactory"]),u=this.state.contextValue,d=JB(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?A.createElement(Wu.Provider,{value:u},d):A.createElement(Wu.Provider,{value:u},A.createElement(i,c,d))},t}(A.Component);Bm.propTypes=process.env.NODE_ENV!=="production"?{component:m.any,children:m.node,appear:m.bool,enter:m.bool,exit:m.bool,childFactory:m.func}:{};Bm.defaultProps=e7;function _A(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:d}=e,[p,g]=D.useState(!1),v=Be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},b=Be(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&g(!0),D.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),f.jsx("span",{className:v,style:y,children:f.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(_A.propTypes={classes:m.object.isRequired,className:m.string,in:m.bool,onExited:m.func,pulsate:m.bool,rippleSize:m.number,rippleX:m.number,rippleY:m.number,timeout:m.number.isRequired});const fr=Gt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),t7=["center","classes","className"];let zd=e=>e,M1,k1,F1,D1;const Zh=550,n7=80,r7=tn.keyframes(M1||(M1=zd`
|
|
73
73
|
0% {
|
|
74
74
|
transform: scale(0);
|
|
75
75
|
opacity: 0.1;
|
|
@@ -142,12 +142,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
142
142
|
animation-iteration-count: infinite;
|
|
143
143
|
animation-delay: 200ms;
|
|
144
144
|
}
|
|
145
|
-
`),fr.rippleVisible,r7,Zh,({theme:e})=>e.transitions.easing.easeInOut,fr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fr.child,fr.childLeaving,o7,Zh,({theme:e})=>e.transitions.easing.easeInOut,fr.childPulsate,i7,({theme:e})=>e.transitions.easing.easeInOut),LA=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=_e(r,t7),[u,d]=D.useState([]),p=D.useRef(0),g=D.useRef(null);D.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const v=D.useRef(!1),y=
|
|
145
|
+
`),fr.rippleVisible,r7,Zh,({theme:e})=>e.transitions.easing.easeInOut,fr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fr.child,fr.childLeaving,o7,Zh,({theme:e})=>e.transitions.easing.easeInOut,fr.childPulsate,i7,({theme:e})=>e.transitions.easing.easeInOut),LA=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=_e(r,t7),[u,d]=D.useState([]),p=D.useRef(0),g=D.useRef(null);D.useEffect(()=>{g.current&&(g.current(),g.current=null)},[u]);const v=D.useRef(!1),y=Os(),b=D.useRef(null),x=D.useRef(null),w=D.useCallback(P=>{const{pulsate:O,rippleX:k,rippleY:F,rippleSize:B,cb:H}=P;d(q=>[...q,f.jsx(a7,{classes:{ripple:Be(i.ripple,fr.ripple),rippleVisible:Be(i.rippleVisible,fr.rippleVisible),ripplePulsate:Be(i.ripplePulsate,fr.ripplePulsate),child:Be(i.child,fr.child),childLeaving:Be(i.childLeaving,fr.childLeaving),childPulsate:Be(i.childPulsate,fr.childPulsate)},timeout:Zh,pulsate:O,rippleX:k,rippleY:F,rippleSize:B},p.current)]),p.current+=1,g.current=H},[i]),T=D.useCallback((P={},O={},k=()=>{})=>{const{pulsate:F=!1,center:B=o||O.pulsate,fakeElement:H=!1}=O;if((P==null?void 0:P.type)==="mousedown"&&v.current){v.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(v.current=!0);const q=H?null:x.current,U=q?q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ne,te,Y;if(B||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)ne=Math.round(U.width/2),te=Math.round(U.height/2);else{const{clientX:X,clientY:N}=P.touches&&P.touches.length>0?P.touches[0]:P;ne=Math.round(X-U.left),te=Math.round(N-U.top)}if(B)Y=Math.sqrt((2*U.width**2+U.height**2)/3),Y%2===0&&(Y+=1);else{const X=Math.max(Math.abs((q?q.clientWidth:0)-ne),ne)*2+2,N=Math.max(Math.abs((q?q.clientHeight:0)-te),te)*2+2;Y=Math.sqrt(X**2+N**2)}P!=null&&P.touches?b.current===null&&(b.current=()=>{w({pulsate:F,rippleX:ne,rippleY:te,rippleSize:Y,cb:k})},y.start(n7,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:F,rippleX:ne,rippleY:te,rippleSize:Y,cb:k})},[o,w,y]),j=D.useCallback(()=>{T({},{pulsate:!0})},[T]),E=D.useCallback((P,O)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{E(P,O)});return}b.current=null,d(k=>k.length>0?k.slice(1):k),g.current=O},[y]);return D.useImperativeHandle(n,()=>({pulsate:j,start:T,stop:E}),[j,T,E]),f.jsx(s7,z({className:Be(fr.root,i.root,a),ref:x},c,{children:f.jsx(Bm,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(LA.propTypes={center:m.bool,classes:m.object,className:m.string});function l7(e){return Bt("MuiButtonBase",e)}const c7=Gt("MuiButtonBase",["root","disabled","focusVisible"]),u7=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],d7=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ut({root:["root",t&&"disabled",n&&"focusVisible"]},l7,o);return n&&r&&(a.root+=` ${r}`),a},f7=ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${c7.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ud=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:v=!1,LinkComponent:y="a",onBlur:b,onClick:x,onContextMenu:w,onDragLeave:T,onFocus:j,onFocusVisible:E,onKeyDown:P,onKeyUp:O,onMouseDown:k,onMouseLeave:F,onMouseUp:B,onTouchEnd:H,onTouchMove:q,onTouchStart:U,tabIndex:ne=0,TouchRippleProps:te,touchRippleRef:Y,type:X}=r,N=_e(r,u7),Q=D.useRef(null),$=D.useRef(null),oe=on($,Y),{isFocusVisibleRef:W,onFocus:J,onBlur:ue,ref:he}=km(),[de,pe]=D.useState(!1);d&&de&&pe(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{pe(!0),Q.current.focus()}}),[]);const[ge,we]=D.useState(!1);D.useEffect(()=>{we(!0)},[]);const ye=ge&&!p&&!d;D.useEffect(()=>{de&&v&&!p&&ge&&$.current.pulsate()},[p,v,de,ge]);function ve(xe,ft,Vt=g){return go($e=>(ft&&ft($e),!Vt&&$.current&&$.current[xe]($e),!0))}const Ce=ve("start",k),Te=ve("stop",w),fe=ve("stop",T),Ge=ve("stop",B),me=ve("stop",xe=>{de&&xe.preventDefault(),F&&F(xe)}),Qe=ve("start",U),an=ve("stop",H),Et=ve("stop",q),mt=ve("stop",xe=>{ue(xe),W.current===!1&&pe(!1),b&&b(xe)},!1),Bn=go(xe=>{Q.current||(Q.current=xe.currentTarget),J(xe),W.current===!0&&(pe(!0),E&&E(xe)),j&&j(xe)}),Tt=()=>{const xe=Q.current;return u&&u!=="button"&&!(xe.tagName==="A"&&xe.href)},vt=D.useRef(!1),Kt=go(xe=>{v&&!vt.current&&de&&$.current&&xe.key===" "&&(vt.current=!0,$.current.stop(xe,()=>{$.current.start(xe)})),xe.target===xe.currentTarget&&Tt()&&xe.key===" "&&xe.preventDefault(),P&&P(xe),xe.target===xe.currentTarget&&Tt()&&xe.key==="Enter"&&!d&&(xe.preventDefault(),x&&x(xe))}),yt=go(xe=>{v&&xe.key===" "&&$.current&&de&&!xe.defaultPrevented&&(vt.current=!1,$.current.stop(xe,()=>{$.current.pulsate(xe)})),O&&O(xe),x&&xe.target===xe.currentTarget&&Tt()&&xe.key===" "&&!xe.defaultPrevented&&x(xe)});let $t=u;$t==="button"&&(N.href||N.to)&&($t=y);const It={};$t==="button"?(It.type=X===void 0?"button":X,It.disabled=d):(!N.href&&!N.to&&(It.role="button"),d&&(It["aria-disabled"]=d));const ke=on(n,he,Q);process.env.NODE_ENV!=="production"&&D.useEffect(()=>{ye&&!$.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
146
146
|
`))},[ye]);const Fe=z({},r,{centerRipple:i,component:u,disabled:d,disableRipple:p,disableTouchRipple:g,focusRipple:v,tabIndex:ne,focusVisible:de}),Ie=d7(Fe);return f.jsxs(f7,z({as:$t,className:Be(Ie.root,c),ownerState:Fe,onBlur:mt,onClick:x,onContextMenu:Te,onFocus:Bn,onKeyDown:Kt,onKeyUp:yt,onMouseDown:Ce,onMouseLeave:me,onMouseUp:Ge,onDragLeave:fe,onTouchEnd:an,onTouchMove:Et,onTouchStart:Qe,ref:ke,tabIndex:d?-1:ne,type:X},It,N,{children:[a,ye?f.jsx(LA,z({ref:oe,center:i},te)):null]}))});process.env.NODE_ENV!=="production"&&(Ud.propTypes={action:Bd,centerRipple:m.bool,children:m.node,classes:m.object,className:m.string,component:VL,disabled:m.bool,disableRipple:m.bool,disableTouchRipple:m.bool,focusRipple:m.bool,focusVisibleClassName:m.string,href:m.any,LinkComponent:m.elementType,onBlur:m.func,onClick:m.func,onContextMenu:m.func,onDragLeave:m.func,onFocus:m.func,onFocusVisible:m.func,onKeyDown:m.func,onKeyUp:m.func,onMouseDown:m.func,onMouseLeave:m.func,onMouseUp:m.func,onTouchEnd:m.func,onTouchMove:m.func,onTouchStart:m.func,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,TouchRippleProps:m.object,touchRippleRef:m.oneOfType([m.func,m.shape({current:m.shape({pulsate:m.func.isRequired,start:m.func.isRequired,stop:m.func.isRequired})})]),type:m.oneOfType([m.oneOf(["button","reset","submit"]),m.string])});const p7=["slots","slotProps"],h7=ce(Ud)(({theme:e})=>z({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":z({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":z({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:s1(e.palette.grey[200],.12)}:{backgroundColor:s1(e.palette.grey[600],.12)})})),g7=ce(GB)({width:24,height:16});function BA(e){const{slots:t={},slotProps:n={}}=e,r=_e(e,p7),o=e;return f.jsx("li",{children:f.jsx(h7,z({focusRipple:!0},r,{ownerState:o,children:f.jsx(g7,z({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(BA.propTypes={slotProps:m.shape({collapsedIcon:m.oneOfType([m.func,m.object])}),slots:m.shape({CollapsedIcon:m.elementType}),sx:m.object});function m7(e){return Bt("MuiBreadcrumbs",e)}const v7=Gt("MuiBreadcrumbs",["root","ol","li","separator"]),y7=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],b7=e=>{const{classes:t}=e;return Ut({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},m7,t)},x7=ce(Wd,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${v7.li}`]:t.li},t.root]})({}),C7=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),w7=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function S7(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,f.jsx(w7,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const mu=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:g=1,maxItems:v=8,separator:y="/"}=r,b=_e(r,y7),[x,w]=D.useState(!1),T=z({},r,{component:a,expanded:x,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:g,maxItems:v,separator:y}),j=b7(T),E=Bu({elementType:c.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:T}),P=D.useRef(null),O=F=>{const B=()=>{w(!0);const H=P.current.querySelector("a[href],button,[tabindex]");H&&H.focus()};return g+p>=F.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${g}} >= maxItems={${v}}`].join(`
|
|
147
147
|
`)),F):[...F.slice(0,g),f.jsx(BA,{"aria-label":d,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:B},"ellipsis"),...F.slice(F.length-p,F.length)]},k=D.Children.toArray(o).filter(F=>(process.env.NODE_ENV!=="production"&&zh.isFragment(F)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
148
148
|
`)),D.isValidElement(F))).map((F,B)=>f.jsx("li",{className:j.li,children:F},`child-${B}`));return f.jsx(x7,z({ref:n,component:a,color:"text.secondary",className:Be(j.root,i),ownerState:T},b,{children:f.jsx(C7,{className:j.ol,ref:P,ownerState:T,children:S7(x||v&&k.length<=v?k:O(k),j.separator,y,T)})}))});process.env.NODE_ENV!=="production"&&(mu.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,expandText:m.string,itemsAfterCollapse:hu,itemsBeforeCollapse:hu,maxItems:hu,separator:m.node,slotProps:m.shape({collapsedIcon:m.oneOfType([m.func,m.object])}),slots:m.shape({CollapsedIcon:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function A7({id:e,title:t,icon:n,url:r,last:o}){const i=n||We.ApartmentOutlined;return f.jsxs(S.Typography,{component:ut.Link,to:r,variant:o?"subtitle1":"h6",sx:{textDecoration:"none",display:"inline-flex",alignItems:"center"},color:"textSecondary",children:[n?f.jsx(i,{style:{marginRight:8,fontSize:"0.875rem"}}):null,t]},e)}function NA({home:e="Home",card:t,divider:n=!0,icon:r,icons:o,maxItems:i,navigation:a,rightAlign:c,separator:u,title:d,titleBottom:p,sx:g,breadcrumbs:v,mode:y="navigation",...b}){const x=gt(),w=ut.useLocation(),[T,j]=A.useState(),[E,P]=A.useState(),O=w.pathname,k={marginRight:x.spacing(.75),marginTop:`-${x.spacing(.25)}`,width:"1rem",height:"1rem",color:x.palette.secondary.main};function F(Q){Q.children&&Q.children.filter($=>($.type&&$.type==="collapse"?(F($),$.url===O&&(j($),P($))):$.type&&$.type==="item"&&O.includes($.url)&&(j(Q),P($)),!1))}A.useEffect(()=>{var Q;(Q=a==null?void 0:a.items)==null||Q.map($=>($.type&&$.type==="group"&&F($),!1))});const B=u,H=u?f.jsx(B,{style:{fontSize:"0.75rem",marginTop:2}}):"/",q={mb:2,bgcolor:t===!1?"transparent":"inherit",...g,[x.breakpoints.down("sm")]:{mb:1}};let U,ne,te=f.jsx(S.Typography,{}),Y="",X,N;return y==="breadcrumbs"?f.jsxs(Mn,{border:t,sx:q,...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[d&&!p?f.jsx(S.Grid,{item:!0,children:f.jsx(S.Typography,{variant:"h2",children:E.title})}):null,f.jsx(S.Grid,{item:!0,children:f.jsxs(mu,{"aria-label":"breadcrumb",maxItems:i||8,separator:H,sx:{[x.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(We.HomeOutlined,{style:k}):null,r&&!o?f.jsx(We.HomeFilled,{style:{...k,marginRight:0}}):null,!r||o?e:null]}),v.map(A7)]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:E.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]}):(T&&T.type==="collapse"&&T.breadcrumbs===!0&&(X=T.icon?T.icon:We.ApartmentOutlined,U=f.jsxs(S.Typography,{component:ut.Link,to:(E==null?void 0:E.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[o?f.jsx(X,{style:k}):null,T.title]}),te=f.jsxs(Mn,{border:t,sx:q,...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[f.jsx(S.Grid,{item:!0,children:f.jsxs(mu,{"aria-label":"breadcrumb",maxItems:i||8,separator:H,children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(We.HomeOutlined,{style:k}):null,r&&!o?f.jsx(We.HomeFilled,{style:{...k,marginRight:0}}):null,!r||o?e:null]}),U]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:T.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]})),E&&E.type==="item"&&(Y=E.title,N=E.icon?E.icon:We.ApartmentOutlined,ne=f.jsxs(S.Typography,{variant:"subtitle1",color:"textPrimary",component:ut.Link,to:E.url,sx:{textDecoration:"none"},children:[o?f.jsx(N,{style:k}):null,Y]}),E.breadcrumbs!==!1&&(te=f.jsxs(Mn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...g,[x.breakpoints.down("sm")]:{mb:1}},...b,content:t,shadow:"none",children:[f.jsxs(S.Grid,{container:!0,direction:c?"row":"column",justifyContent:c?"space-between":"flex-start",alignItems:c?"center":"flex-start",spacing:1,children:[d&&!p?f.jsx(S.Grid,{item:!0,children:f.jsx(S.Typography,{variant:"h2",children:E.title})}):null,f.jsx(S.Grid,{item:!0,children:f.jsxs(mu,{"aria-label":"breadcrumb",maxItems:i||8,separator:H,children:[e!==!1&&f.jsxs(S.Typography,{component:ut.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[o?f.jsx(We.HomeOutlined,{style:k}):null,r&&!o?f.jsx(We.HomeFilled,{style:{...k,marginRight:0}}):null,!r||o?e:null]}),U,ne]})}),d&&p?f.jsx(S.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(S.Typography,{variant:"h2",children:E.title})}):null]}),t===!1&&n!==!1&&f.jsx(S.Divider,{sx:{mt:2}})]}))),te)}function Nm({color:e,size:t,variant:n,sx:r}){const o=gt(),i=sn(o,e),{main:a}=i;return f.jsx(S.Box,{component:"span",sx:{width:t||8,height:t||8,borderRadius:"50%",bgcolor:n==="outlined"?"":a,...n==="outlined"&&{border:`1px solid ${a}`},...r}})}function Xs(e,t){switch(t){case"secondary":return e.customShadows.secondary;case"error":return e.customShadows.error;case"warning":return e.customShadows.warning;case"info":return e.customShadows.info;case"success":return e.customShadows.success;case"primaryButton":return e.customShadows.primaryButton;case"secondaryButton":return e.customShadows.secondaryButton;case"errorButton":return e.customShadows.errorButton;case"warningButton":return e.customShadows.warningButton;case"infoButton":return e.customShadows.infoButton;case"successButton":return e.customShadows.successButton;default:return e.customShadows.primary}}function E7(e){return Bt("MuiIconButton",e)}const T7=Gt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),I7=["edge","children","className","color","disabled","disableFocusRipple","size"],O7=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return Ut(a,E7,t)},P7=ce(Ud,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&z({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":z({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${T7.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$m=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium"}=r,g=_e(r,I7),v=z({},r,{edge:o,color:c,disabled:u,disableFocusRipple:d,size:p}),y=O7(v);return f.jsx(P7,z({className:Be(y.root,a),centerRipple:!0,focusRipple:!d,disabled:u,ref:n},g,{ownerState:v,children:i}))});process.env.NODE_ENV!=="production"&&($m.propTypes={children:Eo(m.node,e=>D.Children.toArray(e.children).some(n=>D.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
149
149
|
`)):null),classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,disableFocusRipple:m.bool,disableRipple:m.bool,edge:m.oneOf(["end","start",!1]),size:m.oneOfType([m.oneOf(["small","medium","large"]),m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function j7({variant:e,theme:t,color:n}){const r=sn(t,n),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d=`${n}Button`,p=Xs(t,d),g={"&::after":{boxShadow:`0 0 6px 6px ${Je(c,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Je(c,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:a},...g};case"light":return{color:c,backgroundColor:o,"&:hover":{backgroundColor:i},...g};case"shadow":return{boxShadow:p,color:u,backgroundColor:c,"&:hover":{boxShadow:"none",backgroundColor:a},...g};case"outlined":return{"&:hover":{backgroundColor:"transparent",color:a,borderColor:a},...g};case"dashed":return{backgroundColor:o,"&:hover":{color:a,borderColor:a},...g};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...g}}}const R7=ce($m,{shouldForwardProp:e=>e!=="variant"&&e!=="shape"})(({theme:e,variant:t,shape:n,color:r})=>({position:"relative","::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...n==="rounded"&&{borderRadius:"50%"},...t==="outlined"&&{border:"1px solid",borderColor:"inherit"},...t==="dashed"&&{border:"1px dashed",borderColor:"inherit"},...t!=="text"&&{"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},...j7({variant:t,theme:e,color:r})})),Hd=A.forwardRef(({variant:e="text",shape:t="square",children:n,color:r="primary",...o},i)=>{const a=gt();return f.jsx(R7,{ref:i,disableRipple:!0,variant:e,shape:t,theme:a,color:r,...o,children:n})}),M7={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
150
|
-
`)),iA.configure(e)}},k7=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ne,createChainedFunction:Hh,createSvgIcon:Mm,debounce:zL,deprecatedPropType:UL,isMuiElement:HL,ownerDocument:Kn,ownerWindow:Nd,requirePropFactory:GL,setRef:$s,unstable_ClassNameGenerator:M7,unstable_useEnhancedEffect:Gr,unstable_useId:$d,unsupportedProp:YL,useControlled:AA,useEventCallback:go,useForkRef:on,useIsFocusVisible:km},Symbol.toStringTag,{value:"Module"}));function F7(e){return typeof e=="string"}function D7(e,t,n){return e===void 0||F7(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}const _7={disableDefaultClasses:!1},L7=D.createContext(_7);function B7(e){const{disableDefaultClasses:t}=D.useContext(L7);return n=>t?"":e(n)}function N7(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $7(e,t,n){return typeof e=="function"?e(t,n):e}function _1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function V7(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=z({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=z({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=N7(z({},o,r)),c=_1(r),u=_1(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=z({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=z({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const W7=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function z7(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_e(e,W7),c=i?{}:$7(r,o),{props:u,internalRef:d}=V7(z({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return D7(n,z({},u,{ref:p}),o)}var kn="top",yr="bottom",br="right",Fn="left",Vm="auto",Fl=[kn,yr,br,Fn],Vs="start",cl="end",U7="clippingParents",$A="viewport",Ma="popper",H7="reference",L1=Fl.reduce(function(e,t){return e.concat([t+"-"+Vs,t+"-"+cl])},[]),VA=[].concat(Fl,[Vm]).reduce(function(e,t){return e.concat([t,t+"-"+Vs,t+"-"+cl])},[]),G7="beforeRead",q7="read",Y7="afterRead",K7="beforeMain",X7="main",Z7="afterMain",Q7="beforeWrite",J7="write",eN="afterWrite",tN=[G7,q7,Y7,K7,X7,Z7,Q7,J7,eN];function qr(e){return e?(e.nodeName||"").toLowerCase():null}function Zn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Li(e){var t=Zn(e).Element;return e instanceof t||e instanceof Element}function gr(e){var t=Zn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wm(e){if(typeof ShadowRoot>"u")return!1;var t=Zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gr(i)||!qr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function rN(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(u,d){return u[d]="",u},{});!gr(o)||!qr(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const oN={name:"applyStyles",enabled:!0,phase:"write",fn:nN,effect:rN,requires:["computeStyles"]};function Hr(e){return e.split("-")[0]}var Mi=Math.max,zu=Math.min,Ws=Math.round;function Qh(){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 WA(){return!/^((?!chrome|android).)*safari/i.test(Qh())}function zs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gr(e)&&(o=e.offsetWidth>0&&Ws(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ws(r.height)/e.offsetHeight||1);var a=Li(e)?Zn(e):window,c=a.visualViewport,u=!WA()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/i,g=r.width/o,v=r.height/i;return{width:g,height:v,top:p,right:d+g,bottom:p+v,left:d,x:d,y:p}}function zm(e){var t=zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function So(e){return Zn(e).getComputedStyle(e)}function iN(e){return["table","td","th"].indexOf(qr(e))>=0}function ti(e){return((Li(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gd(e){return qr(e)==="html"?e:e.assignedSlot||e.parentNode||(Wm(e)?e.host:null)||ti(e)}function B1(e){return!gr(e)||So(e).position==="fixed"?null:e.offsetParent}function sN(e){var t=/firefox/i.test(Qh()),n=/Trident/i.test(Qh());if(n&&gr(e)){var r=So(e);if(r.position==="fixed")return null}var o=Gd(e);for(Wm(o)&&(o=o.host);gr(o)&&["html","body"].indexOf(qr(o))<0;){var i=So(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Dl(e){for(var t=Zn(e),n=B1(e);n&&iN(n)&&So(n).position==="static";)n=B1(n);return n&&(qr(n)==="html"||qr(n)==="body"&&So(n).position==="static")?t:n||sN(e)||t}function Um(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ga(e,t,n){return Mi(e,zu(t,n))}function aN(e,t,n){var r=Ga(e,t,n);return r>n?n:r}function UA(){return{top:0,right:0,bottom:0,left:0}}function HA(e){return Object.assign({},UA(),e)}function GA(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lN=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,HA(typeof t!="number"?t:GA(t,Fl))};function cN(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Hr(n.placement),u=Um(c),d=[Fn,br].indexOf(c)>=0,p=d?"height":"width";if(!(!i||!a)){var g=lN(o.padding,n),v=zm(i),y=u==="y"?kn:Fn,b=u==="y"?yr:br,x=n.rects.reference[p]+n.rects.reference[u]-a[u]-n.rects.popper[p],w=a[u]-n.rects.reference[u],T=Dl(i),j=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,E=x/2-w/2,P=g[y],O=j-v[p]-g[b],k=j/2-v[p]/2+E,F=Ga(P,k,O),B=u;n.modifiersData[r]=(t={},t[B]=F,t.centerOffset=F-k,t)}}function uN(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zA(t.elements.popper,o)&&(t.elements.arrow=o))}const dN={name:"arrow",enabled:!0,phase:"main",fn:cN,effect:uN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Us(e){return e.split("-")[1]}var fN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pN(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ws(n*o)/o||0,y:Ws(r*o)/o||0}}function N1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,v=a.x,y=v===void 0?0:v,b=a.y,x=b===void 0?0:b,w=typeof p=="function"?p({x:y,y:x}):{x:y,y:x};y=w.x,x=w.y;var T=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),E=Fn,P=kn,O=window;if(d){var k=Dl(n),F="clientHeight",B="clientWidth";if(k===Zn(n)&&(k=ti(n),So(k).position!=="static"&&c==="absolute"&&(F="scrollHeight",B="scrollWidth")),k=k,o===kn||(o===Fn||o===br)&&i===cl){P=yr;var H=g&&k===O&&O.visualViewport?O.visualViewport.height:k[F];x-=H-r.height,x*=u?1:-1}if(o===Fn||(o===kn||o===yr)&&i===cl){E=br;var q=g&&k===O&&O.visualViewport?O.visualViewport.width:k[B];y-=q-r.width,y*=u?1:-1}}var U=Object.assign({position:c},d&&fN),ne=p===!0?pN({x:y,y:x},Zn(n)):{x:y,y:x};if(y=ne.x,x=ne.y,u){var te;return Object.assign({},U,(te={},te[P]=j?"0":"",te[E]=T?"0":"",te.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",te))}return Object.assign({},U,(t={},t[P]=j?x+"px":"",t[E]=T?y+"px":"",t.transform="",t))}function hN(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Hr(t.placement),variation:Us(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,N1(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,N1(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hN,data:{}};var Qc={passive:!0};function mN(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,u=Zn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,Qc)}),c&&u.addEventListener("resize",n.update,Qc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Qc)}),c&&u.removeEventListener("resize",n.update,Qc)}}const vN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mN,data:{}};var yN={left:"right",right:"left",bottom:"top",top:"bottom"};function vu(e){return e.replace(/left|right|bottom|top/g,function(t){return yN[t]})}var bN={start:"end",end:"start"};function $1(e){return e.replace(/start|end/g,function(t){return bN[t]})}function Hm(e){var t=Zn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gm(e){return zs(ti(e)).left+Hm(e).scrollLeft}function xN(e,t){var n=Zn(e),r=ti(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;var d=WA();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c+Gm(e),y:u}}function CN(e){var t,n=ti(e),r=Hm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Mi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Mi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Gm(e),u=-r.scrollTop;return So(o||n).direction==="rtl"&&(c+=Mi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}function qm(e){var t=So(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function qA(e){return["html","body","#document"].indexOf(qr(e))>=0?e.ownerDocument.body:gr(e)&&qm(e)?e:qA(Gd(e))}function qa(e,t){var n;t===void 0&&(t=[]);var r=qA(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Zn(r),a=o?[i].concat(i.visualViewport||[],qm(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(qa(Gd(a)))}function Jh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wN(e,t){var n=zs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function V1(e,t,n){return t===$A?Jh(xN(e,n)):Li(t)?wN(t,n):Jh(CN(ti(e)))}function SN(e){var t=qa(Gd(e)),n=["absolute","fixed"].indexOf(So(e).position)>=0,r=n&&gr(e)?Dl(e):e;return Li(r)?t.filter(function(o){return Li(o)&&zA(o,r)&&qr(o)!=="body"}):[]}function AN(e,t,n,r){var o=t==="clippingParents"?SN(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(u,d){var p=V1(e,d,r);return u.top=Mi(p.top,u.top),u.right=zu(p.right,u.right),u.bottom=zu(p.bottom,u.bottom),u.left=Mi(p.left,u.left),u},V1(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function YA(e){var t=e.reference,n=e.element,r=e.placement,o=r?Hr(r):null,i=r?Us(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case kn:u={x:a,y:t.y-n.height};break;case yr:u={x:a,y:t.y+t.height};break;case br:u={x:t.x+t.width,y:c};break;case Fn:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?Um(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case Vs:u[d]=u[d]-(t[p]/2-n[p]/2);break;case cl:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function ul(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,u=c===void 0?U7:c,d=n.rootBoundary,p=d===void 0?$A:d,g=n.elementContext,v=g===void 0?Ma:g,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,w=x===void 0?0:x,T=HA(typeof w!="number"?w:GA(w,Fl)),j=v===Ma?H7:Ma,E=e.rects.popper,P=e.elements[b?j:v],O=AN(Li(P)?P:P.contextElement||ti(e.elements.popper),u,p,a),k=zs(e.elements.reference),F=YA({reference:k,element:E,strategy:"absolute",placement:o}),B=Jh(Object.assign({},E,F)),H=v===Ma?B:k,q={top:O.top-H.top+T.top,bottom:H.bottom-O.bottom+T.bottom,left:O.left-H.left+T.left,right:H.right-O.right+T.right},U=e.modifiersData.offset;if(v===Ma&&U){var ne=U[o];Object.keys(q).forEach(function(te){var Y=[br,yr].indexOf(te)>=0?1:-1,X=[kn,yr].indexOf(te)>=0?"y":"x";q[te]+=ne[X]*Y})}return q}function EN(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?VA:u,p=Us(r),g=p?c?L1:L1.filter(function(b){return Us(b)===p}):Fl,v=g.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=g);var y=v.reduce(function(b,x){return b[x]=ul(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Hr(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function TN(e){if(Hr(e)===Vm)return[];var t=vu(e);return[$1(e),t,$1(t)]}function IN(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,x=n.allowedAutoPlacements,w=t.options.placement,T=Hr(w),j=T===w,E=u||(j||!b?[vu(w)]:TN(w)),P=[w].concat(E).reduce(function(de,pe){return de.concat(Hr(pe)===Vm?EN(t,{placement:pe,boundary:p,rootBoundary:g,padding:d,flipVariations:b,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,k=t.rects.popper,F=new Map,B=!0,H=P[0],q=0;q<P.length;q++){var U=P[q],ne=Hr(U),te=Us(U)===Vs,Y=[kn,yr].indexOf(ne)>=0,X=Y?"width":"height",N=ul(t,{placement:U,boundary:p,rootBoundary:g,altBoundary:v,padding:d}),Q=Y?te?br:Fn:te?yr:kn;O[X]>k[X]&&(Q=vu(Q));var $=vu(Q),oe=[];if(i&&oe.push(N[ne]<=0),c&&oe.push(N[Q]<=0,N[$]<=0),oe.every(function(de){return de})){H=U,B=!1;break}F.set(U,oe)}if(B)for(var W=b?3:1,J=function(pe){var ge=P.find(function(we){var ye=F.get(we);if(ye)return ye.slice(0,pe).every(function(ve){return ve})});if(ge)return H=ge,"break"},ue=W;ue>0;ue--){var he=J(ue);if(he==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const ON={name:"flip",enabled:!0,phase:"main",fn:IN,requiresIfExists:["offset"],data:{_skip:!1}};function W1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function z1(e){return[kn,br,yr,Fn].some(function(t){return e[t]>=0})}function PN(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ul(t,{elementContext:"reference"}),c=ul(t,{altBoundary:!0}),u=W1(a,r),d=W1(c,o,i),p=z1(u),g=z1(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const jN={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PN};function RN(e,t,n){var r=Hr(e),o=[Fn,kn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[Fn,br].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function MN(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=VA.reduce(function(p,g){return p[g]=RN(g,t.rects,i),p},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const kN={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MN};function FN(e){var t=e.state,n=e.name;t.modifiersData[n]=YA({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DN={name:"popperOffsets",enabled:!0,phase:"read",fn:FN,data:{}};function _N(e){return e==="x"?"y":"x"}function LN(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,x=b===void 0?0:b,w=ul(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:p}),T=Hr(t.placement),j=Us(t.placement),E=!j,P=Um(T),O=_N(P),k=t.modifiersData.popperOffsets,F=t.rects.reference,B=t.rects.popper,H=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,q=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ne={x:0,y:0};if(k){if(i){var te,Y=P==="y"?kn:Fn,X=P==="y"?yr:br,N=P==="y"?"height":"width",Q=k[P],$=Q+w[Y],oe=Q-w[X],W=y?-B[N]/2:0,J=j===Vs?F[N]:B[N],ue=j===Vs?-B[N]:-F[N],he=t.elements.arrow,de=y&&he?zm(he):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UA(),ge=pe[Y],we=pe[X],ye=Ga(0,F[N],de[N]),ve=E?F[N]/2-W-ye-ge-q.mainAxis:J-ye-ge-q.mainAxis,Ce=E?-F[N]/2+W+ye+we+q.mainAxis:ue+ye+we+q.mainAxis,Te=t.elements.arrow&&Dl(t.elements.arrow),fe=Te?P==="y"?Te.clientTop||0:Te.clientLeft||0:0,Ge=(te=U==null?void 0:U[P])!=null?te:0,me=Q+ve-Ge-fe,Qe=Q+Ce-Ge,an=Ga(y?zu($,me):$,Q,y?Mi(oe,Qe):oe);k[P]=an,ne[P]=an-Q}if(c){var Et,mt=P==="x"?kn:Fn,Bn=P==="x"?yr:br,Tt=k[O],vt=O==="y"?"height":"width",Kt=Tt+w[mt],yt=Tt-w[Bn],$t=[kn,Fn].indexOf(T)!==-1,It=(Et=U==null?void 0:U[O])!=null?Et:0,ke=$t?Kt:Tt-F[vt]-B[vt]-It+q.altAxis,Fe=$t?Tt+F[vt]+B[vt]-It-q.altAxis:yt,Ie=y&&$t?aN(ke,Tt,Fe):Ga(y?ke:Kt,Tt,y?Fe:yt);k[O]=Ie,ne[O]=Ie-Tt}t.modifiersData[r]=ne}}const BN={name:"preventOverflow",enabled:!0,phase:"main",fn:LN,requiresIfExists:["offset"]};function NN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $N(e){return e===Zn(e)||!gr(e)?Hm(e):NN(e)}function VN(e){var t=e.getBoundingClientRect(),n=Ws(t.width)/e.offsetWidth||1,r=Ws(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WN(e,t,n){n===void 0&&(n=!1);var r=gr(t),o=gr(t)&&VN(t),i=ti(t),a=zs(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((qr(t)!=="body"||qm(i))&&(c=$N(t)),gr(t)?(u=zs(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Gm(i))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function zN(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function UN(e){var t=zN(e);return tN.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function HN(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GN(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var U1={placement:"bottom",modifiers:[],strategy:"absolute"};function H1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qN(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?U1:o;return function(c,u,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},U1,i),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],v=!1,y={state:p,setOptions:function(T){var j=typeof T=="function"?T(p.options):T;x(),p.options=Object.assign({},i,p.options,j),p.scrollParents={reference:Li(c)?qa(c):c.contextElement?qa(c.contextElement):[],popper:qa(u)};var E=UN(GN([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(P){return P.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var T=p.elements,j=T.reference,E=T.popper;if(H1(j,E)){p.rects={reference:WN(j,Dl(E),p.options.strategy==="fixed"),popper:zm(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(q){return p.modifiersData[q.name]=Object.assign({},q.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var O=p.orderedModifiers[P],k=O.fn,F=O.options,B=F===void 0?{}:F,H=O.name;typeof k=="function"&&(p=k({state:p,options:B,name:H,instance:y})||p)}}}},update:HN(function(){return new Promise(function(w){y.forceUpdate(),w(p)})}),destroy:function(){x(),v=!0}};if(!H1(c,u))return y;y.setOptions(d).then(function(w){!v&&d.onFirstUpdate&&d.onFirstUpdate(w)});function b(){p.orderedModifiers.forEach(function(w){var T=w.name,j=w.options,E=j===void 0?{}:j,P=w.effect;if(typeof P=="function"){var O=P({state:p,name:T,instance:y,options:E}),k=function(){};g.push(O||k)}})}function x(){g.forEach(function(w){return w()}),g=[]}return y}}var YN=[vN,DN,gN,oN,kN,ON,BN,dN,jN],KA=qN({defaultModifiers:YN});function KN(e){return typeof e=="function"?e():e}const Uu=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Gr(()=>{i||c(KN(o)||document.body)},[o,i]),Gr(()=>{if(a&&!i)return $s(n,a),()=>{$s(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&gw.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:m.node,container:m.oneOfType([wo,m.func]),disablePortal:m.bool});process.env.NODE_ENV!=="production"&&(Uu.propTypes=Rl(Uu.propTypes));function XN(e){return Bt("MuiPopper",e)}Gt("MuiPopper",["root"]);const ZN=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],QN=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function JN(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 Hu(e){return typeof e=="function"?e():e}function qd(e){return e.nodeType!==void 0}function e$(e){return!qd(e)}const t$=()=>Ut({root:["root"]},B7(XN)),n$={},r$=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=_e(t,ZN),T=D.useRef(null),j=on(T,n),E=D.useRef(null),P=on(E,v),O=D.useRef(P);Gr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>E.current,[]);const k=JN(p,a),[F,B]=D.useState(k),[H,q]=D.useState(Hu(o));D.useEffect(()=>{E.current&&E.current.forceUpdate()}),D.useEffect(()=>{o&&q(Hu(o))},[o]),Gr(()=>{if(!H||!d)return;const X=$=>{B($.placement)};if(process.env.NODE_ENV!=="production"&&H&&qd(H)&&H.nodeType===1){const $=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
150
|
+
`)),iA.configure(e)}},k7=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ne,createChainedFunction:Hh,createSvgIcon:Mm,debounce:zL,deprecatedPropType:UL,isMuiElement:HL,ownerDocument:Kn,ownerWindow:Nd,requirePropFactory:GL,setRef:$s,unstable_ClassNameGenerator:M7,unstable_useEnhancedEffect:Gr,unstable_useId:$d,unsupportedProp:YL,useControlled:AA,useEventCallback:go,useForkRef:on,useIsFocusVisible:km},Symbol.toStringTag,{value:"Module"}));function F7(e){return typeof e=="string"}function D7(e,t,n){return e===void 0||F7(e)?t:z({},t,{ownerState:z({},t.ownerState,n)})}const _7={disableDefaultClasses:!1},L7=D.createContext(_7);function B7(e){const{disableDefaultClasses:t}=D.useContext(L7);return n=>t?"":e(n)}function N7(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $7(e,t,n){return typeof e=="function"?e(t,n):e}function _1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function V7(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=Be(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=z({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=z({},n,o,r);return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const a=N7(z({},o,r)),c=_1(r),u=_1(o),d=t(a),p=Be(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=z({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=z({},d,n,u,c);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:d.ref}}const W7=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function z7(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_e(e,W7),c=i?{}:$7(r,o),{props:u,internalRef:d}=V7(z({},a,{externalSlotProps:c})),p=on(d,c==null?void 0:c.ref,(t=e.additionalProps)==null?void 0:t.ref);return D7(n,z({},u,{ref:p}),o)}var kn="top",yr="bottom",br="right",Fn="left",Vm="auto",Fl=[kn,yr,br,Fn],Vs="start",cl="end",U7="clippingParents",$A="viewport",Ma="popper",H7="reference",L1=Fl.reduce(function(e,t){return e.concat([t+"-"+Vs,t+"-"+cl])},[]),VA=[].concat(Fl,[Vm]).reduce(function(e,t){return e.concat([t,t+"-"+Vs,t+"-"+cl])},[]),G7="beforeRead",q7="read",Y7="afterRead",K7="beforeMain",X7="main",Z7="afterMain",Q7="beforeWrite",J7="write",eN="afterWrite",tN=[G7,q7,Y7,K7,X7,Z7,Q7,J7,eN];function qr(e){return e?(e.nodeName||"").toLowerCase():null}function Zn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bi(e){var t=Zn(e).Element;return e instanceof t||e instanceof Element}function gr(e){var t=Zn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wm(e){if(typeof ShadowRoot>"u")return!1;var t=Zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nN(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gr(i)||!qr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function rN(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(u,d){return u[d]="",u},{});!gr(o)||!qr(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const oN={name:"applyStyles",enabled:!0,phase:"write",fn:nN,effect:rN,requires:["computeStyles"]};function Hr(e){return e.split("-")[0]}var ki=Math.max,zu=Math.min,Ws=Math.round;function Qh(){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 WA(){return!/^((?!chrome|android).)*safari/i.test(Qh())}function zs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gr(e)&&(o=e.offsetWidth>0&&Ws(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ws(r.height)/e.offsetHeight||1);var a=Bi(e)?Zn(e):window,c=a.visualViewport,u=!WA()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/i,g=r.width/o,v=r.height/i;return{width:g,height:v,top:p,right:d+g,bottom:p+v,left:d,x:d,y:p}}function zm(e){var t=zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zA(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function So(e){return Zn(e).getComputedStyle(e)}function iN(e){return["table","td","th"].indexOf(qr(e))>=0}function ti(e){return((Bi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gd(e){return qr(e)==="html"?e:e.assignedSlot||e.parentNode||(Wm(e)?e.host:null)||ti(e)}function B1(e){return!gr(e)||So(e).position==="fixed"?null:e.offsetParent}function sN(e){var t=/firefox/i.test(Qh()),n=/Trident/i.test(Qh());if(n&&gr(e)){var r=So(e);if(r.position==="fixed")return null}var o=Gd(e);for(Wm(o)&&(o=o.host);gr(o)&&["html","body"].indexOf(qr(o))<0;){var i=So(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Dl(e){for(var t=Zn(e),n=B1(e);n&&iN(n)&&So(n).position==="static";)n=B1(n);return n&&(qr(n)==="html"||qr(n)==="body"&&So(n).position==="static")?t:n||sN(e)||t}function Um(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ga(e,t,n){return ki(e,zu(t,n))}function aN(e,t,n){var r=Ga(e,t,n);return r>n?n:r}function UA(){return{top:0,right:0,bottom:0,left:0}}function HA(e){return Object.assign({},UA(),e)}function GA(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lN=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,HA(typeof t!="number"?t:GA(t,Fl))};function cN(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Hr(n.placement),u=Um(c),d=[Fn,br].indexOf(c)>=0,p=d?"height":"width";if(!(!i||!a)){var g=lN(o.padding,n),v=zm(i),y=u==="y"?kn:Fn,b=u==="y"?yr:br,x=n.rects.reference[p]+n.rects.reference[u]-a[u]-n.rects.popper[p],w=a[u]-n.rects.reference[u],T=Dl(i),j=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,E=x/2-w/2,P=g[y],O=j-v[p]-g[b],k=j/2-v[p]/2+E,F=Ga(P,k,O),B=u;n.modifiersData[r]=(t={},t[B]=F,t.centerOffset=F-k,t)}}function uN(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zA(t.elements.popper,o)&&(t.elements.arrow=o))}const dN={name:"arrow",enabled:!0,phase:"main",fn:cN,effect:uN,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Us(e){return e.split("-")[1]}var fN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pN(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ws(n*o)/o||0,y:Ws(r*o)/o||0}}function N1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,v=a.x,y=v===void 0?0:v,b=a.y,x=b===void 0?0:b,w=typeof p=="function"?p({x:y,y:x}):{x:y,y:x};y=w.x,x=w.y;var T=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),E=Fn,P=kn,O=window;if(d){var k=Dl(n),F="clientHeight",B="clientWidth";if(k===Zn(n)&&(k=ti(n),So(k).position!=="static"&&c==="absolute"&&(F="scrollHeight",B="scrollWidth")),k=k,o===kn||(o===Fn||o===br)&&i===cl){P=yr;var H=g&&k===O&&O.visualViewport?O.visualViewport.height:k[F];x-=H-r.height,x*=u?1:-1}if(o===Fn||(o===kn||o===yr)&&i===cl){E=br;var q=g&&k===O&&O.visualViewport?O.visualViewport.width:k[B];y-=q-r.width,y*=u?1:-1}}var U=Object.assign({position:c},d&&fN),ne=p===!0?pN({x:y,y:x},Zn(n)):{x:y,y:x};if(y=ne.x,x=ne.y,u){var te;return Object.assign({},U,(te={},te[P]=j?"0":"",te[E]=T?"0":"",te.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",te))}return Object.assign({},U,(t={},t[P]=j?x+"px":"",t[E]=T?y+"px":"",t.transform="",t))}function hN(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:Hr(t.placement),variation:Us(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,N1(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,N1(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gN={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hN,data:{}};var Qc={passive:!0};function mN(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,u=Zn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,Qc)}),c&&u.addEventListener("resize",n.update,Qc),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Qc)}),c&&u.removeEventListener("resize",n.update,Qc)}}const vN={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mN,data:{}};var yN={left:"right",right:"left",bottom:"top",top:"bottom"};function vu(e){return e.replace(/left|right|bottom|top/g,function(t){return yN[t]})}var bN={start:"end",end:"start"};function $1(e){return e.replace(/start|end/g,function(t){return bN[t]})}function Hm(e){var t=Zn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gm(e){return zs(ti(e)).left+Hm(e).scrollLeft}function xN(e,t){var n=Zn(e),r=ti(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;var d=WA();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c+Gm(e),y:u}}function CN(e){var t,n=ti(e),r=Hm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ki(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ki(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Gm(e),u=-r.scrollTop;return So(o||n).direction==="rtl"&&(c+=ki(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}function qm(e){var t=So(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function qA(e){return["html","body","#document"].indexOf(qr(e))>=0?e.ownerDocument.body:gr(e)&&qm(e)?e:qA(Gd(e))}function qa(e,t){var n;t===void 0&&(t=[]);var r=qA(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Zn(r),a=o?[i].concat(i.visualViewport||[],qm(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(qa(Gd(a)))}function Jh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wN(e,t){var n=zs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function V1(e,t,n){return t===$A?Jh(xN(e,n)):Bi(t)?wN(t,n):Jh(CN(ti(e)))}function SN(e){var t=qa(Gd(e)),n=["absolute","fixed"].indexOf(So(e).position)>=0,r=n&&gr(e)?Dl(e):e;return Bi(r)?t.filter(function(o){return Bi(o)&&zA(o,r)&&qr(o)!=="body"}):[]}function AN(e,t,n,r){var o=t==="clippingParents"?SN(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(u,d){var p=V1(e,d,r);return u.top=ki(p.top,u.top),u.right=zu(p.right,u.right),u.bottom=zu(p.bottom,u.bottom),u.left=ki(p.left,u.left),u},V1(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function YA(e){var t=e.reference,n=e.element,r=e.placement,o=r?Hr(r):null,i=r?Us(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case kn:u={x:a,y:t.y-n.height};break;case yr:u={x:a,y:t.y+t.height};break;case br:u={x:t.x+t.width,y:c};break;case Fn:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?Um(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case Vs:u[d]=u[d]-(t[p]/2-n[p]/2);break;case cl:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function ul(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,u=c===void 0?U7:c,d=n.rootBoundary,p=d===void 0?$A:d,g=n.elementContext,v=g===void 0?Ma:g,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,w=x===void 0?0:x,T=HA(typeof w!="number"?w:GA(w,Fl)),j=v===Ma?H7:Ma,E=e.rects.popper,P=e.elements[b?j:v],O=AN(Bi(P)?P:P.contextElement||ti(e.elements.popper),u,p,a),k=zs(e.elements.reference),F=YA({reference:k,element:E,strategy:"absolute",placement:o}),B=Jh(Object.assign({},E,F)),H=v===Ma?B:k,q={top:O.top-H.top+T.top,bottom:H.bottom-O.bottom+T.bottom,left:O.left-H.left+T.left,right:H.right-O.right+T.right},U=e.modifiersData.offset;if(v===Ma&&U){var ne=U[o];Object.keys(q).forEach(function(te){var Y=[br,yr].indexOf(te)>=0?1:-1,X=[kn,yr].indexOf(te)>=0?"y":"x";q[te]+=ne[X]*Y})}return q}function EN(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?VA:u,p=Us(r),g=p?c?L1:L1.filter(function(b){return Us(b)===p}):Fl,v=g.filter(function(b){return d.indexOf(b)>=0});v.length===0&&(v=g);var y=v.reduce(function(b,x){return b[x]=ul(e,{placement:x,boundary:o,rootBoundary:i,padding:a})[Hr(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function TN(e){if(Hr(e)===Vm)return[];var t=vu(e);return[$1(e),t,$1(t)]}function IN(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,x=n.allowedAutoPlacements,w=t.options.placement,T=Hr(w),j=T===w,E=u||(j||!b?[vu(w)]:TN(w)),P=[w].concat(E).reduce(function(de,pe){return de.concat(Hr(pe)===Vm?EN(t,{placement:pe,boundary:p,rootBoundary:g,padding:d,flipVariations:b,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,k=t.rects.popper,F=new Map,B=!0,H=P[0],q=0;q<P.length;q++){var U=P[q],ne=Hr(U),te=Us(U)===Vs,Y=[kn,yr].indexOf(ne)>=0,X=Y?"width":"height",N=ul(t,{placement:U,boundary:p,rootBoundary:g,altBoundary:v,padding:d}),Q=Y?te?br:Fn:te?yr:kn;O[X]>k[X]&&(Q=vu(Q));var $=vu(Q),oe=[];if(i&&oe.push(N[ne]<=0),c&&oe.push(N[Q]<=0,N[$]<=0),oe.every(function(de){return de})){H=U,B=!1;break}F.set(U,oe)}if(B)for(var W=b?3:1,J=function(pe){var ge=P.find(function(we){var ye=F.get(we);if(ye)return ye.slice(0,pe).every(function(ve){return ve})});if(ge)return H=ge,"break"},ue=W;ue>0;ue--){var he=J(ue);if(he==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const ON={name:"flip",enabled:!0,phase:"main",fn:IN,requiresIfExists:["offset"],data:{_skip:!1}};function W1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function z1(e){return[kn,br,yr,Fn].some(function(t){return e[t]>=0})}function PN(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ul(t,{elementContext:"reference"}),c=ul(t,{altBoundary:!0}),u=W1(a,r),d=W1(c,o,i),p=z1(u),g=z1(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const jN={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PN};function RN(e,t,n){var r=Hr(e),o=[Fn,kn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[Fn,br].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function MN(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=VA.reduce(function(p,g){return p[g]=RN(g,t.rects,i),p},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const kN={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MN};function FN(e){var t=e.state,n=e.name;t.modifiersData[n]=YA({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const DN={name:"popperOffsets",enabled:!0,phase:"read",fn:FN,data:{}};function _N(e){return e==="x"?"y":"x"}function LN(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,v=n.tether,y=v===void 0?!0:v,b=n.tetherOffset,x=b===void 0?0:b,w=ul(t,{boundary:u,rootBoundary:d,padding:g,altBoundary:p}),T=Hr(t.placement),j=Us(t.placement),E=!j,P=Um(T),O=_N(P),k=t.modifiersData.popperOffsets,F=t.rects.reference,B=t.rects.popper,H=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,q=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ne={x:0,y:0};if(k){if(i){var te,Y=P==="y"?kn:Fn,X=P==="y"?yr:br,N=P==="y"?"height":"width",Q=k[P],$=Q+w[Y],oe=Q-w[X],W=y?-B[N]/2:0,J=j===Vs?F[N]:B[N],ue=j===Vs?-B[N]:-F[N],he=t.elements.arrow,de=y&&he?zm(he):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:UA(),ge=pe[Y],we=pe[X],ye=Ga(0,F[N],de[N]),ve=E?F[N]/2-W-ye-ge-q.mainAxis:J-ye-ge-q.mainAxis,Ce=E?-F[N]/2+W+ye+we+q.mainAxis:ue+ye+we+q.mainAxis,Te=t.elements.arrow&&Dl(t.elements.arrow),fe=Te?P==="y"?Te.clientTop||0:Te.clientLeft||0:0,Ge=(te=U==null?void 0:U[P])!=null?te:0,me=Q+ve-Ge-fe,Qe=Q+Ce-Ge,an=Ga(y?zu($,me):$,Q,y?ki(oe,Qe):oe);k[P]=an,ne[P]=an-Q}if(c){var Et,mt=P==="x"?kn:Fn,Bn=P==="x"?yr:br,Tt=k[O],vt=O==="y"?"height":"width",Kt=Tt+w[mt],yt=Tt-w[Bn],$t=[kn,Fn].indexOf(T)!==-1,It=(Et=U==null?void 0:U[O])!=null?Et:0,ke=$t?Kt:Tt-F[vt]-B[vt]-It+q.altAxis,Fe=$t?Tt+F[vt]+B[vt]-It-q.altAxis:yt,Ie=y&&$t?aN(ke,Tt,Fe):Ga(y?ke:Kt,Tt,y?Fe:yt);k[O]=Ie,ne[O]=Ie-Tt}t.modifiersData[r]=ne}}const BN={name:"preventOverflow",enabled:!0,phase:"main",fn:LN,requiresIfExists:["offset"]};function NN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $N(e){return e===Zn(e)||!gr(e)?Hm(e):NN(e)}function VN(e){var t=e.getBoundingClientRect(),n=Ws(t.width)/e.offsetWidth||1,r=Ws(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WN(e,t,n){n===void 0&&(n=!1);var r=gr(t),o=gr(t)&&VN(t),i=ti(t),a=zs(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((qr(t)!=="body"||qm(i))&&(c=$N(t)),gr(t)?(u=zs(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Gm(i))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function zN(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function UN(e){var t=zN(e);return tN.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function HN(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GN(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var U1={placement:"bottom",modifiers:[],strategy:"absolute"};function H1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qN(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?U1:o;return function(c,u,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},U1,i),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],v=!1,y={state:p,setOptions:function(T){var j=typeof T=="function"?T(p.options):T;x(),p.options=Object.assign({},i,p.options,j),p.scrollParents={reference:Bi(c)?qa(c):c.contextElement?qa(c.contextElement):[],popper:qa(u)};var E=UN(GN([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(P){return P.enabled}),b(),y.update()},forceUpdate:function(){if(!v){var T=p.elements,j=T.reference,E=T.popper;if(H1(j,E)){p.rects={reference:WN(j,Dl(E),p.options.strategy==="fixed"),popper:zm(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(q){return p.modifiersData[q.name]=Object.assign({},q.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var O=p.orderedModifiers[P],k=O.fn,F=O.options,B=F===void 0?{}:F,H=O.name;typeof k=="function"&&(p=k({state:p,options:B,name:H,instance:y})||p)}}}},update:HN(function(){return new Promise(function(w){y.forceUpdate(),w(p)})}),destroy:function(){x(),v=!0}};if(!H1(c,u))return y;y.setOptions(d).then(function(w){!v&&d.onFirstUpdate&&d.onFirstUpdate(w)});function b(){p.orderedModifiers.forEach(function(w){var T=w.name,j=w.options,E=j===void 0?{}:j,P=w.effect;if(typeof P=="function"){var O=P({state:p,name:T,instance:y,options:E}),k=function(){};g.push(O||k)}})}function x(){g.forEach(function(w){return w()}),g=[]}return y}}var YN=[vN,DN,gN,oN,kN,ON,BN,dN,jN],KA=qN({defaultModifiers:YN});function KN(e){return typeof e=="function"?e():e}const Uu=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Gr(()=>{i||c(KN(o)||document.body)},[o,i]),Gr(()=>{if(a&&!i)return $s(n,a),()=>{$s(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&gw.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:m.node,container:m.oneOfType([wo,m.func]),disablePortal:m.bool});process.env.NODE_ENV!=="production"&&(Uu.propTypes=Rl(Uu.propTypes));function XN(e){return Bt("MuiPopper",e)}Gt("MuiPopper",["root"]);const ZN=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],QN=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function JN(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 Hu(e){return typeof e=="function"?e():e}function qd(e){return e.nodeType!==void 0}function e$(e){return!qd(e)}const t$=()=>Ut({root:["root"]},B7(XN)),n$={},r$=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=_e(t,ZN),T=D.useRef(null),j=on(T,n),E=D.useRef(null),P=on(E,v),O=D.useRef(P);Gr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>E.current,[]);const k=JN(p,a),[F,B]=D.useState(k),[H,q]=D.useState(Hu(o));D.useEffect(()=>{E.current&&E.current.forceUpdate()}),D.useEffect(()=>{o&&q(Hu(o))},[o]),Gr(()=>{if(!H||!d)return;const X=$=>{B($.placement)};if(process.env.NODE_ENV!=="production"&&H&&qd(H)&&H.nodeType===1){const $=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
151
151
|
`))}let N=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{X($)}}];u!=null&&(N=N.concat(u)),g&&g.modifiers!=null&&(N=N.concat(g.modifiers));const Q=KA(H,T.current,z({placement:k},g,{modifiers:N}));return O.current(Q),()=>{Q.destroy(),O.current(null)}},[H,c,u,d,g,k]);const U={placement:F};x!==null&&(U.TransitionProps=x);const ne=t$(),te=(r=b.root)!=null?r:"div",Y=z7({elementType:te,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:j},ownerState:t,className:ne.root});return f.jsx(te,z({},Y,{children:typeof i=="function"?i(U):i}))}),Ym=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:v=n$,popperRef:y,style:b,transition:x=!1,slotProps:w={},slots:T={}}=t,j=_e(t,QN),[E,P]=D.useState(!0),O=()=>{P(!1)},k=()=>{P(!0)};if(!u&&!p&&(!x||E))return null;let F;if(i)F=i;else if(r){const q=Hu(r);F=q&&qd(q)?Kn(q).body:Kn(null).body}const B=!p&&u&&(!x||E)?"none":void 0,H=x?{in:p,onEnter:O,onExited:k}:void 0;return f.jsx(Uu,{disablePortal:c,container:F,children:f.jsx(r$,z({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:x?!E:p,placement:g,popperOptions:v,popperRef:y,slotProps:w,slots:T},j,{style:z({position:"fixed",top:0,left:0,display:B},b),TransitionProps:H,children:o}))})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={anchorEl:Eo(m.oneOfType([wo,m.object,m.func]),e=>{if(e.open){const t=Hu(e.anchorEl);if(t&&qd(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
152
152
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||e$(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
153
153
|
`))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([wo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bd,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});function o$(e){return Bt("MuiButton",e)}const Jc=Gt("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"]),XA=D.createContext({});process.env.NODE_ENV!=="production"&&(XA.displayName="ButtonGroupContext");const ZA=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(ZA.displayName="ButtonGroupButtonContext");const i$=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],s$=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${Ne(t)}`,`size${Ne(o)}`,`${i}Size${Ne(o)}`,`color${Ne(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`]},u=Ut(c,o$,a);return z({},a,u)},QA=e=>z({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),a$=ce(Ud,{shouldForwardProp:e=>Rm(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ne(n.color)}`],t[`size${Ne(n.size)}`],t[`${n.variant}Size${Ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jc.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jc.disabled}`]:z({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Vr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jc.disabled}`]:{boxShadow:"none"}}),l$=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ne(n.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},QA(e))),c$=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ne(n.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},QA(e))),Gu=D.forwardRef(function(t,n){const r=D.useContext(XA),o=D.useContext(ZA),i=bm(r,t),a=Ht({props:i,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:w=!1,size:T="medium",startIcon:j,type:E,variant:P="text"}=a,O=_e(a,i$),k=z({},a,{color:u,component:d,disabled:g,disableElevation:v,disableFocusRipple:y,fullWidth:w,size:T,type:E,variant:P}),F=s$(k),B=j&&f.jsx(l$,{className:F.startIcon,ownerState:k,children:j}),H=b&&f.jsx(c$,{className:F.endIcon,ownerState:k,children:b}),q=o||"";return f.jsxs(a$,z({ownerState:k,className:Be(r.className,F.root,p,q),component:d,disabled:g,focusRipple:!y,focusVisibleClassName:Be(F.focusVisible,x),ref:n,type:E},O,{classes:F,children:[B,c,H]}))});process.env.NODE_ENV!=="production"&&(Gu.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","success","error","info","warning"]),m.string]),component:m.elementType,disabled:m.bool,disableElevation:m.bool,disableFocusRipple:m.bool,disableRipple:m.bool,endIcon:m.node,focusVisibleClassName:m.string,fullWidth:m.bool,href:m.string,size:m.oneOfType([m.oneOf(["small","medium","large"]),m.string]),startIcon:m.node,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),type:m.oneOfType([m.oneOf(["button","reset","submit"]),m.string]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function u$(e){return Bt("MuiCircularProgress",e)}Gt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const d$=["className","color","disableShrink","size","style","thickness","value","variant"];let Yd=e=>e,G1,q1,Y1,K1;const _o=44,f$=tn.keyframes(G1||(G1=Yd`
|
|
@@ -177,7 +177,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
177
177
|
animation: ${0} 1.4s linear infinite;
|
|
178
178
|
`),f$)),m$=ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),v$=ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>z({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&tn.css(K1||(K1=Yd`
|
|
179
179
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
180
|
-
`),p$)),Kd=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:g="indeterminate"}=r,v=_e(r,d$),y=z({},r,{color:i,disableShrink:a,size:c,thickness:d,value:p,variant:g}),b=h$(y),x={},w={},T={};if(g==="determinate"){const j=2*Math.PI*((_o-d)/2);x.strokeDasharray=j.toFixed(3),T["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*j).toFixed(3)}px`,w.transform="rotate(-90deg)"}return f.jsx(g$,z({className:Be(b.root,o),style:z({width:c,height:c},w,u),ownerState:y,ref:n,role:"progressbar"},T,v,{children:f.jsx(m$,{className:b.svg,ownerState:y,viewBox:`${_o/2} ${_o/2} ${_o} ${_o}`,children:f.jsx(v$,{className:b.circle,style:x,ownerState:y,cx:_o,cy:_o,r:(_o-d)/2,fill:"none",strokeWidth:d})})}))});process.env.NODE_ENV!=="production"&&(Kd.propTypes={classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","error","info","success","warning"]),m.string]),disableShrink:Eo(m.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:m.oneOfType([m.number,m.string]),style:m.object,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),thickness:m.number,value:m.number,variant:m.oneOf(["determinate","indeterminate"])});function y$(e){return Bt("MuiLoadingButton",e)}const co=Gt("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),b$=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],x$=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Ne(n)}`],endIcon:[t&&`endIconLoading${Ne(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Ne(n)}`]},i=Ut(o,y$,r);return z({},r,i)},C$=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",w$=ce(Gu,{shouldForwardProp:e=>C$(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${co.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${co.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>z({[`& .${co.startIconLoadingStart}, & .${co.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${co.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${co.startIconLoadingStart}, & .${co.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${co.startIconLoadingStart}, & .${co.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),S$=ce("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Ne(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>z({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),JA=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:a,loading:c=!1,loadingIndicator:u,loadingPosition:d="center",variant:p="text"}=r,g=_e(r,b$),v=$d(a),y=u??f.jsx(Kd,{"aria-labelledby":v,color:"inherit",size:16}),b=z({},r,{disabled:i,loading:c,loadingIndicator:y,loadingPosition:d,variant:p}),x=x$(b),w=c?f.jsx(S$,{className:x.loadingIndicator,ownerState:b,children:y}):null;return f.jsxs(w$,z({disabled:i||c,id:v,ref:n},g,{variant:p,classes:x,ownerState:b,children:[b.loadingPosition==="end"?o:w,b.loadingPosition==="end"?w:o]}))});process.env.NODE_ENV!=="production"&&(JA.propTypes={children:m.node,classes:m.object,disabled:m.bool,id:m.string,loading:m.bool,loadingIndicator:m.node,loadingPosition:Eo(m.oneOf(["start","end","center"]),e=>e.loadingPosition==="start"&&!e.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):e.loadingPosition==="end"&&!e.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function sh({variant:e,theme:t,color:n,loadingPosition:r}){const o=sn(t,n),{lighter:i,main:a,dark:c,contrastText:u}=o,d=`${n}Button`,p=Xs(t,d),g={"& .MuiLoadingButton-loadingIndicator":{color:a}},v={...r&&r!=="center"&&{color:a}},y={"&::after":{boxShadow:`0 0 6px 6px ${Je(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Je(a,.9)}`},"&:focus-visible":{outline:`2px solid ${c}`,outlineOffset:2}};switch(e){case"contained":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"light":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"shadow":return{boxShadow:p,backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{boxShadow:"none",backgroundColor:c,color:u},...y};case"outlined":return{backgroundColor:"transparent",borderColor:a,...v,...g};case"dashed":return{backgroundColor:i,borderColor:a,...v,...g,...y};case"text":default:return{color:a,...g,...y}}}const A$=ce(JA,{shouldForwardProp:e=>e!=="shape"&&e!=="variant"})(({theme:e,variant:t,shape:n,color:r,loading:o,loadingPosition:i})=>({"::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...t==="text"&&{...sh({variant:t,theme:e,color:r,loadingPosition:i}),"&.MuiButton-sizeMedium":{height:36},"&.MuiButton-sizeSmall":{height:30},"&.MuiButton-sizeLarge":{height:44}},...n&&{minWidth:0,"&.MuiButton-sizeMedium":{width:36,height:36},"&.MuiButton-sizeSmall":{width:30,height:30},"&.MuiButton-sizeLarge":{width:44,height:44},...n==="rounded"&&{borderRadius:"50%"}},...t==="outlined"&&{border:"1px solid"},...t==="dashed"&&{border:"1px dashed"},...(t==="contained"||t==="shadow")&&!o&&{color:"#fff"},...t!=="text"&&{...sh({variant:t,theme:e,color:r,loadingPosition:i})},"&.Mui-disabled":{...t!=="text"&&{...sh({variant:t,theme:e,color:r,loadingPosition:i})}}})),eE=A.forwardRef(({variant:e="text",shape:t,children:n,color:r="primary",loadingPosition:o,loading:i,...a},c)=>{const u=gt();return f.jsx(A$,{ref:c,variant:e,shape:t,theme:u,loadingPosition:o,loading:i,color:r,...a,children:n})});function E$({color:e,theme:t,labelColor:n}){const r=sn(t,e),{main:o,contrastText:i}=r,a=e||"";return["primary","secondary","info","success","warning","error"].includes(a)?{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:o,color:n||i},[`& .${S.tooltipClasses.arrow}`]:{color:o}}:{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:a,color:n||i,boxShadow:t.shadows[1]},[`& .${S.tooltipClasses.arrow}`]:{color:a}}}const T$=ce(({className:e,...t})=>f.jsx(S.Tooltip,{...t,classes:{popper:e}}),{shouldForwardProp:e=>e!=="color"&&e!=="labelColor"})(({theme:e,color:t,labelColor:n})=>({...t&&E$({color:t,theme:e,labelColor:n})}));function Xd({children:e,arrow:t,labelColor:n="",...r}){const o=gt();return f.jsx(S.Box,{display:"flex",children:f.jsx(T$,{arrow:t,...r,theme:o,labelColor:n,children:e})})}const Zo=A.forwardRef(({children:e,position:t="top-left",type:n="grow",direction:r="up",...o},i)=>{let a={transformOrigin:"0 0 0"};switch(t){case"top-right":a={transformOrigin:"top right"};break;case"top":a={transformOrigin:"top"};break;case"bottom-left":a={transformOrigin:"bottom left"};break;case"bottom-right":a={transformOrigin:"bottom right"};break;case"bottom":a={transformOrigin:"bottom"};break;case"top-left":default:a={transformOrigin:"0 0 0"};break}return f.jsxs(S.Box,{ref:i,children:[n==="grow"&&f.jsx(S.Grow,{...o,timeout:{appear:0,enter:150,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="collapse"&&f.jsx(S.Collapse,{...o,sx:a,children:e}),n==="fade"&&f.jsx(S.Fade,{...o,timeout:{appear:0,enter:300,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="slide"&&f.jsx(S.Slide,{...o,timeout:{appear:0,enter:150,exit:150},direction:r,children:f.jsx(S.Box,{sx:a,children:e})}),n==="zoom"&&f.jsx(S.Zoom,{...o,children:f.jsx(S.Box,{sx:a,children:e})})]})}),I$=A.forwardRef(function(t,n){return f.jsx(S.Zoom,{ref:n,timeout:200,...t})});function O$({value:e,...t}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",value:e,...t}),f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:`${Math.round(e)}%`})})]})}function P$({value:e,size:t,variant:n,thickness:r,showLabel:o,pathColor:i,sx:a,...c}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",sx:{color:i||"grey.200"},size:t,thickness:r,...c,value:100}),o?f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:e?`${Math.round(e)}%`:"0%"})}):null,f.jsx(S.CircularProgress,{variant:n,sx:{...a,position:"absolute",left:0,[`& .${S.circularProgressClasses.circle}`]:{strokeLinecap:"round"}},size:t,thickness:r,value:e,...c})]})}function j$({icon:e,value:t,...n}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:t,...n})}),f.jsx(S.Box,{sx:{minWidth:35},children:e})]})}function R$({value:e,...t}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:e,...t})}),f.jsx(S.Box,{sx:{minWidth:35},children:f.jsx(S.Typography,{variant:"body2",color:"text.secondary",children:`${Math.round(e)}%`})})]})}const tE=ce("span")(({arrow:e="top-right",theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${Je(t.palette.grey[500],.12)}`,i={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...i,left:20},...e==="top-center"&&{...i,left:0,right:0,margin:"auto"},...e==="top-right"&&{...i,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function nE(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}function rE({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...i}){const{style:a,anchorOrigin:c,transformOrigin:u}=nE(n);return f.jsxs(S.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...i,children:[!r&&f.jsx(tE,{arrow:n}),t]})}const M$={width:"100%",justifyContent:"flex-start"},k$=S.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),F$=S.styled(rE,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)},[e.breakpoints.down("sm")]:{"&>.MuiSvgIcon-root, & svg":{marginRight:e.spacing(0)}}}}));function Qo({horizontal:e=!1,children:t}){const[n,r]=A.useState(null),o=A.useRef(null);function i(u){u.stopPropagation(),u.preventDefault(),r(u.currentTarget),o.current=u.currentTarget}const a=A.useCallback(u=>{u.stopPropagation(),u.preventDefault(),r(null)},[]),c=A.useCallback(u=>{var d;r(null),typeof((d=u.currentTarget)==null?void 0:d.onClick)=="function"&&u.currentTarget.onClick(u)},[]);return!t||A.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(u=>A.isValidElement(u)).length)===0?null:f.jsxs(k$,{children:[f.jsx(S.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:i,color:n?"inherit":"default",children:e?f.jsx(nn.MoreHoriz,{}):f.jsx(nn.MoreVert,{})}),f.jsx(F$,{open:n,onClose:a,arrow:"right-top",children:A.Children.map(t,(u,d)=>A.isValidElement(u)&&f.jsx(S.MenuItem,{onClick:c,children:A.cloneElement(u,{style:{...M$}})},d))})]})}function Zd(){const e=tn.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return f.jsx(S.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:f.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),f.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),f.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),f.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),f.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),f.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),f.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),f.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity: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9yVG9vbD0iR0lNUCAyLjEwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDIzOjExOjMwVDEyOjQxOjMwKzAxOjAwIgogICB4bXA6TW9kaWZ5RGF0ZT0iMjAyMzoxMTozMFQxMjo0MTozMCswMTowMCI+CiAgIDx4bXBNTTpIaXN0b3J5PgogICAgPHJkZjpTZXE+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjVkNGE4NzAxLWYzOTItNGVhOS04YzdlLWEwNzQ4ODE5ODIyYSIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0xMS0zMFQxMjo0MTozMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5A30f8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wseCykesp/dTgAAIABJREFUeNrsvXt0XGeZ5vt8e9e9dClJtuzYupQTEkjiJDIQOw0By4EQzJCOTNMkDsyJciAzNDAdmZk1Z4awxvJMN92nV9OyaWCaQ1h2GogcBtqGhHZMQmxjQsehg0VQCISOVZKvki2rdKl71f7OH7uqVKXaVSqpLqqSnt9aWrbqsmvr27v2s9/v/d7nBQghBbN2r1y9tk/ezJEghBBCKluwzWv65Ns5EoQQQkhlC7ZpdZ9s5UgQQgghlS3YFo4CIYQQUuG4+qSJo0AIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEkGWJ4BCQ5YarTzrtQKsmMDbaI65yRAghFGtCK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xLEvIMYQMyBqgvmVuF7gl9ojt84c5JV+JSZqwyTeW9TlKuhqQNQDkI/RQlsSdvlbm88oGj9gt+dqlG3P4c5SIGABZA1SL4EM2eUeyPuf6WlnPWpT6ZmDE5fvRLOHGHP7O/n27dIV4AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgLvk/Afd07jclJisAAAAASUVORK5CYII=";var ah={};const D$=Ao(k7);var X1;function Xr(){return X1||(X1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=D$}(ah)),ah}var Ya=function(){return Ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ya.apply(this,arguments)},iE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Km=function(e){var t=e.alignIcon,n=t===void 0?"left":t,r=e.children,o=e.className,i=e.disabled,a=e.label,c=e.color,u=c===void 0?"primary":c,d=e.size,p=d===void 0?"small":d,g=e.to,v=iE(e,["alignIcon","children","className","disabled","label","color","size","to"]),y=Z.useTranslate(),b=a?y(a,{_:a}):void 0,x=B$(g),w=S.useMediaQuery(function(T){return T.breakpoints.down("sm")});return w?a&&!i?D.createElement(S.Tooltip,{title:b},D.createElement(S.IconButton,Ya({"aria-label":b,className:o,color:u,size:"large"},x,v),r)):D.createElement(S.IconButton,Ya({className:o,color:u,disabled:i,size:"large"},x,v),r):D.createElement(L$,Ya({className:o,color:u,size:p,"aria-label":b,disabled:i,startIcon:n==="left"&&r?r:void 0,endIcon:n==="right"&&r?r:void 0},x,v),b)};Km.propTypes={alignIcon:m.oneOf(["left","right"]),children:m.element,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,label:m.string,size:m.oneOf(["small","medium","large"])};var _$="RaButton",L$=ce(S.Button,{name:_$,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),B$=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=iE(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},Xm={},N$=wr;Object.defineProperty(Xm,"__esModule",{value:!0});var Zm=Xm.default=void 0,$$=N$(Xr()),V$=f;Zm=Xm.default=(0,$$.default)((0,V$.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function sE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=sE(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hs(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=sE(e))&&(r&&(r+=" "),r+=t);return r}function W$(){this.__data__=[],this.size=0}var z$=W$;function U$(e,t){return e===t||e!==e&&t!==t}var _l=U$,H$=_l;function G$(e,t){for(var n=e.length;n--;)if(H$(e[n][0],t))return n;return-1}var Qd=G$,q$=Qd,Y$=Array.prototype,K$=Y$.splice;function X$(e){var t=this.__data__,n=q$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():K$.call(t,n,1),--this.size,!0}var Z$=X$,Q$=Qd;function J$(e){var t=this.__data__,n=Q$(t,e);return n<0?void 0:t[n][1]}var eV=J$,tV=Qd;function nV(e){return tV(this.__data__,e)>-1}var rV=nV,oV=Qd;function iV(e,t){var n=this.__data__,r=oV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var sV=iV,aV=z$,lV=Z$,cV=eV,uV=rV,dV=sV;function Zs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zs.prototype.clear=aV;Zs.prototype.delete=lV;Zs.prototype.get=cV;Zs.prototype.has=uV;Zs.prototype.set=dV;var Jd=Zs,fV=Jd;function pV(){this.__data__=new fV,this.size=0}var hV=pV;function gV(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mV=gV;function vV(e){return this.__data__.get(e)}var yV=vV;function bV(e){return this.__data__.has(e)}var xV=bV,CV=typeof wn=="object"&&wn&&wn.Object===Object&&wn,aE=CV,wV=aE,SV=typeof self=="object"&&self&&self.Object===Object&&self,AV=wV||SV||Function("return this")(),Zr=AV,EV=Zr,TV=EV.Symbol,ef=TV,Z1=ef,lE=Object.prototype,IV=lE.hasOwnProperty,OV=lE.toString,ka=Z1?Z1.toStringTag:void 0;function PV(e){var t=IV.call(e,ka),n=e[ka];try{e[ka]=void 0;var r=!0}catch{}var o=OV.call(e);return r&&(t?e[ka]=n:delete e[ka]),o}var jV=PV,RV=Object.prototype,MV=RV.toString;function kV(e){return MV.call(e)}var FV=kV,Q1=ef,DV=jV,_V=FV,LV="[object Null]",BV="[object Undefined]",J1=Q1?Q1.toStringTag:void 0;function NV(e){return e==null?e===void 0?BV:LV:J1&&J1 in Object(e)?DV(e):_V(e)}var Ll=NV;function $V(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $i=$V,VV=Ll,WV=$i,zV="[object AsyncFunction]",UV="[object Function]",HV="[object GeneratorFunction]",GV="[object Proxy]";function qV(e){if(!WV(e))return!1;var t=VV(e);return t==UV||t==HV||t==zV||t==GV}var Qm=qV,YV=Zr,KV=YV["__core-js_shared__"],XV=KV,lh=XV,eC=function(){var e=/[^.]+$/.exec(lh&&lh.keys&&lh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ZV(e){return!!eC&&eC in e}var QV=ZV,JV=Function.prototype,eW=JV.toString;function tW(e){if(e!=null){try{return eW.call(e)}catch{}try{return e+""}catch{}}return""}var cE=tW,nW=Qm,rW=QV,oW=$i,iW=cE,sW=/[\\^$.*+?()[\]{}|]/g,aW=/^\[object .+?Constructor\]$/,lW=Function.prototype,cW=Object.prototype,uW=lW.toString,dW=cW.hasOwnProperty,fW=RegExp("^"+uW.call(dW).replace(sW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pW(e){if(!oW(e)||rW(e))return!1;var t=nW(e)?fW:aW;return t.test(iW(e))}var hW=pW;function gW(e,t){return e==null?void 0:e[t]}var mW=gW,vW=hW,yW=mW;function bW(e,t){var n=yW(e,t);return vW(n)?n:void 0}var Vi=bW,xW=Vi,CW=Zr,wW=xW(CW,"Map"),Jm=wW,SW=Vi,AW=SW(Object,"create"),tf=AW,tC=tf;function EW(){this.__data__=tC?tC(null):{},this.size=0}var TW=EW;function IW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var OW=IW,PW=tf,jW="__lodash_hash_undefined__",RW=Object.prototype,MW=RW.hasOwnProperty;function kW(e){var t=this.__data__;if(PW){var n=t[e];return n===jW?void 0:n}return MW.call(t,e)?t[e]:void 0}var FW=kW,DW=tf,_W=Object.prototype,LW=_W.hasOwnProperty;function BW(e){var t=this.__data__;return DW?t[e]!==void 0:LW.call(t,e)}var NW=BW,$W=tf,VW="__lodash_hash_undefined__";function WW(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$W&&t===void 0?VW:t,this}var zW=WW,UW=TW,HW=OW,GW=FW,qW=NW,YW=zW;function Qs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qs.prototype.clear=UW;Qs.prototype.delete=HW;Qs.prototype.get=GW;Qs.prototype.has=qW;Qs.prototype.set=YW;var KW=Qs,nC=KW,XW=Jd,ZW=Jm;function QW(){this.size=0,this.__data__={hash:new nC,map:new(ZW||XW),string:new nC}}var JW=QW;function ez(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tz=ez,nz=tz;function rz(e,t){var n=e.__data__;return nz(t)?n[typeof t=="string"?"string":"hash"]:n.map}var nf=rz,oz=nf;function iz(e){var t=oz(this,e).delete(e);return this.size-=t?1:0,t}var sz=iz,az=nf;function lz(e){return az(this,e).get(e)}var cz=lz,uz=nf;function dz(e){return uz(this,e).has(e)}var fz=dz,pz=nf;function hz(e,t){var n=pz(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var gz=hz,mz=JW,vz=sz,yz=cz,bz=fz,xz=gz;function Js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Js.prototype.clear=mz;Js.prototype.delete=vz;Js.prototype.get=yz;Js.prototype.has=bz;Js.prototype.set=xz;var uE=Js,Cz=Jd,wz=Jm,Sz=uE,Az=200;function Ez(e,t){var n=this.__data__;if(n instanceof Cz){var r=n.__data__;if(!wz||r.length<Az-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sz(r)}return n.set(e,t),this.size=n.size,this}var Tz=Ez,Iz=Jd,Oz=hV,Pz=mV,jz=yV,Rz=xV,Mz=Tz;function ea(e){var t=this.__data__=new Iz(e);this.size=t.size}ea.prototype.clear=Oz;ea.prototype.delete=Pz;ea.prototype.get=jz;ea.prototype.has=Rz;ea.prototype.set=Mz;var dE=ea,kz="__lodash_hash_undefined__";function Fz(e){return this.__data__.set(e,kz),this}var Dz=Fz;function _z(e){return this.__data__.has(e)}var Lz=_z,Bz=uE,Nz=Dz,$z=Lz;function qu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Bz;++t<n;)this.add(e[t])}qu.prototype.add=qu.prototype.push=Nz;qu.prototype.has=$z;var e0=qu;function Vz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Wz=Vz;function zz(e,t){return e.has(t)}var t0=zz,Uz=e0,Hz=Wz,Gz=t0,qz=1,Yz=2;function Kz(e,t,n,r,o,i){var a=n&qz,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var g=-1,v=!0,y=n&Yz?new Uz:void 0;for(i.set(e,t),i.set(t,e);++g<c;){var b=e[g],x=t[g];if(r)var w=a?r(x,b,g,t,e,i):r(b,x,g,e,t,i);if(w!==void 0){if(w)continue;v=!1;break}if(y){if(!Hz(t,function(T,j){if(!Gz(y,j)&&(b===T||o(b,T,n,r,i)))return y.push(j)})){v=!1;break}}else if(!(b===x||o(b,x,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}var fE=Kz,Xz=Zr,Zz=Xz.Uint8Array,pE=Zz;function Qz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var Jz=Qz;function eU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var n0=eU,rC=ef,oC=pE,tU=_l,nU=fE,rU=Jz,oU=n0,iU=1,sU=2,aU="[object Boolean]",lU="[object Date]",cU="[object Error]",uU="[object Map]",dU="[object Number]",fU="[object RegExp]",pU="[object Set]",hU="[object String]",gU="[object Symbol]",mU="[object ArrayBuffer]",vU="[object DataView]",iC=rC?rC.prototype:void 0,ch=iC?iC.valueOf:void 0;function yU(e,t,n,r,o,i,a){switch(n){case vU:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mU:return!(e.byteLength!=t.byteLength||!i(new oC(e),new oC(t)));case aU:case lU:case dU:return tU(+e,+t);case cU:return e.name==t.name&&e.message==t.message;case fU:case hU:return e==t+"";case uU:var c=rU;case pU:var u=r&iU;if(c||(c=oU),e.size!=t.size&&!u)return!1;var d=a.get(e);if(d)return d==t;r|=sU,a.set(e,t);var p=nU(c(e),c(t),r,o,i,a);return a.delete(e),p;case gU:if(ch)return ch.call(e)==ch.call(t)}return!1}var bU=yU;function xU(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var hE=xU,CU=Array.isArray,Bl=CU,wU=hE,SU=Bl;function AU(e,t,n){var r=t(e);return SU(e)?r:wU(r,n(e))}var EU=AU;function TU(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var IU=TU;function OU(){return[]}var PU=OU,jU=IU,RU=PU,MU=Object.prototype,kU=MU.propertyIsEnumerable,sC=Object.getOwnPropertySymbols,FU=sC?function(e){return e==null?[]:(e=Object(e),jU(sC(e),function(t){return kU.call(e,t)}))}:RU,DU=FU;function _U(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var LU=_U;function BU(e){return e!=null&&typeof e=="object"}var ta=BU,NU=Ll,$U=ta,VU="[object Arguments]";function WU(e){return $U(e)&&NU(e)==VU}var zU=WU,aC=zU,UU=ta,gE=Object.prototype,HU=gE.hasOwnProperty,GU=gE.propertyIsEnumerable,qU=aC(function(){return arguments}())?aC:function(e){return UU(e)&&HU.call(e,"callee")&&!GU.call(e,"callee")},r0=qU,Yu={exports:{}};function YU(){return!1}var KU=YU;Yu.exports;(function(e,t){var n=Zr,r=KU,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,c=a?n.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||r;e.exports=d})(Yu,Yu.exports);var o0=Yu.exports,XU=9007199254740991,ZU=/^(?:0|[1-9]\d*)$/;function QU(e,t){var n=typeof e;return t=t??XU,!!t&&(n=="number"||n!="symbol"&&ZU.test(e))&&e>-1&&e%1==0&&e<t}var mE=QU,JU=9007199254740991;function eH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JU}var vE=eH,tH=Ll,nH=vE,rH=ta,oH="[object Arguments]",iH="[object Array]",sH="[object Boolean]",aH="[object Date]",lH="[object Error]",cH="[object Function]",uH="[object Map]",dH="[object Number]",fH="[object Object]",pH="[object RegExp]",hH="[object Set]",gH="[object String]",mH="[object WeakMap]",vH="[object ArrayBuffer]",yH="[object DataView]",bH="[object Float32Array]",xH="[object Float64Array]",CH="[object Int8Array]",wH="[object Int16Array]",SH="[object Int32Array]",AH="[object Uint8Array]",EH="[object Uint8ClampedArray]",TH="[object Uint16Array]",IH="[object Uint32Array]",xt={};xt[bH]=xt[xH]=xt[CH]=xt[wH]=xt[SH]=xt[AH]=xt[EH]=xt[TH]=xt[IH]=!0;xt[oH]=xt[iH]=xt[vH]=xt[sH]=xt[yH]=xt[aH]=xt[lH]=xt[cH]=xt[uH]=xt[dH]=xt[fH]=xt[pH]=xt[hH]=xt[gH]=xt[mH]=!1;function OH(e){return rH(e)&&nH(e.length)&&!!xt[tH(e)]}var PH=OH;function jH(e){return function(t){return e(t)}}var yE=jH,Ku={exports:{}};Ku.exports;(function(e,t){var n=aE,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,c=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=c})(Ku,Ku.exports);var RH=Ku.exports,MH=PH,kH=yE,lC=RH,cC=lC&&lC.isTypedArray,FH=cC?kH(cC):MH,i0=FH,DH=LU,_H=r0,LH=Bl,BH=o0,NH=mE,$H=i0,VH=Object.prototype,WH=VH.hasOwnProperty;function zH(e,t){var n=LH(e),r=!n&&_H(e),o=!n&&!r&&BH(e),i=!n&&!r&&!o&&$H(e),a=n||r||o||i,c=a?DH(e.length,String):[],u=c.length;for(var d in e)(t||WH.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||NH(d,u)))&&c.push(d);return c}var bE=zH,UH=Object.prototype;function HH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||UH;return e===n}var s0=HH;function GH(e,t){return function(n){return e(t(n))}}var xE=GH,qH=xE,YH=qH(Object.keys,Object),KH=YH,XH=s0,ZH=KH,QH=Object.prototype,JH=QH.hasOwnProperty;function eG(e){if(!XH(e))return ZH(e);var t=[];for(var n in Object(e))JH.call(e,n)&&n!="constructor"&&t.push(n);return t}var tG=eG,nG=Qm,rG=vE;function oG(e){return e!=null&&rG(e.length)&&!nG(e)}var rf=oG,iG=bE,sG=tG,aG=rf;function lG(e){return aG(e)?iG(e):sG(e)}var cG=lG,uG=EU,dG=DU,fG=cG;function pG(e){return uG(e,fG,dG)}var hG=pG,uC=hG,gG=1,mG=Object.prototype,vG=mG.hasOwnProperty;function yG(e,t,n,r,o,i){var a=n&gG,c=uC(e),u=c.length,d=uC(t),p=d.length;if(u!=p&&!a)return!1;for(var g=u;g--;){var v=c[g];if(!(a?v in t:vG.call(t,v)))return!1}var y=i.get(e),b=i.get(t);if(y&&b)return y==t&&b==e;var x=!0;i.set(e,t),i.set(t,e);for(var w=a;++g<u;){v=c[g];var T=e[v],j=t[v];if(r)var E=a?r(j,T,v,t,e,i):r(T,j,v,e,t,i);if(!(E===void 0?T===j||o(T,j,n,r,i):E)){x=!1;break}w||(w=v=="constructor")}if(x&&!w){var P=e.constructor,O=t.constructor;P!=O&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(x=!1)}return i.delete(e),i.delete(t),x}var bG=yG,xG=Vi,CG=Zr,wG=xG(CG,"DataView"),SG=wG,AG=Vi,EG=Zr,TG=AG(EG,"Promise"),IG=TG,OG=Vi,PG=Zr,jG=OG(PG,"Set"),CE=jG,RG=Vi,MG=Zr,kG=RG(MG,"WeakMap"),FG=kG,eg=SG,tg=Jm,ng=IG,rg=CE,og=FG,wE=Ll,na=cE,dC="[object Map]",DG="[object Object]",fC="[object Promise]",pC="[object Set]",hC="[object WeakMap]",gC="[object DataView]",_G=na(eg),LG=na(tg),BG=na(ng),NG=na(rg),$G=na(og),Ei=wE;(eg&&Ei(new eg(new ArrayBuffer(1)))!=gC||tg&&Ei(new tg)!=dC||ng&&Ei(ng.resolve())!=fC||rg&&Ei(new rg)!=pC||og&&Ei(new og)!=hC)&&(Ei=function(e){var t=wE(e),n=t==DG?e.constructor:void 0,r=n?na(n):"";if(r)switch(r){case _G:return gC;case LG:return dC;case BG:return fC;case NG:return pC;case $G:return hC}return t});var VG=Ei,uh=dE,WG=fE,zG=bU,UG=bG,mC=VG,vC=Bl,yC=o0,HG=i0,GG=1,bC="[object Arguments]",xC="[object Array]",eu="[object Object]",qG=Object.prototype,CC=qG.hasOwnProperty;function YG(e,t,n,r,o,i){var a=vC(e),c=vC(t),u=a?xC:mC(e),d=c?xC:mC(t);u=u==bC?eu:u,d=d==bC?eu:d;var p=u==eu,g=d==eu,v=u==d;if(v&&yC(e)){if(!yC(t))return!1;a=!0,p=!1}if(v&&!p)return i||(i=new uh),a||HG(e)?WG(e,t,n,r,o,i):zG(e,t,u,n,r,o,i);if(!(n&GG)){var y=p&&CC.call(e,"__wrapped__"),b=g&&CC.call(t,"__wrapped__");if(y||b){var x=y?e.value():e,w=b?t.value():t;return i||(i=new uh),o(x,w,n,r,i)}}return v?(i||(i=new uh),UG(e,t,n,r,o,i)):!1}var KG=YG,XG=KG,wC=ta;function SE(e,t,n,r,o){return e===t?!0:e==null||t==null||!wC(e)&&!wC(t)?e!==e&&t!==t:XG(e,t,n,r,SE,o)}var ZG=SE,QG=ZG;function JG(e,t){return QG(e,t)}var eq=JG;const dl=Yr(eq);var tq=Vi,nq=function(){try{var e=tq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AE=nq,SC=AE;function rq(e,t,n){t=="__proto__"&&SC?SC(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a0=rq,oq=a0,iq=_l;function sq(e,t,n){(n!==void 0&&!iq(e[t],n)||n===void 0&&!(t in e))&&oq(e,t,n)}var EE=sq;function aq(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(n(i[u],u,i)===!1)break}return t}}var lq=aq,cq=lq,uq=cq(),dq=uq,Xu={exports:{}};Xu.exports;(function(e,t){var n=Zr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;function u(d,p){if(p)return d.slice();var g=d.length,v=c?c(g):new d.constructor(g);return d.copy(v),v}e.exports=u})(Xu,Xu.exports);var fq=Xu.exports,AC=pE;function pq(e){var t=new e.constructor(e.byteLength);return new AC(t).set(new AC(e)),t}var hq=pq,gq=hq;function mq(e,t){var n=t?gq(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vq=mq;function yq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var bq=yq,xq=$i,EC=Object.create,Cq=function(){function e(){}return function(t){if(!xq(t))return{};if(EC)return EC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),wq=Cq,Sq=xE,Aq=Sq(Object.getPrototypeOf,Object),TE=Aq,Eq=wq,Tq=TE,Iq=s0;function Oq(e){return typeof e.constructor=="function"&&!Iq(e)?Eq(Tq(e)):{}}var Pq=Oq,jq=rf,Rq=ta;function Mq(e){return Rq(e)&&jq(e)}var l0=Mq,kq=Ll,Fq=TE,Dq=ta,_q="[object Object]",Lq=Function.prototype,Bq=Object.prototype,IE=Lq.toString,Nq=Bq.hasOwnProperty,$q=IE.call(Object);function Vq(e){if(!Dq(e)||kq(e)!=_q)return!1;var t=Fq(e);if(t===null)return!0;var n=Nq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&IE.call(n)==$q}var Wq=Vq;function zq(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var OE=zq,Uq=a0,Hq=_l,Gq=Object.prototype,qq=Gq.hasOwnProperty;function Yq(e,t,n){var r=e[t];(!(qq.call(e,t)&&Hq(r,n))||n===void 0&&!(t in e))&&Uq(e,t,n)}var Kq=Yq,Xq=Kq,Zq=a0;function Qq(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;u===void 0&&(u=e[c]),o?Zq(n,c,u):Xq(n,c,u)}return n}var Jq=Qq;function eY(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var tY=eY,nY=$i,rY=s0,oY=tY,iY=Object.prototype,sY=iY.hasOwnProperty;function aY(e){if(!nY(e))return oY(e);var t=rY(e),n=[];for(var r in e)r=="constructor"&&(t||!sY.call(e,r))||n.push(r);return n}var lY=aY,cY=bE,uY=lY,dY=rf;function fY(e){return dY(e)?cY(e,!0):uY(e)}var PE=fY,pY=Jq,hY=PE;function gY(e){return pY(e,hY(e))}var mY=gY,TC=EE,vY=fq,yY=vq,bY=bq,xY=Pq,IC=r0,OC=Bl,CY=l0,wY=o0,SY=Qm,AY=$i,EY=Wq,TY=i0,PC=OE,IY=mY;function OY(e,t,n,r,o,i,a){var c=PC(e,n),u=PC(t,n),d=a.get(u);if(d){TC(e,n,d);return}var p=i?i(c,u,n+"",e,t,a):void 0,g=p===void 0;if(g){var v=OC(u),y=!v&&wY(u),b=!v&&!y&&TY(u);p=u,v||y||b?OC(c)?p=c:CY(c)?p=bY(c):y?(g=!1,p=vY(u,!0)):b?(g=!1,p=yY(u,!0)):p=[]:EY(u)||IC(u)?(p=c,IC(c)?p=IY(c):(!AY(c)||SY(c))&&(p=xY(u))):g=!1}g&&(a.set(u,p),o(p,u,r,i,a),a.delete(u)),TC(e,n,p)}var PY=OY,jY=dE,RY=EE,MY=dq,kY=PY,FY=$i,DY=PE,_Y=OE;function jE(e,t,n,r,o){e!==t&&MY(t,function(i,a){if(o||(o=new jY),FY(i))kY(e,t,a,n,jE,r,o);else{var c=r?r(_Y(e,a),i,a+"",e,t,o):void 0;c===void 0&&(c=i),RY(e,a,c)}},DY)}var LY=jE;function BY(e){return e}var RE=BY;function NY(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $Y=NY,VY=$Y,jC=Math.max;function WY(e,t,n){return t=jC(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=jC(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),VY(e,this,c)}}var zY=WY;function UY(e){return function(){return e}}var HY=UY,GY=HY,RC=AE,qY=RE,YY=RC?function(e,t){return RC(e,"toString",{configurable:!0,enumerable:!1,value:GY(t),writable:!0})}:qY,KY=YY,XY=800,ZY=16,QY=Date.now;function JY(e){var t=0,n=0;return function(){var r=QY(),o=ZY-(r-n);if(n=r,o>0){if(++t>=XY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var eK=JY,tK=KY,nK=eK,rK=nK(tK),oK=rK,iK=RE,sK=zY,aK=oK;function lK(e,t){return aK(sK(e,t,iK),e+"")}var c0=lK,cK=_l,uK=rf,dK=mE,fK=$i;function pK(e,t,n){if(!fK(n))return!1;var r=typeof t;return(r=="number"?uK(n)&&dK(t,n.length):r=="string"&&t in n)?cK(n[t],e):!1}var hK=pK,gK=c0,mK=hK;function vK(e){return gK(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&mK(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t})}var yK=vK,bK=LY,xK=yK,CK=xK(function(e,t,n){bK(e,t,n)}),wK=CK;const ME=Yr(wK);var Zu=function(){return Zu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Zu.apply(this,arguments)},kE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},FE=function(e){var t=e.className,n=e.icon,r=n===void 0?AK:n,o=e.label,i=o===void 0?"ra.action.create":o;e.resource;var a=e.scrollToTop,c=a===void 0?!0:a,u=e.variant,d=e.to,p=e.state,g=p===void 0?{}:p,v=kE(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),y=Z.useResourceContext(e),b=Z.useCreatePath(),x=Z.useTranslate(),w=S.useMediaQuery(function(E){return E.breakpoints.down("md")}),T=ME({},SK.get(String(c)),g),j=OK(d);return w?D.createElement(EK,Zu({component:ut.Link,to:b({resource:y,type:"create"}),state:T,color:"primary",className:Hs(ig.floating,t),"aria-label":i&&x(i)},v,j),r):D.createElement(TK,Zu({component:ut.Link,to:b({resource:y,type:"create"}),state:T,className:Hs(ig.root,t),label:i,variant:u},v,j),r)},SK=new Map([["true",{_scrollToTop:!0}],["false",{}]]),AK=D.createElement(Zm,null);FE.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};var Qu="RaCreateButton",ig={root:"".concat(Qu,"-root"),floating:"".concat(Qu,"-floating")},EK=ce(S.Fab,{name:Qu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["&.".concat(ig.floating)]={color:n.palette.getContrastText(n.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),TK=ce(Km,{name:Qu,overridesResolver:function(e,t){return t.root}})({});const IK=D.memo(FE,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&dl(e.to,t.to)&&dl(e.state,t.state)});var OK=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=kE(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},u0={},PK=wr;Object.defineProperty(u0,"__esModule",{value:!0});var d0=u0.default=void 0,jK=PK(Xr()),RK=f;d0=u0.default=(0,jK.default)((0,RK.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var DE={exports:{}};/*!
|
|
180
|
+
`),p$)),Kd=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:g="indeterminate"}=r,v=_e(r,d$),y=z({},r,{color:i,disableShrink:a,size:c,thickness:d,value:p,variant:g}),b=h$(y),x={},w={},T={};if(g==="determinate"){const j=2*Math.PI*((_o-d)/2);x.strokeDasharray=j.toFixed(3),T["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*j).toFixed(3)}px`,w.transform="rotate(-90deg)"}return f.jsx(g$,z({className:Be(b.root,o),style:z({width:c,height:c},w,u),ownerState:y,ref:n,role:"progressbar"},T,v,{children:f.jsx(m$,{className:b.svg,ownerState:y,viewBox:`${_o/2} ${_o/2} ${_o} ${_o}`,children:f.jsx(v$,{className:b.circle,style:x,ownerState:y,cx:_o,cy:_o,r:(_o-d)/2,fill:"none",strokeWidth:d})})}))});process.env.NODE_ENV!=="production"&&(Kd.propTypes={classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","primary","secondary","error","info","success","warning"]),m.string]),disableShrink:Eo(m.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:m.oneOfType([m.number,m.string]),style:m.object,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),thickness:m.number,value:m.number,variant:m.oneOf(["determinate","indeterminate"])});function y$(e){return Bt("MuiLoadingButton",e)}const co=Gt("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),b$=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],x$=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Ne(n)}`],endIcon:[t&&`endIconLoading${Ne(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Ne(n)}`]},i=Ut(o,y$,r);return z({},r,i)},C$=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",w$=ce(Gu,{shouldForwardProp:e=>C$(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${co.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${co.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>z({[`& .${co.startIconLoadingStart}, & .${co.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${co.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${co.startIconLoadingStart}, & .${co.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${co.startIconLoadingStart}, & .${co.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),S$=ce("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Ne(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>z({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),JA=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:a,loading:c=!1,loadingIndicator:u,loadingPosition:d="center",variant:p="text"}=r,g=_e(r,b$),v=$d(a),y=u??f.jsx(Kd,{"aria-labelledby":v,color:"inherit",size:16}),b=z({},r,{disabled:i,loading:c,loadingIndicator:y,loadingPosition:d,variant:p}),x=x$(b),w=c?f.jsx(S$,{className:x.loadingIndicator,ownerState:b,children:y}):null;return f.jsxs(w$,z({disabled:i||c,id:v,ref:n},g,{variant:p,classes:x,ownerState:b,children:[b.loadingPosition==="end"?o:w,b.loadingPosition==="end"?w:o]}))});process.env.NODE_ENV!=="production"&&(JA.propTypes={children:m.node,classes:m.object,disabled:m.bool,id:m.string,loading:m.bool,loadingIndicator:m.node,loadingPosition:Eo(m.oneOf(["start","end","center"]),e=>e.loadingPosition==="start"&&!e.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):e.loadingPosition==="end"&&!e.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["contained","outlined","text"]),m.string])});function sh({variant:e,theme:t,color:n,loadingPosition:r}){const o=sn(t,n),{lighter:i,main:a,dark:c,contrastText:u}=o,d=`${n}Button`,p=Xs(t,d),g={"& .MuiLoadingButton-loadingIndicator":{color:a}},v={...r&&r!=="center"&&{color:a}},y={"&::after":{boxShadow:`0 0 6px 6px ${Je(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Je(a,.9)}`},"&:focus-visible":{outline:`2px solid ${c}`,outlineOffset:2}};switch(e){case"contained":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"light":return{backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{backgroundColor:c,color:u},...y};case"shadow":return{boxShadow:p,backgroundColor:a,...r&&r!=="center"&&{color:u},"& .MuiLoadingButton-loadingIndicator":{color:u},"&:hover":{boxShadow:"none",backgroundColor:c,color:u},...y};case"outlined":return{backgroundColor:"transparent",borderColor:a,...v,...g};case"dashed":return{backgroundColor:i,borderColor:a,...v,...g,...y};case"text":default:return{color:a,...g,...y}}}const A$=ce(JA,{shouldForwardProp:e=>e!=="shape"&&e!=="variant"})(({theme:e,variant:t,shape:n,color:r,loading:o,loadingPosition:i})=>({"::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:n==="rounded"?"50%":4,opacity:0,transition:"all 0.5s"},":active::after":{position:"absolute",borderRadius:n==="rounded"?"50%":4,left:0,top:0,opacity:1,transition:"0s"},...t==="text"&&{...sh({variant:t,theme:e,color:r,loadingPosition:i}),"&.MuiButton-sizeMedium":{height:36},"&.MuiButton-sizeSmall":{height:30},"&.MuiButton-sizeLarge":{height:44}},...n&&{minWidth:0,"&.MuiButton-sizeMedium":{width:36,height:36},"&.MuiButton-sizeSmall":{width:30,height:30},"&.MuiButton-sizeLarge":{width:44,height:44},...n==="rounded"&&{borderRadius:"50%"}},...t==="outlined"&&{border:"1px solid"},...t==="dashed"&&{border:"1px dashed"},...(t==="contained"||t==="shadow")&&!o&&{color:"#fff"},...t!=="text"&&{...sh({variant:t,theme:e,color:r,loadingPosition:i})},"&.Mui-disabled":{...t!=="text"&&{...sh({variant:t,theme:e,color:r,loadingPosition:i})}}})),eE=A.forwardRef(({variant:e="text",shape:t,children:n,color:r="primary",loadingPosition:o,loading:i,...a},c)=>{const u=gt();return f.jsx(A$,{ref:c,variant:e,shape:t,theme:u,loadingPosition:o,loading:i,color:r,...a,children:n})});function E$({color:e,theme:t,labelColor:n}){const r=sn(t,e),{main:o,contrastText:i}=r,a=e||"";return["primary","secondary","info","success","warning","error"].includes(a)?{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:o,color:n||i},[`& .${S.tooltipClasses.arrow}`]:{color:o}}:{[`& .${S.tooltipClasses.tooltip}`]:{backgroundColor:a,color:n||i,boxShadow:t.shadows[1]},[`& .${S.tooltipClasses.arrow}`]:{color:a}}}const T$=ce(({className:e,...t})=>f.jsx(S.Tooltip,{...t,classes:{popper:e}}),{shouldForwardProp:e=>e!=="color"&&e!=="labelColor"})(({theme:e,color:t,labelColor:n})=>({...t&&E$({color:t,theme:e,labelColor:n})}));function Xd({children:e,arrow:t,labelColor:n="",...r}){const o=gt();return f.jsx(S.Box,{display:"flex",children:f.jsx(T$,{arrow:t,...r,theme:o,labelColor:n,children:e})})}const Zo=A.forwardRef(({children:e,position:t="top-left",type:n="grow",direction:r="up",...o},i)=>{let a={transformOrigin:"0 0 0"};switch(t){case"top-right":a={transformOrigin:"top right"};break;case"top":a={transformOrigin:"top"};break;case"bottom-left":a={transformOrigin:"bottom left"};break;case"bottom-right":a={transformOrigin:"bottom right"};break;case"bottom":a={transformOrigin:"bottom"};break;case"top-left":default:a={transformOrigin:"0 0 0"};break}return f.jsxs(S.Box,{ref:i,children:[n==="grow"&&f.jsx(S.Grow,{...o,timeout:{appear:0,enter:150,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="collapse"&&f.jsx(S.Collapse,{...o,sx:a,children:e}),n==="fade"&&f.jsx(S.Fade,{...o,timeout:{appear:0,enter:300,exit:150},children:f.jsx(S.Box,{sx:a,children:e})}),n==="slide"&&f.jsx(S.Slide,{...o,timeout:{appear:0,enter:150,exit:150},direction:r,children:f.jsx(S.Box,{sx:a,children:e})}),n==="zoom"&&f.jsx(S.Zoom,{...o,children:f.jsx(S.Box,{sx:a,children:e})})]})}),I$=A.forwardRef(function(t,n){return f.jsx(S.Zoom,{ref:n,timeout:200,...t})});function O$({value:e,...t}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",value:e,...t}),f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:`${Math.round(e)}%`})})]})}function P$({value:e,size:t,variant:n,thickness:r,showLabel:o,pathColor:i,sx:a,...c}){return f.jsxs(S.Box,{sx:{position:"relative",display:"inline-flex"},children:[f.jsx(S.CircularProgress,{variant:"determinate",sx:{color:i||"grey.200"},size:t,thickness:r,...c,value:100}),o?f.jsx(S.Box,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Typography,{variant:"caption",component:"div",color:"text.secondary",children:e?`${Math.round(e)}%`:"0%"})}):null,f.jsx(S.CircularProgress,{variant:n,sx:{...a,position:"absolute",left:0,[`& .${S.circularProgressClasses.circle}`]:{strokeLinecap:"round"}},size:t,thickness:r,value:e,...c})]})}function j$({icon:e,value:t,...n}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:t,...n})}),f.jsx(S.Box,{sx:{minWidth:35},children:e})]})}function R$({value:e,...t}){return f.jsxs(S.Box,{sx:{display:"flex",alignItems:"center"},children:[f.jsx(S.Box,{sx:{width:"100%",mr:1},children:f.jsx(S.LinearProgress,{variant:"determinate",value:e,...t})}),f.jsx(S.Box,{sx:{minWidth:35},children:f.jsx(S.Typography,{variant:"body2",color:"text.secondary",children:`${Math.round(e)}%`})})]})}const tE=ce("span")(({arrow:e="top-right",theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${Je(t.palette.grey[500],.12)}`,i={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...i,left:20},...e==="top-center"&&{...i,left:0,right:0,margin:"auto"},...e==="top-right"&&{...i,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function nE(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}function rE({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...i}){const{style:a,anchorOrigin:c,transformOrigin:u}=nE(n);return f.jsxs(S.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...i,children:[!r&&f.jsx(tE,{arrow:n}),t]})}const M$={width:"100%",justifyContent:"flex-start"},k$=S.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),F$=S.styled(rE,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)},[e.breakpoints.down("sm")]:{"&>.MuiSvgIcon-root, & svg":{marginRight:e.spacing(0)}}}}));function Qo({horizontal:e=!1,children:t}){const[n,r]=A.useState(null),o=A.useRef(null);function i(u){u.stopPropagation(),u.preventDefault(),r(u.currentTarget),o.current=u.currentTarget}const a=A.useCallback(u=>{u.stopPropagation(),u.preventDefault(),r(null)},[]),c=A.useCallback(u=>{var d;r(null),typeof((d=u.currentTarget)==null?void 0:d.onClick)=="function"&&u.currentTarget.onClick(u)},[]);return!t||A.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(u=>A.isValidElement(u)).length)===0?null:f.jsxs(k$,{children:[f.jsx(S.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:i,color:n?"inherit":"default",children:e?f.jsx(nn.MoreHoriz,{}):f.jsx(nn.MoreVert,{})}),f.jsx(F$,{open:n,onClose:a,arrow:"right-top",children:A.Children.map(t,(u,d)=>A.isValidElement(u)&&f.jsx(S.MenuItem,{onClick:c,children:A.cloneElement(u,{style:{...M$}})},d))})]})}function Zd(){const e=tn.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return f.jsx(S.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:f.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),f.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),f.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),f.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),f.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),f.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),f.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),f.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),f.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})}const oE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAesAAAHKCAYAAAAjA2MyAAAAxXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVBbDsMgDPvnFDsCiVMex6Erk3aDHX+BhKmtZok4xGBCQv+8X+ExwCRBtlxSTSkqpErlpkmJhjYjRZlxou+e0bUens1TVoYyTCjJmFbdLyymcW87GZWnC/tVqGLM5WbkD2F0xJocblTdCGwCuUGzb8VUSz5/Ye/ximIrjIA8vX8m971knd6xaRHMHYSoEUjWAMZCQFOBNALjIGmxQVbFO9GB/JvTQvgCAHJZ0+cZkqUAAAGFaUNDU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4ODE5ODIyYSIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0xMS0zMFQxMjo0MTozMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5A30f8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wseCykesp/dTgAAIABJREFUeNrsvXt0XGeZ5vt8e9e9dClJtuzYupQTEkjiJDIQOw0By4EQzJCOTNMkDsyJciAzNDAdmZk1Z4awxvJMN92nV9OyaWCaQ1h2GogcBtqGhHZMQmxjQsehg0VQCISOVZKvki2rdKl71f7OH7uqVKXaVSqpLqqSnt9aWrbqsmvr27v2s9/v/d7nBQghBbN2r1y9tk/ezJEghBBCKluwzWv65Ns5EoQQQkhlC7ZpdZ9s5UgQQgghlS3YFo4CIYQQUuG4+qSJo0AIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEkGWJ4BCQ5YarTzrtQKsmMDbaI65yRAghFGtCKkekbTYFJiHhv9gjNI4IIYQQUkGs7ZO88SSEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEkKVj7V7p4CgQQgghhBBCCCGEEEIIIYtmdZ9UOAqEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCSNWwtk8qHAVCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIWQlonIICFk8brfbVVNTc0djY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Uc2CJnyRsY8BiGmSDrmvjPr0c3bpADADQKr8pMdSNpZF1T0o7InD2+RaTIAaA+oR6NrOtK3H2ZaHsDpwEAdcCQpFckDSBpZF2P0u7VjX5tAIBai6J/K+kVUt3IulGkHZHUK26RA0D1M6wb9WiiaGRNtM1pAABRNCDr6pZ2SOZ0tD7R/gUAlYFaNLKGAsQdkXkh7QsiTQ4A/kfR+zOCjnIcyBqKE3evLdpG3ADglaBJcyNr8Enc22SmyqlvA0Axgh6StE/SMGluZA3+S9uqb2+TmSoHAHAT9ClJA5koGkEja0DcAICgAVlDPvK2izvEiQA0jKBfzQiaFDeyhhoTd6+4nAZQr4zIbLPikhiyhjoSd4/MqWnbRB83QK0yZBN0lONA1lDf4g5liZuoG6A6sdLbg6L+jKyBqJuoG6Bq5HwqEz0PBgKBYY4EkDW4ydsSdw/yBvCdoUzkPCguhwGyhiLFHcpIG3kDeCfn4Uz0jJwBWYOv8u7NfGwQLWIAblhpbSJnQNZQcYH32gS+QVxYg8ZlxJKyqDkDsoYql3fEJu8eom+o86h52IqciZoBWUOtC7wnE3EjcKh1MVtRc5RjAWQNCBygMoxkhBxFzICsAZwFbl1gs0SOxMHPaHnEFi0PiwtggKwBkDhUPFK2PoaJlgFZA5RX4hGbwK2vEXnjCTmWJeVhSVEiZUDWANUv856MtO0iDyHzmpZxLEvIMYQMyBqgvmVuF7gl9ojt84c5JV+JSZqwyTeW9TlKuhqQNQDkI/RQlsSdvlbm88oGj9gt+dqlG3P4c5SIGABZA1SL4EM2eUeyPuf6WlnPWpT6ZmDE5fvRLOHGHP7O/n27dIV4AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgLvk/Afd07jclJisAAAAASUVORK5CYII=";var ah={};const D$=Ao(k7);var X1;function Xr(){return X1||(X1=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=D$}(ah)),ah}var Ya=function(){return Ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ya.apply(this,arguments)},iE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},Km=function(e){var t=e.alignIcon,n=t===void 0?"left":t,r=e.children,o=e.className,i=e.disabled,a=e.label,c=e.color,u=c===void 0?"primary":c,d=e.size,p=d===void 0?"small":d,g=e.to,v=iE(e,["alignIcon","children","className","disabled","label","color","size","to"]),y=Z.useTranslate(),b=a?y(a,{_:a}):void 0,x=B$(g),w=S.useMediaQuery(function(T){return T.breakpoints.down("sm")});return w?a&&!i?D.createElement(S.Tooltip,{title:b},D.createElement(S.IconButton,Ya({"aria-label":b,className:o,color:u,size:"large"},x,v),r)):D.createElement(S.IconButton,Ya({className:o,color:u,disabled:i,size:"large"},x,v),r):D.createElement(L$,Ya({className:o,color:u,size:p,"aria-label":b,disabled:i,startIcon:n==="left"&&r?r:void 0,endIcon:n==="right"&&r?r:void 0},x,v),b)};Km.propTypes={alignIcon:m.oneOf(["left","right"]),children:m.element,className:m.string,color:m.oneOfType([m.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),m.string]),disabled:m.bool,label:m.string,size:m.oneOf(["small","medium","large"])};var _$="RaButton",L$=ce(S.Button,{name:_$,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),B$=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=iE(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},Xm={},N$=wr;Object.defineProperty(Xm,"__esModule",{value:!0});var Zm=Xm.default=void 0,$$=N$(Xr()),V$=f;Zm=Xm.default=(0,$$.default)((0,V$.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function sE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=sE(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hs(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=sE(e))&&(r&&(r+=" "),r+=t);return r}function W$(){this.__data__=[],this.size=0}var z$=W$;function U$(e,t){return e===t||e!==e&&t!==t}var _l=U$,H$=_l;function G$(e,t){for(var n=e.length;n--;)if(H$(e[n][0],t))return n;return-1}var Qd=G$,q$=Qd,Y$=Array.prototype,K$=Y$.splice;function X$(e){var t=this.__data__,n=q$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():K$.call(t,n,1),--this.size,!0}var Z$=X$,Q$=Qd;function J$(e){var t=this.__data__,n=Q$(t,e);return n<0?void 0:t[n][1]}var eV=J$,tV=Qd;function nV(e){return tV(this.__data__,e)>-1}var rV=nV,oV=Qd;function iV(e,t){var n=this.__data__,r=oV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var sV=iV,aV=z$,lV=Z$,cV=eV,uV=rV,dV=sV;function Zs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zs.prototype.clear=aV;Zs.prototype.delete=lV;Zs.prototype.get=cV;Zs.prototype.has=uV;Zs.prototype.set=dV;var Jd=Zs,fV=Jd;function pV(){this.__data__=new fV,this.size=0}var hV=pV;function gV(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mV=gV;function vV(e){return this.__data__.get(e)}var yV=vV;function bV(e){return this.__data__.has(e)}var xV=bV,CV=typeof wn=="object"&&wn&&wn.Object===Object&&wn,aE=CV,wV=aE,SV=typeof self=="object"&&self&&self.Object===Object&&self,AV=wV||SV||Function("return this")(),Zr=AV,EV=Zr,TV=EV.Symbol,ef=TV,Z1=ef,lE=Object.prototype,IV=lE.hasOwnProperty,OV=lE.toString,ka=Z1?Z1.toStringTag:void 0;function PV(e){var t=IV.call(e,ka),n=e[ka];try{e[ka]=void 0;var r=!0}catch{}var o=OV.call(e);return r&&(t?e[ka]=n:delete e[ka]),o}var jV=PV,RV=Object.prototype,MV=RV.toString;function kV(e){return MV.call(e)}var FV=kV,Q1=ef,DV=jV,_V=FV,LV="[object Null]",BV="[object Undefined]",J1=Q1?Q1.toStringTag:void 0;function NV(e){return e==null?e===void 0?BV:LV:J1&&J1 in Object(e)?DV(e):_V(e)}var Ll=NV;function $V(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vi=$V,VV=Ll,WV=Vi,zV="[object AsyncFunction]",UV="[object Function]",HV="[object GeneratorFunction]",GV="[object Proxy]";function qV(e){if(!WV(e))return!1;var t=VV(e);return t==UV||t==HV||t==zV||t==GV}var Qm=qV,YV=Zr,KV=YV["__core-js_shared__"],XV=KV,lh=XV,eC=function(){var e=/[^.]+$/.exec(lh&&lh.keys&&lh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ZV(e){return!!eC&&eC in e}var QV=ZV,JV=Function.prototype,eW=JV.toString;function tW(e){if(e!=null){try{return eW.call(e)}catch{}try{return e+""}catch{}}return""}var cE=tW,nW=Qm,rW=QV,oW=Vi,iW=cE,sW=/[\\^$.*+?()[\]{}|]/g,aW=/^\[object .+?Constructor\]$/,lW=Function.prototype,cW=Object.prototype,uW=lW.toString,dW=cW.hasOwnProperty,fW=RegExp("^"+uW.call(dW).replace(sW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pW(e){if(!oW(e)||rW(e))return!1;var t=nW(e)?fW:aW;return t.test(iW(e))}var hW=pW;function gW(e,t){return e==null?void 0:e[t]}var mW=gW,vW=hW,yW=mW;function bW(e,t){var n=yW(e,t);return vW(n)?n:void 0}var Wi=bW,xW=Wi,CW=Zr,wW=xW(CW,"Map"),Jm=wW,SW=Wi,AW=SW(Object,"create"),tf=AW,tC=tf;function EW(){this.__data__=tC?tC(null):{},this.size=0}var TW=EW;function IW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var OW=IW,PW=tf,jW="__lodash_hash_undefined__",RW=Object.prototype,MW=RW.hasOwnProperty;function kW(e){var t=this.__data__;if(PW){var n=t[e];return n===jW?void 0:n}return MW.call(t,e)?t[e]:void 0}var FW=kW,DW=tf,_W=Object.prototype,LW=_W.hasOwnProperty;function BW(e){var t=this.__data__;return DW?t[e]!==void 0:LW.call(t,e)}var NW=BW,$W=tf,VW="__lodash_hash_undefined__";function WW(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$W&&t===void 0?VW:t,this}var zW=WW,UW=TW,HW=OW,GW=FW,qW=NW,YW=zW;function Qs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qs.prototype.clear=UW;Qs.prototype.delete=HW;Qs.prototype.get=GW;Qs.prototype.has=qW;Qs.prototype.set=YW;var KW=Qs,nC=KW,XW=Jd,ZW=Jm;function QW(){this.size=0,this.__data__={hash:new nC,map:new(ZW||XW),string:new nC}}var JW=QW;function ez(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tz=ez,nz=tz;function rz(e,t){var n=e.__data__;return nz(t)?n[typeof t=="string"?"string":"hash"]:n.map}var nf=rz,oz=nf;function iz(e){var t=oz(this,e).delete(e);return this.size-=t?1:0,t}var sz=iz,az=nf;function lz(e){return az(this,e).get(e)}var cz=lz,uz=nf;function dz(e){return uz(this,e).has(e)}var fz=dz,pz=nf;function hz(e,t){var n=pz(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var gz=hz,mz=JW,vz=sz,yz=cz,bz=fz,xz=gz;function Js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Js.prototype.clear=mz;Js.prototype.delete=vz;Js.prototype.get=yz;Js.prototype.has=bz;Js.prototype.set=xz;var uE=Js,Cz=Jd,wz=Jm,Sz=uE,Az=200;function Ez(e,t){var n=this.__data__;if(n instanceof Cz){var r=n.__data__;if(!wz||r.length<Az-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sz(r)}return n.set(e,t),this.size=n.size,this}var Tz=Ez,Iz=Jd,Oz=hV,Pz=mV,jz=yV,Rz=xV,Mz=Tz;function ea(e){var t=this.__data__=new Iz(e);this.size=t.size}ea.prototype.clear=Oz;ea.prototype.delete=Pz;ea.prototype.get=jz;ea.prototype.has=Rz;ea.prototype.set=Mz;var dE=ea,kz="__lodash_hash_undefined__";function Fz(e){return this.__data__.set(e,kz),this}var Dz=Fz;function _z(e){return this.__data__.has(e)}var Lz=_z,Bz=uE,Nz=Dz,$z=Lz;function qu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Bz;++t<n;)this.add(e[t])}qu.prototype.add=qu.prototype.push=Nz;qu.prototype.has=$z;var e0=qu;function Vz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Wz=Vz;function zz(e,t){return e.has(t)}var t0=zz,Uz=e0,Hz=Wz,Gz=t0,qz=1,Yz=2;function Kz(e,t,n,r,o,i){var a=n&qz,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var g=-1,v=!0,y=n&Yz?new Uz:void 0;for(i.set(e,t),i.set(t,e);++g<c;){var b=e[g],x=t[g];if(r)var w=a?r(x,b,g,t,e,i):r(b,x,g,e,t,i);if(w!==void 0){if(w)continue;v=!1;break}if(y){if(!Hz(t,function(T,j){if(!Gz(y,j)&&(b===T||o(b,T,n,r,i)))return y.push(j)})){v=!1;break}}else if(!(b===x||o(b,x,n,r,i))){v=!1;break}}return i.delete(e),i.delete(t),v}var fE=Kz,Xz=Zr,Zz=Xz.Uint8Array,pE=Zz;function Qz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var Jz=Qz;function eU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var n0=eU,rC=ef,oC=pE,tU=_l,nU=fE,rU=Jz,oU=n0,iU=1,sU=2,aU="[object Boolean]",lU="[object Date]",cU="[object Error]",uU="[object Map]",dU="[object Number]",fU="[object RegExp]",pU="[object Set]",hU="[object String]",gU="[object Symbol]",mU="[object ArrayBuffer]",vU="[object DataView]",iC=rC?rC.prototype:void 0,ch=iC?iC.valueOf:void 0;function yU(e,t,n,r,o,i,a){switch(n){case vU:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mU:return!(e.byteLength!=t.byteLength||!i(new oC(e),new oC(t)));case aU:case lU:case dU:return tU(+e,+t);case cU:return e.name==t.name&&e.message==t.message;case fU:case hU:return e==t+"";case uU:var c=rU;case pU:var u=r&iU;if(c||(c=oU),e.size!=t.size&&!u)return!1;var d=a.get(e);if(d)return d==t;r|=sU,a.set(e,t);var p=nU(c(e),c(t),r,o,i,a);return a.delete(e),p;case gU:if(ch)return ch.call(e)==ch.call(t)}return!1}var bU=yU;function xU(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var hE=xU,CU=Array.isArray,Bl=CU,wU=hE,SU=Bl;function AU(e,t,n){var r=t(e);return SU(e)?r:wU(r,n(e))}var EU=AU;function TU(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var IU=TU;function OU(){return[]}var PU=OU,jU=IU,RU=PU,MU=Object.prototype,kU=MU.propertyIsEnumerable,sC=Object.getOwnPropertySymbols,FU=sC?function(e){return e==null?[]:(e=Object(e),jU(sC(e),function(t){return kU.call(e,t)}))}:RU,DU=FU;function _U(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var LU=_U;function BU(e){return e!=null&&typeof e=="object"}var ta=BU,NU=Ll,$U=ta,VU="[object Arguments]";function WU(e){return $U(e)&&NU(e)==VU}var zU=WU,aC=zU,UU=ta,gE=Object.prototype,HU=gE.hasOwnProperty,GU=gE.propertyIsEnumerable,qU=aC(function(){return arguments}())?aC:function(e){return UU(e)&&HU.call(e,"callee")&&!GU.call(e,"callee")},r0=qU,Yu={exports:{}};function YU(){return!1}var KU=YU;Yu.exports;(function(e,t){var n=Zr,r=KU,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,c=a?n.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||r;e.exports=d})(Yu,Yu.exports);var o0=Yu.exports,XU=9007199254740991,ZU=/^(?:0|[1-9]\d*)$/;function QU(e,t){var n=typeof e;return t=t??XU,!!t&&(n=="number"||n!="symbol"&&ZU.test(e))&&e>-1&&e%1==0&&e<t}var mE=QU,JU=9007199254740991;function eH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JU}var vE=eH,tH=Ll,nH=vE,rH=ta,oH="[object Arguments]",iH="[object Array]",sH="[object Boolean]",aH="[object Date]",lH="[object Error]",cH="[object Function]",uH="[object Map]",dH="[object Number]",fH="[object Object]",pH="[object RegExp]",hH="[object Set]",gH="[object String]",mH="[object WeakMap]",vH="[object ArrayBuffer]",yH="[object DataView]",bH="[object Float32Array]",xH="[object Float64Array]",CH="[object Int8Array]",wH="[object Int16Array]",SH="[object Int32Array]",AH="[object Uint8Array]",EH="[object Uint8ClampedArray]",TH="[object Uint16Array]",IH="[object Uint32Array]",xt={};xt[bH]=xt[xH]=xt[CH]=xt[wH]=xt[SH]=xt[AH]=xt[EH]=xt[TH]=xt[IH]=!0;xt[oH]=xt[iH]=xt[vH]=xt[sH]=xt[yH]=xt[aH]=xt[lH]=xt[cH]=xt[uH]=xt[dH]=xt[fH]=xt[pH]=xt[hH]=xt[gH]=xt[mH]=!1;function OH(e){return rH(e)&&nH(e.length)&&!!xt[tH(e)]}var PH=OH;function jH(e){return function(t){return e(t)}}var yE=jH,Ku={exports:{}};Ku.exports;(function(e,t){var n=aE,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,c=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=c})(Ku,Ku.exports);var RH=Ku.exports,MH=PH,kH=yE,lC=RH,cC=lC&&lC.isTypedArray,FH=cC?kH(cC):MH,i0=FH,DH=LU,_H=r0,LH=Bl,BH=o0,NH=mE,$H=i0,VH=Object.prototype,WH=VH.hasOwnProperty;function zH(e,t){var n=LH(e),r=!n&&_H(e),o=!n&&!r&&BH(e),i=!n&&!r&&!o&&$H(e),a=n||r||o||i,c=a?DH(e.length,String):[],u=c.length;for(var d in e)(t||WH.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||NH(d,u)))&&c.push(d);return c}var bE=zH,UH=Object.prototype;function HH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||UH;return e===n}var s0=HH;function GH(e,t){return function(n){return e(t(n))}}var xE=GH,qH=xE,YH=qH(Object.keys,Object),KH=YH,XH=s0,ZH=KH,QH=Object.prototype,JH=QH.hasOwnProperty;function eG(e){if(!XH(e))return ZH(e);var t=[];for(var n in Object(e))JH.call(e,n)&&n!="constructor"&&t.push(n);return t}var tG=eG,nG=Qm,rG=vE;function oG(e){return e!=null&&rG(e.length)&&!nG(e)}var rf=oG,iG=bE,sG=tG,aG=rf;function lG(e){return aG(e)?iG(e):sG(e)}var cG=lG,uG=EU,dG=DU,fG=cG;function pG(e){return uG(e,fG,dG)}var hG=pG,uC=hG,gG=1,mG=Object.prototype,vG=mG.hasOwnProperty;function yG(e,t,n,r,o,i){var a=n&gG,c=uC(e),u=c.length,d=uC(t),p=d.length;if(u!=p&&!a)return!1;for(var g=u;g--;){var v=c[g];if(!(a?v in t:vG.call(t,v)))return!1}var y=i.get(e),b=i.get(t);if(y&&b)return y==t&&b==e;var x=!0;i.set(e,t),i.set(t,e);for(var w=a;++g<u;){v=c[g];var T=e[v],j=t[v];if(r)var E=a?r(j,T,v,t,e,i):r(T,j,v,e,t,i);if(!(E===void 0?T===j||o(T,j,n,r,i):E)){x=!1;break}w||(w=v=="constructor")}if(x&&!w){var P=e.constructor,O=t.constructor;P!=O&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(x=!1)}return i.delete(e),i.delete(t),x}var bG=yG,xG=Wi,CG=Zr,wG=xG(CG,"DataView"),SG=wG,AG=Wi,EG=Zr,TG=AG(EG,"Promise"),IG=TG,OG=Wi,PG=Zr,jG=OG(PG,"Set"),CE=jG,RG=Wi,MG=Zr,kG=RG(MG,"WeakMap"),FG=kG,eg=SG,tg=Jm,ng=IG,rg=CE,og=FG,wE=Ll,na=cE,dC="[object Map]",DG="[object Object]",fC="[object Promise]",pC="[object Set]",hC="[object WeakMap]",gC="[object DataView]",_G=na(eg),LG=na(tg),BG=na(ng),NG=na(rg),$G=na(og),Ei=wE;(eg&&Ei(new eg(new ArrayBuffer(1)))!=gC||tg&&Ei(new tg)!=dC||ng&&Ei(ng.resolve())!=fC||rg&&Ei(new rg)!=pC||og&&Ei(new og)!=hC)&&(Ei=function(e){var t=wE(e),n=t==DG?e.constructor:void 0,r=n?na(n):"";if(r)switch(r){case _G:return gC;case LG:return dC;case BG:return fC;case NG:return pC;case $G:return hC}return t});var VG=Ei,uh=dE,WG=fE,zG=bU,UG=bG,mC=VG,vC=Bl,yC=o0,HG=i0,GG=1,bC="[object Arguments]",xC="[object Array]",eu="[object Object]",qG=Object.prototype,CC=qG.hasOwnProperty;function YG(e,t,n,r,o,i){var a=vC(e),c=vC(t),u=a?xC:mC(e),d=c?xC:mC(t);u=u==bC?eu:u,d=d==bC?eu:d;var p=u==eu,g=d==eu,v=u==d;if(v&&yC(e)){if(!yC(t))return!1;a=!0,p=!1}if(v&&!p)return i||(i=new uh),a||HG(e)?WG(e,t,n,r,o,i):zG(e,t,u,n,r,o,i);if(!(n&GG)){var y=p&&CC.call(e,"__wrapped__"),b=g&&CC.call(t,"__wrapped__");if(y||b){var x=y?e.value():e,w=b?t.value():t;return i||(i=new uh),o(x,w,n,r,i)}}return v?(i||(i=new uh),UG(e,t,n,r,o,i)):!1}var KG=YG,XG=KG,wC=ta;function SE(e,t,n,r,o){return e===t?!0:e==null||t==null||!wC(e)&&!wC(t)?e!==e&&t!==t:XG(e,t,n,r,SE,o)}var ZG=SE,QG=ZG;function JG(e,t){return QG(e,t)}var eq=JG;const dl=Yr(eq);var tq=Wi,nq=function(){try{var e=tq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AE=nq,SC=AE;function rq(e,t,n){t=="__proto__"&&SC?SC(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a0=rq,oq=a0,iq=_l;function sq(e,t,n){(n!==void 0&&!iq(e[t],n)||n===void 0&&!(t in e))&&oq(e,t,n)}var EE=sq;function aq(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),c=a.length;c--;){var u=a[e?c:++o];if(n(i[u],u,i)===!1)break}return t}}var lq=aq,cq=lq,uq=cq(),dq=uq,Xu={exports:{}};Xu.exports;(function(e,t){var n=Zr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;function u(d,p){if(p)return d.slice();var g=d.length,v=c?c(g):new d.constructor(g);return d.copy(v),v}e.exports=u})(Xu,Xu.exports);var fq=Xu.exports,AC=pE;function pq(e){var t=new e.constructor(e.byteLength);return new AC(t).set(new AC(e)),t}var hq=pq,gq=hq;function mq(e,t){var n=t?gq(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vq=mq;function yq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var bq=yq,xq=Vi,EC=Object.create,Cq=function(){function e(){}return function(t){if(!xq(t))return{};if(EC)return EC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),wq=Cq,Sq=xE,Aq=Sq(Object.getPrototypeOf,Object),TE=Aq,Eq=wq,Tq=TE,Iq=s0;function Oq(e){return typeof e.constructor=="function"&&!Iq(e)?Eq(Tq(e)):{}}var Pq=Oq,jq=rf,Rq=ta;function Mq(e){return Rq(e)&&jq(e)}var l0=Mq,kq=Ll,Fq=TE,Dq=ta,_q="[object Object]",Lq=Function.prototype,Bq=Object.prototype,IE=Lq.toString,Nq=Bq.hasOwnProperty,$q=IE.call(Object);function Vq(e){if(!Dq(e)||kq(e)!=_q)return!1;var t=Fq(e);if(t===null)return!0;var n=Nq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&IE.call(n)==$q}var Wq=Vq;function zq(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var OE=zq,Uq=a0,Hq=_l,Gq=Object.prototype,qq=Gq.hasOwnProperty;function Yq(e,t,n){var r=e[t];(!(qq.call(e,t)&&Hq(r,n))||n===void 0&&!(t in e))&&Uq(e,t,n)}var Kq=Yq,Xq=Kq,Zq=a0;function Qq(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],u=r?r(n[c],e[c],c,n,e):void 0;u===void 0&&(u=e[c]),o?Zq(n,c,u):Xq(n,c,u)}return n}var Jq=Qq;function eY(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var tY=eY,nY=Vi,rY=s0,oY=tY,iY=Object.prototype,sY=iY.hasOwnProperty;function aY(e){if(!nY(e))return oY(e);var t=rY(e),n=[];for(var r in e)r=="constructor"&&(t||!sY.call(e,r))||n.push(r);return n}var lY=aY,cY=bE,uY=lY,dY=rf;function fY(e){return dY(e)?cY(e,!0):uY(e)}var PE=fY,pY=Jq,hY=PE;function gY(e){return pY(e,hY(e))}var mY=gY,TC=EE,vY=fq,yY=vq,bY=bq,xY=Pq,IC=r0,OC=Bl,CY=l0,wY=o0,SY=Qm,AY=Vi,EY=Wq,TY=i0,PC=OE,IY=mY;function OY(e,t,n,r,o,i,a){var c=PC(e,n),u=PC(t,n),d=a.get(u);if(d){TC(e,n,d);return}var p=i?i(c,u,n+"",e,t,a):void 0,g=p===void 0;if(g){var v=OC(u),y=!v&&wY(u),b=!v&&!y&&TY(u);p=u,v||y||b?OC(c)?p=c:CY(c)?p=bY(c):y?(g=!1,p=vY(u,!0)):b?(g=!1,p=yY(u,!0)):p=[]:EY(u)||IC(u)?(p=c,IC(c)?p=IY(c):(!AY(c)||SY(c))&&(p=xY(u))):g=!1}g&&(a.set(u,p),o(p,u,r,i,a),a.delete(u)),TC(e,n,p)}var PY=OY,jY=dE,RY=EE,MY=dq,kY=PY,FY=Vi,DY=PE,_Y=OE;function jE(e,t,n,r,o){e!==t&&MY(t,function(i,a){if(o||(o=new jY),FY(i))kY(e,t,a,n,jE,r,o);else{var c=r?r(_Y(e,a),i,a+"",e,t,o):void 0;c===void 0&&(c=i),RY(e,a,c)}},DY)}var LY=jE;function BY(e){return e}var RE=BY;function NY(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $Y=NY,VY=$Y,jC=Math.max;function WY(e,t,n){return t=jC(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=jC(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),VY(e,this,c)}}var zY=WY;function UY(e){return function(){return e}}var HY=UY,GY=HY,RC=AE,qY=RE,YY=RC?function(e,t){return RC(e,"toString",{configurable:!0,enumerable:!1,value:GY(t),writable:!0})}:qY,KY=YY,XY=800,ZY=16,QY=Date.now;function JY(e){var t=0,n=0;return function(){var r=QY(),o=ZY-(r-n);if(n=r,o>0){if(++t>=XY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var eK=JY,tK=KY,nK=eK,rK=nK(tK),oK=rK,iK=RE,sK=zY,aK=oK;function lK(e,t){return aK(sK(e,t,iK),e+"")}var c0=lK,cK=_l,uK=rf,dK=mE,fK=Vi;function pK(e,t,n){if(!fK(n))return!1;var r=typeof t;return(r=="number"?uK(n)&&dK(t,n.length):r=="string"&&t in n)?cK(n[t],e):!1}var hK=pK,gK=c0,mK=hK;function vK(e){return gK(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&mK(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t})}var yK=vK,bK=LY,xK=yK,CK=xK(function(e,t,n){bK(e,t,n)}),wK=CK;const ME=Yr(wK);var Zu=function(){return Zu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Zu.apply(this,arguments)},kE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},FE=function(e){var t=e.className,n=e.icon,r=n===void 0?AK:n,o=e.label,i=o===void 0?"ra.action.create":o;e.resource;var a=e.scrollToTop,c=a===void 0?!0:a,u=e.variant,d=e.to,p=e.state,g=p===void 0?{}:p,v=kE(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),y=Z.useResourceContext(e),b=Z.useCreatePath(),x=Z.useTranslate(),w=S.useMediaQuery(function(E){return E.breakpoints.down("md")}),T=ME({},SK.get(String(c)),g),j=OK(d);return w?D.createElement(EK,Zu({component:ut.Link,to:b({resource:y,type:"create"}),state:T,color:"primary",className:Hs(ig.floating,t),"aria-label":i&&x(i)},v,j),r):D.createElement(TK,Zu({component:ut.Link,to:b({resource:y,type:"create"}),state:T,className:Hs(ig.root,t),label:i,variant:u},v,j),r)},SK=new Map([["true",{_scrollToTop:!0}],["false",{}]]),AK=D.createElement(Zm,null);FE.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};var Qu="RaCreateButton",ig={root:"".concat(Qu,"-root"),floating:"".concat(Qu,"-floating")},EK=ce(S.Fab,{name:Qu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["&.".concat(ig.floating)]={color:n.palette.getContrastText(n.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),TK=ce(Km,{name:Qu,overridesResolver:function(e,t){return t.root}})({});const IK=D.memo(FE,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&dl(e.to,t.to)&&dl(e.state,t.state)});var OK=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,n=e.replace,r=e.state,o=kE(e,["redirect","replace","state"]);return{to:o,redirect:t,replace:n,state:r}}},u0={},PK=wr;Object.defineProperty(u0,"__esModule",{value:!0});var d0=u0.default=void 0,jK=PK(Xr()),RK=f;d0=u0.default=(0,jK.default)((0,RK.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var DE={exports:{}};/*!
|
|
181
181
|
* inflection
|
|
182
182
|
* Copyright(c) 2011 Ben Lin <ben@dreamerslab.com>
|
|
183
183
|
* MIT Licensed
|
|
@@ -186,22 +186,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
186
186
|
* A port of inflection-js to node.js module.
|
|
187
187
|
*/(function(e,t){(function(n,r){e.exports=r()})(wn,function(){var n=["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","grammar","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"],r={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"),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"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)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"),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)$","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")}},o=[[r.plural.men],[r.plural.people],[r.plural.children],[r.plural.tia],[r.plural.analyses],[r.plural.hives],[r.plural.curves],[r.plural.lrves],[r.plural.foves],[r.plural.aeiouyies],[r.plural.series],[r.plural.movies],[r.plural.xes],[r.plural.mice],[r.plural.buses],[r.plural.oes],[r.plural.shoes],[r.plural.crises],[r.plural.octopi],[r.plural.aliases],[r.plural.summonses],[r.plural.oxen],[r.plural.matrices],[r.plural.feet],[r.plural.teeth],[r.plural.geese],[r.plural.quizzes],[r.plural.whereases],[r.plural.criteria],[r.plural.genera],[r.singular.man,"$1en"],[r.singular.person,"$1ople"],[r.singular.child,"$1ren"],[r.singular.ox,"$1en"],[r.singular.axis,"$1es"],[r.singular.octopus,"$1i"],[r.singular.alias,"$1es"],[r.singular.summons,"$1es"],[r.singular.bus,"$1ses"],[r.singular.buffalo,"$1oes"],[r.singular.tium,"$1a"],[r.singular.sis,"ses"],[r.singular.ffe,"$1$2ves"],[r.singular.hive,"$1ves"],[r.singular.aeiouyy,"$1ies"],[r.singular.matrix,"$1ices"],[r.singular.vertex,"$1ices"],[r.singular.x,"$1es"],[r.singular.mouse,"$1ice"],[r.singular.foot,"feet"],[r.singular.tooth,"teeth"],[r.singular.goose,"geese"],[r.singular.quiz,"$1zes"],[r.singular.whereas,"$1es"],[r.singular.criterion,"$1a"],[r.singular.genus,"genera"],[r.singular.s,"s"],[r.singular.common,"s"]],i=[[r.singular.man],[r.singular.person],[r.singular.child],[r.singular.ox],[r.singular.axis],[r.singular.octopus],[r.singular.alias],[r.singular.summons],[r.singular.bus],[r.singular.buffalo],[r.singular.tium],[r.singular.sis],[r.singular.ffe],[r.singular.hive],[r.singular.aeiouyy],[r.singular.x],[r.singular.matrix],[r.singular.mouse],[r.singular.foot],[r.singular.tooth],[r.singular.goose],[r.singular.quiz],[r.singular.whereas],[r.singular.criterion],[r.singular.genus],[r.plural.men,"$1an"],[r.plural.people,"$1rson"],[r.plural.children,"$1"],[r.plural.genera,"genus"],[r.plural.criteria,"$1on"],[r.plural.tia,"$1um"],[r.plural.analyses,"$1$2sis"],[r.plural.hives,"$1ve"],[r.plural.curves,"$1"],[r.plural.lrves,"$1f"],[r.plural.aves,"$1ve"],[r.plural.foves,"$1fe"],[r.plural.movies,"$1ovie"],[r.plural.aeiouyies,"$1y"],[r.plural.series,"$1eries"],[r.plural.xes,"$1"],[r.plural.mice,"$1ouse"],[r.plural.buses,"$1"],[r.plural.oes,"$1"],[r.plural.shoes,"$1"],[r.plural.crises,"$1is"],[r.plural.octopi,"$1us"],[r.plural.aliases,"$1"],[r.plural.summonses,"$1"],[r.plural.oxen,"$1"],[r.plural.matrices,"$1ix"],[r.plural.vertices,"$1ex"],[r.plural.feet,"foot"],[r.plural.teeth,"tooth"],[r.plural.geese,"goose"],[r.plural.quizzes,"$1"],[r.plural.whereases,"$1"],[r.plural.ss,"ss"],[r.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"],c=new RegExp("(_ids|_id)$","g"),u=new RegExp("_","g"),d=new RegExp("[ _]","g"),p=new RegExp("([A-Z])","g"),g=new RegExp("^_"),v={_apply_rules:function(y,b,x,w){if(w)y=w;else{var T=v.indexOf(x,y.toLowerCase())>-1;if(!T){for(var j=0,E=b.length;j<E;j++)if(y.match(b[j][0])){b[j][1]!==void 0&&(y=y.replace(b[j][0],b[j][1]));break}}}return y},indexOf:function(y,b,x,w){x||(x=-1);for(var T=-1,j=x,E=y.length;j<E;j++)if(y[j]===b||w&&w(y[j],b)){T=j;break}return T},pluralize:function(y,b){return v._apply_rules(y,o,n,b)},singularize:function(y,b){return v._apply_rules(y,i,n,b)},inflect:function(y,b,x,w){return b=parseInt(b,10),isNaN(b)?y:b===0||b>1?v._apply_rules(y,o,n,w):v._apply_rules(y,i,n,x)},camelize:function(y,b){for(var x=y.split("/"),w=0,T=x.length,j,E,P,O;w<T;w++){for(j=x[w].split("_"),E=0,P=j.length;E<P;E++)E!==0&&(j[E]=j[E].toLowerCase()),O=j[E].charAt(0),O=b&&w===0&&E===0?O.toLowerCase():O.toUpperCase(),j[E]=O+j[E].substring(1);x[w]=j.join("")}return x.join("::")},underscore:function(y,b){if(b&&y===y.toUpperCase())return y;for(var x=y.split("::"),w=0,T=x.length;w<T;w++)x[w]=x[w].replace(p,"_$1"),x[w]=x[w].replace(g,"");return x.join("/").toLowerCase()},humanize:function(y,b){return y=y.toLowerCase(),y=y.replace(c,""),y=y.replace(u," "),b||(y=v.capitalize(y)),y},capitalize:function(y){return y=y.toLowerCase(),y.substring(0,1).toUpperCase()+y.substring(1)},dasherize:function(y){return y.replace(d,"-")},titleize:function(y){y=y.toLowerCase().replace(u," ");for(var b=y.split(" "),x=0,w=b.length,T,j,E;x<w;x++){for(T=b[x].split("-"),j=0,E=T.length;j<E;j++)v.indexOf(a,T[j].toLowerCase())<0&&(T[j]=v.capitalize(T[j]));b[x]=T.join("-")}return y=b.join(" "),y=y.substring(0,1).toUpperCase()+y.substring(1),y},demodulize:function(y){var b=y.split("::");return b[b.length-1]},tableize:function(y){return y=v.underscore(y),y=v.pluralize(y),y},classify:function(y){return y=v.camelize(y),y=v.singularize(y),y},foreign_key:function(y,b){return y=v.demodulize(y),y=v.underscore(y)+(b?"":"_")+"id",y},ordinalize:function(y){for(var b=y.split(" "),x=0,w=b.length;x<w;x++){var T=parseInt(b[x],10);if(!isNaN(T)){var j=b[x].substring(b[x].length-2),E=b[x].substring(b[x].length-1),P="th";j!="11"&&j!="12"&&j!="13"&&(E==="1"?P="st":E==="2"?P="nd":E==="3"&&(P="rd")),b[x]+=P}}return b.join(" ")},transform:function(y,b){for(var x=0,w=b.length;x<w;x++){var T=b[x];v.hasOwnProperty(T)&&(y=v[T](y))}return y}};return v.version="1.12.0",v})})(DE);var MK=DE.exports;const Uo=Yr(MK);var sg=function(){return sg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sg.apply(this,arguments)},kK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},tu,dh,_E=function(e){var t=e.className,n=e.onClick,r=e.sx,o=kK(e,["className","onClick","sx"]),i=Z.useLoading(),a=gt();return D.createElement(FK,{className:t,sx:r},D.createElement(l2,{className:"".concat(ks.loadedIcon," ").concat(i&&ks.loadedLoading),onClick:n}),i&&D.createElement(Kd,sg({className:Hs("app-loader",ks.loader),color:"inherit",size:a.spacing(2),thickness:6},o)))};_E.propTypes={classes:m.object,className:m.string,width:m.string};var yu="RaLoadingIndicator",ks={loader:"".concat(yu,"-loader"),loadedLoading:"".concat(yu,"-loadedLoading"),loadedIcon:"".concat(yu,"-loadedIcon")},FK=ce("div",{name:yu,overridesResolver:function(e,t){return t.root}})((tu={position:"relative"},tu["& .".concat(ks.loadedIcon)]=(dh={},dh["&.".concat(ks.loadedLoading)]={opacity:0},dh),tu["& .".concat(ks.loader)]={position:"absolute",top:"30%",left:"30%"},tu));const LE=e=>e.scrollTop;function Ju(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function DK(e){const t=Kn(e);return t.body===e?Nd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ka(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function MC(e){return parseInt(Nd(e).getComputedStyle(e).paddingRight,10)||0}function _K(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function kC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=i.indexOf(a)===-1,u=!_K(a);c&&u&&Ka(a,o)})}function fh(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function LK(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(DK(r)){const a=iB(Kn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${MC(r)+a}px`;const c=Kn(r).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${MC(u)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Kn(r).body;else{const a=r.parentElement,c=Nd(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function BK(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class NK{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ka(t.modalRef,!1);const o=BK(n);kC(n,t.mount,t.modalRef,o,!0);const i=fh(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=fh(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=LK(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=fh(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ka(t.modalRef,n),kC(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ka(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function $K(e){return typeof e=="function"?e():e}function VK(e){return e?e.props.hasOwnProperty("in"):!1}const WK=new NK;function zK(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=WK,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:c,children:u,onClose:d,open:p,rootRef:g}=e,v=D.useRef({}),y=D.useRef(null),b=D.useRef(null),x=on(b,g),[w,T]=D.useState(!p),j=VK(u);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const P=()=>Kn(y.current),O=()=>(v.current.modalRef=b.current,v.current.mount=y.current,v.current),k=()=>{o.mount(O(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},F=go(()=>{const N=$K(t)||P().body;o.add(O(),N),b.current&&k()}),B=D.useCallback(()=>o.isTopModal(O()),[o]),H=go(N=>{y.current=N,N&&(p&&B()?k():b.current&&Ka(b.current,E))}),q=D.useCallback(()=>{o.remove(O(),E)},[E,o]);D.useEffect(()=>()=>{q()},[q]),D.useEffect(()=>{p?F():(!j||!i)&&q()},[p,q,j,i,F]);const U=N=>Q=>{var $;($=N.onKeyDown)==null||$.call(N,Q),!(Q.key!=="Escape"||Q.which===229||!B())&&(n||(Q.stopPropagation(),d&&d(Q,"escapeKeyDown")))},ne=N=>Q=>{var $;($=N.onClick)==null||$.call(N,Q),Q.target===Q.currentTarget&&d&&d(Q,"backdropClick")};return{getRootProps:(N={})=>{const Q=CA(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const $=z({},Q,N);return z({role:"presentation"},$,{onKeyDown:U($),ref:x})},getBackdropProps:(N={})=>{const Q=N;return z({"aria-hidden":!0},Q,{onClick:ne(Q),open:p})},getTransitionProps:()=>{const N=()=>{T(!1),a&&a()},Q=()=>{T(!0),c&&c(),i&&q()};return{onEnter:Hh(N,u==null?void 0:u.props.onEnter),onExited:Hh(Q,u==null?void 0:u.props.onExited)}},rootRef:x,portalRef:H,isTopModal:B,exited:w,hasTransition:j}}const UK=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HK(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 GK(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function qK(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||GK(e))}function YK(e){const t=[],n=[];return Array.from(e.querySelectorAll(UK)).forEach((r,o)=>{const i=HK(r);i===-1||!qK(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function KK(){return!0}function ed(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=YK,isEnabled:a=KK,open:c}=e,u=D.useRef(!1),d=D.useRef(null),p=D.useRef(null),g=D.useRef(null),v=D.useRef(null),y=D.useRef(!1),b=D.useRef(null),x=on(t.ref,b),w=D.useRef(null);D.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),D.useEffect(()=>{if(!c||!b.current)return;const E=Kn(b.current);return b.current.contains(E.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
188
188
|
`)),b.current.setAttribute("tabIndex","-1")),y.current&&b.current.focus()),()=>{o||(g.current&&g.current.focus&&(u.current=!0,g.current.focus()),g.current=null)}},[c]),D.useEffect(()=>{if(!c||!b.current)return;const E=Kn(b.current),P=F=>{w.current=F,!(r||!a()||F.key!=="Tab")&&E.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},O=()=>{const F=b.current;if(F===null)return;if(!E.hasFocus()||!a()||u.current){u.current=!1;return}if(F.contains(E.activeElement)||r&&E.activeElement!==d.current&&E.activeElement!==p.current)return;if(E.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!y.current)return;let B=[];if((E.activeElement===d.current||E.activeElement===p.current)&&(B=i(b.current)),B.length>0){var H,q;const U=!!((H=w.current)!=null&&H.shiftKey&&((q=w.current)==null?void 0:q.key)==="Tab"),ne=B[0],te=B[B.length-1];typeof ne!="string"&&typeof te!="string"&&(U?te.focus():ne.focus())}else F.focus()};E.addEventListener("focusin",O),E.addEventListener("keydown",P,!0);const k=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(k),E.removeEventListener("focusin",O),E.removeEventListener("keydown",P,!0)}},[n,r,o,a,c,i]);const T=E=>{g.current===null&&(g.current=E.relatedTarget),y.current=!0,v.current=E.target;const P=t.props.onFocus;P&&P(E)},j=E=>{g.current===null&&(g.current=E.relatedTarget),y.current=!0};return f.jsxs(D.Fragment,{children:[f.jsx("div",{tabIndex:c?0:-1,onFocus:j,ref:d,"data-testid":"sentinelStart"}),D.cloneElement(t,{ref:x,onFocus:T}),f.jsx("div",{tabIndex:c?0:-1,onFocus:j,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ed.propTypes={children:Ks,disableAutoFocus:m.bool,disableEnforceFocus:m.bool,disableRestoreFocus:m.bool,getTabbable:m.func,isEnabled:m.func,open:m.bool.isRequired});process.env.NODE_ENV!=="production"&&(ed.propTypes=Rl(ed.propTypes));function XK(e){return typeof e=="function"?e():e}const fl=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=D.useState(null),u=on(D.isValidElement(r)?r.ref:null,n);if(Gr(()=>{i||c(XK(o)||document.body)},[o,i]),Gr(()=>{if(a&&!i)return $s(n,a),()=>{$s(n,null)}},[n,a,i]),i){if(D.isValidElement(r)){const d={ref:u};return D.cloneElement(r,d)}return f.jsx(D.Fragment,{children:r})}return f.jsx(D.Fragment,{children:a&&gw.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(fl.propTypes={children:m.node,container:m.oneOfType([wo,m.func]),disablePortal:m.bool});process.env.NODE_ENV!=="production"&&(fl.propTypes=Rl(fl.propTypes));const ZK=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],QK={entering:{opacity:1},entered:{opacity:1}},f0=D.forwardRef(function(t,n){const r=gt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:u,in:d,onEnter:p,onEntered:g,onEntering:v,onExit:y,onExited:b,onExiting:x,style:w,timeout:T=o,TransitionComponent:j=Kr}=t,E=_e(t,ZK),P=D.useRef(null),O=on(P,c.ref,n),k=Y=>X=>{if(Y){const N=P.current;X===void 0?Y(N):Y(N,X)}},F=k(v),B=k((Y,X)=>{LE(Y);const N=Ju({style:w,timeout:T,easing:u},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("opacity",N),Y.style.transition=r.transitions.create("opacity",N),p&&p(Y,X)}),H=k(g),q=k(x),U=k(Y=>{const X=Ju({style:w,timeout:T,easing:u},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("opacity",X),Y.style.transition=r.transitions.create("opacity",X),y&&y(Y)}),ne=k(b),te=Y=>{i&&i(P.current,Y)};return f.jsx(j,z({appear:a,in:d,nodeRef:P,onEnter:B,onEntered:H,onEntering:F,onExit:U,onExited:ne,onExiting:q,addEndListener:te,timeout:T},E,{children:(Y,X)=>D.cloneElement(c,z({style:z({opacity:0,visibility:Y==="exited"&&!d?"hidden":void 0},QK[Y],w,c.props.style),ref:O},X))}))});process.env.NODE_ENV!=="production"&&(f0.propTypes={addEndListener:m.func,appear:m.bool,children:Ks.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});function JK(e){return Bt("MuiBackdrop",e)}Gt("MuiBackdrop",["root","invisible"]);const eX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tX=e=>{const{classes:t,invisible:n}=e;return Ut({root:["root",n&&"invisible"]},JK,t)},nX=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),p0=D.forwardRef(function(t,n){var r,o,i;const a=Ht({props:t,name:"MuiBackdrop"}),{children:c,className:u,component:d="div",components:p={},componentsProps:g={},invisible:v=!1,open:y,slotProps:b={},slots:x={},TransitionComponent:w=f0,transitionDuration:T}=a,j=_e(a,eX),E=z({},a,{component:d,invisible:v}),P=tX(E),O=(r=b.root)!=null?r:g.root;return f.jsx(w,z({in:y,timeout:T},j,{children:f.jsx(nX,z({"aria-hidden":!0},O,{as:(o=(i=x.root)!=null?i:p.Root)!=null?o:d,className:Be(P.root,u,O==null?void 0:O.className),ownerState:z({},E,O==null?void 0:O.ownerState),classes:P,ref:n,children:c}))}))});process.env.NODE_ENV!=="production"&&(p0.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.object}),invisible:m.bool,open:m.bool.isRequired,slotProps:m.shape({root:m.object}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});function rX(e){return Bt("MuiModal",e)}Gt("MuiModal",["root","hidden","backdrop"]);const oX=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],iX=e=>{const{open:t,exited:n,classes:r}=e;return Ut({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rX,r)},sX=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),aX=ce(p0,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),BE=D.forwardRef(function(t,n){var r,o,i,a,c,u;const d=Ht({name:"MuiModal",props:t}),{BackdropComponent:p=aX,BackdropProps:g,className:v,closeAfterTransition:y=!1,children:b,container:x,component:w,components:T={},componentsProps:j={},disableAutoFocus:E=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:O=!1,disablePortal:k=!1,disableRestoreFocus:F=!1,disableScrollLock:B=!1,hideBackdrop:H=!1,keepMounted:q=!1,onBackdropClick:U,open:ne,slotProps:te,slots:Y}=d,X=_e(d,oX),N=z({},d,{closeAfterTransition:y,disableAutoFocus:E,disableEnforceFocus:P,disableEscapeKeyDown:O,disablePortal:k,disableRestoreFocus:F,disableScrollLock:B,hideBackdrop:H,keepMounted:q}),{getRootProps:Q,getBackdropProps:$,getTransitionProps:oe,portalRef:W,isTopModal:J,exited:ue,hasTransition:he}=zK(z({},N,{rootRef:n})),de=z({},N,{exited:ue}),pe=iX(de),ge={};if(b.props.tabIndex===void 0&&(ge.tabIndex="-1"),he){const{onEnter:Ge,onExited:me}=oe();ge.onEnter=Ge,ge.onExited=me}const we=(r=(o=Y==null?void 0:Y.root)!=null?o:T.Root)!=null?r:sX,ye=(i=(a=Y==null?void 0:Y.backdrop)!=null?a:T.Backdrop)!=null?i:p,ve=(c=te==null?void 0:te.root)!=null?c:j.root,Ce=(u=te==null?void 0:te.backdrop)!=null?u:j.backdrop,Te=Bu({elementType:we,externalSlotProps:ve,externalForwardedProps:X,getSlotProps:Q,additionalProps:{ref:n,as:w},ownerState:de,className:Be(v,ve==null?void 0:ve.className,pe==null?void 0:pe.root,!de.open&&de.exited&&(pe==null?void 0:pe.hidden))}),fe=Bu({elementType:ye,externalSlotProps:Ce,additionalProps:g,getSlotProps:Ge=>$(z({},Ge,{onClick:me=>{U&&U(me),Ge!=null&&Ge.onClick&&Ge.onClick(me)}})),className:Be(Ce==null?void 0:Ce.className,g==null?void 0:g.className,pe==null?void 0:pe.backdrop),ownerState:de});return!q&&!ne&&(!he||ue)?null:f.jsx(fl,{ref:W,container:x,disablePortal:k,children:f.jsxs(we,z({},Te,{children:[!H&&p?f.jsx(ye,z({},fe)):null,f.jsx(ed,{disableEnforceFocus:P,disableAutoFocus:E,disableRestoreFocus:F,isEnabled:J,open:ne,children:D.cloneElement(b,ge)})]}))})});process.env.NODE_ENV!=="production"&&(BE.propTypes={BackdropComponent:m.elementType,BackdropProps:m.object,children:Ks.isRequired,classes:m.object,className:m.string,closeAfterTransition:m.bool,component:m.elementType,components:m.shape({Backdrop:m.elementType,Root:m.elementType}),componentsProps:m.shape({backdrop:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([wo,m.func]),disableAutoFocus:m.bool,disableEnforceFocus:m.bool,disableEscapeKeyDown:m.bool,disablePortal:m.bool,disableRestoreFocus:m.bool,disableScrollLock:m.bool,hideBackdrop:m.bool,keepMounted:m.bool,onBackdropClick:m.func,onClose:m.func,onTransitionEnter:m.func,onTransitionExited:m.func,open:m.bool.isRequired,slotProps:m.shape({backdrop:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object])}),slots:m.shape({backdrop:m.elementType,root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function lX(e){return Bt("MuiPaper",e)}Gt("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 cX=["className","component","elevation","square","variant"],uX=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ut(i,lX,o)},dX=ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Vr("#fff",O1(t.elevation))}, ${Vr("#fff",O1(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),h0=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,d=_e(r,cX),p=z({},r,{component:i,elevation:a,square:c,variant:u}),g=uX(p);return process.env.NODE_ENV!=="production"&>().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
189
|
-
`)),f.jsx(dX,z({as:i,ownerState:p,className:Be(g.root,o),ref:n},d))});process.env.NODE_ENV!=="production"&&(h0.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,elevation:Eo(hu,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["elevation","outlined"]),m.string])});function fX(e){return Bt("MuiDialog",e)}const ph=Gt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),g0=D.createContext({});process.env.NODE_ENV!=="production"&&(g0.displayName="DialogContext");const pX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],hX=ce(p0,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gX=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ut(a,fX,t)},mX=ce(BE,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vX=ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ne(n.scroll)}`]]}})(({ownerState:e})=>z({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),yX=ce(h0,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ne(n.scroll)}`],t[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>z({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ph.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ph.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ph.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),NE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialog"}),o=gt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,BackdropComponent:u,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:v=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:x="sm",onBackdropClick:w,onClick:T,onClose:j,open:E,PaperComponent:P=h0,PaperProps:O={},scroll:k="paper",TransitionComponent:F=f0,transitionDuration:B=i,TransitionProps:H}=r,q=_e(r,pX),U=z({},r,{disableEscapeKeyDown:v,fullScreen:y,fullWidth:b,maxWidth:x,scroll:k}),ne=gX(U),te=D.useRef(),Y=$=>{te.current=$.target===$.currentTarget},X=$=>{T&&T($),te.current&&(te.current=null,w&&w($),j&&j($,"backdropClick"))},N=$d(c),Q=D.useMemo(()=>({titleId:N}),[N]);return f.jsx(mX,z({className:Be(ne.root,g),closeAfterTransition:!0,components:{Backdrop:hX},componentsProps:{backdrop:z({transitionDuration:B,as:u},d)},disableEscapeKeyDown:v,onClose:j,open:E,ref:n,onClick:X,ownerState:U},q,{children:f.jsx(F,z({appear:!0,in:E,timeout:B,role:"presentation"},H,{children:f.jsx(vX,{className:Be(ne.container),onMouseDown:Y,ownerState:U,children:f.jsx(yX,z({as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N},O,{className:Be(ne.paper,O.className),ownerState:U,children:f.jsx(g0.Provider,{value:Q,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(NE.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,BackdropComponent:m.elementType,BackdropProps:m.object,children:m.node,classes:m.object,className:m.string,disableEscapeKeyDown:m.bool,fullScreen:m.bool,fullWidth:m.bool,maxWidth:m.oneOfType([m.oneOf(["xs","sm","md","lg","xl",!1]),m.string]),onBackdropClick:m.func,onClick:m.func,onClose:m.func,open:m.bool.isRequired,PaperComponent:m.elementType,PaperProps:m.object,scroll:m.oneOf(["body","paper"]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})]),TransitionProps:m.object});function bX(e){return Bt("MuiDialogActions",e)}Gt("MuiDialogActions",["root","spacing"]);const xX=["className","disableSpacing"],CX=e=>{const{classes:t,disableSpacing:n}=e;return Ut({root:["root",!n&&"spacing"]},bX,t)},wX=ce("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),$E=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=_e(r,xX),c=z({},r,{disableSpacing:i}),u=CX(c);return f.jsx(wX,z({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&($E.propTypes={children:m.node,classes:m.object,className:m.string,disableSpacing:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function SX(e){return Bt("MuiDialogContent",e)}Gt("MuiDialogContent",["root","dividers"]);function AX(e){return Bt("MuiDialogTitle",e)}const EX=Gt("MuiDialogTitle",["root"]),TX=["className","dividers"],IX=e=>{const{classes:t,dividers:n}=e;return Ut({root:["root",n&&"dividers"]},SX,t)},OX=ce("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>z({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${EX.root} + &`]:{paddingTop:0}})),VE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=_e(r,TX),c=z({},r,{dividers:i}),u=IX(c);return f.jsx(OX,z({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&(VE.propTypes={children:m.node,classes:m.object,className:m.string,dividers:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function PX(e){return Bt("MuiDialogContentText",e)}Gt("MuiDialogContentText",["root"]);const jX=["children","className"],RX=e=>{const{classes:t}=e,r=Ut({root:["root"]},PX,t);return z({},t,r)},MX=ce(Wd,{shouldForwardProp:e=>Rm(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=_e(r,jX),a=RX(i);return f.jsx(MX,z({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:Be(a.root,o)},r,{classes:a}))});process.env.NODE_ENV!=="production"&&(WE.propTypes={children:m.node,classes:m.object,className:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});const kX=["className","id"],FX=e=>{const{classes:t}=e;return Ut({root:["root"]},AX,t)},DX=ce(Wd,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),zE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=_e(r,kX),c=r,u=FX(c),{titleId:d=i}=D.useContext(g0);return f.jsx(DX,z({component:"h2",className:Be(u.root,o),ownerState:c,ref:n,variant:"h6",id:i??d},a))});process.env.NODE_ENV!=="production"&&(zE.propTypes={children:m.node,classes:m.object,className:m.string,id:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});var m0={},_X=wr;Object.defineProperty(m0,"__esModule",{value:!0});var UE=m0.default=void 0,LX=_X(Xr()),BX=f;UE=m0.default=(0,LX.default)((0,BX.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"}),"CheckCircle");var v0={},NX=wr;Object.defineProperty(v0,"__esModule",{value:!0});var HE=v0.default=void 0,$X=NX(Xr()),VX=f;HE=v0.default=(0,$X.default)((0,VX.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Xa=function(){return Xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xa.apply(this,arguments)},WX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},GE=function(e){var t,n=e.className,r=e.isOpen,o=r===void 0?!1:r,i=e.loading,a=e.title,c=e.content,u=e.cancel,d=u===void 0?"ra.action.cancel":u,p=e.confirm,g=p===void 0?"ra.action.confirm":p,v=e.confirmColor,y=v===void 0?"primary":v,b=e.ConfirmIcon,x=b===void 0?UE:b,w=e.CancelIcon,T=w===void 0?HE:w,j=e.onClose,E=e.onConfirm,P=e.translateOptions,O=P===void 0?{}:P,k=WX(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),F=Z.useTranslate(),B=A.useCallback(function(q){q.stopPropagation(),E(q)},[E]),H=A.useCallback(function(q){q.stopPropagation()},[]);return D.createElement(zX,Xa({className:n,open:o,onClose:j,onClick:H,"aria-labelledby":"alert-dialog-title"},k),D.createElement(zE,{id:"alert-dialog-title"},typeof a=="string"?F(a,Xa({_:a},O)):a),D.createElement(VE,null,typeof c=="string"?D.createElement(WE,null,F(c,Xa({_:c},O))):c),D.createElement($E,null,D.createElement(Gu,{disabled:i,onClick:j,startIcon:D.createElement(T,null)},F(d,{_:d})),D.createElement(Gu,{disabled:i,onClick:B,className:Hs("ra-confirm",(t={},t[td.confirmWarning]=y==="warning",t[td.confirmPrimary]=y==="primary",t)),autoFocus:!0,startIcon:D.createElement(x,null)},F(g,{_:g}))))};GE.propTypes={cancel:m.string,className:m.string,confirm:m.string,confirmColor:m.string,ConfirmIcon:m.elementType,CancelIcon:m.elementType,content:m.node.isRequired,isOpen:m.bool,loading:m.bool,onClose:m.func.isRequired,onConfirm:m.func.isRequired,title:m.node.isRequired,sx:m.any};var ag="RaConfirm",td={confirmPrimary:"".concat(ag,"-confirmPrimary"),confirmWarning:"".concat(ag,"-confirmWarning")},zX=ce(NE,{name:ag,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["& .".concat(td.confirmPrimary)]={color:n.palette.primary.main},t["& .".concat(td.confirmWarning)]={color:n.palette.error.main,"&:hover":{backgroundColor:Je(n.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),y0={},UX=wr;Object.defineProperty(y0,"__esModule",{value:!0});var qE=y0.default=void 0,HX=UX(Xr()),GX=f;qE=y0.default=(0,HX.default)((0,GX.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var b0={},qX=wr;Object.defineProperty(b0,"__esModule",{value:!0});var YE=b0.default=void 0,YX=qX(Xr()),KX=f;YE=b0.default=(0,YX.default)((0,KX.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"}),"Settings");var XX=function(e){var t=e.children,n=e.editor,r=e.preferenceKey,o=e.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,a=e.sx,c="preferences.".concat(r),u=Z.usePreferencesEditor(),d=!!u,p=Z.useTranslate(),g=u||{},v=g.isEnabled,y=g.setEditor,b=g.preferenceKey,x=g.setPreferenceKey,w=c===b,T=A.useRef(w),j=A.useRef(null),E=A.useState(!1),P=E[0],O=E[1];if(A.useEffect(function(){T.current=w},[w]),A.useEffect(function(){return function(){T.current&&(x&&x(null),y&&y(null))}},[y,x]),!d)return t;var k=function(){y(A.cloneElement(n,{preferenceKey:c,key:c})),x(c)},F=function(){O(!0)},B=function(){O(!1)};return D.createElement(Z.PreferenceKeyContextProvider,{value:c},D.createElement(ZX,{className:Hs(fo.root,v&&fo.editMode,w&&fo.editorActive),sx:a,ref:j,onMouseEnter:v?F:void 0,onMouseLeave:v?B:void 0},t),D.createElement(S.Popover,{open:v&&(P||w),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:B,PaperProps:{elevation:1,onMouseEnter:F,onMouseLeave:B,title:p(i),onClick:k},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},D.createElement(YE,{fontSize:"12px"})))},bu="RaConfigurable",fo={root:"".concat(bu,"-root"),editMode:"".concat(bu,"-editMode"),editorActive:"".concat(bu,"-editorActive")},ZX=ce("span",{name:bu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(fo.editMode)]={transition:n.transitions.create("outline"),outline:"".concat(S.alpha(n.palette.warning.main,.3)," solid 2px")},t["&.".concat(fo.editMode,":hover ")]={outline:"".concat(S.alpha(n.palette.warning.main,.5)," solid 2px")},t["&.".concat(fo.editMode,".").concat(fo.editorActive," , &.").concat(fo.editMode,".").concat(fo.editorActive,":hover ")]={outline:"".concat(n.palette.warning.main," solid 2px")},t}),Ii=function(){return Ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ii.apply(this,arguments)},QX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},JX=function(e){var t=e.title,n=e.defaultTitle,r=e.className,o=QX(e,["title","defaultTitle","className"]),i=Z.usePreference()[0],a=Z.useTranslate(),c=Z.useRecordContext();return i?D.createElement("span",Ii({className:r},o),a(i,Ii(Ii({},c),{_:i}))):D.createElement("span",{className:r},t?typeof t=="string"?D.createElement("span",Ii({},o),a(t,{_:t})):t:D.createElement("span",Ii({},o),n))},nd=function(){return nd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nd.apply(this,arguments)},eZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},tZ=function(){var e=Z.usePreferenceInput();return D.createElement("form",null,D.createElement(S.TextField,nd({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},nZ=function(e){var t=e.preferenceKey,n=eZ(e,["preferenceKey"]),r=ut.useLocation().pathname;return D.createElement(XX,{editor:D.createElement(tZ,null),preferenceKey:t||"".concat(r,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},D.createElement(JX,nd({},n)))},lg=function(){return lg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lg.apply(this,arguments)},rZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},KE=function(e){var t=e.defaultTitle,n=e.title,r=e.preferenceKey,o=rZ(e,["defaultTitle","title","preferenceKey"]),i=A.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),a=i[0],c=i[1];return A.useEffect(function(){c(function(u){var d=typeof document<"u"&&document.body.contains(u);return u&&d?u:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),a?(Z.warning(!t&&!n,"Missing title prop in <Title> element"),Cs.createPortal(D.createElement(nZ,lg({title:n,defaultTitle:t,preferenceKey:r},o)),a)):null},oZ=m.oneOfType([m.string,m.element]);KE.propTypes={defaultTitle:m.string,className:m.string,record:m.any,title:oZ};var iZ=function(e){var t=Di.useLocation().pathname,n=A.useRef(t);A.useEffect(function(){t!==n.current&&e()},[t,e])},sZ=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},FC={error:null},aZ=function(e){_m(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=FC,r.resetErrorBoundary=function(){for(var c,u=arguments.length,d=new Array(u),p=0;p<u;p++)d[p]=arguments[p];r.props.onReset==null||(c=r.props).onReset.apply(c,d),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(FC)},n.componentDidCatch=function(o,i){var a,c;(a=(c=this.props).onError)==null||a.call(c,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,c=this.props.resetKeys;if(a!==null&&i.error!==null&&sZ(o.resetKeys,c)){var u,d;(u=(d=this.props).onResetKeysChange)==null||u.call(d,o.resetKeys,c),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,c=i.FallbackComponent,u=i.fallback;if(o!==null){var d={error:o,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(u))return u;if(typeof a=="function")return a(d);if(c)return D.createElement(c,d);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(D.Component);function lZ(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var cZ=lZ,cg=function(){return cg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},cg.apply(this,arguments)},uZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},XE=function(e){var t=e.className,n=e.loadingPrimary,r=n===void 0?"ra.page.loading":n,o=e.loadingSecondary,i=o===void 0?"ra.message.loading":o,a=uZ(e,["className","loadingPrimary","loadingSecondary"]),c=Z.useTimeout(1e3),u=Z.useTranslate();return c?D.createElement(dZ,cg({className:t},a),D.createElement("div",{className:rd.message},D.createElement(Kd,{className:rd.icon}),D.createElement(S.Typography,{variant:"h5",mt:3,color:"text.secondary"},u(r,{_:r})),D.createElement(S.Typography,{variant:"body2"},u(i,{_:i})))):null};XE.propTypes={className:m.string,loadingPrimary:m.string,loadingSecondary:m.string};var xu="RaLoading",rd={root:"".concat(xu,"-root"),icon:"".concat(xu,"-icon"),message:"".concat(xu,"-message")},dZ=ce("div",{name:xu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t["& .".concat(rd.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:n.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(rd.icon)]={width:"9em",height:"9em"},t}),x0={},fZ=wr;Object.defineProperty(x0,"__esModule",{value:!0});var ZE=x0.default=void 0,pZ=fZ(Xr()),hZ=f;ZE=x0.default=(0,pZ.default)((0,hZ.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.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var ug=function(){return ug=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ug.apply(this,arguments)},gZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},QE=function(e){var t=e.icon,n=t===void 0?vZ:t,r=e.label,o=r===void 0?"ra.action.edit":r,i=e.scrollToTop,a=i===void 0?!0:i,c=e.className,u=gZ(e,["icon","label","scrollToTop","className"]),d=Z.useResourceContext(e),p=Z.useRecordContext(e),g=Z.useCreatePath();return p?D.createElement(xZ,ug({component:ut.Link,to:g({type:"edit",resource:d,id:p.id}),state:mZ[String(a)],label:o,onClick:yZ,className:Hs(bZ.root,c)},u),n):null},mZ={true:{_scrollToTop:!0},false:{}},vZ=D.createElement(ZE,null),yZ=function(e){return e.stopPropagation()};QE.propTypes={icon:m.element,label:m.string,record:m.any,scrollToTop:m.bool};var JE="RaEditButton",bZ={root:"".concat(JE,"-root")},xZ=ce(Km,{name:JE,overridesResolver:function(e,t){return t.root}})({}),C0={},CZ=wr;Object.defineProperty(C0,"__esModule",{value:!0});var e2=C0.default=void 0,wZ=CZ(Xr()),SZ=f;e2=C0.default=(0,wZ.default)((0,SZ.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"}),"Refresh");const AZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dg(e){return`scale(${e}, ${e**2})`}const EZ={entering:{opacity:1,transform:dg(1)},entered:{opacity:1,transform:"none"}},hh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),od=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:v,onExiting:y,style:b,timeout:x="auto",TransitionComponent:w=Kr}=t,T=_e(t,AZ),j=Is(),E=D.useRef(),P=gt(),O=D.useRef(null),k=on(O,i.ref,n),F=X=>N=>{if(X){const Q=O.current;N===void 0?X(Q):X(Q,N)}},B=F(p),H=F((X,N)=>{LE(X);const{duration:Q,delay:$,easing:oe}=Ju({style:b,timeout:x,easing:a},{mode:"enter"});let W;x==="auto"?(W=P.transitions.getAutoHeightDuration(X.clientHeight),E.current=W):W=Q,X.style.transition=[P.transitions.create("opacity",{duration:W,delay:$}),P.transitions.create("transform",{duration:hh?W:W*.666,delay:$,easing:oe})].join(","),u&&u(X,N)}),q=F(d),U=F(y),ne=F(X=>{const{duration:N,delay:Q,easing:$}=Ju({style:b,timeout:x,easing:a},{mode:"exit"});let oe;x==="auto"?(oe=P.transitions.getAutoHeightDuration(X.clientHeight),E.current=oe):oe=N,X.style.transition=[P.transitions.create("opacity",{duration:oe,delay:Q}),P.transitions.create("transform",{duration:hh?oe:oe*.666,delay:hh?Q:Q||oe*.333,easing:$})].join(","),X.style.opacity=0,X.style.transform=dg(.75),g&&g(X)}),te=F(v),Y=X=>{x==="auto"&&j.start(E.current||0,X),r&&r(O.current,X)};return f.jsx(w,z({appear:o,in:c,nodeRef:O,onEnter:H,onEntered:q,onEntering:B,onExit:ne,onExited:te,onExiting:U,addEndListener:Y,timeout:x==="auto"?null:x},T,{children:(X,N)=>D.cloneElement(i,z({style:z({opacity:0,transform:dg(.75),visibility:X==="exited"&&!c?"hidden":void 0},EZ[X],b,i.props.style),ref:k},N))}))});process.env.NODE_ENV!=="production"&&(od.propTypes={addEndListener:m.func,appear:m.bool,children:Ks.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.oneOf(["auto"]),m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});od.muiSupportAuto=!0;const t2="base";function TZ(e){return`${t2}--${e}`}function IZ(e,t){return`${t2}-${e}-${t}`}function n2(e,t){const n=sA[t];return n?TZ(n):IZ(e,t)}function OZ(e,t){const n={};return t.forEach(r=>{n[r]=n2(e,r)}),n}const r2="Popper";function PZ(e){return n2(r2,e)}OZ(r2,["root"]);const jZ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],RZ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function MZ(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 id(e){return typeof e=="function"?e():e}function of(e){return e.nodeType!==void 0}function kZ(e){return!of(e)}const FZ=()=>Ut({root:["root"]},LL(PZ)),DZ={},_Z=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=_e(t,jZ),T=D.useRef(null),j=on(T,n),E=D.useRef(null),P=on(E,v),O=D.useRef(P);Gr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>E.current,[]);const k=MZ(p,a),[F,B]=D.useState(k),[H,q]=D.useState(id(o));D.useEffect(()=>{E.current&&E.current.forceUpdate()}),D.useEffect(()=>{o&&q(id(o))},[o]),Gr(()=>{if(!H||!d)return;const X=$=>{B($.placement)};if(process.env.NODE_ENV!=="production"&&H&&of(H)&&H.nodeType===1){const $=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
189
|
+
`)),f.jsx(dX,z({as:i,ownerState:p,className:Be(g.root,o),ref:n},d))});process.env.NODE_ENV!=="production"&&(h0.propTypes={children:m.node,classes:m.object,className:m.string,component:m.elementType,elevation:Eo(hu,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),variant:m.oneOfType([m.oneOf(["elevation","outlined"]),m.string])});function fX(e){return Bt("MuiDialog",e)}const ph=Gt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),g0=D.createContext({});process.env.NODE_ENV!=="production"&&(g0.displayName="DialogContext");const pX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],hX=ce(p0,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gX=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ut(a,fX,t)},mX=ce(BE,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vX=ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ne(n.scroll)}`]]}})(({ownerState:e})=>z({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),yX=ce(h0,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ne(n.scroll)}`],t[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>z({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ph.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ph.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ph.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),NE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialog"}),o=gt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,BackdropComponent:u,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:v=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:x="sm",onBackdropClick:w,onClick:T,onClose:j,open:E,PaperComponent:P=h0,PaperProps:O={},scroll:k="paper",TransitionComponent:F=f0,transitionDuration:B=i,TransitionProps:H}=r,q=_e(r,pX),U=z({},r,{disableEscapeKeyDown:v,fullScreen:y,fullWidth:b,maxWidth:x,scroll:k}),ne=gX(U),te=D.useRef(),Y=$=>{te.current=$.target===$.currentTarget},X=$=>{T&&T($),te.current&&(te.current=null,w&&w($),j&&j($,"backdropClick"))},N=$d(c),Q=D.useMemo(()=>({titleId:N}),[N]);return f.jsx(mX,z({className:Be(ne.root,g),closeAfterTransition:!0,components:{Backdrop:hX},componentsProps:{backdrop:z({transitionDuration:B,as:u},d)},disableEscapeKeyDown:v,onClose:j,open:E,ref:n,onClick:X,ownerState:U},q,{children:f.jsx(F,z({appear:!0,in:E,timeout:B,role:"presentation"},H,{children:f.jsx(vX,{className:Be(ne.container),onMouseDown:Y,ownerState:U,children:f.jsx(yX,z({as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":N},O,{className:Be(ne.paper,O.className),ownerState:U,children:f.jsx(g0.Provider,{value:Q,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(NE.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,BackdropComponent:m.elementType,BackdropProps:m.object,children:m.node,classes:m.object,className:m.string,disableEscapeKeyDown:m.bool,fullScreen:m.bool,fullWidth:m.bool,maxWidth:m.oneOfType([m.oneOf(["xs","sm","md","lg","xl",!1]),m.string]),onBackdropClick:m.func,onClick:m.func,onClose:m.func,open:m.bool.isRequired,PaperComponent:m.elementType,PaperProps:m.object,scroll:m.oneOf(["body","paper"]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),TransitionComponent:m.elementType,transitionDuration:m.oneOfType([m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})]),TransitionProps:m.object});function bX(e){return Bt("MuiDialogActions",e)}Gt("MuiDialogActions",["root","spacing"]);const xX=["className","disableSpacing"],CX=e=>{const{classes:t,disableSpacing:n}=e;return Ut({root:["root",!n&&"spacing"]},bX,t)},wX=ce("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),$E=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=_e(r,xX),c=z({},r,{disableSpacing:i}),u=CX(c);return f.jsx(wX,z({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&($E.propTypes={children:m.node,classes:m.object,className:m.string,disableSpacing:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function SX(e){return Bt("MuiDialogContent",e)}Gt("MuiDialogContent",["root","dividers"]);function AX(e){return Bt("MuiDialogTitle",e)}const EX=Gt("MuiDialogTitle",["root"]),TX=["className","dividers"],IX=e=>{const{classes:t,dividers:n}=e;return Ut({root:["root",n&&"dividers"]},SX,t)},OX=ce("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>z({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${EX.root} + &`]:{paddingTop:0}})),VE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=_e(r,TX),c=z({},r,{dividers:i}),u=IX(c);return f.jsx(OX,z({className:Be(u.root,o),ownerState:c,ref:n},a))});process.env.NODE_ENV!=="production"&&(VE.propTypes={children:m.node,classes:m.object,className:m.string,dividers:m.bool,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});function PX(e){return Bt("MuiDialogContentText",e)}Gt("MuiDialogContentText",["root"]);const jX=["children","className"],RX=e=>{const{classes:t}=e,r=Ut({root:["root"]},PX,t);return z({},t,r)},MX=ce(Wd,{shouldForwardProp:e=>Rm(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=_e(r,jX),a=RX(i);return f.jsx(MX,z({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:Be(a.root,o)},r,{classes:a}))});process.env.NODE_ENV!=="production"&&(WE.propTypes={children:m.node,classes:m.object,className:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});const kX=["className","id"],FX=e=>{const{classes:t}=e;return Ut({root:["root"]},AX,t)},DX=ce(Wd,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),zE=D.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=_e(r,kX),c=r,u=FX(c),{titleId:d=i}=D.useContext(g0);return f.jsx(DX,z({component:"h2",className:Be(u.root,o),ownerState:c,ref:n,variant:"h6",id:i??d},a))});process.env.NODE_ENV!=="production"&&(zE.propTypes={children:m.node,classes:m.object,className:m.string,id:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])});var m0={},_X=wr;Object.defineProperty(m0,"__esModule",{value:!0});var UE=m0.default=void 0,LX=_X(Xr()),BX=f;UE=m0.default=(0,LX.default)((0,BX.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"}),"CheckCircle");var v0={},NX=wr;Object.defineProperty(v0,"__esModule",{value:!0});var HE=v0.default=void 0,$X=NX(Xr()),VX=f;HE=v0.default=(0,$X.default)((0,VX.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Xa=function(){return Xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xa.apply(this,arguments)},WX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},GE=function(e){var t,n=e.className,r=e.isOpen,o=r===void 0?!1:r,i=e.loading,a=e.title,c=e.content,u=e.cancel,d=u===void 0?"ra.action.cancel":u,p=e.confirm,g=p===void 0?"ra.action.confirm":p,v=e.confirmColor,y=v===void 0?"primary":v,b=e.ConfirmIcon,x=b===void 0?UE:b,w=e.CancelIcon,T=w===void 0?HE:w,j=e.onClose,E=e.onConfirm,P=e.translateOptions,O=P===void 0?{}:P,k=WX(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),F=Z.useTranslate(),B=A.useCallback(function(q){q.stopPropagation(),E(q)},[E]),H=A.useCallback(function(q){q.stopPropagation()},[]);return D.createElement(zX,Xa({className:n,open:o,onClose:j,onClick:H,"aria-labelledby":"alert-dialog-title"},k),D.createElement(zE,{id:"alert-dialog-title"},typeof a=="string"?F(a,Xa({_:a},O)):a),D.createElement(VE,null,typeof c=="string"?D.createElement(WE,null,F(c,Xa({_:c},O))):c),D.createElement($E,null,D.createElement(Gu,{disabled:i,onClick:j,startIcon:D.createElement(T,null)},F(d,{_:d})),D.createElement(Gu,{disabled:i,onClick:B,className:Hs("ra-confirm",(t={},t[td.confirmWarning]=y==="warning",t[td.confirmPrimary]=y==="primary",t)),autoFocus:!0,startIcon:D.createElement(x,null)},F(g,{_:g}))))};GE.propTypes={cancel:m.string,className:m.string,confirm:m.string,confirmColor:m.string,ConfirmIcon:m.elementType,CancelIcon:m.elementType,content:m.node.isRequired,isOpen:m.bool,loading:m.bool,onClose:m.func.isRequired,onConfirm:m.func.isRequired,title:m.node.isRequired,sx:m.any};var ag="RaConfirm",td={confirmPrimary:"".concat(ag,"-confirmPrimary"),confirmWarning:"".concat(ag,"-confirmWarning")},zX=ce(NE,{name:ag,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={},t["& .".concat(td.confirmPrimary)]={color:n.palette.primary.main},t["& .".concat(td.confirmWarning)]={color:n.palette.error.main,"&:hover":{backgroundColor:Je(n.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t}),y0={},UX=wr;Object.defineProperty(y0,"__esModule",{value:!0});var qE=y0.default=void 0,HX=UX(Xr()),GX=f;qE=y0.default=(0,HX.default)((0,GX.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var b0={},qX=wr;Object.defineProperty(b0,"__esModule",{value:!0});var YE=b0.default=void 0,YX=qX(Xr()),KX=f;YE=b0.default=(0,YX.default)((0,KX.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"}),"Settings");var XX=function(e){var t=e.children,n=e.editor,r=e.preferenceKey,o=e.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,a=e.sx,c="preferences.".concat(r),u=Z.usePreferencesEditor(),d=!!u,p=Z.useTranslate(),g=u||{},v=g.isEnabled,y=g.setEditor,b=g.preferenceKey,x=g.setPreferenceKey,w=c===b,T=A.useRef(w),j=A.useRef(null),E=A.useState(!1),P=E[0],O=E[1];if(A.useEffect(function(){T.current=w},[w]),A.useEffect(function(){return function(){T.current&&(x&&x(null),y&&y(null))}},[y,x]),!d)return t;var k=function(){y(A.cloneElement(n,{preferenceKey:c,key:c})),x(c)},F=function(){O(!0)},B=function(){O(!1)};return D.createElement(Z.PreferenceKeyContextProvider,{value:c},D.createElement(ZX,{className:Hs(fo.root,v&&fo.editMode,w&&fo.editorActive),sx:a,ref:j,onMouseEnter:v?F:void 0,onMouseLeave:v?B:void 0},t),D.createElement(S.Popover,{open:v&&(P||w),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:j.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:B,PaperProps:{elevation:1,onMouseEnter:F,onMouseLeave:B,title:p(i),onClick:k},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},D.createElement(YE,{fontSize:"12px"})))},bu="RaConfigurable",fo={root:"".concat(bu,"-root"),editMode:"".concat(bu,"-editMode"),editorActive:"".concat(bu,"-editorActive")},ZX=ce("span",{name:bu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(fo.editMode)]={transition:n.transitions.create("outline"),outline:"".concat(S.alpha(n.palette.warning.main,.3)," solid 2px")},t["&.".concat(fo.editMode,":hover ")]={outline:"".concat(S.alpha(n.palette.warning.main,.5)," solid 2px")},t["&.".concat(fo.editMode,".").concat(fo.editorActive," , &.").concat(fo.editMode,".").concat(fo.editorActive,":hover ")]={outline:"".concat(n.palette.warning.main," solid 2px")},t}),Ii=function(){return Ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ii.apply(this,arguments)},QX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},JX=function(e){var t=e.title,n=e.defaultTitle,r=e.className,o=QX(e,["title","defaultTitle","className"]),i=Z.usePreference()[0],a=Z.useTranslate(),c=Z.useRecordContext();return i?D.createElement("span",Ii({className:r},o),a(i,Ii(Ii({},c),{_:i}))):D.createElement("span",{className:r},t?typeof t=="string"?D.createElement("span",Ii({},o),a(t,{_:t})):t:D.createElement("span",Ii({},o),n))},nd=function(){return nd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nd.apply(this,arguments)},eZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},tZ=function(){var e=Z.usePreferenceInput();return D.createElement("form",null,D.createElement(S.TextField,nd({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},nZ=function(e){var t=e.preferenceKey,n=eZ(e,["preferenceKey"]),r=ut.useLocation().pathname;return D.createElement(XX,{editor:D.createElement(tZ,null),preferenceKey:t||"".concat(r,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},D.createElement(JX,nd({},n)))},lg=function(){return lg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lg.apply(this,arguments)},rZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},KE=function(e){var t=e.defaultTitle,n=e.title,r=e.preferenceKey,o=rZ(e,["defaultTitle","title","preferenceKey"]),i=A.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),a=i[0],c=i[1];return A.useEffect(function(){c(function(u){var d=typeof document<"u"&&document.body.contains(u);return u&&d?u:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),a?(Z.warning(!t&&!n,"Missing title prop in <Title> element"),ws.createPortal(D.createElement(nZ,lg({title:n,defaultTitle:t,preferenceKey:r},o)),a)):null},oZ=m.oneOfType([m.string,m.element]);KE.propTypes={defaultTitle:m.string,className:m.string,record:m.any,title:oZ};var iZ=function(e){var t=_i.useLocation().pathname,n=A.useRef(t);A.useEffect(function(){t!==n.current&&e()},[t,e])},sZ=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},FC={error:null},aZ=function(e){_m(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=FC,r.resetErrorBoundary=function(){for(var c,u=arguments.length,d=new Array(u),p=0;p<u;p++)d[p]=arguments[p];r.props.onReset==null||(c=r.props).onReset.apply(c,d),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(FC)},n.componentDidCatch=function(o,i){var a,c;(a=(c=this.props).onError)==null||a.call(c,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,c=this.props.resetKeys;if(a!==null&&i.error!==null&&sZ(o.resetKeys,c)){var u,d;(u=(d=this.props).onResetKeysChange)==null||u.call(d,o.resetKeys,c),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,c=i.FallbackComponent,u=i.fallback;if(o!==null){var d={error:o,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(u))return u;if(typeof a=="function")return a(d);if(c)return D.createElement(c,d);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(D.Component);function lZ(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var cZ=lZ,cg=function(){return cg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},cg.apply(this,arguments)},uZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},XE=function(e){var t=e.className,n=e.loadingPrimary,r=n===void 0?"ra.page.loading":n,o=e.loadingSecondary,i=o===void 0?"ra.message.loading":o,a=uZ(e,["className","loadingPrimary","loadingSecondary"]),c=Z.useTimeout(1e3),u=Z.useTranslate();return c?D.createElement(dZ,cg({className:t},a),D.createElement("div",{className:rd.message},D.createElement(Kd,{className:rd.icon}),D.createElement(S.Typography,{variant:"h5",mt:3,color:"text.secondary"},u(r,{_:r})),D.createElement(S.Typography,{variant:"body2"},u(i,{_:i})))):null};XE.propTypes={className:m.string,loadingPrimary:m.string,loadingSecondary:m.string};var xu="RaLoading",rd={root:"".concat(xu,"-root"),icon:"".concat(xu,"-icon"),message:"".concat(xu,"-message")},dZ=ce("div",{name:xu,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t["& .".concat(rd.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:n.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(rd.icon)]={width:"9em",height:"9em"},t}),x0={},fZ=wr;Object.defineProperty(x0,"__esModule",{value:!0});var ZE=x0.default=void 0,pZ=fZ(Xr()),hZ=f;ZE=x0.default=(0,pZ.default)((0,hZ.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.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var ug=function(){return ug=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ug.apply(this,arguments)},gZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},QE=function(e){var t=e.icon,n=t===void 0?vZ:t,r=e.label,o=r===void 0?"ra.action.edit":r,i=e.scrollToTop,a=i===void 0?!0:i,c=e.className,u=gZ(e,["icon","label","scrollToTop","className"]),d=Z.useResourceContext(e),p=Z.useRecordContext(e),g=Z.useCreatePath();return p?D.createElement(xZ,ug({component:ut.Link,to:g({type:"edit",resource:d,id:p.id}),state:mZ[String(a)],label:o,onClick:yZ,className:Hs(bZ.root,c)},u),n):null},mZ={true:{_scrollToTop:!0},false:{}},vZ=D.createElement(ZE,null),yZ=function(e){return e.stopPropagation()};QE.propTypes={icon:m.element,label:m.string,record:m.any,scrollToTop:m.bool};var JE="RaEditButton",bZ={root:"".concat(JE,"-root")},xZ=ce(Km,{name:JE,overridesResolver:function(e,t){return t.root}})({}),C0={},CZ=wr;Object.defineProperty(C0,"__esModule",{value:!0});var e2=C0.default=void 0,wZ=CZ(Xr()),SZ=f;e2=C0.default=(0,wZ.default)((0,SZ.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"}),"Refresh");const AZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function dg(e){return`scale(${e}, ${e**2})`}const EZ={entering:{opacity:1,transform:dg(1)},entered:{opacity:1,transform:"none"}},hh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),od=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:v,onExiting:y,style:b,timeout:x="auto",TransitionComponent:w=Kr}=t,T=_e(t,AZ),j=Os(),E=D.useRef(),P=gt(),O=D.useRef(null),k=on(O,i.ref,n),F=X=>N=>{if(X){const Q=O.current;N===void 0?X(Q):X(Q,N)}},B=F(p),H=F((X,N)=>{LE(X);const{duration:Q,delay:$,easing:oe}=Ju({style:b,timeout:x,easing:a},{mode:"enter"});let W;x==="auto"?(W=P.transitions.getAutoHeightDuration(X.clientHeight),E.current=W):W=Q,X.style.transition=[P.transitions.create("opacity",{duration:W,delay:$}),P.transitions.create("transform",{duration:hh?W:W*.666,delay:$,easing:oe})].join(","),u&&u(X,N)}),q=F(d),U=F(y),ne=F(X=>{const{duration:N,delay:Q,easing:$}=Ju({style:b,timeout:x,easing:a},{mode:"exit"});let oe;x==="auto"?(oe=P.transitions.getAutoHeightDuration(X.clientHeight),E.current=oe):oe=N,X.style.transition=[P.transitions.create("opacity",{duration:oe,delay:Q}),P.transitions.create("transform",{duration:hh?oe:oe*.666,delay:hh?Q:Q||oe*.333,easing:$})].join(","),X.style.opacity=0,X.style.transform=dg(.75),g&&g(X)}),te=F(v),Y=X=>{x==="auto"&&j.start(E.current||0,X),r&&r(O.current,X)};return f.jsx(w,z({appear:o,in:c,nodeRef:O,onEnter:H,onEntered:q,onEntering:B,onExit:ne,onExited:te,onExiting:U,addEndListener:Y,timeout:x==="auto"?null:x},T,{children:(X,N)=>D.cloneElement(i,z({style:z({opacity:0,transform:dg(.75),visibility:X==="exited"&&!c?"hidden":void 0},EZ[X],b,i.props.style),ref:k},N))}))});process.env.NODE_ENV!=="production"&&(od.propTypes={addEndListener:m.func,appear:m.bool,children:Ks.isRequired,easing:m.oneOfType([m.shape({enter:m.string,exit:m.string}),m.string]),in:m.bool,onEnter:m.func,onEntered:m.func,onEntering:m.func,onExit:m.func,onExited:m.func,onExiting:m.func,style:m.object,timeout:m.oneOfType([m.oneOf(["auto"]),m.number,m.shape({appear:m.number,enter:m.number,exit:m.number})])});od.muiSupportAuto=!0;const t2="base";function TZ(e){return`${t2}--${e}`}function IZ(e,t){return`${t2}-${e}-${t}`}function n2(e,t){const n=sA[t];return n?TZ(n):IZ(e,t)}function OZ(e,t){const n={};return t.forEach(r=>{n[r]=n2(e,r)}),n}const r2="Popper";function PZ(e){return n2(r2,e)}OZ(r2,["root"]);const jZ=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],RZ=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function MZ(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 id(e){return typeof e=="function"?e():e}function of(e){return e.nodeType!==void 0}function kZ(e){return!of(e)}const FZ=()=>Ut({root:["root"]},LL(PZ)),DZ={},_Z=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:p,popperOptions:g,popperRef:v,slotProps:y={},slots:b={},TransitionProps:x}=t,w=_e(t,jZ),T=D.useRef(null),j=on(T,n),E=D.useRef(null),P=on(E,v),O=D.useRef(P);Gr(()=>{O.current=P},[P]),D.useImperativeHandle(v,()=>E.current,[]);const k=MZ(p,a),[F,B]=D.useState(k),[H,q]=D.useState(id(o));D.useEffect(()=>{E.current&&E.current.forceUpdate()}),D.useEffect(()=>{o&&q(id(o))},[o]),Gr(()=>{if(!H||!d)return;const X=$=>{B($.placement)};if(process.env.NODE_ENV!=="production"&&H&&of(H)&&H.nodeType===1){const $=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
190
190
|
`))}let N=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{X($)}}];u!=null&&(N=N.concat(u)),g&&g.modifiers!=null&&(N=N.concat(g.modifiers));const Q=KA(H,T.current,z({placement:k},g,{modifiers:N}));return O.current(Q),()=>{Q.destroy(),O.current(null)}},[H,c,u,d,g,k]);const U={placement:F};x!==null&&(U.TransitionProps=x);const ne=FZ(),te=(r=b.root)!=null?r:"div",Y=Bu({elementType:te,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:j},ownerState:t,className:ne.root});return f.jsx(te,z({},Y,{children:typeof i=="function"?i(U):i}))}),o2=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:g="bottom",popperOptions:v=DZ,popperRef:y,style:b,transition:x=!1,slotProps:w={},slots:T={}}=t,j=_e(t,RZ),[E,P]=D.useState(!0),O=()=>{P(!1)},k=()=>{P(!0)};if(!u&&!p&&(!x||E))return null;let F;if(i)F=i;else if(r){const q=id(r);F=q&&of(q)?Kn(q).body:Kn(null).body}const B=!p&&u&&(!x||E)?"none":void 0,H=x?{in:p,onEnter:O,onExited:k}:void 0;return f.jsx(fl,{disablePortal:c,container:F,children:f.jsx(_Z,z({anchorEl:r,direction:a,disablePortal:c,modifiers:d,ref:n,open:x?!E:p,placement:g,popperOptions:v,popperRef:y,slotProps:w,slots:T},j,{style:z({position:"fixed",top:0,left:0,display:B},b),TransitionProps:H,children:o}))})});process.env.NODE_ENV!=="production"&&(o2.propTypes={anchorEl:Eo(m.oneOfType([wo,m.object,m.func]),e=>{if(e.open){const t=id(e.anchorEl);if(t&&of(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
191
191
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||kZ(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
192
|
-
`))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([wo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bd,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});var w0={};Object.defineProperty(w0,"__esModule",{value:!0});var i2=w0.default=void 0,LZ=NZ(A),BZ=gA;function s2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(s2=function(r){return r?n:t})(e)}function NZ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=s2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function $Z(e){return Object.keys(e).length===0}function VZ(e=null){const t=LZ.useContext(BZ.ThemeContext);return!t||$Z(t)?e:t}i2=w0.default=VZ;const WZ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],zZ=ce(o2,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S0=D.forwardRef(function(t,n){var r;const o=i2(),i=Ht({props:t,name:"MuiPopper"}),{anchorEl:a,component:c,components:u,componentsProps:d,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:T,transition:j,slots:E,slotProps:P}=i,O=_e(i,WZ),k=(r=E==null?void 0:E.root)!=null?r:u==null?void 0:u.Root,F=z({anchorEl:a,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:T,transition:j},O);return f.jsx(zZ,z({as:c,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:P??d},F,{ref:n}))});process.env.NODE_ENV!=="production"&&(S0.propTypes={anchorEl:m.oneOfType([wo,m.object,m.func]),children:m.oneOfType([m.node,m.func]),component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([wo,m.func]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bd,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),transition:m.bool});function UZ(e){return Bt("MuiTooltip",e)}const Ho=Gt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),HZ=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function GZ(e){return Math.round(e*1e5)/1e5}const qZ=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(i.split("-")[0])}`],arrow:["arrow"]};return Ut(a,UZ,t)},YZ=ce(S0,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ho.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ho.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ho.arrow}`]:z({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ho.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),KZ=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ne(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vr(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${GZ(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ho.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ho.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ho.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ho.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),XZ=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let nu=!1;const DC=new Ml;let Fa={x:0,y:0};function ru(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const a2=D.forwardRef(function(t,n){var r,o,i,a,c,u,d,p,g,v,y,b,x,w,T,j,E,P,O;const k=Ht({props:t,name:"MuiTooltip"}),{arrow:F=!1,children:B,components:H={},componentsProps:q={},describeChild:U=!1,disableFocusListener:ne=!1,disableHoverListener:te=!1,disableInteractive:Y=!1,disableTouchListener:X=!1,enterDelay:N=100,enterNextDelay:Q=0,enterTouchDelay:$=700,followCursor:oe=!1,id:W,leaveDelay:J=0,leaveTouchDelay:ue=1500,onClose:he,onOpen:de,open:pe,placement:ge="bottom",PopperComponent:we,PopperProps:ye={},slotProps:ve={},slots:Ce={},title:Te,TransitionComponent:fe=od,TransitionProps:Ge}=k,me=_e(k,HZ),Qe=D.isValidElement(B)?B:f.jsx("span",{children:B}),an=gt(),Et=FB(),[mt,Bn]=D.useState(),[Tt,vt]=D.useState(null),Kt=D.useRef(!1),yt=Y||oe,$t=
|
|
192
|
+
`))}return null}),children:m.oneOfType([m.node,m.func]),container:m.oneOfType([wo,m.func]),direction:m.oneOf(["ltr","rtl"]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bd,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),transition:m.bool});var w0={};Object.defineProperty(w0,"__esModule",{value:!0});var i2=w0.default=void 0,LZ=NZ(A),BZ=gA;function s2(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(s2=function(r){return r?n:t})(e)}function NZ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=s2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function $Z(e){return Object.keys(e).length===0}function VZ(e=null){const t=LZ.useContext(BZ.ThemeContext);return!t||$Z(t)?e:t}i2=w0.default=VZ;const WZ=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],zZ=ce(o2,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S0=D.forwardRef(function(t,n){var r;const o=i2(),i=Ht({props:t,name:"MuiPopper"}),{anchorEl:a,component:c,components:u,componentsProps:d,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:T,transition:j,slots:E,slotProps:P}=i,O=_e(i,WZ),k=(r=E==null?void 0:E.root)!=null?r:u==null?void 0:u.Root,F=z({anchorEl:a,container:p,disablePortal:g,keepMounted:v,modifiers:y,open:b,placement:x,popperOptions:w,popperRef:T,transition:j},O);return f.jsx(zZ,z({as:c,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:P??d},F,{ref:n}))});process.env.NODE_ENV!=="production"&&(S0.propTypes={anchorEl:m.oneOfType([wo,m.object,m.func]),children:m.oneOfType([m.node,m.func]),component:m.elementType,components:m.shape({Root:m.elementType}),componentsProps:m.shape({root:m.oneOfType([m.func,m.object])}),container:m.oneOfType([wo,m.func]),disablePortal:m.bool,keepMounted:m.bool,modifiers:m.arrayOf(m.shape({data:m.object,effect:m.func,enabled:m.bool,fn:m.func,name:m.any,options:m.object,phase:m.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:m.arrayOf(m.string),requiresIfExists:m.arrayOf(m.string)})),open:m.bool.isRequired,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:m.shape({modifiers:m.array,onFirstUpdate:m.func,placement:m.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:m.oneOf(["absolute","fixed"])}),popperRef:Bd,slotProps:m.shape({root:m.oneOfType([m.func,m.object])}),slots:m.shape({root:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),transition:m.bool});function UZ(e){return Bt("MuiTooltip",e)}const Ho=Gt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),HZ=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function GZ(e){return Math.round(e*1e5)/1e5}const qZ=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(i.split("-")[0])}`],arrow:["arrow"]};return Ut(a,UZ,t)},YZ=ce(S0,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ho.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ho.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ho.arrow}`]:z({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ho.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),KZ=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ne(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vr(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${GZ(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ho.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ho.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ho.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ho.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),XZ=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let nu=!1;const DC=new Ml;let Fa={x:0,y:0};function ru(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const a2=D.forwardRef(function(t,n){var r,o,i,a,c,u,d,p,g,v,y,b,x,w,T,j,E,P,O;const k=Ht({props:t,name:"MuiTooltip"}),{arrow:F=!1,children:B,components:H={},componentsProps:q={},describeChild:U=!1,disableFocusListener:ne=!1,disableHoverListener:te=!1,disableInteractive:Y=!1,disableTouchListener:X=!1,enterDelay:N=100,enterNextDelay:Q=0,enterTouchDelay:$=700,followCursor:oe=!1,id:W,leaveDelay:J=0,leaveTouchDelay:ue=1500,onClose:he,onOpen:de,open:pe,placement:ge="bottom",PopperComponent:we,PopperProps:ye={},slotProps:ve={},slots:Ce={},title:Te,TransitionComponent:fe=od,TransitionProps:Ge}=k,me=_e(k,HZ),Qe=D.isValidElement(B)?B:f.jsx("span",{children:B}),an=gt(),Et=FB(),[mt,Bn]=D.useState(),[Tt,vt]=D.useState(null),Kt=D.useRef(!1),yt=Y||oe,$t=Os(),It=Os(),ke=Os(),Fe=Os(),[Ie,xe]=AA({controlled:pe,default:!1,name:"Tooltip",state:"open"});let ft=Ie;if(process.env.NODE_ENV!=="production"){const{current:ze}=D.useRef(pe!==void 0);D.useEffect(()=>{mt&&mt.disabled&&!ze&&Te!==""&&mt.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
193
193
|
`))},[Te,mt,ze])}const Vt=$d(W),$e=D.useRef(),Oe=go(()=>{$e.current!==void 0&&(document.body.style.WebkitUserSelect=$e.current,$e.current=void 0),Fe.clear()});D.useEffect(()=>Oe,[Oe]);const Zt=ze=>{DC.clear(),nu=!0,xe(!0),de&&!ft&&de(ze)},er=go(ze=>{DC.start(800+J,()=>{nu=!1}),xe(!1),he&&ft&&he(ze),$t.start(an.transitions.duration.shortest,()=>{Kt.current=!1})}),Ar=ze=>{Kt.current&&ze.type!=="touchstart"||(mt&&mt.removeAttribute("title"),It.clear(),ke.clear(),N||nu&&Q?It.start(nu?Q:N,()=>{Zt(ze)}):Zt(ze))},ii=ze=>{It.clear(),ke.start(J,()=>{er(ze)})},{isFocusVisibleRef:zl,onBlur:vf,onFocus:yf,ref:Ul}=km(),[,aa]=D.useState(!1),Hl=ze=>{vf(ze),zl.current===!1&&(aa(!1),ii(ze))},Gl=ze=>{mt||Bn(ze.currentTarget),yf(ze),zl.current===!0&&(aa(!0),Ar(ze))},ql=ze=>{Kt.current=!0;const vn=Qe.props;vn.onTouchStart&&vn.onTouchStart(ze)},bf=ze=>{ql(ze),ke.clear(),$t.clear(),Oe(),$e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Fe.start($,()=>{document.body.style.WebkitUserSelect=$e.current,Ar(ze)})},Yl=ze=>{Qe.props.onTouchEnd&&Qe.props.onTouchEnd(ze),Oe(),ke.start(ue,()=>{er(ze)})};D.useEffect(()=>{if(!ft)return;function ze(vn){(vn.key==="Escape"||vn.key==="Esc")&&er(vn)}return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[er,ft]);const xf=on(Qe.ref,Ul,Bn,n);!Te&&Te!==0&&(ft=!1);const la=D.useRef(),Cf=ze=>{const vn=Qe.props;vn.onMouseMove&&vn.onMouseMove(ze),Fa={x:ze.clientX,y:ze.clientY},la.current&&la.current.update()},Qr={},ca=typeof Te=="string";U?(Qr.title=!ft&&ca&&!te?Te:null,Qr["aria-describedby"]=ft?Vt:null):(Qr["aria-label"]=ca?Te:null,Qr["aria-labelledby"]=ft&&!ca?Vt:null);const ln=z({},Qr,me,Qe.props,{className:Be(me.className,Qe.props.className),onTouchStart:ql,ref:xf},oe?{onMouseMove:Cf}:{});process.env.NODE_ENV!=="production"&&(ln["data-mui-internal-clone-element"]=!0,D.useEffect(()=>{mt&&!mt.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
194
194
|
`))},[mt]));const si={};X||(ln.onTouchStart=bf,ln.onTouchEnd=Yl),te||(ln.onMouseOver=ru(Ar,ln.onMouseOver),ln.onMouseLeave=ru(ii,ln.onMouseLeave),yt||(si.onMouseOver=Ar,si.onMouseLeave=ii)),ne||(ln.onFocus=ru(Gl,ln.onFocus),ln.onBlur=ru(Hl,ln.onBlur),yt||(si.onFocus=Gl,si.onBlur=Hl)),process.env.NODE_ENV!=="production"&&Qe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${Qe.props.title}\` or the Tooltip component.`].join(`
|
|
195
|
-
`));const wf=D.useMemo(()=>{var ze;let vn=[{name:"arrow",enabled:!!Tt,options:{element:Tt,padding:4}}];return(ze=ye.popperOptions)!=null&&ze.modifiers&&(vn=vn.concat(ye.popperOptions.modifiers)),z({},ye.popperOptions,{modifiers:vn})},[Tt,ye]),ai=z({},k,{isRtl:Et,arrow:F,disableInteractive:yt,placement:ge,PopperComponentProp:we,touch:Kt.current}),ua=qZ(ai),Kl=(r=(o=Ce.popper)!=null?o:H.Popper)!=null?r:YZ,Xl=(i=(a=(c=Ce.transition)!=null?c:H.Transition)!=null?a:fe)!=null?i:od,Zl=(u=(d=Ce.tooltip)!=null?d:H.Tooltip)!=null?u:KZ,Ql=(p=(g=Ce.arrow)!=null?g:H.Arrow)!=null?p:XZ,Jl=Ts(Kl,z({},ye,(v=ve.popper)!=null?v:q.popper,{className:Be(ua.popper,ye==null?void 0:ye.className,(y=(b=ve.popper)!=null?b:q.popper)==null?void 0:y.className)}),ai),Sf=Ts(Xl,z({},Ge,(x=ve.transition)!=null?x:q.transition),ai),Af=Ts(Zl,z({},(w=ve.tooltip)!=null?w:q.tooltip,{className:Be(ua.tooltip,(T=(j=ve.tooltip)!=null?j:q.tooltip)==null?void 0:T.className)}),ai),Ef=Ts(Ql,z({},(E=ve.arrow)!=null?E:q.arrow,{className:Be(ua.arrow,(P=(O=ve.arrow)!=null?O:q.arrow)==null?void 0:P.className)}),ai);return f.jsxs(D.Fragment,{children:[D.cloneElement(Qe,ln),f.jsx(Kl,z({as:we??S0,placement:ge,anchorEl:oe?{getBoundingClientRect:()=>({top:Fa.y,left:Fa.x,right:Fa.x,bottom:Fa.y,width:0,height:0})}:mt,popperRef:la,open:mt?ft:!1,id:Vt,transition:!0},si,Jl,{popperOptions:wf,children:({TransitionProps:ze})=>f.jsx(Xl,z({timeout:an.transitions.duration.shorter},ze,Sf,{children:f.jsxs(Zl,z({},Af,{children:[Te,F?f.jsx(Ql,z({},Ef,{ref:vt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(a2.propTypes={arrow:m.bool,children:Ks.isRequired,classes:m.object,className:m.string,components:m.shape({Arrow:m.elementType,Popper:m.elementType,Tooltip:m.elementType,Transition:m.elementType}),componentsProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),describeChild:m.bool,disableFocusListener:m.bool,disableHoverListener:m.bool,disableInteractive:m.bool,disableTouchListener:m.bool,enterDelay:m.number,enterNextDelay:m.number,enterTouchDelay:m.number,followCursor:m.bool,id:m.string,leaveDelay:m.number,leaveTouchDelay:m.number,onClose:m.func,onOpen:m.func,open:m.bool,placement:m.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:m.elementType,PopperProps:m.object,slotProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),slots:m.shape({arrow:m.elementType,popper:m.elementType,tooltip:m.elementType,transition:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),title:m.node,TransitionComponent:m.elementType,TransitionProps:m.object});var fg=function(){return fg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fg.apply(this,arguments)},ZZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},l2=function(e){var t=e.label,n=t===void 0?"ra.action.refresh":t,r=e.icon,o=r===void 0?QZ:r,i=e.onClick,a=e.className,c=ZZ(e,["label","icon","onClick","className"]),u=Z.useRefresh(),d=Z.useTranslate(),p=A.useCallback(function(g){g.preventDefault(),u(),typeof i=="function"&&i(g)},[u,i]);return D.createElement(a2,{title:n&&d(n,{_:"Refresh"})},D.createElement($m,fg({"aria-label":n&&d(n,{_:"Refresh"}),className:a,color:"inherit",onClick:p},c),o))},QZ=D.createElement(e2,null);l2.propTypes={className:m.string,label:m.string,icon:m.element};var A0={},JZ=wr;Object.defineProperty(A0,"__esModule",{value:!0});var c2=A0.default=void 0,eQ=JZ(Xr()),tQ=f;c2=A0.default=(0,eQ.default)((0,tQ.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"}),"Save");var Za=function(){return Za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Za.apply(this,arguments)},_C=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function c(p){try{d(r.next(p))}catch(g){a(g)}}function u(p){try{d(r.throw(p))}catch(g){a(g)}}function d(p){p.done?i(p.value):o(p.value).then(c,u)}d((r=r.apply(e,t||[])).next())})},LC=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(p){return u([d,p])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){n.label=d[1];break}if(d[0]===6&&n.label<i[1]){n.label=i[1],i=d;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(d);break}i[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],o=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},nQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},E0=function(e){var t=e.color,n=t===void 0?"primary":t,r=e.icon,o=r===void 0?oQ:r;e.invalid;var i=e.label,a=i===void 0?"ra.action.save":i,c=e.onClick,u=e.mutationOptions,d=e.disabled,p=e.type,g=p===void 0?"submit":p,v=e.transform,y=e.variant,b=y===void 0?"contained":y,x=e.alwaysEnable,w=x===void 0?!1:x,T=nQ(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),j=Z.useTranslate(),E=rn.useFormContext(),P=Z.useSaveContext(),O=rn.useFormState(),k=O.dirtyFields,F=O.isValidating,B=O.isSubmitting,H=Object.keys(k).length>0,q=aQ(w===!1||w===void 0?void 0:!w,d||!H||F||B);Z.warning(g==="submit"&&(u&&(u.onSuccess||u.onError)||v),'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 U=A.useCallback(function(Y){return _C(void 0,void 0,void 0,function(){var X;return LC(this,function(N){switch(N.label){case 0:return P!=null&&P.save?[4,P.save(Y,Za(Za({},u),{transform:v}))]:[3,2];case 1:X=N.sent(),N.label=2;case 2:return X!=null&&Z.setSubmissionErrors(X,E.setError),[2]}})})},[E.setError,P,u,v]),ne=A.useCallback(function(Y){return _C(void 0,void 0,void 0,function(){return LC(this,function(X){switch(X.label){case 0:return c&&c(Y),Y.defaultPrevented?[2]:g!=="button"?[3,2]:(Y.stopPropagation(),[4,E.handleSubmit(U)(Y)]);case 1:X.sent(),X.label=2;case 2:return[2]}})})},[c,g,E,U]),te=a&&j(a,{_:a});return D.createElement(sQ,Za({variant:b,type:g,color:n,"aria-label":te,disabled:q,onClick:ne},T),B?D.createElement(S.CircularProgress,{sx:rQ,size:14,thickness:3,color:"inherit"}):o,te)},rQ={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},oQ=D.createElement(c2,null);E0.propTypes={className:m.string,invalid:m.bool,label:m.string,variant:m.oneOf(["text","outlined","contained"]),icon:m.element,alwaysEnable:m.bool};var iQ="RaSaveButton",sQ=ce(S.Button,{name:iQ,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:n.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),aQ=function(e,t){return typeof e>"u"?t:e},BC=ef,lQ=r0,cQ=Bl,NC=BC?BC.isConcatSpreadable:void 0;function uQ(e){return cQ(e)||lQ(e)||!!(NC&&e&&e[NC])}var dQ=uQ,fQ=hE,pQ=dQ;function u2(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=pQ),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?u2(c,t-1,n,r,o):fQ(o,c):r||(o[o.length]=c)}return o}var d2=u2;function hQ(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var gQ=hQ;function mQ(e){return e!==e}var vQ=mQ;function yQ(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var bQ=yQ,xQ=gQ,CQ=vQ,wQ=bQ;function SQ(e,t,n){return t===t?wQ(e,t,n):xQ(e,CQ,n)}var AQ=SQ,EQ=AQ;function TQ(e,t){var n=e==null?0:e.length;return!!n&&EQ(e,t,0)>-1}var f2=TQ;function IQ(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var p2=IQ;function OQ(){}var PQ=OQ,gh=CE,jQ=PQ,RQ=n0,MQ=1/0,kQ=gh&&1/RQ(new gh([,-0]))[1]==MQ?function(e){return new gh(e)}:jQ,FQ=kQ,DQ=e0,_Q=f2,LQ=p2,BQ=t0,NQ=FQ,$Q=n0,VQ=200;function WQ(e,t,n){var r=-1,o=_Q,i=e.length,a=!0,c=[],u=c;if(n)a=!1,o=LQ;else if(i>=VQ){var d=t?null:NQ(e);if(d)return $Q(d);a=!1,o=BQ,u=new DQ}else u=t?[]:c;e:for(;++r<i;){var p=e[r],g=t?t(p):p;if(p=n||p!==0?p:0,a&&g===g){for(var v=u.length;v--;)if(u[v]===g)continue e;t&&u.push(g),c.push(p)}else o(u,g,n)||(u!==c&&u.push(g),c.push(p))}return c}var zQ=WQ,UQ=d2,HQ=c0,GQ=zQ,qQ=l0,YQ=HQ(function(e){return GQ(UQ(e,1,qQ,!0))}),KQ=YQ;const XQ=Yr(KQ);var ZQ=e0,QQ=f2,JQ=p2,eJ=cZ,tJ=yE,nJ=t0,rJ=200;function oJ(e,t,n,r){var o=-1,i=QQ,a=!0,c=e.length,u=[],d=t.length;if(!c)return u;n&&(t=eJ(t,tJ(n))),r?(i=JQ,a=!1):t.length>=rJ&&(i=nJ,a=!1,t=new ZQ(t));e:for(;++o<c;){var p=e[o],g=n==null?p:n(p);if(p=r||p!==0?p:0,a&&g===g){for(var v=d;v--;)if(t[v]===g)continue e;u.push(p)}else i(t,g,r)||u.push(p)}return u}var iJ=oJ,sJ=iJ,aJ=d2,lJ=c0,$C=l0,cJ=lJ(function(e,t){return $C(e)?sJ(e,aJ(t,1,$C,!0)):[]}),uJ=cJ;const dJ=Yr(uJ);var T0={},fJ=wr;Object.defineProperty(T0,"__esModule",{value:!0});var pg=T0.default=void 0,pJ=fJ(Xr()),hJ=f;pg=T0.default=(0,pJ.default)((0,hJ.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var h2=function(e){return Z.useStore("".concat(e,".savedQueries"),[])},g2=function(e){return Array.isArray(e)?e.filter(function(t){return gJ(t)}):[]},gJ=function(e){var t,n;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((n=e.value.sort)===null||n===void 0?void 0:n.order)=="string"&&typeof e.value.filter=="object")};function mJ(){window.history.go(-1)}function I0(e){var p;const{error:t,errorComponent:n,errorInfo:r,resetErrorBoundary:o,title:i}=e,a=Z.useTranslate(),c=S.useTheme(),u=process.env.NODE_ENV==="production";iZ(o);const d=A.useCallback(()=>{mJ()},[]);return n?f.jsx(n,{error:t,errorInfo:r,title:i}):f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[i?f.jsx(KE,{title:i}):null,f.jsx("img",{src:oE,style:{width:"100%",maxWidth:450,marginTop:c.spacing(4)},alt:"oops!"}),f.jsx(S.Typography,{variant:"h2",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:a(u?"ra.page.error":t.message,{_:t.message})}),!u&&f.jsx(S.Typography,{variant:"caption",children:a("ra.message.error_more_info")}),r?f.jsx(S.Typography,{variant:"body1",component:"pre",textAlign:u?"center":"start",fontFamily:u?"inherit":"monospace",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:u?a("ra.message.error"):((p=r==null?void 0:r.componentStack)==null?void 0:p.substring(0,250))+"..."}):null,f.jsx(S.Button,{variant:"contained",startIcon:f.jsx(nn.History,{}),onClick:d,children:a("ra.action.back")})]})})}var sd={exports:{}};/**
|
|
195
|
+
`));const wf=D.useMemo(()=>{var ze;let vn=[{name:"arrow",enabled:!!Tt,options:{element:Tt,padding:4}}];return(ze=ye.popperOptions)!=null&&ze.modifiers&&(vn=vn.concat(ye.popperOptions.modifiers)),z({},ye.popperOptions,{modifiers:vn})},[Tt,ye]),ai=z({},k,{isRtl:Et,arrow:F,disableInteractive:yt,placement:ge,PopperComponentProp:we,touch:Kt.current}),ua=qZ(ai),Kl=(r=(o=Ce.popper)!=null?o:H.Popper)!=null?r:YZ,Xl=(i=(a=(c=Ce.transition)!=null?c:H.Transition)!=null?a:fe)!=null?i:od,Zl=(u=(d=Ce.tooltip)!=null?d:H.Tooltip)!=null?u:KZ,Ql=(p=(g=Ce.arrow)!=null?g:H.Arrow)!=null?p:XZ,Jl=Is(Kl,z({},ye,(v=ve.popper)!=null?v:q.popper,{className:Be(ua.popper,ye==null?void 0:ye.className,(y=(b=ve.popper)!=null?b:q.popper)==null?void 0:y.className)}),ai),Sf=Is(Xl,z({},Ge,(x=ve.transition)!=null?x:q.transition),ai),Af=Is(Zl,z({},(w=ve.tooltip)!=null?w:q.tooltip,{className:Be(ua.tooltip,(T=(j=ve.tooltip)!=null?j:q.tooltip)==null?void 0:T.className)}),ai),Ef=Is(Ql,z({},(E=ve.arrow)!=null?E:q.arrow,{className:Be(ua.arrow,(P=(O=ve.arrow)!=null?O:q.arrow)==null?void 0:P.className)}),ai);return f.jsxs(D.Fragment,{children:[D.cloneElement(Qe,ln),f.jsx(Kl,z({as:we??S0,placement:ge,anchorEl:oe?{getBoundingClientRect:()=>({top:Fa.y,left:Fa.x,right:Fa.x,bottom:Fa.y,width:0,height:0})}:mt,popperRef:la,open:mt?ft:!1,id:Vt,transition:!0},si,Jl,{popperOptions:wf,children:({TransitionProps:ze})=>f.jsx(Xl,z({timeout:an.transitions.duration.shorter},ze,Sf,{children:f.jsxs(Zl,z({},Af,{children:[Te,F?f.jsx(Ql,z({},Ef,{ref:vt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(a2.propTypes={arrow:m.bool,children:Ks.isRequired,classes:m.object,className:m.string,components:m.shape({Arrow:m.elementType,Popper:m.elementType,Tooltip:m.elementType,Transition:m.elementType}),componentsProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),describeChild:m.bool,disableFocusListener:m.bool,disableHoverListener:m.bool,disableInteractive:m.bool,disableTouchListener:m.bool,enterDelay:m.number,enterNextDelay:m.number,enterTouchDelay:m.number,followCursor:m.bool,id:m.string,leaveDelay:m.number,leaveTouchDelay:m.number,onClose:m.func,onOpen:m.func,open:m.bool,placement:m.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:m.elementType,PopperProps:m.object,slotProps:m.shape({arrow:m.object,popper:m.object,tooltip:m.object,transition:m.object}),slots:m.shape({arrow:m.elementType,popper:m.elementType,tooltip:m.elementType,transition:m.elementType}),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),title:m.node,TransitionComponent:m.elementType,TransitionProps:m.object});var fg=function(){return fg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fg.apply(this,arguments)},ZZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},l2=function(e){var t=e.label,n=t===void 0?"ra.action.refresh":t,r=e.icon,o=r===void 0?QZ:r,i=e.onClick,a=e.className,c=ZZ(e,["label","icon","onClick","className"]),u=Z.useRefresh(),d=Z.useTranslate(),p=A.useCallback(function(g){g.preventDefault(),u(),typeof i=="function"&&i(g)},[u,i]);return D.createElement(a2,{title:n&&d(n,{_:"Refresh"})},D.createElement($m,fg({"aria-label":n&&d(n,{_:"Refresh"}),className:a,color:"inherit",onClick:p},c),o))},QZ=D.createElement(e2,null);l2.propTypes={className:m.string,label:m.string,icon:m.element};var A0={},JZ=wr;Object.defineProperty(A0,"__esModule",{value:!0});var c2=A0.default=void 0,eQ=JZ(Xr()),tQ=f;c2=A0.default=(0,eQ.default)((0,tQ.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"}),"Save");var Za=function(){return Za=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Za.apply(this,arguments)},_C=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function c(p){try{d(r.next(p))}catch(g){a(g)}}function u(p){try{d(r.throw(p))}catch(g){a(g)}}function d(p){p.done?i(p.value):o(p.value).then(c,u)}d((r=r.apply(e,t||[])).next())})},LC=function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(d){return function(p){return u([d,p])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,o&&(i=d[0]&2?o.return:d[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,d[1])).done)return i;switch(o=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,o=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){n.label=d[1];break}if(d[0]===6&&n.label<i[1]){n.label=i[1],i=d;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(d);break}i[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],o=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},nQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},E0=function(e){var t=e.color,n=t===void 0?"primary":t,r=e.icon,o=r===void 0?oQ:r;e.invalid;var i=e.label,a=i===void 0?"ra.action.save":i,c=e.onClick,u=e.mutationOptions,d=e.disabled,p=e.type,g=p===void 0?"submit":p,v=e.transform,y=e.variant,b=y===void 0?"contained":y,x=e.alwaysEnable,w=x===void 0?!1:x,T=nQ(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),j=Z.useTranslate(),E=rn.useFormContext(),P=Z.useSaveContext(),O=rn.useFormState(),k=O.dirtyFields,F=O.isValidating,B=O.isSubmitting,H=Object.keys(k).length>0,q=aQ(w===!1||w===void 0?void 0:!w,d||!H||F||B);Z.warning(g==="submit"&&(u&&(u.onSuccess||u.onError)||v),'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 U=A.useCallback(function(Y){return _C(void 0,void 0,void 0,function(){var X;return LC(this,function(N){switch(N.label){case 0:return P!=null&&P.save?[4,P.save(Y,Za(Za({},u),{transform:v}))]:[3,2];case 1:X=N.sent(),N.label=2;case 2:return X!=null&&Z.setSubmissionErrors(X,E.setError),[2]}})})},[E.setError,P,u,v]),ne=A.useCallback(function(Y){return _C(void 0,void 0,void 0,function(){return LC(this,function(X){switch(X.label){case 0:return c&&c(Y),Y.defaultPrevented?[2]:g!=="button"?[3,2]:(Y.stopPropagation(),[4,E.handleSubmit(U)(Y)]);case 1:X.sent(),X.label=2;case 2:return[2]}})})},[c,g,E,U]),te=a&&j(a,{_:a});return D.createElement(sQ,Za({variant:b,type:g,color:n,"aria-label":te,disabled:q,onClick:ne},T),B?D.createElement(S.CircularProgress,{sx:rQ,size:14,thickness:3,color:"inherit"}):o,te)},rQ={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},oQ=D.createElement(c2,null);E0.propTypes={className:m.string,invalid:m.bool,label:m.string,variant:m.oneOf(["text","outlined","contained"]),icon:m.element,alwaysEnable:m.bool};var iQ="RaSaveButton",sQ=ce(S.Button,{name:iQ,overridesResolver:function(e,t){return t.root}})(function(e){var t,n=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:n.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),aQ=function(e,t){return typeof e>"u"?t:e},BC=ef,lQ=r0,cQ=Bl,NC=BC?BC.isConcatSpreadable:void 0;function uQ(e){return cQ(e)||lQ(e)||!!(NC&&e&&e[NC])}var dQ=uQ,fQ=hE,pQ=dQ;function u2(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=pQ),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?u2(c,t-1,n,r,o):fQ(o,c):r||(o[o.length]=c)}return o}var d2=u2;function hQ(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var gQ=hQ;function mQ(e){return e!==e}var vQ=mQ;function yQ(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var bQ=yQ,xQ=gQ,CQ=vQ,wQ=bQ;function SQ(e,t,n){return t===t?wQ(e,t,n):xQ(e,CQ,n)}var AQ=SQ,EQ=AQ;function TQ(e,t){var n=e==null?0:e.length;return!!n&&EQ(e,t,0)>-1}var f2=TQ;function IQ(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var p2=IQ;function OQ(){}var PQ=OQ,gh=CE,jQ=PQ,RQ=n0,MQ=1/0,kQ=gh&&1/RQ(new gh([,-0]))[1]==MQ?function(e){return new gh(e)}:jQ,FQ=kQ,DQ=e0,_Q=f2,LQ=p2,BQ=t0,NQ=FQ,$Q=n0,VQ=200;function WQ(e,t,n){var r=-1,o=_Q,i=e.length,a=!0,c=[],u=c;if(n)a=!1,o=LQ;else if(i>=VQ){var d=t?null:NQ(e);if(d)return $Q(d);a=!1,o=BQ,u=new DQ}else u=t?[]:c;e:for(;++r<i;){var p=e[r],g=t?t(p):p;if(p=n||p!==0?p:0,a&&g===g){for(var v=u.length;v--;)if(u[v]===g)continue e;t&&u.push(g),c.push(p)}else o(u,g,n)||(u!==c&&u.push(g),c.push(p))}return c}var zQ=WQ,UQ=d2,HQ=c0,GQ=zQ,qQ=l0,YQ=HQ(function(e){return GQ(UQ(e,1,qQ,!0))}),KQ=YQ;const XQ=Yr(KQ);var ZQ=e0,QQ=f2,JQ=p2,eJ=cZ,tJ=yE,nJ=t0,rJ=200;function oJ(e,t,n,r){var o=-1,i=QQ,a=!0,c=e.length,u=[],d=t.length;if(!c)return u;n&&(t=eJ(t,tJ(n))),r?(i=JQ,a=!1):t.length>=rJ&&(i=nJ,a=!1,t=new ZQ(t));e:for(;++o<c;){var p=e[o],g=n==null?p:n(p);if(p=r||p!==0?p:0,a&&g===g){for(var v=d;v--;)if(t[v]===g)continue e;u.push(p)}else i(t,g,r)||u.push(p)}return u}var iJ=oJ,sJ=iJ,aJ=d2,lJ=c0,$C=l0,cJ=lJ(function(e,t){return $C(e)?sJ(e,aJ(t,1,$C,!0)):[]}),uJ=cJ;const dJ=Yr(uJ);var T0={},fJ=wr;Object.defineProperty(T0,"__esModule",{value:!0});var pg=T0.default=void 0,pJ=fJ(Xr()),hJ=f;pg=T0.default=(0,pJ.default)((0,hJ.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var h2=function(e){return Z.useStore("".concat(e,".savedQueries"),[])},g2=function(e){return Array.isArray(e)?e.filter(function(t){return gJ(t)}):[]},gJ=function(e){var t,n;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((n=e.value.sort)===null||n===void 0?void 0:n.order)=="string"&&typeof e.value.filter=="object")};function mJ(){window.history.go(-1)}function I0(e){var p;const{error:t,errorComponent:n,errorInfo:r,resetErrorBoundary:o,title:i}=e,a=Z.useTranslate(),c=S.useTheme(),u=process.env.NODE_ENV==="production";iZ(o);const d=A.useCallback(()=>{mJ()},[]);return n?f.jsx(n,{error:t,errorInfo:r,title:i}):f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[i?f.jsx(KE,{title:i}):null,f.jsx("img",{src:oE,style:{width:"100%",maxWidth:450,marginTop:c.spacing(4)},alt:"oops!"}),f.jsx(S.Typography,{variant:"h2",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:a(u?"ra.page.error":t.message,{_:t.message})}),!u&&f.jsx(S.Typography,{variant:"caption",children:a("ra.message.error_more_info")}),r?f.jsx(S.Typography,{variant:"body1",component:"pre",textAlign:u?"center":"start",fontFamily:u?"inherit":"monospace",sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:u?a("ra.message.error"):((p=r==null?void 0:r.componentStack)==null?void 0:p.substring(0,250))+"..."}):null,f.jsx(S.Button,{variant:"contained",startIcon:f.jsx(nn.History,{}),onClick:d,children:a("ra.action.back")})]})})}var sd={exports:{}};/**
|
|
196
196
|
* @license
|
|
197
197
|
* Lodash <https://lodash.com/>
|
|
198
198
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
199
199
|
* Released under MIT license <https://lodash.com/license>
|
|
200
200
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
201
201
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
202
|
-
*/sd.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,v=2,y=4,b=1,x=2,w=1,T=2,j=4,E=8,P=16,O=32,k=64,F=128,B=256,H=512,q=30,U="...",ne=800,te=16,Y=1,X=2,N=3,Q=1/0,$=9007199254740991,oe=17976931348623157e292,W=NaN,J=4294967295,ue=J-1,he=J>>>1,de=[["ary",F],["bind",w],["bindKey",T],["curry",E],["curryRight",P],["flip",H],["partial",O],["partialRight",k],["rearg",B]],pe="[object Arguments]",ge="[object Array]",we="[object AsyncFunction]",ye="[object Boolean]",ve="[object Date]",Ce="[object DOMException]",Te="[object Error]",fe="[object Function]",Ge="[object GeneratorFunction]",me="[object Map]",Qe="[object Number]",an="[object Null]",Et="[object Object]",mt="[object Promise]",Bn="[object Proxy]",Tt="[object RegExp]",vt="[object Set]",Kt="[object String]",yt="[object Symbol]",$t="[object Undefined]",It="[object WeakMap]",ke="[object WeakSet]",Fe="[object ArrayBuffer]",Ie="[object DataView]",xe="[object Float32Array]",ft="[object Float64Array]",Vt="[object Int8Array]",$e="[object Int16Array]",Oe="[object Int32Array]",Zt="[object Uint8Array]",er="[object Uint8ClampedArray]",Ar="[object Uint16Array]",ii="[object Uint32Array]",zl=/\b__p \+= '';/g,vf=/\b(__p \+=) '' \+/g,yf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ul=/&(?:amp|lt|gt|quot|#39);/g,aa=/[&<>"']/g,Hl=RegExp(Ul.source),Gl=RegExp(aa.source),ql=/<%-([\s\S]+?)%>/g,bf=/<%([\s\S]+?)%>/g,Yl=/<%=([\s\S]+?)%>/g,xf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,la=/^\w*$/,Cf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qr=/[\\^$.*+?()[\]{}|]/g,ca=RegExp(Qr.source),ln=/^\s+/,si=/\s/,wf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ai=/\{\n\/\* \[wrapped with (.+)\] \*/,ua=/,? & /,Kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xl=/[()=,{}\[\]\/\s]/,Zl=/\\(\\)?/g,Ql=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jl=/\w*$/,Sf=/^[-+]0x[0-9a-f]+$/i,Af=/^0b[01]+$/i,Ef=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,vn=/^(?:0|[1-9]\d*)$/,tP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ec=/($^)/,nP=/['\n\r\u2028\u2029\\]/g,tc="\\ud800-\\udfff",rP="\\u0300-\\u036f",oP="\\ufe20-\\ufe2f",iP="\\u20d0-\\u20ff",pv=rP+oP+iP,hv="\\u2700-\\u27bf",gv="a-z\\xdf-\\xf6\\xf8-\\xff",sP="\\xac\\xb1\\xd7\\xf7",aP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lP="\\u2000-\\u206f",cP=" \\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",mv="A-Z\\xc0-\\xd6\\xd8-\\xde",vv="\\ufe0e\\ufe0f",yv=sP+aP+lP+cP,Tf="['’]",uP="["+tc+"]",bv="["+yv+"]",nc="["+pv+"]",xv="\\d+",dP="["+hv+"]",Cv="["+gv+"]",wv="[^"+tc+yv+xv+hv+gv+mv+"]",If="\\ud83c[\\udffb-\\udfff]",fP="(?:"+nc+"|"+If+")",Sv="[^"+tc+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Pf="[\\ud800-\\udbff][\\udc00-\\udfff]",Gi="["+mv+"]",Av="\\u200d",Ev="(?:"+Cv+"|"+wv+")",pP="(?:"+Gi+"|"+wv+")",Tv="(?:"+Tf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+Tf+"(?:D|LL|M|RE|S|T|VE))?",Ov=fP+"?",Pv="["+vv+"]?",hP="(?:"+Av+"(?:"+[Sv,Of,Pf].join("|")+")"+Pv+Ov+")*",gP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jv=Pv+Ov+hP,vP="(?:"+[dP,Of,Pf].join("|")+")"+jv,yP="(?:"+[Sv+nc+"?",nc,Of,Pf,uP].join("|")+")",bP=RegExp(Tf,"g"),xP=RegExp(nc,"g"),jf=RegExp(If+"(?="+If+")|"+yP+jv,"g"),CP=RegExp([Gi+"?"+Cv+"+"+Tv+"(?="+[bv,Gi,"$"].join("|")+")",pP+"+"+Iv+"(?="+[bv,Gi+Ev,"$"].join("|")+")",Gi+"?"+Ev+"+"+Tv,Gi+"+"+Iv,mP,gP,xv,vP].join("|"),"g"),wP=RegExp("["+Av+tc+pv+vv+"]"),SP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,AP=["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"],EP=-1,bt={};bt[xe]=bt[ft]=bt[Vt]=bt[$e]=bt[Oe]=bt[Zt]=bt[er]=bt[Ar]=bt[ii]=!0,bt[pe]=bt[ge]=bt[Fe]=bt[ye]=bt[Ie]=bt[ve]=bt[Te]=bt[fe]=bt[me]=bt[Qe]=bt[Et]=bt[Tt]=bt[vt]=bt[Kt]=bt[It]=!1;var pt={};pt[pe]=pt[ge]=pt[Fe]=pt[Ie]=pt[ye]=pt[ve]=pt[xe]=pt[ft]=pt[Vt]=pt[$e]=pt[Oe]=pt[me]=pt[Qe]=pt[Et]=pt[Tt]=pt[vt]=pt[Kt]=pt[yt]=pt[Zt]=pt[er]=pt[Ar]=pt[ii]=!0,pt[Te]=pt[fe]=pt[It]=!1;var TP={À:"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",Õ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Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},IP={"&":"&","<":"<",">":">",'"':""","'":"'"},OP={"&":"&","<":"<",">":">",""":'"',"'":"'"},PP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jP=parseFloat,RP=parseInt,Rv=typeof wn=="object"&&wn&&wn.Object===Object&&wn,MP=typeof self=="object"&&self&&self.Object===Object&&self,Qt=Rv||MP||Function("return this")(),Rf=t&&!t.nodeType&&t,li=Rf&&!0&&e&&!e.nodeType&&e,Mv=li&&li.exports===Rf,Mf=Mv&&Rv.process,tr=function(){try{var G=li&&li.require&&li.require("util").types;return G||Mf&&Mf.binding&&Mf.binding("util")}catch{}}(),kv=tr&&tr.isArrayBuffer,Fv=tr&&tr.isDate,Dv=tr&&tr.isMap,_v=tr&&tr.isRegExp,Lv=tr&&tr.isSet,Bv=tr&&tr.isTypedArray;function Nn(G,ie,re){switch(re.length){case 0:return G.call(ie);case 1:return G.call(ie,re[0]);case 2:return G.call(ie,re[0],re[1]);case 3:return G.call(ie,re[0],re[1],re[2])}return G.apply(ie,re)}function kP(G,ie,re,Se){for(var Le=-1,tt=G==null?0:G.length;++Le<tt;){var qt=G[Le];ie(Se,qt,re(qt),G)}return Se}function nr(G,ie){for(var re=-1,Se=G==null?0:G.length;++re<Se&&ie(G[re],re,G)!==!1;);return G}function FP(G,ie){for(var re=G==null?0:G.length;re--&&ie(G[re],re,G)!==!1;);return G}function Nv(G,ie){for(var re=-1,Se=G==null?0:G.length;++re<Se;)if(!ie(G[re],re,G))return!1;return!0}function To(G,ie){for(var re=-1,Se=G==null?0:G.length,Le=0,tt=[];++re<Se;){var qt=G[re];ie(qt,re,G)&&(tt[Le++]=qt)}return tt}function rc(G,ie){var re=G==null?0:G.length;return!!re&&qi(G,ie,0)>-1}function kf(G,ie,re){for(var Se=-1,Le=G==null?0:G.length;++Se<Le;)if(re(ie,G[Se]))return!0;return!1}function wt(G,ie){for(var re=-1,Se=G==null?0:G.length,Le=Array(Se);++re<Se;)Le[re]=ie(G[re],re,G);return Le}function Io(G,ie){for(var re=-1,Se=ie.length,Le=G.length;++re<Se;)G[Le+re]=ie[re];return G}function Ff(G,ie,re,Se){var Le=-1,tt=G==null?0:G.length;for(Se&&tt&&(re=G[++Le]);++Le<tt;)re=ie(re,G[Le],Le,G);return re}function DP(G,ie,re,Se){var Le=G==null?0:G.length;for(Se&&Le&&(re=G[--Le]);Le--;)re=ie(re,G[Le],Le,G);return re}function Df(G,ie){for(var re=-1,Se=G==null?0:G.length;++re<Se;)if(ie(G[re],re,G))return!0;return!1}var _P=_f("length");function LP(G){return G.split("")}function BP(G){return G.match(Kl)||[]}function $v(G,ie,re){var Se;return re(G,function(Le,tt,qt){if(ie(Le,tt,qt))return Se=tt,!1}),Se}function oc(G,ie,re,Se){for(var Le=G.length,tt=re+(Se?1:-1);Se?tt--:++tt<Le;)if(ie(G[tt],tt,G))return tt;return-1}function qi(G,ie,re){return ie===ie?XP(G,ie,re):oc(G,Vv,re)}function NP(G,ie,re,Se){for(var Le=re-1,tt=G.length;++Le<tt;)if(Se(G[Le],ie))return Le;return-1}function Vv(G){return G!==G}function Wv(G,ie){var re=G==null?0:G.length;return re?Bf(G,ie)/re:W}function _f(G){return function(ie){return ie==null?n:ie[G]}}function Lf(G){return function(ie){return G==null?n:G[ie]}}function zv(G,ie,re,Se,Le){return Le(G,function(tt,qt,dt){re=Se?(Se=!1,tt):ie(re,tt,qt,dt)}),re}function $P(G,ie){var re=G.length;for(G.sort(ie);re--;)G[re]=G[re].value;return G}function Bf(G,ie){for(var re,Se=-1,Le=G.length;++Se<Le;){var tt=ie(G[Se]);tt!==n&&(re=re===n?tt:re+tt)}return re}function Nf(G,ie){for(var re=-1,Se=Array(G);++re<G;)Se[re]=ie(re);return Se}function VP(G,ie){return wt(ie,function(re){return[re,G[re]]})}function Uv(G){return G&&G.slice(0,Yv(G)+1).replace(ln,"")}function $n(G){return function(ie){return G(ie)}}function $f(G,ie){return wt(ie,function(re){return G[re]})}function da(G,ie){return G.has(ie)}function Hv(G,ie){for(var re=-1,Se=G.length;++re<Se&&qi(ie,G[re],0)>-1;);return re}function Gv(G,ie){for(var re=G.length;re--&&qi(ie,G[re],0)>-1;);return re}function WP(G,ie){for(var re=G.length,Se=0;re--;)G[re]===ie&&++Se;return Se}var zP=Lf(TP),UP=Lf(IP);function HP(G){return"\\"+PP[G]}function GP(G,ie){return G==null?n:G[ie]}function Yi(G){return wP.test(G)}function qP(G){return SP.test(G)}function YP(G){for(var ie,re=[];!(ie=G.next()).done;)re.push(ie.value);return re}function Vf(G){var ie=-1,re=Array(G.size);return G.forEach(function(Se,Le){re[++ie]=[Le,Se]}),re}function qv(G,ie){return function(re){return G(ie(re))}}function Oo(G,ie){for(var re=-1,Se=G.length,Le=0,tt=[];++re<Se;){var qt=G[re];(qt===ie||qt===p)&&(G[re]=p,tt[Le++]=re)}return tt}function ic(G){var ie=-1,re=Array(G.size);return G.forEach(function(Se){re[++ie]=Se}),re}function KP(G){var ie=-1,re=Array(G.size);return G.forEach(function(Se){re[++ie]=[Se,Se]}),re}function XP(G,ie,re){for(var Se=re-1,Le=G.length;++Se<Le;)if(G[Se]===ie)return Se;return-1}function ZP(G,ie,re){for(var Se=re+1;Se--;)if(G[Se]===ie)return Se;return Se}function Ki(G){return Yi(G)?JP(G):_P(G)}function Er(G){return Yi(G)?ej(G):LP(G)}function Yv(G){for(var ie=G.length;ie--&&si.test(G.charAt(ie)););return ie}var QP=Lf(OP);function JP(G){for(var ie=jf.lastIndex=0;jf.test(G);)++ie;return ie}function ej(G){return G.match(jf)||[]}function tj(G){return G.match(CP)||[]}var nj=function G(ie){ie=ie==null?Qt:Xi.defaults(Qt.Object(),ie,Xi.pick(Qt,AP));var re=ie.Array,Se=ie.Date,Le=ie.Error,tt=ie.Function,qt=ie.Math,dt=ie.Object,Wf=ie.RegExp,rj=ie.String,rr=ie.TypeError,sc=re.prototype,oj=tt.prototype,Zi=dt.prototype,ac=ie["__core-js_shared__"],lc=oj.toString,ct=Zi.hasOwnProperty,ij=0,Kv=function(){var s=/[^.]+$/.exec(ac&&ac.keys&&ac.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),cc=Zi.toString,sj=lc.call(dt),aj=Qt._,lj=Wf("^"+lc.call(ct).replace(Qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uc=Mv?ie.Buffer:n,Po=ie.Symbol,dc=ie.Uint8Array,Xv=uc?uc.allocUnsafe:n,fc=qv(dt.getPrototypeOf,dt),Zv=dt.create,Qv=Zi.propertyIsEnumerable,pc=sc.splice,Jv=Po?Po.isConcatSpreadable:n,fa=Po?Po.iterator:n,ci=Po?Po.toStringTag:n,hc=function(){try{var s=hi(dt,"defineProperty");return s({},"",{}),s}catch{}}(),cj=ie.clearTimeout!==Qt.clearTimeout&&ie.clearTimeout,uj=Se&&Se.now!==Qt.Date.now&&Se.now,dj=ie.setTimeout!==Qt.setTimeout&&ie.setTimeout,gc=qt.ceil,mc=qt.floor,zf=dt.getOwnPropertySymbols,fj=uc?uc.isBuffer:n,ey=ie.isFinite,pj=sc.join,hj=qv(dt.keys,dt),Yt=qt.max,cn=qt.min,gj=Se.now,mj=ie.parseInt,ty=qt.random,vj=sc.reverse,Uf=hi(ie,"DataView"),pa=hi(ie,"Map"),Hf=hi(ie,"Promise"),Qi=hi(ie,"Set"),ha=hi(ie,"WeakMap"),ga=hi(dt,"create"),vc=ha&&new ha,Ji={},yj=gi(Uf),bj=gi(pa),xj=gi(Hf),Cj=gi(Qi),wj=gi(ha),yc=Po?Po.prototype:n,ma=yc?yc.valueOf:n,ny=yc?yc.toString:n;function R(s){if(jt(s)&&!Ve(s)&&!(s instanceof Xe)){if(s instanceof or)return s;if(ct.call(s,"__wrapped__"))return rb(s)}return new or(s)}var es=function(){function s(){}return function(l){if(!Ot(l))return{};if(Zv)return Zv(l);s.prototype=l;var h=new s;return s.prototype=n,h}}();function bc(){}function or(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}R.templateSettings={escape:ql,evaluate:bf,interpolate:Yl,variable:"",imports:{_:R}},R.prototype=bc.prototype,R.prototype.constructor=R,or.prototype=es(bc.prototype),or.prototype.constructor=or;function Xe(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function Sj(){var s=new Xe(this.__wrapped__);return s.__actions__=An(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=An(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=An(this.__views__),s}function Aj(){if(this.__filtered__){var s=new Xe(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Ej(){var s=this.__wrapped__.value(),l=this.__dir__,h=Ve(s),C=l<0,I=h?s.length:0,M=LR(0,I,this.__views__),L=M.start,V=M.end,K=V-L,se=C?V:L-1,ae=this.__iteratees__,le=ae.length,be=0,Ee=cn(K,this.__takeCount__);if(!h||!C&&I==K&&Ee==K)return Ty(s,this.__actions__);var je=[];e:for(;K--&&be<Ee;){se+=l;for(var He=-1,Re=s[se];++He<le;){var Ye=ae[He],Ze=Ye.iteratee,zn=Ye.type,xn=Ze(Re);if(zn==X)Re=xn;else if(!xn){if(zn==Y)continue e;break e}}je[be++]=Re}return je}Xe.prototype=es(bc.prototype),Xe.prototype.constructor=Xe;function ui(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Tj(){this.__data__=ga?ga(null):{},this.size=0}function Ij(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Oj(s){var l=this.__data__;if(ga){var h=l[s];return h===u?n:h}return ct.call(l,s)?l[s]:n}function Pj(s){var l=this.__data__;return ga?l[s]!==n:ct.call(l,s)}function jj(s,l){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=ga&&l===n?u:l,this}ui.prototype.clear=Tj,ui.prototype.delete=Ij,ui.prototype.get=Oj,ui.prototype.has=Pj,ui.prototype.set=jj;function Jr(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Rj(){this.__data__=[],this.size=0}function Mj(s){var l=this.__data__,h=xc(l,s);if(h<0)return!1;var C=l.length-1;return h==C?l.pop():pc.call(l,h,1),--this.size,!0}function kj(s){var l=this.__data__,h=xc(l,s);return h<0?n:l[h][1]}function Fj(s){return xc(this.__data__,s)>-1}function Dj(s,l){var h=this.__data__,C=xc(h,s);return C<0?(++this.size,h.push([s,l])):h[C][1]=l,this}Jr.prototype.clear=Rj,Jr.prototype.delete=Mj,Jr.prototype.get=kj,Jr.prototype.has=Fj,Jr.prototype.set=Dj;function eo(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function _j(){this.size=0,this.__data__={hash:new ui,map:new(pa||Jr),string:new ui}}function Lj(s){var l=Mc(this,s).delete(s);return this.size-=l?1:0,l}function Bj(s){return Mc(this,s).get(s)}function Nj(s){return Mc(this,s).has(s)}function $j(s,l){var h=Mc(this,s),C=h.size;return h.set(s,l),this.size+=h.size==C?0:1,this}eo.prototype.clear=_j,eo.prototype.delete=Lj,eo.prototype.get=Bj,eo.prototype.has=Nj,eo.prototype.set=$j;function di(s){var l=-1,h=s==null?0:s.length;for(this.__data__=new eo;++l<h;)this.add(s[l])}function Vj(s){return this.__data__.set(s,u),this}function Wj(s){return this.__data__.has(s)}di.prototype.add=di.prototype.push=Vj,di.prototype.has=Wj;function Tr(s){var l=this.__data__=new Jr(s);this.size=l.size}function zj(){this.__data__=new Jr,this.size=0}function Uj(s){var l=this.__data__,h=l.delete(s);return this.size=l.size,h}function Hj(s){return this.__data__.get(s)}function Gj(s){return this.__data__.has(s)}function qj(s,l){var h=this.__data__;if(h instanceof Jr){var C=h.__data__;if(!pa||C.length<o-1)return C.push([s,l]),this.size=++h.size,this;h=this.__data__=new eo(C)}return h.set(s,l),this.size=h.size,this}Tr.prototype.clear=zj,Tr.prototype.delete=Uj,Tr.prototype.get=Hj,Tr.prototype.has=Gj,Tr.prototype.set=qj;function ry(s,l){var h=Ve(s),C=!h&&mi(s),I=!h&&!C&&Fo(s),M=!h&&!C&&!I&&os(s),L=h||C||I||M,V=L?Nf(s.length,rj):[],K=V.length;for(var se in s)(l||ct.call(s,se))&&!(L&&(se=="length"||I&&(se=="offset"||se=="parent")||M&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||oo(se,K)))&&V.push(se);return V}function oy(s){var l=s.length;return l?s[np(0,l-1)]:n}function Yj(s,l){return kc(An(s),fi(l,0,s.length))}function Kj(s){return kc(An(s))}function Gf(s,l,h){(h!==n&&!Ir(s[l],h)||h===n&&!(l in s))&&to(s,l,h)}function va(s,l,h){var C=s[l];(!(ct.call(s,l)&&Ir(C,h))||h===n&&!(l in s))&&to(s,l,h)}function xc(s,l){for(var h=s.length;h--;)if(Ir(s[h][0],l))return h;return-1}function Xj(s,l,h,C){return jo(s,function(I,M,L){l(C,I,h(I),L)}),C}function iy(s,l){return s&&Fr(l,Xt(l),s)}function Zj(s,l){return s&&Fr(l,Tn(l),s)}function to(s,l,h){l=="__proto__"&&hc?hc(s,l,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[l]=h}function qf(s,l){for(var h=-1,C=l.length,I=re(C),M=s==null;++h<C;)I[h]=M?n:Ip(s,l[h]);return I}function fi(s,l,h){return s===s&&(h!==n&&(s=s<=h?s:h),l!==n&&(s=s>=l?s:l)),s}function ir(s,l,h,C,I,M){var L,V=l&g,K=l&v,se=l&y;if(h&&(L=I?h(s,C,I,M):h(s)),L!==n)return L;if(!Ot(s))return s;var ae=Ve(s);if(ae){if(L=NR(s),!V)return An(s,L)}else{var le=un(s),be=le==fe||le==Ge;if(Fo(s))return Py(s,V);if(le==Et||le==pe||be&&!I){if(L=K||be?{}:Yy(s),!V)return K?OR(s,Zj(L,s)):IR(s,iy(L,s))}else{if(!pt[le])return I?s:{};L=$R(s,le,V)}}M||(M=new Tr);var Ee=M.get(s);if(Ee)return Ee;M.set(s,L),Sb(s)?s.forEach(function(Re){L.add(ir(Re,l,h,Re,s,M))}):Cb(s)&&s.forEach(function(Re,Ye){L.set(Ye,ir(Re,l,h,Ye,s,M))});var je=se?K?pp:fp:K?Tn:Xt,He=ae?n:je(s);return nr(He||s,function(Re,Ye){He&&(Ye=Re,Re=s[Ye]),va(L,Ye,ir(Re,l,h,Ye,s,M))}),L}function Qj(s){var l=Xt(s);return function(h){return sy(h,s,l)}}function sy(s,l,h){var C=h.length;if(s==null)return!C;for(s=dt(s);C--;){var I=h[C],M=l[I],L=s[I];if(L===n&&!(I in s)||!M(L))return!1}return!0}function ay(s,l,h){if(typeof s!="function")throw new rr(a);return Aa(function(){s.apply(n,h)},l)}function ya(s,l,h,C){var I=-1,M=rc,L=!0,V=s.length,K=[],se=l.length;if(!V)return K;h&&(l=wt(l,$n(h))),C?(M=kf,L=!1):l.length>=o&&(M=da,L=!1,l=new di(l));e:for(;++I<V;){var ae=s[I],le=h==null?ae:h(ae);if(ae=C||ae!==0?ae:0,L&&le===le){for(var be=se;be--;)if(l[be]===le)continue e;K.push(ae)}else M(l,le,C)||K.push(ae)}return K}var jo=Fy(kr),ly=Fy(Kf,!0);function Jj(s,l){var h=!0;return jo(s,function(C,I,M){return h=!!l(C,I,M),h}),h}function Cc(s,l,h){for(var C=-1,I=s.length;++C<I;){var M=s[C],L=l(M);if(L!=null&&(V===n?L===L&&!Wn(L):h(L,V)))var V=L,K=M}return K}function eR(s,l,h,C){var I=s.length;for(h=Ue(h),h<0&&(h=-h>I?0:I+h),C=C===n||C>I?I:Ue(C),C<0&&(C+=I),C=h>C?0:Eb(C);h<C;)s[h++]=l;return s}function cy(s,l){var h=[];return jo(s,function(C,I,M){l(C,I,M)&&h.push(C)}),h}function Jt(s,l,h,C,I){var M=-1,L=s.length;for(h||(h=WR),I||(I=[]);++M<L;){var V=s[M];l>0&&h(V)?l>1?Jt(V,l-1,h,C,I):Io(I,V):C||(I[I.length]=V)}return I}var Yf=Dy(),uy=Dy(!0);function kr(s,l){return s&&Yf(s,l,Xt)}function Kf(s,l){return s&&uy(s,l,Xt)}function wc(s,l){return To(l,function(h){return io(s[h])})}function pi(s,l){l=Mo(l,s);for(var h=0,C=l.length;s!=null&&h<C;)s=s[Dr(l[h++])];return h&&h==C?s:n}function dy(s,l,h){var C=l(s);return Ve(s)?C:Io(C,h(s))}function yn(s){return s==null?s===n?$t:an:ci&&ci in dt(s)?_R(s):KR(s)}function Xf(s,l){return s>l}function tR(s,l){return s!=null&&ct.call(s,l)}function nR(s,l){return s!=null&&l in dt(s)}function rR(s,l,h){return s>=cn(l,h)&&s<Yt(l,h)}function Zf(s,l,h){for(var C=h?kf:rc,I=s[0].length,M=s.length,L=M,V=re(M),K=1/0,se=[];L--;){var ae=s[L];L&&l&&(ae=wt(ae,$n(l))),K=cn(ae.length,K),V[L]=!h&&(l||I>=120&&ae.length>=120)?new di(L&&ae):n}ae=s[0];var le=-1,be=V[0];e:for(;++le<I&&se.length<K;){var Ee=ae[le],je=l?l(Ee):Ee;if(Ee=h||Ee!==0?Ee:0,!(be?da(be,je):C(se,je,h))){for(L=M;--L;){var He=V[L];if(!(He?da(He,je):C(s[L],je,h)))continue e}be&&be.push(je),se.push(Ee)}}return se}function oR(s,l,h,C){return kr(s,function(I,M,L){l(C,h(I),M,L)}),C}function ba(s,l,h){l=Mo(l,s),s=Qy(s,l);var C=s==null?s:s[Dr(ar(l))];return C==null?n:Nn(C,s,h)}function fy(s){return jt(s)&&yn(s)==pe}function iR(s){return jt(s)&&yn(s)==Fe}function sR(s){return jt(s)&&yn(s)==ve}function xa(s,l,h,C,I){return s===l?!0:s==null||l==null||!jt(s)&&!jt(l)?s!==s&&l!==l:aR(s,l,h,C,xa,I)}function aR(s,l,h,C,I,M){var L=Ve(s),V=Ve(l),K=L?ge:un(s),se=V?ge:un(l);K=K==pe?Et:K,se=se==pe?Et:se;var ae=K==Et,le=se==Et,be=K==se;if(be&&Fo(s)){if(!Fo(l))return!1;L=!0,ae=!1}if(be&&!ae)return M||(M=new Tr),L||os(s)?Hy(s,l,h,C,I,M):FR(s,l,K,h,C,I,M);if(!(h&b)){var Ee=ae&&ct.call(s,"__wrapped__"),je=le&&ct.call(l,"__wrapped__");if(Ee||je){var He=Ee?s.value():s,Re=je?l.value():l;return M||(M=new Tr),I(He,Re,h,C,M)}}return be?(M||(M=new Tr),DR(s,l,h,C,I,M)):!1}function lR(s){return jt(s)&&un(s)==me}function Qf(s,l,h,C){var I=h.length,M=I,L=!C;if(s==null)return!M;for(s=dt(s);I--;){var V=h[I];if(L&&V[2]?V[1]!==s[V[0]]:!(V[0]in s))return!1}for(;++I<M;){V=h[I];var K=V[0],se=s[K],ae=V[1];if(L&&V[2]){if(se===n&&!(K in s))return!1}else{var le=new Tr;if(C)var be=C(se,ae,K,s,l,le);if(!(be===n?xa(ae,se,b|x,C,le):be))return!1}}return!0}function py(s){if(!Ot(s)||UR(s))return!1;var l=io(s)?lj:Ef;return l.test(gi(s))}function cR(s){return jt(s)&&yn(s)==Tt}function uR(s){return jt(s)&&un(s)==vt}function dR(s){return jt(s)&&Nc(s.length)&&!!bt[yn(s)]}function hy(s){return typeof s=="function"?s:s==null?In:typeof s=="object"?Ve(s)?vy(s[0],s[1]):my(s):_b(s)}function Jf(s){if(!Sa(s))return hj(s);var l=[];for(var h in dt(s))ct.call(s,h)&&h!="constructor"&&l.push(h);return l}function fR(s){if(!Ot(s))return YR(s);var l=Sa(s),h=[];for(var C in s)C=="constructor"&&(l||!ct.call(s,C))||h.push(C);return h}function ep(s,l){return s<l}function gy(s,l){var h=-1,C=En(s)?re(s.length):[];return jo(s,function(I,M,L){C[++h]=l(I,M,L)}),C}function my(s){var l=gp(s);return l.length==1&&l[0][2]?Xy(l[0][0],l[0][1]):function(h){return h===s||Qf(h,s,l)}}function vy(s,l){return vp(s)&&Ky(l)?Xy(Dr(s),l):function(h){var C=Ip(h,s);return C===n&&C===l?Op(h,s):xa(l,C,b|x)}}function Sc(s,l,h,C,I){s!==l&&Yf(l,function(M,L){if(I||(I=new Tr),Ot(M))pR(s,l,L,h,Sc,C,I);else{var V=C?C(bp(s,L),M,L+"",s,l,I):n;V===n&&(V=M),Gf(s,L,V)}},Tn)}function pR(s,l,h,C,I,M,L){var V=bp(s,h),K=bp(l,h),se=L.get(K);if(se){Gf(s,h,se);return}var ae=M?M(V,K,h+"",s,l,L):n,le=ae===n;if(le){var be=Ve(K),Ee=!be&&Fo(K),je=!be&&!Ee&&os(K);ae=K,be||Ee||je?Ve(V)?ae=V:Dt(V)?ae=An(V):Ee?(le=!1,ae=Py(K,!0)):je?(le=!1,ae=jy(K,!0)):ae=[]:Ea(K)||mi(K)?(ae=V,mi(V)?ae=Tb(V):(!Ot(V)||io(V))&&(ae=Yy(K))):le=!1}le&&(L.set(K,ae),I(ae,K,C,M,L),L.delete(K)),Gf(s,h,ae)}function yy(s,l){var h=s.length;if(h)return l+=l<0?h:0,oo(l,h)?s[l]:n}function by(s,l,h){l.length?l=wt(l,function(M){return Ve(M)?function(L){return pi(L,M.length===1?M[0]:M)}:M}):l=[In];var C=-1;l=wt(l,$n(Pe()));var I=gy(s,function(M,L,V){var K=wt(l,function(se){return se(M)});return{criteria:K,index:++C,value:M}});return $P(I,function(M,L){return TR(M,L,h)})}function hR(s,l){return xy(s,l,function(h,C){return Op(s,C)})}function xy(s,l,h){for(var C=-1,I=l.length,M={};++C<I;){var L=l[C],V=pi(s,L);h(V,L)&&Ca(M,Mo(L,s),V)}return M}function gR(s){return function(l){return pi(l,s)}}function tp(s,l,h,C){var I=C?NP:qi,M=-1,L=l.length,V=s;for(s===l&&(l=An(l)),h&&(V=wt(s,$n(h)));++M<L;)for(var K=0,se=l[M],ae=h?h(se):se;(K=I(V,ae,K,C))>-1;)V!==s&&pc.call(V,K,1),pc.call(s,K,1);return s}function Cy(s,l){for(var h=s?l.length:0,C=h-1;h--;){var I=l[h];if(h==C||I!==M){var M=I;oo(I)?pc.call(s,I,1):ip(s,I)}}return s}function np(s,l){return s+mc(ty()*(l-s+1))}function mR(s,l,h,C){for(var I=-1,M=Yt(gc((l-s)/(h||1)),0),L=re(M);M--;)L[C?M:++I]=s,s+=h;return L}function rp(s,l){var h="";if(!s||l<1||l>$)return h;do l%2&&(h+=s),l=mc(l/2),l&&(s+=s);while(l);return h}function qe(s,l){return xp(Zy(s,l,In),s+"")}function vR(s){return oy(is(s))}function yR(s,l){var h=is(s);return kc(h,fi(l,0,h.length))}function Ca(s,l,h,C){if(!Ot(s))return s;l=Mo(l,s);for(var I=-1,M=l.length,L=M-1,V=s;V!=null&&++I<M;){var K=Dr(l[I]),se=h;if(K==="__proto__"||K==="constructor"||K==="prototype")return s;if(I!=L){var ae=V[K];se=C?C(ae,K,V):n,se===n&&(se=Ot(ae)?ae:oo(l[I+1])?[]:{})}va(V,K,se),V=V[K]}return s}var wy=vc?function(s,l){return vc.set(s,l),s}:In,bR=hc?function(s,l){return hc(s,"toString",{configurable:!0,enumerable:!1,value:jp(l),writable:!0})}:In;function xR(s){return kc(is(s))}function sr(s,l,h){var C=-1,I=s.length;l<0&&(l=-l>I?0:I+l),h=h>I?I:h,h<0&&(h+=I),I=l>h?0:h-l>>>0,l>>>=0;for(var M=re(I);++C<I;)M[C]=s[C+l];return M}function CR(s,l){var h;return jo(s,function(C,I,M){return h=l(C,I,M),!h}),!!h}function Ac(s,l,h){var C=0,I=s==null?C:s.length;if(typeof l=="number"&&l===l&&I<=he){for(;C<I;){var M=C+I>>>1,L=s[M];L!==null&&!Wn(L)&&(h?L<=l:L<l)?C=M+1:I=M}return I}return op(s,l,In,h)}function op(s,l,h,C){var I=0,M=s==null?0:s.length;if(M===0)return 0;l=h(l);for(var L=l!==l,V=l===null,K=Wn(l),se=l===n;I<M;){var ae=mc((I+M)/2),le=h(s[ae]),be=le!==n,Ee=le===null,je=le===le,He=Wn(le);if(L)var Re=C||je;else se?Re=je&&(C||be):V?Re=je&&be&&(C||!Ee):K?Re=je&&be&&!Ee&&(C||!He):Ee||He?Re=!1:Re=C?le<=l:le<l;Re?I=ae+1:M=ae}return cn(M,ue)}function Sy(s,l){for(var h=-1,C=s.length,I=0,M=[];++h<C;){var L=s[h],V=l?l(L):L;if(!h||!Ir(V,K)){var K=V;M[I++]=L===0?0:L}}return M}function Ay(s){return typeof s=="number"?s:Wn(s)?W:+s}function Vn(s){if(typeof s=="string")return s;if(Ve(s))return wt(s,Vn)+"";if(Wn(s))return ny?ny.call(s):"";var l=s+"";return l=="0"&&1/s==-Q?"-0":l}function Ro(s,l,h){var C=-1,I=rc,M=s.length,L=!0,V=[],K=V;if(h)L=!1,I=kf;else if(M>=o){var se=l?null:MR(s);if(se)return ic(se);L=!1,I=da,K=new di}else K=l?[]:V;e:for(;++C<M;){var ae=s[C],le=l?l(ae):ae;if(ae=h||ae!==0?ae:0,L&&le===le){for(var be=K.length;be--;)if(K[be]===le)continue e;l&&K.push(le),V.push(ae)}else I(K,le,h)||(K!==V&&K.push(le),V.push(ae))}return V}function ip(s,l){return l=Mo(l,s),s=Qy(s,l),s==null||delete s[Dr(ar(l))]}function Ey(s,l,h,C){return Ca(s,l,h(pi(s,l)),C)}function Ec(s,l,h,C){for(var I=s.length,M=C?I:-1;(C?M--:++M<I)&&l(s[M],M,s););return h?sr(s,C?0:M,C?M+1:I):sr(s,C?M+1:0,C?I:M)}function Ty(s,l){var h=s;return h instanceof Xe&&(h=h.value()),Ff(l,function(C,I){return I.func.apply(I.thisArg,Io([C],I.args))},h)}function sp(s,l,h){var C=s.length;if(C<2)return C?Ro(s[0]):[];for(var I=-1,M=re(C);++I<C;)for(var L=s[I],V=-1;++V<C;)V!=I&&(M[I]=ya(M[I]||L,s[V],l,h));return Ro(Jt(M,1),l,h)}function Iy(s,l,h){for(var C=-1,I=s.length,M=l.length,L={};++C<I;){var V=C<M?l[C]:n;h(L,s[C],V)}return L}function ap(s){return Dt(s)?s:[]}function lp(s){return typeof s=="function"?s:In}function Mo(s,l){return Ve(s)?s:vp(s,l)?[s]:nb(ot(s))}var wR=qe;function ko(s,l,h){var C=s.length;return h=h===n?C:h,!l&&h>=C?s:sr(s,l,h)}var Oy=cj||function(s){return Qt.clearTimeout(s)};function Py(s,l){if(l)return s.slice();var h=s.length,C=Xv?Xv(h):new s.constructor(h);return s.copy(C),C}function cp(s){var l=new s.constructor(s.byteLength);return new dc(l).set(new dc(s)),l}function SR(s,l){var h=l?cp(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function AR(s){var l=new s.constructor(s.source,Jl.exec(s));return l.lastIndex=s.lastIndex,l}function ER(s){return ma?dt(ma.call(s)):{}}function jy(s,l){var h=l?cp(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function Ry(s,l){if(s!==l){var h=s!==n,C=s===null,I=s===s,M=Wn(s),L=l!==n,V=l===null,K=l===l,se=Wn(l);if(!V&&!se&&!M&&s>l||M&&L&&K&&!V&&!se||C&&L&&K||!h&&K||!I)return 1;if(!C&&!M&&!se&&s<l||se&&h&&I&&!C&&!M||V&&h&&I||!L&&I||!K)return-1}return 0}function TR(s,l,h){for(var C=-1,I=s.criteria,M=l.criteria,L=I.length,V=h.length;++C<L;){var K=Ry(I[C],M[C]);if(K){if(C>=V)return K;var se=h[C];return K*(se=="desc"?-1:1)}}return s.index-l.index}function My(s,l,h,C){for(var I=-1,M=s.length,L=h.length,V=-1,K=l.length,se=Yt(M-L,0),ae=re(K+se),le=!C;++V<K;)ae[V]=l[V];for(;++I<L;)(le||I<M)&&(ae[h[I]]=s[I]);for(;se--;)ae[V++]=s[I++];return ae}function ky(s,l,h,C){for(var I=-1,M=s.length,L=-1,V=h.length,K=-1,se=l.length,ae=Yt(M-V,0),le=re(ae+se),be=!C;++I<ae;)le[I]=s[I];for(var Ee=I;++K<se;)le[Ee+K]=l[K];for(;++L<V;)(be||I<M)&&(le[Ee+h[L]]=s[I++]);return le}function An(s,l){var h=-1,C=s.length;for(l||(l=re(C));++h<C;)l[h]=s[h];return l}function Fr(s,l,h,C){var I=!h;h||(h={});for(var M=-1,L=l.length;++M<L;){var V=l[M],K=C?C(h[V],s[V],V,h,s):n;K===n&&(K=s[V]),I?to(h,V,K):va(h,V,K)}return h}function IR(s,l){return Fr(s,mp(s),l)}function OR(s,l){return Fr(s,Gy(s),l)}function Tc(s,l){return function(h,C){var I=Ve(h)?kP:Xj,M=l?l():{};return I(h,s,Pe(C,2),M)}}function ts(s){return qe(function(l,h){var C=-1,I=h.length,M=I>1?h[I-1]:n,L=I>2?h[2]:n;for(M=s.length>3&&typeof M=="function"?(I--,M):n,L&&bn(h[0],h[1],L)&&(M=I<3?n:M,I=1),l=dt(l);++C<I;){var V=h[C];V&&s(l,V,C,M)}return l})}function Fy(s,l){return function(h,C){if(h==null)return h;if(!En(h))return s(h,C);for(var I=h.length,M=l?I:-1,L=dt(h);(l?M--:++M<I)&&C(L[M],M,L)!==!1;);return h}}function Dy(s){return function(l,h,C){for(var I=-1,M=dt(l),L=C(l),V=L.length;V--;){var K=L[s?V:++I];if(h(M[K],K,M)===!1)break}return l}}function PR(s,l,h){var C=l&w,I=wa(s);function M(){var L=this&&this!==Qt&&this instanceof M?I:s;return L.apply(C?h:this,arguments)}return M}function _y(s){return function(l){l=ot(l);var h=Yi(l)?Er(l):n,C=h?h[0]:l.charAt(0),I=h?ko(h,1).join(""):l.slice(1);return C[s]()+I}}function ns(s){return function(l){return Ff(Fb(kb(l).replace(bP,"")),s,"")}}function wa(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var h=es(s.prototype),C=s.apply(h,l);return Ot(C)?C:h}}function jR(s,l,h){var C=wa(s);function I(){for(var M=arguments.length,L=re(M),V=M,K=rs(I);V--;)L[V]=arguments[V];var se=M<3&&L[0]!==K&&L[M-1]!==K?[]:Oo(L,K);if(M-=se.length,M<h)return Vy(s,l,Ic,I.placeholder,n,L,se,n,n,h-M);var ae=this&&this!==Qt&&this instanceof I?C:s;return Nn(ae,this,L)}return I}function Ly(s){return function(l,h,C){var I=dt(l);if(!En(l)){var M=Pe(h,3);l=Xt(l),h=function(V){return M(I[V],V,I)}}var L=s(l,h,C);return L>-1?I[M?l[L]:L]:n}}function By(s){return ro(function(l){var h=l.length,C=h,I=or.prototype.thru;for(s&&l.reverse();C--;){var M=l[C];if(typeof M!="function")throw new rr(a);if(I&&!L&&Rc(M)=="wrapper")var L=new or([],!0)}for(C=L?C:h;++C<h;){M=l[C];var V=Rc(M),K=V=="wrapper"?hp(M):n;K&&yp(K[0])&&K[1]==(F|E|O|B)&&!K[4].length&&K[9]==1?L=L[Rc(K[0])].apply(L,K[3]):L=M.length==1&&yp(M)?L[V]():L.thru(M)}return function(){var se=arguments,ae=se[0];if(L&&se.length==1&&Ve(ae))return L.plant(ae).value();for(var le=0,be=h?l[le].apply(this,se):ae;++le<h;)be=l[le].call(this,be);return be}})}function Ic(s,l,h,C,I,M,L,V,K,se){var ae=l&F,le=l&w,be=l&T,Ee=l&(E|P),je=l&H,He=be?n:wa(s);function Re(){for(var Ye=arguments.length,Ze=re(Ye),zn=Ye;zn--;)Ze[zn]=arguments[zn];if(Ee)var xn=rs(Re),Un=WP(Ze,xn);if(C&&(Ze=My(Ze,C,I,Ee)),M&&(Ze=ky(Ze,M,L,Ee)),Ye-=Un,Ee&&Ye<se){var _t=Oo(Ze,xn);return Vy(s,l,Ic,Re.placeholder,h,Ze,_t,V,K,se-Ye)}var Or=le?h:this,ao=be?Or[s]:s;return Ye=Ze.length,V?Ze=XR(Ze,V):je&&Ye>1&&Ze.reverse(),ae&&K<Ye&&(Ze.length=K),this&&this!==Qt&&this instanceof Re&&(ao=He||wa(ao)),ao.apply(Or,Ze)}return Re}function Ny(s,l){return function(h,C){return oR(h,s,l(C),{})}}function Oc(s,l){return function(h,C){var I;if(h===n&&C===n)return l;if(h!==n&&(I=h),C!==n){if(I===n)return C;typeof h=="string"||typeof C=="string"?(h=Vn(h),C=Vn(C)):(h=Ay(h),C=Ay(C)),I=s(h,C)}return I}}function up(s){return ro(function(l){return l=wt(l,$n(Pe())),qe(function(h){var C=this;return s(l,function(I){return Nn(I,C,h)})})})}function Pc(s,l){l=l===n?" ":Vn(l);var h=l.length;if(h<2)return h?rp(l,s):l;var C=rp(l,gc(s/Ki(l)));return Yi(l)?ko(Er(C),0,s).join(""):C.slice(0,s)}function RR(s,l,h,C){var I=l&w,M=wa(s);function L(){for(var V=-1,K=arguments.length,se=-1,ae=C.length,le=re(ae+K),be=this&&this!==Qt&&this instanceof L?M:s;++se<ae;)le[se]=C[se];for(;K--;)le[se++]=arguments[++V];return Nn(be,I?h:this,le)}return L}function $y(s){return function(l,h,C){return C&&typeof C!="number"&&bn(l,h,C)&&(h=C=n),l=so(l),h===n?(h=l,l=0):h=so(h),C=C===n?l<h?1:-1:so(C),mR(l,h,C,s)}}function jc(s){return function(l,h){return typeof l=="string"&&typeof h=="string"||(l=lr(l),h=lr(h)),s(l,h)}}function Vy(s,l,h,C,I,M,L,V,K,se){var ae=l&E,le=ae?L:n,be=ae?n:L,Ee=ae?M:n,je=ae?n:M;l|=ae?O:k,l&=~(ae?k:O),l&j||(l&=~(w|T));var He=[s,l,I,Ee,le,je,be,V,K,se],Re=h.apply(n,He);return yp(s)&&Jy(Re,He),Re.placeholder=C,eb(Re,s,l)}function dp(s){var l=qt[s];return function(h,C){if(h=lr(h),C=C==null?0:cn(Ue(C),292),C&&ey(h)){var I=(ot(h)+"e").split("e"),M=l(I[0]+"e"+(+I[1]+C));return I=(ot(M)+"e").split("e"),+(I[0]+"e"+(+I[1]-C))}return l(h)}}var MR=Qi&&1/ic(new Qi([,-0]))[1]==Q?function(s){return new Qi(s)}:kp;function Wy(s){return function(l){var h=un(l);return h==me?Vf(l):h==vt?KP(l):VP(l,s(l))}}function no(s,l,h,C,I,M,L,V){var K=l&T;if(!K&&typeof s!="function")throw new rr(a);var se=C?C.length:0;if(se||(l&=~(O|k),C=I=n),L=L===n?L:Yt(Ue(L),0),V=V===n?V:Ue(V),se-=I?I.length:0,l&k){var ae=C,le=I;C=I=n}var be=K?n:hp(s),Ee=[s,l,h,C,I,ae,le,M,L,V];if(be&&qR(Ee,be),s=Ee[0],l=Ee[1],h=Ee[2],C=Ee[3],I=Ee[4],V=Ee[9]=Ee[9]===n?K?0:s.length:Yt(Ee[9]-se,0),!V&&l&(E|P)&&(l&=~(E|P)),!l||l==w)var je=PR(s,l,h);else l==E||l==P?je=jR(s,l,V):(l==O||l==(w|O))&&!I.length?je=RR(s,l,h,C):je=Ic.apply(n,Ee);var He=be?wy:Jy;return eb(He(je,Ee),s,l)}function zy(s,l,h,C){return s===n||Ir(s,Zi[h])&&!ct.call(C,h)?l:s}function Uy(s,l,h,C,I,M){return Ot(s)&&Ot(l)&&(M.set(l,s),Sc(s,l,n,Uy,M),M.delete(l)),s}function kR(s){return Ea(s)?n:s}function Hy(s,l,h,C,I,M){var L=h&b,V=s.length,K=l.length;if(V!=K&&!(L&&K>V))return!1;var se=M.get(s),ae=M.get(l);if(se&&ae)return se==l&&ae==s;var le=-1,be=!0,Ee=h&x?new di:n;for(M.set(s,l),M.set(l,s);++le<V;){var je=s[le],He=l[le];if(C)var Re=L?C(He,je,le,l,s,M):C(je,He,le,s,l,M);if(Re!==n){if(Re)continue;be=!1;break}if(Ee){if(!Df(l,function(Ye,Ze){if(!da(Ee,Ze)&&(je===Ye||I(je,Ye,h,C,M)))return Ee.push(Ze)})){be=!1;break}}else if(!(je===He||I(je,He,h,C,M))){be=!1;break}}return M.delete(s),M.delete(l),be}function FR(s,l,h,C,I,M,L){switch(h){case Ie:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case Fe:return!(s.byteLength!=l.byteLength||!M(new dc(s),new dc(l)));case ye:case ve:case Qe:return Ir(+s,+l);case Te:return s.name==l.name&&s.message==l.message;case Tt:case Kt:return s==l+"";case me:var V=Vf;case vt:var K=C&b;if(V||(V=ic),s.size!=l.size&&!K)return!1;var se=L.get(s);if(se)return se==l;C|=x,L.set(s,l);var ae=Hy(V(s),V(l),C,I,M,L);return L.delete(s),ae;case yt:if(ma)return ma.call(s)==ma.call(l)}return!1}function DR(s,l,h,C,I,M){var L=h&b,V=fp(s),K=V.length,se=fp(l),ae=se.length;if(K!=ae&&!L)return!1;for(var le=K;le--;){var be=V[le];if(!(L?be in l:ct.call(l,be)))return!1}var Ee=M.get(s),je=M.get(l);if(Ee&&je)return Ee==l&&je==s;var He=!0;M.set(s,l),M.set(l,s);for(var Re=L;++le<K;){be=V[le];var Ye=s[be],Ze=l[be];if(C)var zn=L?C(Ze,Ye,be,l,s,M):C(Ye,Ze,be,s,l,M);if(!(zn===n?Ye===Ze||I(Ye,Ze,h,C,M):zn)){He=!1;break}Re||(Re=be=="constructor")}if(He&&!Re){var xn=s.constructor,Un=l.constructor;xn!=Un&&"constructor"in s&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Un=="function"&&Un instanceof Un)&&(He=!1)}return M.delete(s),M.delete(l),He}function ro(s){return xp(Zy(s,n,sb),s+"")}function fp(s){return dy(s,Xt,mp)}function pp(s){return dy(s,Tn,Gy)}var hp=vc?function(s){return vc.get(s)}:kp;function Rc(s){for(var l=s.name+"",h=Ji[l],C=ct.call(Ji,l)?h.length:0;C--;){var I=h[C],M=I.func;if(M==null||M==s)return I.name}return l}function rs(s){var l=ct.call(R,"placeholder")?R:s;return l.placeholder}function Pe(){var s=R.iteratee||Rp;return s=s===Rp?hy:s,arguments.length?s(arguments[0],arguments[1]):s}function Mc(s,l){var h=s.__data__;return zR(l)?h[typeof l=="string"?"string":"hash"]:h.map}function gp(s){for(var l=Xt(s),h=l.length;h--;){var C=l[h],I=s[C];l[h]=[C,I,Ky(I)]}return l}function hi(s,l){var h=GP(s,l);return py(h)?h:n}function _R(s){var l=ct.call(s,ci),h=s[ci];try{s[ci]=n;var C=!0}catch{}var I=cc.call(s);return C&&(l?s[ci]=h:delete s[ci]),I}var mp=zf?function(s){return s==null?[]:(s=dt(s),To(zf(s),function(l){return Qv.call(s,l)}))}:Fp,Gy=zf?function(s){for(var l=[];s;)Io(l,mp(s)),s=fc(s);return l}:Fp,un=yn;(Uf&&un(new Uf(new ArrayBuffer(1)))!=Ie||pa&&un(new pa)!=me||Hf&&un(Hf.resolve())!=mt||Qi&&un(new Qi)!=vt||ha&&un(new ha)!=It)&&(un=function(s){var l=yn(s),h=l==Et?s.constructor:n,C=h?gi(h):"";if(C)switch(C){case yj:return Ie;case bj:return me;case xj:return mt;case Cj:return vt;case wj:return It}return l});function LR(s,l,h){for(var C=-1,I=h.length;++C<I;){var M=h[C],L=M.size;switch(M.type){case"drop":s+=L;break;case"dropRight":l-=L;break;case"take":l=cn(l,s+L);break;case"takeRight":s=Yt(s,l-L);break}}return{start:s,end:l}}function BR(s){var l=s.match(ai);return l?l[1].split(ua):[]}function qy(s,l,h){l=Mo(l,s);for(var C=-1,I=l.length,M=!1;++C<I;){var L=Dr(l[C]);if(!(M=s!=null&&h(s,L)))break;s=s[L]}return M||++C!=I?M:(I=s==null?0:s.length,!!I&&Nc(I)&&oo(L,I)&&(Ve(s)||mi(s)))}function NR(s){var l=s.length,h=new s.constructor(l);return l&&typeof s[0]=="string"&&ct.call(s,"index")&&(h.index=s.index,h.input=s.input),h}function Yy(s){return typeof s.constructor=="function"&&!Sa(s)?es(fc(s)):{}}function $R(s,l,h){var C=s.constructor;switch(l){case Fe:return cp(s);case ye:case ve:return new C(+s);case Ie:return SR(s,h);case xe:case ft:case Vt:case $e:case Oe:case Zt:case er:case Ar:case ii:return jy(s,h);case me:return new C;case Qe:case Kt:return new C(s);case Tt:return AR(s);case vt:return new C;case yt:return ER(s)}}function VR(s,l){var h=l.length;if(!h)return s;var C=h-1;return l[C]=(h>1?"& ":"")+l[C],l=l.join(h>2?", ":" "),s.replace(wf,`{
|
|
202
|
+
*/sd.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,v=2,y=4,b=1,x=2,w=1,T=2,j=4,E=8,P=16,O=32,k=64,F=128,B=256,H=512,q=30,U="...",ne=800,te=16,Y=1,X=2,N=3,Q=1/0,$=9007199254740991,oe=17976931348623157e292,W=NaN,J=4294967295,ue=J-1,he=J>>>1,de=[["ary",F],["bind",w],["bindKey",T],["curry",E],["curryRight",P],["flip",H],["partial",O],["partialRight",k],["rearg",B]],pe="[object Arguments]",ge="[object Array]",we="[object AsyncFunction]",ye="[object Boolean]",ve="[object Date]",Ce="[object DOMException]",Te="[object Error]",fe="[object Function]",Ge="[object GeneratorFunction]",me="[object Map]",Qe="[object Number]",an="[object Null]",Et="[object Object]",mt="[object Promise]",Bn="[object Proxy]",Tt="[object RegExp]",vt="[object Set]",Kt="[object String]",yt="[object Symbol]",$t="[object Undefined]",It="[object WeakMap]",ke="[object WeakSet]",Fe="[object ArrayBuffer]",Ie="[object DataView]",xe="[object Float32Array]",ft="[object Float64Array]",Vt="[object Int8Array]",$e="[object Int16Array]",Oe="[object Int32Array]",Zt="[object Uint8Array]",er="[object Uint8ClampedArray]",Ar="[object Uint16Array]",ii="[object Uint32Array]",zl=/\b__p \+= '';/g,vf=/\b(__p \+=) '' \+/g,yf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ul=/&(?:amp|lt|gt|quot|#39);/g,aa=/[&<>"']/g,Hl=RegExp(Ul.source),Gl=RegExp(aa.source),ql=/<%-([\s\S]+?)%>/g,bf=/<%([\s\S]+?)%>/g,Yl=/<%=([\s\S]+?)%>/g,xf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,la=/^\w*$/,Cf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qr=/[\\^$.*+?()[\]{}|]/g,ca=RegExp(Qr.source),ln=/^\s+/,si=/\s/,wf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ai=/\{\n\/\* \[wrapped with (.+)\] \*/,ua=/,? & /,Kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xl=/[()=,{}\[\]\/\s]/,Zl=/\\(\\)?/g,Ql=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jl=/\w*$/,Sf=/^[-+]0x[0-9a-f]+$/i,Af=/^0b[01]+$/i,Ef=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,vn=/^(?:0|[1-9]\d*)$/,tP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ec=/($^)/,nP=/['\n\r\u2028\u2029\\]/g,tc="\\ud800-\\udfff",rP="\\u0300-\\u036f",oP="\\ufe20-\\ufe2f",iP="\\u20d0-\\u20ff",pv=rP+oP+iP,hv="\\u2700-\\u27bf",gv="a-z\\xdf-\\xf6\\xf8-\\xff",sP="\\xac\\xb1\\xd7\\xf7",aP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lP="\\u2000-\\u206f",cP=" \\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",mv="A-Z\\xc0-\\xd6\\xd8-\\xde",vv="\\ufe0e\\ufe0f",yv=sP+aP+lP+cP,Tf="['’]",uP="["+tc+"]",bv="["+yv+"]",nc="["+pv+"]",xv="\\d+",dP="["+hv+"]",Cv="["+gv+"]",wv="[^"+tc+yv+xv+hv+gv+mv+"]",If="\\ud83c[\\udffb-\\udfff]",fP="(?:"+nc+"|"+If+")",Sv="[^"+tc+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Pf="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="["+mv+"]",Av="\\u200d",Ev="(?:"+Cv+"|"+wv+")",pP="(?:"+qi+"|"+wv+")",Tv="(?:"+Tf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+Tf+"(?:D|LL|M|RE|S|T|VE))?",Ov=fP+"?",Pv="["+vv+"]?",hP="(?:"+Av+"(?:"+[Sv,Of,Pf].join("|")+")"+Pv+Ov+")*",gP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jv=Pv+Ov+hP,vP="(?:"+[dP,Of,Pf].join("|")+")"+jv,yP="(?:"+[Sv+nc+"?",nc,Of,Pf,uP].join("|")+")",bP=RegExp(Tf,"g"),xP=RegExp(nc,"g"),jf=RegExp(If+"(?="+If+")|"+yP+jv,"g"),CP=RegExp([qi+"?"+Cv+"+"+Tv+"(?="+[bv,qi,"$"].join("|")+")",pP+"+"+Iv+"(?="+[bv,qi+Ev,"$"].join("|")+")",qi+"?"+Ev+"+"+Tv,qi+"+"+Iv,mP,gP,xv,vP].join("|"),"g"),wP=RegExp("["+Av+tc+pv+vv+"]"),SP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,AP=["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"],EP=-1,bt={};bt[xe]=bt[ft]=bt[Vt]=bt[$e]=bt[Oe]=bt[Zt]=bt[er]=bt[Ar]=bt[ii]=!0,bt[pe]=bt[ge]=bt[Fe]=bt[ye]=bt[Ie]=bt[ve]=bt[Te]=bt[fe]=bt[me]=bt[Qe]=bt[Et]=bt[Tt]=bt[vt]=bt[Kt]=bt[It]=!1;var pt={};pt[pe]=pt[ge]=pt[Fe]=pt[Ie]=pt[ye]=pt[ve]=pt[xe]=pt[ft]=pt[Vt]=pt[$e]=pt[Oe]=pt[me]=pt[Qe]=pt[Et]=pt[Tt]=pt[vt]=pt[Kt]=pt[yt]=pt[Zt]=pt[er]=pt[Ar]=pt[ii]=!0,pt[Te]=pt[fe]=pt[It]=!1;var TP={À:"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"},IP={"&":"&","<":"<",">":">",'"':""","'":"'"},OP={"&":"&","<":"<",">":">",""":'"',"'":"'"},PP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jP=parseFloat,RP=parseInt,Rv=typeof wn=="object"&&wn&&wn.Object===Object&&wn,MP=typeof self=="object"&&self&&self.Object===Object&&self,Qt=Rv||MP||Function("return this")(),Rf=t&&!t.nodeType&&t,li=Rf&&!0&&e&&!e.nodeType&&e,Mv=li&&li.exports===Rf,Mf=Mv&&Rv.process,tr=function(){try{var G=li&&li.require&&li.require("util").types;return G||Mf&&Mf.binding&&Mf.binding("util")}catch{}}(),kv=tr&&tr.isArrayBuffer,Fv=tr&&tr.isDate,Dv=tr&&tr.isMap,_v=tr&&tr.isRegExp,Lv=tr&&tr.isSet,Bv=tr&&tr.isTypedArray;function Nn(G,ie,re){switch(re.length){case 0:return G.call(ie);case 1:return G.call(ie,re[0]);case 2:return G.call(ie,re[0],re[1]);case 3:return G.call(ie,re[0],re[1],re[2])}return G.apply(ie,re)}function kP(G,ie,re,Se){for(var Le=-1,tt=G==null?0:G.length;++Le<tt;){var qt=G[Le];ie(Se,qt,re(qt),G)}return Se}function nr(G,ie){for(var re=-1,Se=G==null?0:G.length;++re<Se&&ie(G[re],re,G)!==!1;);return G}function FP(G,ie){for(var re=G==null?0:G.length;re--&&ie(G[re],re,G)!==!1;);return G}function Nv(G,ie){for(var re=-1,Se=G==null?0:G.length;++re<Se;)if(!ie(G[re],re,G))return!1;return!0}function To(G,ie){for(var re=-1,Se=G==null?0:G.length,Le=0,tt=[];++re<Se;){var qt=G[re];ie(qt,re,G)&&(tt[Le++]=qt)}return tt}function rc(G,ie){var re=G==null?0:G.length;return!!re&&Yi(G,ie,0)>-1}function kf(G,ie,re){for(var Se=-1,Le=G==null?0:G.length;++Se<Le;)if(re(ie,G[Se]))return!0;return!1}function wt(G,ie){for(var re=-1,Se=G==null?0:G.length,Le=Array(Se);++re<Se;)Le[re]=ie(G[re],re,G);return Le}function Io(G,ie){for(var re=-1,Se=ie.length,Le=G.length;++re<Se;)G[Le+re]=ie[re];return G}function Ff(G,ie,re,Se){var Le=-1,tt=G==null?0:G.length;for(Se&&tt&&(re=G[++Le]);++Le<tt;)re=ie(re,G[Le],Le,G);return re}function DP(G,ie,re,Se){var Le=G==null?0:G.length;for(Se&&Le&&(re=G[--Le]);Le--;)re=ie(re,G[Le],Le,G);return re}function Df(G,ie){for(var re=-1,Se=G==null?0:G.length;++re<Se;)if(ie(G[re],re,G))return!0;return!1}var _P=_f("length");function LP(G){return G.split("")}function BP(G){return G.match(Kl)||[]}function $v(G,ie,re){var Se;return re(G,function(Le,tt,qt){if(ie(Le,tt,qt))return Se=tt,!1}),Se}function oc(G,ie,re,Se){for(var Le=G.length,tt=re+(Se?1:-1);Se?tt--:++tt<Le;)if(ie(G[tt],tt,G))return tt;return-1}function Yi(G,ie,re){return ie===ie?XP(G,ie,re):oc(G,Vv,re)}function NP(G,ie,re,Se){for(var Le=re-1,tt=G.length;++Le<tt;)if(Se(G[Le],ie))return Le;return-1}function Vv(G){return G!==G}function Wv(G,ie){var re=G==null?0:G.length;return re?Bf(G,ie)/re:W}function _f(G){return function(ie){return ie==null?n:ie[G]}}function Lf(G){return function(ie){return G==null?n:G[ie]}}function zv(G,ie,re,Se,Le){return Le(G,function(tt,qt,dt){re=Se?(Se=!1,tt):ie(re,tt,qt,dt)}),re}function $P(G,ie){var re=G.length;for(G.sort(ie);re--;)G[re]=G[re].value;return G}function Bf(G,ie){for(var re,Se=-1,Le=G.length;++Se<Le;){var tt=ie(G[Se]);tt!==n&&(re=re===n?tt:re+tt)}return re}function Nf(G,ie){for(var re=-1,Se=Array(G);++re<G;)Se[re]=ie(re);return Se}function VP(G,ie){return wt(ie,function(re){return[re,G[re]]})}function Uv(G){return G&&G.slice(0,Yv(G)+1).replace(ln,"")}function $n(G){return function(ie){return G(ie)}}function $f(G,ie){return wt(ie,function(re){return G[re]})}function da(G,ie){return G.has(ie)}function Hv(G,ie){for(var re=-1,Se=G.length;++re<Se&&Yi(ie,G[re],0)>-1;);return re}function Gv(G,ie){for(var re=G.length;re--&&Yi(ie,G[re],0)>-1;);return re}function WP(G,ie){for(var re=G.length,Se=0;re--;)G[re]===ie&&++Se;return Se}var zP=Lf(TP),UP=Lf(IP);function HP(G){return"\\"+PP[G]}function GP(G,ie){return G==null?n:G[ie]}function Ki(G){return wP.test(G)}function qP(G){return SP.test(G)}function YP(G){for(var ie,re=[];!(ie=G.next()).done;)re.push(ie.value);return re}function Vf(G){var ie=-1,re=Array(G.size);return G.forEach(function(Se,Le){re[++ie]=[Le,Se]}),re}function qv(G,ie){return function(re){return G(ie(re))}}function Oo(G,ie){for(var re=-1,Se=G.length,Le=0,tt=[];++re<Se;){var qt=G[re];(qt===ie||qt===p)&&(G[re]=p,tt[Le++]=re)}return tt}function ic(G){var ie=-1,re=Array(G.size);return G.forEach(function(Se){re[++ie]=Se}),re}function KP(G){var ie=-1,re=Array(G.size);return G.forEach(function(Se){re[++ie]=[Se,Se]}),re}function XP(G,ie,re){for(var Se=re-1,Le=G.length;++Se<Le;)if(G[Se]===ie)return Se;return-1}function ZP(G,ie,re){for(var Se=re+1;Se--;)if(G[Se]===ie)return Se;return Se}function Xi(G){return Ki(G)?JP(G):_P(G)}function Er(G){return Ki(G)?ej(G):LP(G)}function Yv(G){for(var ie=G.length;ie--&&si.test(G.charAt(ie)););return ie}var QP=Lf(OP);function JP(G){for(var ie=jf.lastIndex=0;jf.test(G);)++ie;return ie}function ej(G){return G.match(jf)||[]}function tj(G){return G.match(CP)||[]}var nj=function G(ie){ie=ie==null?Qt:Zi.defaults(Qt.Object(),ie,Zi.pick(Qt,AP));var re=ie.Array,Se=ie.Date,Le=ie.Error,tt=ie.Function,qt=ie.Math,dt=ie.Object,Wf=ie.RegExp,rj=ie.String,rr=ie.TypeError,sc=re.prototype,oj=tt.prototype,Qi=dt.prototype,ac=ie["__core-js_shared__"],lc=oj.toString,ct=Qi.hasOwnProperty,ij=0,Kv=function(){var s=/[^.]+$/.exec(ac&&ac.keys&&ac.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),cc=Qi.toString,sj=lc.call(dt),aj=Qt._,lj=Wf("^"+lc.call(ct).replace(Qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uc=Mv?ie.Buffer:n,Po=ie.Symbol,dc=ie.Uint8Array,Xv=uc?uc.allocUnsafe:n,fc=qv(dt.getPrototypeOf,dt),Zv=dt.create,Qv=Qi.propertyIsEnumerable,pc=sc.splice,Jv=Po?Po.isConcatSpreadable:n,fa=Po?Po.iterator:n,ci=Po?Po.toStringTag:n,hc=function(){try{var s=hi(dt,"defineProperty");return s({},"",{}),s}catch{}}(),cj=ie.clearTimeout!==Qt.clearTimeout&&ie.clearTimeout,uj=Se&&Se.now!==Qt.Date.now&&Se.now,dj=ie.setTimeout!==Qt.setTimeout&&ie.setTimeout,gc=qt.ceil,mc=qt.floor,zf=dt.getOwnPropertySymbols,fj=uc?uc.isBuffer:n,ey=ie.isFinite,pj=sc.join,hj=qv(dt.keys,dt),Yt=qt.max,cn=qt.min,gj=Se.now,mj=ie.parseInt,ty=qt.random,vj=sc.reverse,Uf=hi(ie,"DataView"),pa=hi(ie,"Map"),Hf=hi(ie,"Promise"),Ji=hi(ie,"Set"),ha=hi(ie,"WeakMap"),ga=hi(dt,"create"),vc=ha&&new ha,es={},yj=gi(Uf),bj=gi(pa),xj=gi(Hf),Cj=gi(Ji),wj=gi(ha),yc=Po?Po.prototype:n,ma=yc?yc.valueOf:n,ny=yc?yc.toString:n;function R(s){if(jt(s)&&!Ve(s)&&!(s instanceof Xe)){if(s instanceof or)return s;if(ct.call(s,"__wrapped__"))return rb(s)}return new or(s)}var ts=function(){function s(){}return function(l){if(!Ot(l))return{};if(Zv)return Zv(l);s.prototype=l;var h=new s;return s.prototype=n,h}}();function bc(){}function or(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}R.templateSettings={escape:ql,evaluate:bf,interpolate:Yl,variable:"",imports:{_:R}},R.prototype=bc.prototype,R.prototype.constructor=R,or.prototype=ts(bc.prototype),or.prototype.constructor=or;function Xe(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function Sj(){var s=new Xe(this.__wrapped__);return s.__actions__=An(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=An(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=An(this.__views__),s}function Aj(){if(this.__filtered__){var s=new Xe(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Ej(){var s=this.__wrapped__.value(),l=this.__dir__,h=Ve(s),C=l<0,I=h?s.length:0,M=LR(0,I,this.__views__),L=M.start,V=M.end,K=V-L,se=C?V:L-1,ae=this.__iteratees__,le=ae.length,be=0,Ee=cn(K,this.__takeCount__);if(!h||!C&&I==K&&Ee==K)return Ty(s,this.__actions__);var je=[];e:for(;K--&&be<Ee;){se+=l;for(var He=-1,Re=s[se];++He<le;){var Ye=ae[He],Ze=Ye.iteratee,zn=Ye.type,xn=Ze(Re);if(zn==X)Re=xn;else if(!xn){if(zn==Y)continue e;break e}}je[be++]=Re}return je}Xe.prototype=ts(bc.prototype),Xe.prototype.constructor=Xe;function ui(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Tj(){this.__data__=ga?ga(null):{},this.size=0}function Ij(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function Oj(s){var l=this.__data__;if(ga){var h=l[s];return h===u?n:h}return ct.call(l,s)?l[s]:n}function Pj(s){var l=this.__data__;return ga?l[s]!==n:ct.call(l,s)}function jj(s,l){var h=this.__data__;return this.size+=this.has(s)?0:1,h[s]=ga&&l===n?u:l,this}ui.prototype.clear=Tj,ui.prototype.delete=Ij,ui.prototype.get=Oj,ui.prototype.has=Pj,ui.prototype.set=jj;function Jr(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function Rj(){this.__data__=[],this.size=0}function Mj(s){var l=this.__data__,h=xc(l,s);if(h<0)return!1;var C=l.length-1;return h==C?l.pop():pc.call(l,h,1),--this.size,!0}function kj(s){var l=this.__data__,h=xc(l,s);return h<0?n:l[h][1]}function Fj(s){return xc(this.__data__,s)>-1}function Dj(s,l){var h=this.__data__,C=xc(h,s);return C<0?(++this.size,h.push([s,l])):h[C][1]=l,this}Jr.prototype.clear=Rj,Jr.prototype.delete=Mj,Jr.prototype.get=kj,Jr.prototype.has=Fj,Jr.prototype.set=Dj;function eo(s){var l=-1,h=s==null?0:s.length;for(this.clear();++l<h;){var C=s[l];this.set(C[0],C[1])}}function _j(){this.size=0,this.__data__={hash:new ui,map:new(pa||Jr),string:new ui}}function Lj(s){var l=Mc(this,s).delete(s);return this.size-=l?1:0,l}function Bj(s){return Mc(this,s).get(s)}function Nj(s){return Mc(this,s).has(s)}function $j(s,l){var h=Mc(this,s),C=h.size;return h.set(s,l),this.size+=h.size==C?0:1,this}eo.prototype.clear=_j,eo.prototype.delete=Lj,eo.prototype.get=Bj,eo.prototype.has=Nj,eo.prototype.set=$j;function di(s){var l=-1,h=s==null?0:s.length;for(this.__data__=new eo;++l<h;)this.add(s[l])}function Vj(s){return this.__data__.set(s,u),this}function Wj(s){return this.__data__.has(s)}di.prototype.add=di.prototype.push=Vj,di.prototype.has=Wj;function Tr(s){var l=this.__data__=new Jr(s);this.size=l.size}function zj(){this.__data__=new Jr,this.size=0}function Uj(s){var l=this.__data__,h=l.delete(s);return this.size=l.size,h}function Hj(s){return this.__data__.get(s)}function Gj(s){return this.__data__.has(s)}function qj(s,l){var h=this.__data__;if(h instanceof Jr){var C=h.__data__;if(!pa||C.length<o-1)return C.push([s,l]),this.size=++h.size,this;h=this.__data__=new eo(C)}return h.set(s,l),this.size=h.size,this}Tr.prototype.clear=zj,Tr.prototype.delete=Uj,Tr.prototype.get=Hj,Tr.prototype.has=Gj,Tr.prototype.set=qj;function ry(s,l){var h=Ve(s),C=!h&&mi(s),I=!h&&!C&&Fo(s),M=!h&&!C&&!I&&is(s),L=h||C||I||M,V=L?Nf(s.length,rj):[],K=V.length;for(var se in s)(l||ct.call(s,se))&&!(L&&(se=="length"||I&&(se=="offset"||se=="parent")||M&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||oo(se,K)))&&V.push(se);return V}function oy(s){var l=s.length;return l?s[np(0,l-1)]:n}function Yj(s,l){return kc(An(s),fi(l,0,s.length))}function Kj(s){return kc(An(s))}function Gf(s,l,h){(h!==n&&!Ir(s[l],h)||h===n&&!(l in s))&&to(s,l,h)}function va(s,l,h){var C=s[l];(!(ct.call(s,l)&&Ir(C,h))||h===n&&!(l in s))&&to(s,l,h)}function xc(s,l){for(var h=s.length;h--;)if(Ir(s[h][0],l))return h;return-1}function Xj(s,l,h,C){return jo(s,function(I,M,L){l(C,I,h(I),L)}),C}function iy(s,l){return s&&Fr(l,Xt(l),s)}function Zj(s,l){return s&&Fr(l,Tn(l),s)}function to(s,l,h){l=="__proto__"&&hc?hc(s,l,{configurable:!0,enumerable:!0,value:h,writable:!0}):s[l]=h}function qf(s,l){for(var h=-1,C=l.length,I=re(C),M=s==null;++h<C;)I[h]=M?n:Ip(s,l[h]);return I}function fi(s,l,h){return s===s&&(h!==n&&(s=s<=h?s:h),l!==n&&(s=s>=l?s:l)),s}function ir(s,l,h,C,I,M){var L,V=l&g,K=l&v,se=l&y;if(h&&(L=I?h(s,C,I,M):h(s)),L!==n)return L;if(!Ot(s))return s;var ae=Ve(s);if(ae){if(L=NR(s),!V)return An(s,L)}else{var le=un(s),be=le==fe||le==Ge;if(Fo(s))return Py(s,V);if(le==Et||le==pe||be&&!I){if(L=K||be?{}:Yy(s),!V)return K?OR(s,Zj(L,s)):IR(s,iy(L,s))}else{if(!pt[le])return I?s:{};L=$R(s,le,V)}}M||(M=new Tr);var Ee=M.get(s);if(Ee)return Ee;M.set(s,L),Sb(s)?s.forEach(function(Re){L.add(ir(Re,l,h,Re,s,M))}):Cb(s)&&s.forEach(function(Re,Ye){L.set(Ye,ir(Re,l,h,Ye,s,M))});var je=se?K?pp:fp:K?Tn:Xt,He=ae?n:je(s);return nr(He||s,function(Re,Ye){He&&(Ye=Re,Re=s[Ye]),va(L,Ye,ir(Re,l,h,Ye,s,M))}),L}function Qj(s){var l=Xt(s);return function(h){return sy(h,s,l)}}function sy(s,l,h){var C=h.length;if(s==null)return!C;for(s=dt(s);C--;){var I=h[C],M=l[I],L=s[I];if(L===n&&!(I in s)||!M(L))return!1}return!0}function ay(s,l,h){if(typeof s!="function")throw new rr(a);return Aa(function(){s.apply(n,h)},l)}function ya(s,l,h,C){var I=-1,M=rc,L=!0,V=s.length,K=[],se=l.length;if(!V)return K;h&&(l=wt(l,$n(h))),C?(M=kf,L=!1):l.length>=o&&(M=da,L=!1,l=new di(l));e:for(;++I<V;){var ae=s[I],le=h==null?ae:h(ae);if(ae=C||ae!==0?ae:0,L&&le===le){for(var be=se;be--;)if(l[be]===le)continue e;K.push(ae)}else M(l,le,C)||K.push(ae)}return K}var jo=Fy(kr),ly=Fy(Kf,!0);function Jj(s,l){var h=!0;return jo(s,function(C,I,M){return h=!!l(C,I,M),h}),h}function Cc(s,l,h){for(var C=-1,I=s.length;++C<I;){var M=s[C],L=l(M);if(L!=null&&(V===n?L===L&&!Wn(L):h(L,V)))var V=L,K=M}return K}function eR(s,l,h,C){var I=s.length;for(h=Ue(h),h<0&&(h=-h>I?0:I+h),C=C===n||C>I?I:Ue(C),C<0&&(C+=I),C=h>C?0:Eb(C);h<C;)s[h++]=l;return s}function cy(s,l){var h=[];return jo(s,function(C,I,M){l(C,I,M)&&h.push(C)}),h}function Jt(s,l,h,C,I){var M=-1,L=s.length;for(h||(h=WR),I||(I=[]);++M<L;){var V=s[M];l>0&&h(V)?l>1?Jt(V,l-1,h,C,I):Io(I,V):C||(I[I.length]=V)}return I}var Yf=Dy(),uy=Dy(!0);function kr(s,l){return s&&Yf(s,l,Xt)}function Kf(s,l){return s&&uy(s,l,Xt)}function wc(s,l){return To(l,function(h){return io(s[h])})}function pi(s,l){l=Mo(l,s);for(var h=0,C=l.length;s!=null&&h<C;)s=s[Dr(l[h++])];return h&&h==C?s:n}function dy(s,l,h){var C=l(s);return Ve(s)?C:Io(C,h(s))}function yn(s){return s==null?s===n?$t:an:ci&&ci in dt(s)?_R(s):KR(s)}function Xf(s,l){return s>l}function tR(s,l){return s!=null&&ct.call(s,l)}function nR(s,l){return s!=null&&l in dt(s)}function rR(s,l,h){return s>=cn(l,h)&&s<Yt(l,h)}function Zf(s,l,h){for(var C=h?kf:rc,I=s[0].length,M=s.length,L=M,V=re(M),K=1/0,se=[];L--;){var ae=s[L];L&&l&&(ae=wt(ae,$n(l))),K=cn(ae.length,K),V[L]=!h&&(l||I>=120&&ae.length>=120)?new di(L&&ae):n}ae=s[0];var le=-1,be=V[0];e:for(;++le<I&&se.length<K;){var Ee=ae[le],je=l?l(Ee):Ee;if(Ee=h||Ee!==0?Ee:0,!(be?da(be,je):C(se,je,h))){for(L=M;--L;){var He=V[L];if(!(He?da(He,je):C(s[L],je,h)))continue e}be&&be.push(je),se.push(Ee)}}return se}function oR(s,l,h,C){return kr(s,function(I,M,L){l(C,h(I),M,L)}),C}function ba(s,l,h){l=Mo(l,s),s=Qy(s,l);var C=s==null?s:s[Dr(ar(l))];return C==null?n:Nn(C,s,h)}function fy(s){return jt(s)&&yn(s)==pe}function iR(s){return jt(s)&&yn(s)==Fe}function sR(s){return jt(s)&&yn(s)==ve}function xa(s,l,h,C,I){return s===l?!0:s==null||l==null||!jt(s)&&!jt(l)?s!==s&&l!==l:aR(s,l,h,C,xa,I)}function aR(s,l,h,C,I,M){var L=Ve(s),V=Ve(l),K=L?ge:un(s),se=V?ge:un(l);K=K==pe?Et:K,se=se==pe?Et:se;var ae=K==Et,le=se==Et,be=K==se;if(be&&Fo(s)){if(!Fo(l))return!1;L=!0,ae=!1}if(be&&!ae)return M||(M=new Tr),L||is(s)?Hy(s,l,h,C,I,M):FR(s,l,K,h,C,I,M);if(!(h&b)){var Ee=ae&&ct.call(s,"__wrapped__"),je=le&&ct.call(l,"__wrapped__");if(Ee||je){var He=Ee?s.value():s,Re=je?l.value():l;return M||(M=new Tr),I(He,Re,h,C,M)}}return be?(M||(M=new Tr),DR(s,l,h,C,I,M)):!1}function lR(s){return jt(s)&&un(s)==me}function Qf(s,l,h,C){var I=h.length,M=I,L=!C;if(s==null)return!M;for(s=dt(s);I--;){var V=h[I];if(L&&V[2]?V[1]!==s[V[0]]:!(V[0]in s))return!1}for(;++I<M;){V=h[I];var K=V[0],se=s[K],ae=V[1];if(L&&V[2]){if(se===n&&!(K in s))return!1}else{var le=new Tr;if(C)var be=C(se,ae,K,s,l,le);if(!(be===n?xa(ae,se,b|x,C,le):be))return!1}}return!0}function py(s){if(!Ot(s)||UR(s))return!1;var l=io(s)?lj:Ef;return l.test(gi(s))}function cR(s){return jt(s)&&yn(s)==Tt}function uR(s){return jt(s)&&un(s)==vt}function dR(s){return jt(s)&&Nc(s.length)&&!!bt[yn(s)]}function hy(s){return typeof s=="function"?s:s==null?In:typeof s=="object"?Ve(s)?vy(s[0],s[1]):my(s):_b(s)}function Jf(s){if(!Sa(s))return hj(s);var l=[];for(var h in dt(s))ct.call(s,h)&&h!="constructor"&&l.push(h);return l}function fR(s){if(!Ot(s))return YR(s);var l=Sa(s),h=[];for(var C in s)C=="constructor"&&(l||!ct.call(s,C))||h.push(C);return h}function ep(s,l){return s<l}function gy(s,l){var h=-1,C=En(s)?re(s.length):[];return jo(s,function(I,M,L){C[++h]=l(I,M,L)}),C}function my(s){var l=gp(s);return l.length==1&&l[0][2]?Xy(l[0][0],l[0][1]):function(h){return h===s||Qf(h,s,l)}}function vy(s,l){return vp(s)&&Ky(l)?Xy(Dr(s),l):function(h){var C=Ip(h,s);return C===n&&C===l?Op(h,s):xa(l,C,b|x)}}function Sc(s,l,h,C,I){s!==l&&Yf(l,function(M,L){if(I||(I=new Tr),Ot(M))pR(s,l,L,h,Sc,C,I);else{var V=C?C(bp(s,L),M,L+"",s,l,I):n;V===n&&(V=M),Gf(s,L,V)}},Tn)}function pR(s,l,h,C,I,M,L){var V=bp(s,h),K=bp(l,h),se=L.get(K);if(se){Gf(s,h,se);return}var ae=M?M(V,K,h+"",s,l,L):n,le=ae===n;if(le){var be=Ve(K),Ee=!be&&Fo(K),je=!be&&!Ee&&is(K);ae=K,be||Ee||je?Ve(V)?ae=V:Dt(V)?ae=An(V):Ee?(le=!1,ae=Py(K,!0)):je?(le=!1,ae=jy(K,!0)):ae=[]:Ea(K)||mi(K)?(ae=V,mi(V)?ae=Tb(V):(!Ot(V)||io(V))&&(ae=Yy(K))):le=!1}le&&(L.set(K,ae),I(ae,K,C,M,L),L.delete(K)),Gf(s,h,ae)}function yy(s,l){var h=s.length;if(h)return l+=l<0?h:0,oo(l,h)?s[l]:n}function by(s,l,h){l.length?l=wt(l,function(M){return Ve(M)?function(L){return pi(L,M.length===1?M[0]:M)}:M}):l=[In];var C=-1;l=wt(l,$n(Pe()));var I=gy(s,function(M,L,V){var K=wt(l,function(se){return se(M)});return{criteria:K,index:++C,value:M}});return $P(I,function(M,L){return TR(M,L,h)})}function hR(s,l){return xy(s,l,function(h,C){return Op(s,C)})}function xy(s,l,h){for(var C=-1,I=l.length,M={};++C<I;){var L=l[C],V=pi(s,L);h(V,L)&&Ca(M,Mo(L,s),V)}return M}function gR(s){return function(l){return pi(l,s)}}function tp(s,l,h,C){var I=C?NP:Yi,M=-1,L=l.length,V=s;for(s===l&&(l=An(l)),h&&(V=wt(s,$n(h)));++M<L;)for(var K=0,se=l[M],ae=h?h(se):se;(K=I(V,ae,K,C))>-1;)V!==s&&pc.call(V,K,1),pc.call(s,K,1);return s}function Cy(s,l){for(var h=s?l.length:0,C=h-1;h--;){var I=l[h];if(h==C||I!==M){var M=I;oo(I)?pc.call(s,I,1):ip(s,I)}}return s}function np(s,l){return s+mc(ty()*(l-s+1))}function mR(s,l,h,C){for(var I=-1,M=Yt(gc((l-s)/(h||1)),0),L=re(M);M--;)L[C?M:++I]=s,s+=h;return L}function rp(s,l){var h="";if(!s||l<1||l>$)return h;do l%2&&(h+=s),l=mc(l/2),l&&(s+=s);while(l);return h}function qe(s,l){return xp(Zy(s,l,In),s+"")}function vR(s){return oy(ss(s))}function yR(s,l){var h=ss(s);return kc(h,fi(l,0,h.length))}function Ca(s,l,h,C){if(!Ot(s))return s;l=Mo(l,s);for(var I=-1,M=l.length,L=M-1,V=s;V!=null&&++I<M;){var K=Dr(l[I]),se=h;if(K==="__proto__"||K==="constructor"||K==="prototype")return s;if(I!=L){var ae=V[K];se=C?C(ae,K,V):n,se===n&&(se=Ot(ae)?ae:oo(l[I+1])?[]:{})}va(V,K,se),V=V[K]}return s}var wy=vc?function(s,l){return vc.set(s,l),s}:In,bR=hc?function(s,l){return hc(s,"toString",{configurable:!0,enumerable:!1,value:jp(l),writable:!0})}:In;function xR(s){return kc(ss(s))}function sr(s,l,h){var C=-1,I=s.length;l<0&&(l=-l>I?0:I+l),h=h>I?I:h,h<0&&(h+=I),I=l>h?0:h-l>>>0,l>>>=0;for(var M=re(I);++C<I;)M[C]=s[C+l];return M}function CR(s,l){var h;return jo(s,function(C,I,M){return h=l(C,I,M),!h}),!!h}function Ac(s,l,h){var C=0,I=s==null?C:s.length;if(typeof l=="number"&&l===l&&I<=he){for(;C<I;){var M=C+I>>>1,L=s[M];L!==null&&!Wn(L)&&(h?L<=l:L<l)?C=M+1:I=M}return I}return op(s,l,In,h)}function op(s,l,h,C){var I=0,M=s==null?0:s.length;if(M===0)return 0;l=h(l);for(var L=l!==l,V=l===null,K=Wn(l),se=l===n;I<M;){var ae=mc((I+M)/2),le=h(s[ae]),be=le!==n,Ee=le===null,je=le===le,He=Wn(le);if(L)var Re=C||je;else se?Re=je&&(C||be):V?Re=je&&be&&(C||!Ee):K?Re=je&&be&&!Ee&&(C||!He):Ee||He?Re=!1:Re=C?le<=l:le<l;Re?I=ae+1:M=ae}return cn(M,ue)}function Sy(s,l){for(var h=-1,C=s.length,I=0,M=[];++h<C;){var L=s[h],V=l?l(L):L;if(!h||!Ir(V,K)){var K=V;M[I++]=L===0?0:L}}return M}function Ay(s){return typeof s=="number"?s:Wn(s)?W:+s}function Vn(s){if(typeof s=="string")return s;if(Ve(s))return wt(s,Vn)+"";if(Wn(s))return ny?ny.call(s):"";var l=s+"";return l=="0"&&1/s==-Q?"-0":l}function Ro(s,l,h){var C=-1,I=rc,M=s.length,L=!0,V=[],K=V;if(h)L=!1,I=kf;else if(M>=o){var se=l?null:MR(s);if(se)return ic(se);L=!1,I=da,K=new di}else K=l?[]:V;e:for(;++C<M;){var ae=s[C],le=l?l(ae):ae;if(ae=h||ae!==0?ae:0,L&&le===le){for(var be=K.length;be--;)if(K[be]===le)continue e;l&&K.push(le),V.push(ae)}else I(K,le,h)||(K!==V&&K.push(le),V.push(ae))}return V}function ip(s,l){return l=Mo(l,s),s=Qy(s,l),s==null||delete s[Dr(ar(l))]}function Ey(s,l,h,C){return Ca(s,l,h(pi(s,l)),C)}function Ec(s,l,h,C){for(var I=s.length,M=C?I:-1;(C?M--:++M<I)&&l(s[M],M,s););return h?sr(s,C?0:M,C?M+1:I):sr(s,C?M+1:0,C?I:M)}function Ty(s,l){var h=s;return h instanceof Xe&&(h=h.value()),Ff(l,function(C,I){return I.func.apply(I.thisArg,Io([C],I.args))},h)}function sp(s,l,h){var C=s.length;if(C<2)return C?Ro(s[0]):[];for(var I=-1,M=re(C);++I<C;)for(var L=s[I],V=-1;++V<C;)V!=I&&(M[I]=ya(M[I]||L,s[V],l,h));return Ro(Jt(M,1),l,h)}function Iy(s,l,h){for(var C=-1,I=s.length,M=l.length,L={};++C<I;){var V=C<M?l[C]:n;h(L,s[C],V)}return L}function ap(s){return Dt(s)?s:[]}function lp(s){return typeof s=="function"?s:In}function Mo(s,l){return Ve(s)?s:vp(s,l)?[s]:nb(ot(s))}var wR=qe;function ko(s,l,h){var C=s.length;return h=h===n?C:h,!l&&h>=C?s:sr(s,l,h)}var Oy=cj||function(s){return Qt.clearTimeout(s)};function Py(s,l){if(l)return s.slice();var h=s.length,C=Xv?Xv(h):new s.constructor(h);return s.copy(C),C}function cp(s){var l=new s.constructor(s.byteLength);return new dc(l).set(new dc(s)),l}function SR(s,l){var h=l?cp(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function AR(s){var l=new s.constructor(s.source,Jl.exec(s));return l.lastIndex=s.lastIndex,l}function ER(s){return ma?dt(ma.call(s)):{}}function jy(s,l){var h=l?cp(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function Ry(s,l){if(s!==l){var h=s!==n,C=s===null,I=s===s,M=Wn(s),L=l!==n,V=l===null,K=l===l,se=Wn(l);if(!V&&!se&&!M&&s>l||M&&L&&K&&!V&&!se||C&&L&&K||!h&&K||!I)return 1;if(!C&&!M&&!se&&s<l||se&&h&&I&&!C&&!M||V&&h&&I||!L&&I||!K)return-1}return 0}function TR(s,l,h){for(var C=-1,I=s.criteria,M=l.criteria,L=I.length,V=h.length;++C<L;){var K=Ry(I[C],M[C]);if(K){if(C>=V)return K;var se=h[C];return K*(se=="desc"?-1:1)}}return s.index-l.index}function My(s,l,h,C){for(var I=-1,M=s.length,L=h.length,V=-1,K=l.length,se=Yt(M-L,0),ae=re(K+se),le=!C;++V<K;)ae[V]=l[V];for(;++I<L;)(le||I<M)&&(ae[h[I]]=s[I]);for(;se--;)ae[V++]=s[I++];return ae}function ky(s,l,h,C){for(var I=-1,M=s.length,L=-1,V=h.length,K=-1,se=l.length,ae=Yt(M-V,0),le=re(ae+se),be=!C;++I<ae;)le[I]=s[I];for(var Ee=I;++K<se;)le[Ee+K]=l[K];for(;++L<V;)(be||I<M)&&(le[Ee+h[L]]=s[I++]);return le}function An(s,l){var h=-1,C=s.length;for(l||(l=re(C));++h<C;)l[h]=s[h];return l}function Fr(s,l,h,C){var I=!h;h||(h={});for(var M=-1,L=l.length;++M<L;){var V=l[M],K=C?C(h[V],s[V],V,h,s):n;K===n&&(K=s[V]),I?to(h,V,K):va(h,V,K)}return h}function IR(s,l){return Fr(s,mp(s),l)}function OR(s,l){return Fr(s,Gy(s),l)}function Tc(s,l){return function(h,C){var I=Ve(h)?kP:Xj,M=l?l():{};return I(h,s,Pe(C,2),M)}}function ns(s){return qe(function(l,h){var C=-1,I=h.length,M=I>1?h[I-1]:n,L=I>2?h[2]:n;for(M=s.length>3&&typeof M=="function"?(I--,M):n,L&&bn(h[0],h[1],L)&&(M=I<3?n:M,I=1),l=dt(l);++C<I;){var V=h[C];V&&s(l,V,C,M)}return l})}function Fy(s,l){return function(h,C){if(h==null)return h;if(!En(h))return s(h,C);for(var I=h.length,M=l?I:-1,L=dt(h);(l?M--:++M<I)&&C(L[M],M,L)!==!1;);return h}}function Dy(s){return function(l,h,C){for(var I=-1,M=dt(l),L=C(l),V=L.length;V--;){var K=L[s?V:++I];if(h(M[K],K,M)===!1)break}return l}}function PR(s,l,h){var C=l&w,I=wa(s);function M(){var L=this&&this!==Qt&&this instanceof M?I:s;return L.apply(C?h:this,arguments)}return M}function _y(s){return function(l){l=ot(l);var h=Ki(l)?Er(l):n,C=h?h[0]:l.charAt(0),I=h?ko(h,1).join(""):l.slice(1);return C[s]()+I}}function rs(s){return function(l){return Ff(Fb(kb(l).replace(bP,"")),s,"")}}function wa(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var h=ts(s.prototype),C=s.apply(h,l);return Ot(C)?C:h}}function jR(s,l,h){var C=wa(s);function I(){for(var M=arguments.length,L=re(M),V=M,K=os(I);V--;)L[V]=arguments[V];var se=M<3&&L[0]!==K&&L[M-1]!==K?[]:Oo(L,K);if(M-=se.length,M<h)return Vy(s,l,Ic,I.placeholder,n,L,se,n,n,h-M);var ae=this&&this!==Qt&&this instanceof I?C:s;return Nn(ae,this,L)}return I}function Ly(s){return function(l,h,C){var I=dt(l);if(!En(l)){var M=Pe(h,3);l=Xt(l),h=function(V){return M(I[V],V,I)}}var L=s(l,h,C);return L>-1?I[M?l[L]:L]:n}}function By(s){return ro(function(l){var h=l.length,C=h,I=or.prototype.thru;for(s&&l.reverse();C--;){var M=l[C];if(typeof M!="function")throw new rr(a);if(I&&!L&&Rc(M)=="wrapper")var L=new or([],!0)}for(C=L?C:h;++C<h;){M=l[C];var V=Rc(M),K=V=="wrapper"?hp(M):n;K&&yp(K[0])&&K[1]==(F|E|O|B)&&!K[4].length&&K[9]==1?L=L[Rc(K[0])].apply(L,K[3]):L=M.length==1&&yp(M)?L[V]():L.thru(M)}return function(){var se=arguments,ae=se[0];if(L&&se.length==1&&Ve(ae))return L.plant(ae).value();for(var le=0,be=h?l[le].apply(this,se):ae;++le<h;)be=l[le].call(this,be);return be}})}function Ic(s,l,h,C,I,M,L,V,K,se){var ae=l&F,le=l&w,be=l&T,Ee=l&(E|P),je=l&H,He=be?n:wa(s);function Re(){for(var Ye=arguments.length,Ze=re(Ye),zn=Ye;zn--;)Ze[zn]=arguments[zn];if(Ee)var xn=os(Re),Un=WP(Ze,xn);if(C&&(Ze=My(Ze,C,I,Ee)),M&&(Ze=ky(Ze,M,L,Ee)),Ye-=Un,Ee&&Ye<se){var _t=Oo(Ze,xn);return Vy(s,l,Ic,Re.placeholder,h,Ze,_t,V,K,se-Ye)}var Or=le?h:this,ao=be?Or[s]:s;return Ye=Ze.length,V?Ze=XR(Ze,V):je&&Ye>1&&Ze.reverse(),ae&&K<Ye&&(Ze.length=K),this&&this!==Qt&&this instanceof Re&&(ao=He||wa(ao)),ao.apply(Or,Ze)}return Re}function Ny(s,l){return function(h,C){return oR(h,s,l(C),{})}}function Oc(s,l){return function(h,C){var I;if(h===n&&C===n)return l;if(h!==n&&(I=h),C!==n){if(I===n)return C;typeof h=="string"||typeof C=="string"?(h=Vn(h),C=Vn(C)):(h=Ay(h),C=Ay(C)),I=s(h,C)}return I}}function up(s){return ro(function(l){return l=wt(l,$n(Pe())),qe(function(h){var C=this;return s(l,function(I){return Nn(I,C,h)})})})}function Pc(s,l){l=l===n?" ":Vn(l);var h=l.length;if(h<2)return h?rp(l,s):l;var C=rp(l,gc(s/Xi(l)));return Ki(l)?ko(Er(C),0,s).join(""):C.slice(0,s)}function RR(s,l,h,C){var I=l&w,M=wa(s);function L(){for(var V=-1,K=arguments.length,se=-1,ae=C.length,le=re(ae+K),be=this&&this!==Qt&&this instanceof L?M:s;++se<ae;)le[se]=C[se];for(;K--;)le[se++]=arguments[++V];return Nn(be,I?h:this,le)}return L}function $y(s){return function(l,h,C){return C&&typeof C!="number"&&bn(l,h,C)&&(h=C=n),l=so(l),h===n?(h=l,l=0):h=so(h),C=C===n?l<h?1:-1:so(C),mR(l,h,C,s)}}function jc(s){return function(l,h){return typeof l=="string"&&typeof h=="string"||(l=lr(l),h=lr(h)),s(l,h)}}function Vy(s,l,h,C,I,M,L,V,K,se){var ae=l&E,le=ae?L:n,be=ae?n:L,Ee=ae?M:n,je=ae?n:M;l|=ae?O:k,l&=~(ae?k:O),l&j||(l&=~(w|T));var He=[s,l,I,Ee,le,je,be,V,K,se],Re=h.apply(n,He);return yp(s)&&Jy(Re,He),Re.placeholder=C,eb(Re,s,l)}function dp(s){var l=qt[s];return function(h,C){if(h=lr(h),C=C==null?0:cn(Ue(C),292),C&&ey(h)){var I=(ot(h)+"e").split("e"),M=l(I[0]+"e"+(+I[1]+C));return I=(ot(M)+"e").split("e"),+(I[0]+"e"+(+I[1]-C))}return l(h)}}var MR=Ji&&1/ic(new Ji([,-0]))[1]==Q?function(s){return new Ji(s)}:kp;function Wy(s){return function(l){var h=un(l);return h==me?Vf(l):h==vt?KP(l):VP(l,s(l))}}function no(s,l,h,C,I,M,L,V){var K=l&T;if(!K&&typeof s!="function")throw new rr(a);var se=C?C.length:0;if(se||(l&=~(O|k),C=I=n),L=L===n?L:Yt(Ue(L),0),V=V===n?V:Ue(V),se-=I?I.length:0,l&k){var ae=C,le=I;C=I=n}var be=K?n:hp(s),Ee=[s,l,h,C,I,ae,le,M,L,V];if(be&&qR(Ee,be),s=Ee[0],l=Ee[1],h=Ee[2],C=Ee[3],I=Ee[4],V=Ee[9]=Ee[9]===n?K?0:s.length:Yt(Ee[9]-se,0),!V&&l&(E|P)&&(l&=~(E|P)),!l||l==w)var je=PR(s,l,h);else l==E||l==P?je=jR(s,l,V):(l==O||l==(w|O))&&!I.length?je=RR(s,l,h,C):je=Ic.apply(n,Ee);var He=be?wy:Jy;return eb(He(je,Ee),s,l)}function zy(s,l,h,C){return s===n||Ir(s,Qi[h])&&!ct.call(C,h)?l:s}function Uy(s,l,h,C,I,M){return Ot(s)&&Ot(l)&&(M.set(l,s),Sc(s,l,n,Uy,M),M.delete(l)),s}function kR(s){return Ea(s)?n:s}function Hy(s,l,h,C,I,M){var L=h&b,V=s.length,K=l.length;if(V!=K&&!(L&&K>V))return!1;var se=M.get(s),ae=M.get(l);if(se&&ae)return se==l&&ae==s;var le=-1,be=!0,Ee=h&x?new di:n;for(M.set(s,l),M.set(l,s);++le<V;){var je=s[le],He=l[le];if(C)var Re=L?C(He,je,le,l,s,M):C(je,He,le,s,l,M);if(Re!==n){if(Re)continue;be=!1;break}if(Ee){if(!Df(l,function(Ye,Ze){if(!da(Ee,Ze)&&(je===Ye||I(je,Ye,h,C,M)))return Ee.push(Ze)})){be=!1;break}}else if(!(je===He||I(je,He,h,C,M))){be=!1;break}}return M.delete(s),M.delete(l),be}function FR(s,l,h,C,I,M,L){switch(h){case Ie:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case Fe:return!(s.byteLength!=l.byteLength||!M(new dc(s),new dc(l)));case ye:case ve:case Qe:return Ir(+s,+l);case Te:return s.name==l.name&&s.message==l.message;case Tt:case Kt:return s==l+"";case me:var V=Vf;case vt:var K=C&b;if(V||(V=ic),s.size!=l.size&&!K)return!1;var se=L.get(s);if(se)return se==l;C|=x,L.set(s,l);var ae=Hy(V(s),V(l),C,I,M,L);return L.delete(s),ae;case yt:if(ma)return ma.call(s)==ma.call(l)}return!1}function DR(s,l,h,C,I,M){var L=h&b,V=fp(s),K=V.length,se=fp(l),ae=se.length;if(K!=ae&&!L)return!1;for(var le=K;le--;){var be=V[le];if(!(L?be in l:ct.call(l,be)))return!1}var Ee=M.get(s),je=M.get(l);if(Ee&&je)return Ee==l&&je==s;var He=!0;M.set(s,l),M.set(l,s);for(var Re=L;++le<K;){be=V[le];var Ye=s[be],Ze=l[be];if(C)var zn=L?C(Ze,Ye,be,l,s,M):C(Ye,Ze,be,s,l,M);if(!(zn===n?Ye===Ze||I(Ye,Ze,h,C,M):zn)){He=!1;break}Re||(Re=be=="constructor")}if(He&&!Re){var xn=s.constructor,Un=l.constructor;xn!=Un&&"constructor"in s&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Un=="function"&&Un instanceof Un)&&(He=!1)}return M.delete(s),M.delete(l),He}function ro(s){return xp(Zy(s,n,sb),s+"")}function fp(s){return dy(s,Xt,mp)}function pp(s){return dy(s,Tn,Gy)}var hp=vc?function(s){return vc.get(s)}:kp;function Rc(s){for(var l=s.name+"",h=es[l],C=ct.call(es,l)?h.length:0;C--;){var I=h[C],M=I.func;if(M==null||M==s)return I.name}return l}function os(s){var l=ct.call(R,"placeholder")?R:s;return l.placeholder}function Pe(){var s=R.iteratee||Rp;return s=s===Rp?hy:s,arguments.length?s(arguments[0],arguments[1]):s}function Mc(s,l){var h=s.__data__;return zR(l)?h[typeof l=="string"?"string":"hash"]:h.map}function gp(s){for(var l=Xt(s),h=l.length;h--;){var C=l[h],I=s[C];l[h]=[C,I,Ky(I)]}return l}function hi(s,l){var h=GP(s,l);return py(h)?h:n}function _R(s){var l=ct.call(s,ci),h=s[ci];try{s[ci]=n;var C=!0}catch{}var I=cc.call(s);return C&&(l?s[ci]=h:delete s[ci]),I}var mp=zf?function(s){return s==null?[]:(s=dt(s),To(zf(s),function(l){return Qv.call(s,l)}))}:Fp,Gy=zf?function(s){for(var l=[];s;)Io(l,mp(s)),s=fc(s);return l}:Fp,un=yn;(Uf&&un(new Uf(new ArrayBuffer(1)))!=Ie||pa&&un(new pa)!=me||Hf&&un(Hf.resolve())!=mt||Ji&&un(new Ji)!=vt||ha&&un(new ha)!=It)&&(un=function(s){var l=yn(s),h=l==Et?s.constructor:n,C=h?gi(h):"";if(C)switch(C){case yj:return Ie;case bj:return me;case xj:return mt;case Cj:return vt;case wj:return It}return l});function LR(s,l,h){for(var C=-1,I=h.length;++C<I;){var M=h[C],L=M.size;switch(M.type){case"drop":s+=L;break;case"dropRight":l-=L;break;case"take":l=cn(l,s+L);break;case"takeRight":s=Yt(s,l-L);break}}return{start:s,end:l}}function BR(s){var l=s.match(ai);return l?l[1].split(ua):[]}function qy(s,l,h){l=Mo(l,s);for(var C=-1,I=l.length,M=!1;++C<I;){var L=Dr(l[C]);if(!(M=s!=null&&h(s,L)))break;s=s[L]}return M||++C!=I?M:(I=s==null?0:s.length,!!I&&Nc(I)&&oo(L,I)&&(Ve(s)||mi(s)))}function NR(s){var l=s.length,h=new s.constructor(l);return l&&typeof s[0]=="string"&&ct.call(s,"index")&&(h.index=s.index,h.input=s.input),h}function Yy(s){return typeof s.constructor=="function"&&!Sa(s)?ts(fc(s)):{}}function $R(s,l,h){var C=s.constructor;switch(l){case Fe:return cp(s);case ye:case ve:return new C(+s);case Ie:return SR(s,h);case xe:case ft:case Vt:case $e:case Oe:case Zt:case er:case Ar:case ii:return jy(s,h);case me:return new C;case Qe:case Kt:return new C(s);case Tt:return AR(s);case vt:return new C;case yt:return ER(s)}}function VR(s,l){var h=l.length;if(!h)return s;var C=h-1;return l[C]=(h>1?"& ":"")+l[C],l=l.join(h>2?", ":" "),s.replace(wf,`{
|
|
203
203
|
/* [wrapped with `+l+`] */
|
|
204
|
-
`)}function WR(s){return Ve(s)||mi(s)||!!(Jv&&s&&s[Jv])}function oo(s,l){var h=typeof s;return l=l??$,!!l&&(h=="number"||h!="symbol"&&vn.test(s))&&s>-1&&s%1==0&&s<l}function bn(s,l,h){if(!Ot(h))return!1;var C=typeof l;return(C=="number"?En(h)&&oo(l,h.length):C=="string"&&l in h)?Ir(h[l],s):!1}function vp(s,l){if(Ve(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||Wn(s)?!0:la.test(s)||!xf.test(s)||l!=null&&s in dt(l)}function zR(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function yp(s){var l=Rc(s),h=R[l];if(typeof h!="function"||!(l in Xe.prototype))return!1;if(s===h)return!0;var C=hp(h);return!!C&&s===C[0]}function UR(s){return!!Kv&&Kv in s}var HR=ac?io:Dp;function Sa(s){var l=s&&s.constructor,h=typeof l=="function"&&l.prototype||Zi;return s===h}function Ky(s){return s===s&&!Ot(s)}function Xy(s,l){return function(h){return h==null?!1:h[s]===l&&(l!==n||s in dt(h))}}function GR(s){var l=Lc(s,function(C){return h.size===d&&h.clear(),C}),h=l.cache;return l}function qR(s,l){var h=s[1],C=l[1],I=h|C,M=I<(w|T|F),L=C==F&&h==E||C==F&&h==B&&s[7].length<=l[8]||C==(F|B)&&l[7].length<=l[8]&&h==E;if(!(M||L))return s;C&w&&(s[2]=l[2],I|=h&w?0:j);var V=l[3];if(V){var K=s[3];s[3]=K?My(K,V,l[4]):V,s[4]=K?Oo(s[3],p):l[4]}return V=l[5],V&&(K=s[5],s[5]=K?ky(K,V,l[6]):V,s[6]=K?Oo(s[5],p):l[6]),V=l[7],V&&(s[7]=V),C&F&&(s[8]=s[8]==null?l[8]:cn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=I,s}function YR(s){var l=[];if(s!=null)for(var h in dt(s))l.push(h);return l}function KR(s){return cc.call(s)}function Zy(s,l,h){return l=Yt(l===n?s.length-1:l,0),function(){for(var C=arguments,I=-1,M=Yt(C.length-l,0),L=re(M);++I<M;)L[I]=C[l+I];I=-1;for(var V=re(l+1);++I<l;)V[I]=C[I];return V[l]=h(L),Nn(s,this,V)}}function Qy(s,l){return l.length<2?s:pi(s,sr(l,0,-1))}function XR(s,l){for(var h=s.length,C=cn(l.length,h),I=An(s);C--;){var M=l[C];s[C]=oo(M,h)?I[M]:n}return s}function bp(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var Jy=tb(wy),Aa=dj||function(s,l){return Qt.setTimeout(s,l)},xp=tb(bR);function eb(s,l,h){var C=l+"";return xp(s,VR(C,ZR(BR(C),h)))}function tb(s){var l=0,h=0;return function(){var C=gj(),I=te-(C-h);if(h=C,I>0){if(++l>=ne)return arguments[0]}else l=0;return s.apply(n,arguments)}}function kc(s,l){var h=-1,C=s.length,I=C-1;for(l=l===n?C:l;++h<l;){var M=np(h,I),L=s[M];s[M]=s[h],s[h]=L}return s.length=l,s}var nb=GR(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Cf,function(h,C,I,M){l.push(I?M.replace(Zl,"$1"):C||h)}),l});function Dr(s){if(typeof s=="string"||Wn(s))return s;var l=s+"";return l=="0"&&1/s==-Q?"-0":l}function gi(s){if(s!=null){try{return lc.call(s)}catch{}try{return s+""}catch{}}return""}function ZR(s,l){return nr(de,function(h){var C="_."+h[0];l&h[1]&&!rc(s,C)&&s.push(C)}),s.sort()}function rb(s){if(s instanceof Xe)return s.clone();var l=new or(s.__wrapped__,s.__chain__);return l.__actions__=An(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function QR(s,l,h){(h?bn(s,l,h):l===n)?l=1:l=Yt(Ue(l),0);var C=s==null?0:s.length;if(!C||l<1)return[];for(var I=0,M=0,L=re(gc(C/l));I<C;)L[M++]=sr(s,I,I+=l);return L}function JR(s){for(var l=-1,h=s==null?0:s.length,C=0,I=[];++l<h;){var M=s[l];M&&(I[C++]=M)}return I}function e3(){var s=arguments.length;if(!s)return[];for(var l=re(s-1),h=arguments[0],C=s;C--;)l[C-1]=arguments[C];return Io(Ve(h)?An(h):[h],Jt(l,1))}var t3=qe(function(s,l){return Dt(s)?ya(s,Jt(l,1,Dt,!0)):[]}),n3=qe(function(s,l){var h=ar(l);return Dt(h)&&(h=n),Dt(s)?ya(s,Jt(l,1,Dt,!0),Pe(h,2)):[]}),r3=qe(function(s,l){var h=ar(l);return Dt(h)&&(h=n),Dt(s)?ya(s,Jt(l,1,Dt,!0),n,h):[]});function o3(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ue(l),sr(s,l<0?0:l,C)):[]}function i3(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ue(l),l=C-l,sr(s,0,l<0?0:l)):[]}function s3(s,l){return s&&s.length?Ec(s,Pe(l,3),!0,!0):[]}function a3(s,l){return s&&s.length?Ec(s,Pe(l,3),!0):[]}function l3(s,l,h,C){var I=s==null?0:s.length;return I?(h&&typeof h!="number"&&bn(s,l,h)&&(h=0,C=I),eR(s,l,h,C)):[]}function ob(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ue(h);return I<0&&(I=Yt(C+I,0)),oc(s,Pe(l,3),I)}function ib(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C-1;return h!==n&&(I=Ue(h),I=h<0?Yt(C+I,0):cn(I,C-1)),oc(s,Pe(l,3),I,!0)}function sb(s){var l=s==null?0:s.length;return l?Jt(s,1):[]}function c3(s){var l=s==null?0:s.length;return l?Jt(s,Q):[]}function u3(s,l){var h=s==null?0:s.length;return h?(l=l===n?1:Ue(l),Jt(s,l)):[]}function d3(s){for(var l=-1,h=s==null?0:s.length,C={};++l<h;){var I=s[l];C[I[0]]=I[1]}return C}function ab(s){return s&&s.length?s[0]:n}function f3(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ue(h);return I<0&&(I=Yt(C+I,0)),qi(s,l,I)}function p3(s){var l=s==null?0:s.length;return l?sr(s,0,-1):[]}var h3=qe(function(s){var l=wt(s,ap);return l.length&&l[0]===s[0]?Zf(l):[]}),g3=qe(function(s){var l=ar(s),h=wt(s,ap);return l===ar(h)?l=n:h.pop(),h.length&&h[0]===s[0]?Zf(h,Pe(l,2)):[]}),m3=qe(function(s){var l=ar(s),h=wt(s,ap);return l=typeof l=="function"?l:n,l&&h.pop(),h.length&&h[0]===s[0]?Zf(h,n,l):[]});function v3(s,l){return s==null?"":pj.call(s,l)}function ar(s){var l=s==null?0:s.length;return l?s[l-1]:n}function y3(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C;return h!==n&&(I=Ue(h),I=I<0?Yt(C+I,0):cn(I,C-1)),l===l?ZP(s,l,I):oc(s,Vv,I,!0)}function b3(s,l){return s&&s.length?yy(s,Ue(l)):n}var x3=qe(lb);function lb(s,l){return s&&s.length&&l&&l.length?tp(s,l):s}function C3(s,l,h){return s&&s.length&&l&&l.length?tp(s,l,Pe(h,2)):s}function w3(s,l,h){return s&&s.length&&l&&l.length?tp(s,l,n,h):s}var S3=ro(function(s,l){var h=s==null?0:s.length,C=qf(s,l);return Cy(s,wt(l,function(I){return oo(I,h)?+I:I}).sort(Ry)),C});function A3(s,l){var h=[];if(!(s&&s.length))return h;var C=-1,I=[],M=s.length;for(l=Pe(l,3);++C<M;){var L=s[C];l(L,C,s)&&(h.push(L),I.push(C))}return Cy(s,I),h}function Cp(s){return s==null?s:vj.call(s)}function E3(s,l,h){var C=s==null?0:s.length;return C?(h&&typeof h!="number"&&bn(s,l,h)?(l=0,h=C):(l=l==null?0:Ue(l),h=h===n?C:Ue(h)),sr(s,l,h)):[]}function T3(s,l){return Ac(s,l)}function I3(s,l,h){return op(s,l,Pe(h,2))}function O3(s,l){var h=s==null?0:s.length;if(h){var C=Ac(s,l);if(C<h&&Ir(s[C],l))return C}return-1}function P3(s,l){return Ac(s,l,!0)}function j3(s,l,h){return op(s,l,Pe(h,2),!0)}function R3(s,l){var h=s==null?0:s.length;if(h){var C=Ac(s,l,!0)-1;if(Ir(s[C],l))return C}return-1}function M3(s){return s&&s.length?Sy(s):[]}function k3(s,l){return s&&s.length?Sy(s,Pe(l,2)):[]}function F3(s){var l=s==null?0:s.length;return l?sr(s,1,l):[]}function D3(s,l,h){return s&&s.length?(l=h||l===n?1:Ue(l),sr(s,0,l<0?0:l)):[]}function _3(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ue(l),l=C-l,sr(s,l<0?0:l,C)):[]}function L3(s,l){return s&&s.length?Ec(s,Pe(l,3),!1,!0):[]}function B3(s,l){return s&&s.length?Ec(s,Pe(l,3)):[]}var N3=qe(function(s){return Ro(Jt(s,1,Dt,!0))}),$3=qe(function(s){var l=ar(s);return Dt(l)&&(l=n),Ro(Jt(s,1,Dt,!0),Pe(l,2))}),V3=qe(function(s){var l=ar(s);return l=typeof l=="function"?l:n,Ro(Jt(s,1,Dt,!0),n,l)});function W3(s){return s&&s.length?Ro(s):[]}function z3(s,l){return s&&s.length?Ro(s,Pe(l,2)):[]}function U3(s,l){return l=typeof l=="function"?l:n,s&&s.length?Ro(s,n,l):[]}function wp(s){if(!(s&&s.length))return[];var l=0;return s=To(s,function(h){if(Dt(h))return l=Yt(h.length,l),!0}),Nf(l,function(h){return wt(s,_f(h))})}function cb(s,l){if(!(s&&s.length))return[];var h=wp(s);return l==null?h:wt(h,function(C){return Nn(l,n,C)})}var H3=qe(function(s,l){return Dt(s)?ya(s,l):[]}),G3=qe(function(s){return sp(To(s,Dt))}),q3=qe(function(s){var l=ar(s);return Dt(l)&&(l=n),sp(To(s,Dt),Pe(l,2))}),Y3=qe(function(s){var l=ar(s);return l=typeof l=="function"?l:n,sp(To(s,Dt),n,l)}),K3=qe(wp);function X3(s,l){return Iy(s||[],l||[],va)}function Z3(s,l){return Iy(s||[],l||[],Ca)}var Q3=qe(function(s){var l=s.length,h=l>1?s[l-1]:n;return h=typeof h=="function"?(s.pop(),h):n,cb(s,h)});function ub(s){var l=R(s);return l.__chain__=!0,l}function J3(s,l){return l(s),s}function Fc(s,l){return l(s)}var e4=ro(function(s){var l=s.length,h=l?s[0]:0,C=this.__wrapped__,I=function(M){return qf(M,s)};return l>1||this.__actions__.length||!(C instanceof Xe)||!oo(h)?this.thru(I):(C=C.slice(h,+h+(l?1:0)),C.__actions__.push({func:Fc,args:[I],thisArg:n}),new or(C,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function t4(){return ub(this)}function n4(){return new or(this.value(),this.__chain__)}function r4(){this.__values__===n&&(this.__values__=Ab(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function o4(){return this}function i4(s){for(var l,h=this;h instanceof bc;){var C=rb(h);C.__index__=0,C.__values__=n,l?I.__wrapped__=C:l=C;var I=C;h=h.__wrapped__}return I.__wrapped__=s,l}function s4(){var s=this.__wrapped__;if(s instanceof Xe){var l=s;return this.__actions__.length&&(l=new Xe(this)),l=l.reverse(),l.__actions__.push({func:Fc,args:[Cp],thisArg:n}),new or(l,this.__chain__)}return this.thru(Cp)}function a4(){return Ty(this.__wrapped__,this.__actions__)}var l4=Tc(function(s,l,h){ct.call(s,h)?++s[h]:to(s,h,1)});function c4(s,l,h){var C=Ve(s)?Nv:Jj;return h&&bn(s,l,h)&&(l=n),C(s,Pe(l,3))}function u4(s,l){var h=Ve(s)?To:cy;return h(s,Pe(l,3))}var d4=Ly(ob),f4=Ly(ib);function p4(s,l){return Jt(Dc(s,l),1)}function h4(s,l){return Jt(Dc(s,l),Q)}function g4(s,l,h){return h=h===n?1:Ue(h),Jt(Dc(s,l),h)}function db(s,l){var h=Ve(s)?nr:jo;return h(s,Pe(l,3))}function fb(s,l){var h=Ve(s)?FP:ly;return h(s,Pe(l,3))}var m4=Tc(function(s,l,h){ct.call(s,h)?s[h].push(l):to(s,h,[l])});function v4(s,l,h,C){s=En(s)?s:is(s),h=h&&!C?Ue(h):0;var I=s.length;return h<0&&(h=Yt(I+h,0)),$c(s)?h<=I&&s.indexOf(l,h)>-1:!!I&&qi(s,l,h)>-1}var y4=qe(function(s,l,h){var C=-1,I=typeof l=="function",M=En(s)?re(s.length):[];return jo(s,function(L){M[++C]=I?Nn(l,L,h):ba(L,l,h)}),M}),b4=Tc(function(s,l,h){to(s,h,l)});function Dc(s,l){var h=Ve(s)?wt:gy;return h(s,Pe(l,3))}function x4(s,l,h,C){return s==null?[]:(Ve(l)||(l=l==null?[]:[l]),h=C?n:h,Ve(h)||(h=h==null?[]:[h]),by(s,l,h))}var C4=Tc(function(s,l,h){s[h?0:1].push(l)},function(){return[[],[]]});function w4(s,l,h){var C=Ve(s)?Ff:zv,I=arguments.length<3;return C(s,Pe(l,4),h,I,jo)}function S4(s,l,h){var C=Ve(s)?DP:zv,I=arguments.length<3;return C(s,Pe(l,4),h,I,ly)}function A4(s,l){var h=Ve(s)?To:cy;return h(s,Bc(Pe(l,3)))}function E4(s){var l=Ve(s)?oy:vR;return l(s)}function T4(s,l,h){(h?bn(s,l,h):l===n)?l=1:l=Ue(l);var C=Ve(s)?Yj:yR;return C(s,l)}function I4(s){var l=Ve(s)?Kj:xR;return l(s)}function O4(s){if(s==null)return 0;if(En(s))return $c(s)?Ki(s):s.length;var l=un(s);return l==me||l==vt?s.size:Jf(s).length}function P4(s,l,h){var C=Ve(s)?Df:CR;return h&&bn(s,l,h)&&(l=n),C(s,Pe(l,3))}var j4=qe(function(s,l){if(s==null)return[];var h=l.length;return h>1&&bn(s,l[0],l[1])?l=[]:h>2&&bn(l[0],l[1],l[2])&&(l=[l[0]]),by(s,Jt(l,1),[])}),_c=uj||function(){return Qt.Date.now()};function R4(s,l){if(typeof l!="function")throw new rr(a);return s=Ue(s),function(){if(--s<1)return l.apply(this,arguments)}}function pb(s,l,h){return l=h?n:l,l=s&&l==null?s.length:l,no(s,F,n,n,n,n,l)}function hb(s,l){var h;if(typeof l!="function")throw new rr(a);return s=Ue(s),function(){return--s>0&&(h=l.apply(this,arguments)),s<=1&&(l=n),h}}var Sp=qe(function(s,l,h){var C=w;if(h.length){var I=Oo(h,rs(Sp));C|=O}return no(s,C,l,h,I)}),gb=qe(function(s,l,h){var C=w|T;if(h.length){var I=Oo(h,rs(gb));C|=O}return no(l,C,s,h,I)});function mb(s,l,h){l=h?n:l;var C=no(s,E,n,n,n,n,n,l);return C.placeholder=mb.placeholder,C}function vb(s,l,h){l=h?n:l;var C=no(s,P,n,n,n,n,n,l);return C.placeholder=vb.placeholder,C}function yb(s,l,h){var C,I,M,L,V,K,se=0,ae=!1,le=!1,be=!0;if(typeof s!="function")throw new rr(a);l=lr(l)||0,Ot(h)&&(ae=!!h.leading,le="maxWait"in h,M=le?Yt(lr(h.maxWait)||0,l):M,be="trailing"in h?!!h.trailing:be);function Ee(_t){var Or=C,ao=I;return C=I=n,se=_t,L=s.apply(ao,Or),L}function je(_t){return se=_t,V=Aa(Ye,l),ae?Ee(_t):L}function He(_t){var Or=_t-K,ao=_t-se,Lb=l-Or;return le?cn(Lb,M-ao):Lb}function Re(_t){var Or=_t-K,ao=_t-se;return K===n||Or>=l||Or<0||le&&ao>=M}function Ye(){var _t=_c();if(Re(_t))return Ze(_t);V=Aa(Ye,He(_t))}function Ze(_t){return V=n,be&&C?Ee(_t):(C=I=n,L)}function zn(){V!==n&&Oy(V),se=0,C=K=I=V=n}function xn(){return V===n?L:Ze(_c())}function Un(){var _t=_c(),Or=Re(_t);if(C=arguments,I=this,K=_t,Or){if(V===n)return je(K);if(le)return Oy(V),V=Aa(Ye,l),Ee(K)}return V===n&&(V=Aa(Ye,l)),L}return Un.cancel=zn,Un.flush=xn,Un}var M4=qe(function(s,l){return ay(s,1,l)}),k4=qe(function(s,l,h){return ay(s,lr(l)||0,h)});function F4(s){return no(s,H)}function Lc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new rr(a);var h=function(){var C=arguments,I=l?l.apply(this,C):C[0],M=h.cache;if(M.has(I))return M.get(I);var L=s.apply(this,C);return h.cache=M.set(I,L)||M,L};return h.cache=new(Lc.Cache||eo),h}Lc.Cache=eo;function Bc(s){if(typeof s!="function")throw new rr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function D4(s){return hb(2,s)}var _4=wR(function(s,l){l=l.length==1&&Ve(l[0])?wt(l[0],$n(Pe())):wt(Jt(l,1),$n(Pe()));var h=l.length;return qe(function(C){for(var I=-1,M=cn(C.length,h);++I<M;)C[I]=l[I].call(this,C[I]);return Nn(s,this,C)})}),Ap=qe(function(s,l){var h=Oo(l,rs(Ap));return no(s,O,n,l,h)}),bb=qe(function(s,l){var h=Oo(l,rs(bb));return no(s,k,n,l,h)}),L4=ro(function(s,l){return no(s,B,n,n,n,l)});function B4(s,l){if(typeof s!="function")throw new rr(a);return l=l===n?l:Ue(l),qe(s,l)}function N4(s,l){if(typeof s!="function")throw new rr(a);return l=l==null?0:Yt(Ue(l),0),qe(function(h){var C=h[l],I=ko(h,0,l);return C&&Io(I,C),Nn(s,this,I)})}function $4(s,l,h){var C=!0,I=!0;if(typeof s!="function")throw new rr(a);return Ot(h)&&(C="leading"in h?!!h.leading:C,I="trailing"in h?!!h.trailing:I),yb(s,l,{leading:C,maxWait:l,trailing:I})}function V4(s){return pb(s,1)}function W4(s,l){return Ap(lp(l),s)}function z4(){if(!arguments.length)return[];var s=arguments[0];return Ve(s)?s:[s]}function U4(s){return ir(s,y)}function H4(s,l){return l=typeof l=="function"?l:n,ir(s,y,l)}function G4(s){return ir(s,g|y)}function q4(s,l){return l=typeof l=="function"?l:n,ir(s,g|y,l)}function Y4(s,l){return l==null||sy(s,l,Xt(l))}function Ir(s,l){return s===l||s!==s&&l!==l}var K4=jc(Xf),X4=jc(function(s,l){return s>=l}),mi=fy(function(){return arguments}())?fy:function(s){return jt(s)&&ct.call(s,"callee")&&!Qv.call(s,"callee")},Ve=re.isArray,Z4=kv?$n(kv):iR;function En(s){return s!=null&&Nc(s.length)&&!io(s)}function Dt(s){return jt(s)&&En(s)}function Q4(s){return s===!0||s===!1||jt(s)&&yn(s)==ye}var Fo=fj||Dp,J4=Fv?$n(Fv):sR;function eM(s){return jt(s)&&s.nodeType===1&&!Ea(s)}function tM(s){if(s==null)return!0;if(En(s)&&(Ve(s)||typeof s=="string"||typeof s.splice=="function"||Fo(s)||os(s)||mi(s)))return!s.length;var l=un(s);if(l==me||l==vt)return!s.size;if(Sa(s))return!Jf(s).length;for(var h in s)if(ct.call(s,h))return!1;return!0}function nM(s,l){return xa(s,l)}function rM(s,l,h){h=typeof h=="function"?h:n;var C=h?h(s,l):n;return C===n?xa(s,l,n,h):!!C}function Ep(s){if(!jt(s))return!1;var l=yn(s);return l==Te||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Ea(s)}function oM(s){return typeof s=="number"&&ey(s)}function io(s){if(!Ot(s))return!1;var l=yn(s);return l==fe||l==Ge||l==we||l==Bn}function xb(s){return typeof s=="number"&&s==Ue(s)}function Nc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=$}function Ot(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function jt(s){return s!=null&&typeof s=="object"}var Cb=Dv?$n(Dv):lR;function iM(s,l){return s===l||Qf(s,l,gp(l))}function sM(s,l,h){return h=typeof h=="function"?h:n,Qf(s,l,gp(l),h)}function aM(s){return wb(s)&&s!=+s}function lM(s){if(HR(s))throw new Le(i);return py(s)}function cM(s){return s===null}function uM(s){return s==null}function wb(s){return typeof s=="number"||jt(s)&&yn(s)==Qe}function Ea(s){if(!jt(s)||yn(s)!=Et)return!1;var l=fc(s);if(l===null)return!0;var h=ct.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&lc.call(h)==sj}var Tp=_v?$n(_v):cR;function dM(s){return xb(s)&&s>=-$&&s<=$}var Sb=Lv?$n(Lv):uR;function $c(s){return typeof s=="string"||!Ve(s)&&jt(s)&&yn(s)==Kt}function Wn(s){return typeof s=="symbol"||jt(s)&&yn(s)==yt}var os=Bv?$n(Bv):dR;function fM(s){return s===n}function pM(s){return jt(s)&&un(s)==It}function hM(s){return jt(s)&&yn(s)==ke}var gM=jc(ep),mM=jc(function(s,l){return s<=l});function Ab(s){if(!s)return[];if(En(s))return $c(s)?Er(s):An(s);if(fa&&s[fa])return YP(s[fa]());var l=un(s),h=l==me?Vf:l==vt?ic:is;return h(s)}function so(s){if(!s)return s===0?s:0;if(s=lr(s),s===Q||s===-Q){var l=s<0?-1:1;return l*oe}return s===s?s:0}function Ue(s){var l=so(s),h=l%1;return l===l?h?l-h:l:0}function Eb(s){return s?fi(Ue(s),0,J):0}function lr(s){if(typeof s=="number")return s;if(Wn(s))return W;if(Ot(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Ot(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Uv(s);var h=Af.test(s);return h||ze.test(s)?RP(s.slice(2),h?2:8):Sf.test(s)?W:+s}function Tb(s){return Fr(s,Tn(s))}function vM(s){return s?fi(Ue(s),-$,$):s===0?s:0}function ot(s){return s==null?"":Vn(s)}var yM=ts(function(s,l){if(Sa(l)||En(l)){Fr(l,Xt(l),s);return}for(var h in l)ct.call(l,h)&&va(s,h,l[h])}),Ib=ts(function(s,l){Fr(l,Tn(l),s)}),Vc=ts(function(s,l,h,C){Fr(l,Tn(l),s,C)}),bM=ts(function(s,l,h,C){Fr(l,Xt(l),s,C)}),xM=ro(qf);function CM(s,l){var h=es(s);return l==null?h:iy(h,l)}var wM=qe(function(s,l){s=dt(s);var h=-1,C=l.length,I=C>2?l[2]:n;for(I&&bn(l[0],l[1],I)&&(C=1);++h<C;)for(var M=l[h],L=Tn(M),V=-1,K=L.length;++V<K;){var se=L[V],ae=s[se];(ae===n||Ir(ae,Zi[se])&&!ct.call(s,se))&&(s[se]=M[se])}return s}),SM=qe(function(s){return s.push(n,Uy),Nn(Ob,n,s)});function AM(s,l){return $v(s,Pe(l,3),kr)}function EM(s,l){return $v(s,Pe(l,3),Kf)}function TM(s,l){return s==null?s:Yf(s,Pe(l,3),Tn)}function IM(s,l){return s==null?s:uy(s,Pe(l,3),Tn)}function OM(s,l){return s&&kr(s,Pe(l,3))}function PM(s,l){return s&&Kf(s,Pe(l,3))}function jM(s){return s==null?[]:wc(s,Xt(s))}function RM(s){return s==null?[]:wc(s,Tn(s))}function Ip(s,l,h){var C=s==null?n:pi(s,l);return C===n?h:C}function MM(s,l){return s!=null&&qy(s,l,tR)}function Op(s,l){return s!=null&&qy(s,l,nR)}var kM=Ny(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=cc.call(l)),s[l]=h},jp(In)),FM=Ny(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=cc.call(l)),ct.call(s,l)?s[l].push(h):s[l]=[h]},Pe),DM=qe(ba);function Xt(s){return En(s)?ry(s):Jf(s)}function Tn(s){return En(s)?ry(s,!0):fR(s)}function _M(s,l){var h={};return l=Pe(l,3),kr(s,function(C,I,M){to(h,l(C,I,M),C)}),h}function LM(s,l){var h={};return l=Pe(l,3),kr(s,function(C,I,M){to(h,I,l(C,I,M))}),h}var BM=ts(function(s,l,h){Sc(s,l,h)}),Ob=ts(function(s,l,h,C){Sc(s,l,h,C)}),NM=ro(function(s,l){var h={};if(s==null)return h;var C=!1;l=wt(l,function(M){return M=Mo(M,s),C||(C=M.length>1),M}),Fr(s,pp(s),h),C&&(h=ir(h,g|v|y,kR));for(var I=l.length;I--;)ip(h,l[I]);return h});function $M(s,l){return Pb(s,Bc(Pe(l)))}var VM=ro(function(s,l){return s==null?{}:hR(s,l)});function Pb(s,l){if(s==null)return{};var h=wt(pp(s),function(C){return[C]});return l=Pe(l),xy(s,h,function(C,I){return l(C,I[0])})}function WM(s,l,h){l=Mo(l,s);var C=-1,I=l.length;for(I||(I=1,s=n);++C<I;){var M=s==null?n:s[Dr(l[C])];M===n&&(C=I,M=h),s=io(M)?M.call(s):M}return s}function zM(s,l,h){return s==null?s:Ca(s,l,h)}function UM(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:Ca(s,l,h,C)}var jb=Wy(Xt),Rb=Wy(Tn);function HM(s,l,h){var C=Ve(s),I=C||Fo(s)||os(s);if(l=Pe(l,4),h==null){var M=s&&s.constructor;I?h=C?new M:[]:Ot(s)?h=io(M)?es(fc(s)):{}:h={}}return(I?nr:kr)(s,function(L,V,K){return l(h,L,V,K)}),h}function GM(s,l){return s==null?!0:ip(s,l)}function qM(s,l,h){return s==null?s:Ey(s,l,lp(h))}function YM(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:Ey(s,l,lp(h),C)}function is(s){return s==null?[]:$f(s,Xt(s))}function KM(s){return s==null?[]:$f(s,Tn(s))}function XM(s,l,h){return h===n&&(h=l,l=n),h!==n&&(h=lr(h),h=h===h?h:0),l!==n&&(l=lr(l),l=l===l?l:0),fi(lr(s),l,h)}function ZM(s,l,h){return l=so(l),h===n?(h=l,l=0):h=so(h),s=lr(s),rR(s,l,h)}function QM(s,l,h){if(h&&typeof h!="boolean"&&bn(s,l,h)&&(l=h=n),h===n&&(typeof l=="boolean"?(h=l,l=n):typeof s=="boolean"&&(h=s,s=n)),s===n&&l===n?(s=0,l=1):(s=so(s),l===n?(l=s,s=0):l=so(l)),s>l){var C=s;s=l,l=C}if(h||s%1||l%1){var I=ty();return cn(s+I*(l-s+jP("1e-"+((I+"").length-1))),l)}return np(s,l)}var JM=ns(function(s,l,h){return l=l.toLowerCase(),s+(h?Mb(l):l)});function Mb(s){return Pp(ot(s).toLowerCase())}function kb(s){return s=ot(s),s&&s.replace(tP,zP).replace(xP,"")}function ek(s,l,h){s=ot(s),l=Vn(l);var C=s.length;h=h===n?C:fi(Ue(h),0,C);var I=h;return h-=l.length,h>=0&&s.slice(h,I)==l}function tk(s){return s=ot(s),s&&Gl.test(s)?s.replace(aa,UP):s}function nk(s){return s=ot(s),s&&ca.test(s)?s.replace(Qr,"\\$&"):s}var rk=ns(function(s,l,h){return s+(h?"-":"")+l.toLowerCase()}),ok=ns(function(s,l,h){return s+(h?" ":"")+l.toLowerCase()}),ik=_y("toLowerCase");function sk(s,l,h){s=ot(s),l=Ue(l);var C=l?Ki(s):0;if(!l||C>=l)return s;var I=(l-C)/2;return Pc(mc(I),h)+s+Pc(gc(I),h)}function ak(s,l,h){s=ot(s),l=Ue(l);var C=l?Ki(s):0;return l&&C<l?s+Pc(l-C,h):s}function lk(s,l,h){s=ot(s),l=Ue(l);var C=l?Ki(s):0;return l&&C<l?Pc(l-C,h)+s:s}function ck(s,l,h){return h||l==null?l=0:l&&(l=+l),mj(ot(s).replace(ln,""),l||0)}function uk(s,l,h){return(h?bn(s,l,h):l===n)?l=1:l=Ue(l),rp(ot(s),l)}function dk(){var s=arguments,l=ot(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var fk=ns(function(s,l,h){return s+(h?"_":"")+l.toLowerCase()});function pk(s,l,h){return h&&typeof h!="number"&&bn(s,l,h)&&(l=h=n),h=h===n?J:h>>>0,h?(s=ot(s),s&&(typeof l=="string"||l!=null&&!Tp(l))&&(l=Vn(l),!l&&Yi(s))?ko(Er(s),0,h):s.split(l,h)):[]}var hk=ns(function(s,l,h){return s+(h?" ":"")+Pp(l)});function gk(s,l,h){return s=ot(s),h=h==null?0:fi(Ue(h),0,s.length),l=Vn(l),s.slice(h,h+l.length)==l}function mk(s,l,h){var C=R.templateSettings;h&&bn(s,l,h)&&(l=n),s=ot(s),l=Vc({},l,C,zy);var I=Vc({},l.imports,C.imports,zy),M=Xt(I),L=$f(I,M),V,K,se=0,ae=l.interpolate||ec,le="__p += '",be=Wf((l.escape||ec).source+"|"+ae.source+"|"+(ae===Yl?Ql:ec).source+"|"+(l.evaluate||ec).source+"|$","g"),Ee="//# sourceURL="+(ct.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++EP+"]")+`
|
|
204
|
+
`)}function WR(s){return Ve(s)||mi(s)||!!(Jv&&s&&s[Jv])}function oo(s,l){var h=typeof s;return l=l??$,!!l&&(h=="number"||h!="symbol"&&vn.test(s))&&s>-1&&s%1==0&&s<l}function bn(s,l,h){if(!Ot(h))return!1;var C=typeof l;return(C=="number"?En(h)&&oo(l,h.length):C=="string"&&l in h)?Ir(h[l],s):!1}function vp(s,l){if(Ve(s))return!1;var h=typeof s;return h=="number"||h=="symbol"||h=="boolean"||s==null||Wn(s)?!0:la.test(s)||!xf.test(s)||l!=null&&s in dt(l)}function zR(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function yp(s){var l=Rc(s),h=R[l];if(typeof h!="function"||!(l in Xe.prototype))return!1;if(s===h)return!0;var C=hp(h);return!!C&&s===C[0]}function UR(s){return!!Kv&&Kv in s}var HR=ac?io:Dp;function Sa(s){var l=s&&s.constructor,h=typeof l=="function"&&l.prototype||Qi;return s===h}function Ky(s){return s===s&&!Ot(s)}function Xy(s,l){return function(h){return h==null?!1:h[s]===l&&(l!==n||s in dt(h))}}function GR(s){var l=Lc(s,function(C){return h.size===d&&h.clear(),C}),h=l.cache;return l}function qR(s,l){var h=s[1],C=l[1],I=h|C,M=I<(w|T|F),L=C==F&&h==E||C==F&&h==B&&s[7].length<=l[8]||C==(F|B)&&l[7].length<=l[8]&&h==E;if(!(M||L))return s;C&w&&(s[2]=l[2],I|=h&w?0:j);var V=l[3];if(V){var K=s[3];s[3]=K?My(K,V,l[4]):V,s[4]=K?Oo(s[3],p):l[4]}return V=l[5],V&&(K=s[5],s[5]=K?ky(K,V,l[6]):V,s[6]=K?Oo(s[5],p):l[6]),V=l[7],V&&(s[7]=V),C&F&&(s[8]=s[8]==null?l[8]:cn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=I,s}function YR(s){var l=[];if(s!=null)for(var h in dt(s))l.push(h);return l}function KR(s){return cc.call(s)}function Zy(s,l,h){return l=Yt(l===n?s.length-1:l,0),function(){for(var C=arguments,I=-1,M=Yt(C.length-l,0),L=re(M);++I<M;)L[I]=C[l+I];I=-1;for(var V=re(l+1);++I<l;)V[I]=C[I];return V[l]=h(L),Nn(s,this,V)}}function Qy(s,l){return l.length<2?s:pi(s,sr(l,0,-1))}function XR(s,l){for(var h=s.length,C=cn(l.length,h),I=An(s);C--;){var M=l[C];s[C]=oo(M,h)?I[M]:n}return s}function bp(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var Jy=tb(wy),Aa=dj||function(s,l){return Qt.setTimeout(s,l)},xp=tb(bR);function eb(s,l,h){var C=l+"";return xp(s,VR(C,ZR(BR(C),h)))}function tb(s){var l=0,h=0;return function(){var C=gj(),I=te-(C-h);if(h=C,I>0){if(++l>=ne)return arguments[0]}else l=0;return s.apply(n,arguments)}}function kc(s,l){var h=-1,C=s.length,I=C-1;for(l=l===n?C:l;++h<l;){var M=np(h,I),L=s[M];s[M]=s[h],s[h]=L}return s.length=l,s}var nb=GR(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Cf,function(h,C,I,M){l.push(I?M.replace(Zl,"$1"):C||h)}),l});function Dr(s){if(typeof s=="string"||Wn(s))return s;var l=s+"";return l=="0"&&1/s==-Q?"-0":l}function gi(s){if(s!=null){try{return lc.call(s)}catch{}try{return s+""}catch{}}return""}function ZR(s,l){return nr(de,function(h){var C="_."+h[0];l&h[1]&&!rc(s,C)&&s.push(C)}),s.sort()}function rb(s){if(s instanceof Xe)return s.clone();var l=new or(s.__wrapped__,s.__chain__);return l.__actions__=An(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function QR(s,l,h){(h?bn(s,l,h):l===n)?l=1:l=Yt(Ue(l),0);var C=s==null?0:s.length;if(!C||l<1)return[];for(var I=0,M=0,L=re(gc(C/l));I<C;)L[M++]=sr(s,I,I+=l);return L}function JR(s){for(var l=-1,h=s==null?0:s.length,C=0,I=[];++l<h;){var M=s[l];M&&(I[C++]=M)}return I}function e3(){var s=arguments.length;if(!s)return[];for(var l=re(s-1),h=arguments[0],C=s;C--;)l[C-1]=arguments[C];return Io(Ve(h)?An(h):[h],Jt(l,1))}var t3=qe(function(s,l){return Dt(s)?ya(s,Jt(l,1,Dt,!0)):[]}),n3=qe(function(s,l){var h=ar(l);return Dt(h)&&(h=n),Dt(s)?ya(s,Jt(l,1,Dt,!0),Pe(h,2)):[]}),r3=qe(function(s,l){var h=ar(l);return Dt(h)&&(h=n),Dt(s)?ya(s,Jt(l,1,Dt,!0),n,h):[]});function o3(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ue(l),sr(s,l<0?0:l,C)):[]}function i3(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ue(l),l=C-l,sr(s,0,l<0?0:l)):[]}function s3(s,l){return s&&s.length?Ec(s,Pe(l,3),!0,!0):[]}function a3(s,l){return s&&s.length?Ec(s,Pe(l,3),!0):[]}function l3(s,l,h,C){var I=s==null?0:s.length;return I?(h&&typeof h!="number"&&bn(s,l,h)&&(h=0,C=I),eR(s,l,h,C)):[]}function ob(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ue(h);return I<0&&(I=Yt(C+I,0)),oc(s,Pe(l,3),I)}function ib(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C-1;return h!==n&&(I=Ue(h),I=h<0?Yt(C+I,0):cn(I,C-1)),oc(s,Pe(l,3),I,!0)}function sb(s){var l=s==null?0:s.length;return l?Jt(s,1):[]}function c3(s){var l=s==null?0:s.length;return l?Jt(s,Q):[]}function u3(s,l){var h=s==null?0:s.length;return h?(l=l===n?1:Ue(l),Jt(s,l)):[]}function d3(s){for(var l=-1,h=s==null?0:s.length,C={};++l<h;){var I=s[l];C[I[0]]=I[1]}return C}function ab(s){return s&&s.length?s[0]:n}function f3(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=h==null?0:Ue(h);return I<0&&(I=Yt(C+I,0)),Yi(s,l,I)}function p3(s){var l=s==null?0:s.length;return l?sr(s,0,-1):[]}var h3=qe(function(s){var l=wt(s,ap);return l.length&&l[0]===s[0]?Zf(l):[]}),g3=qe(function(s){var l=ar(s),h=wt(s,ap);return l===ar(h)?l=n:h.pop(),h.length&&h[0]===s[0]?Zf(h,Pe(l,2)):[]}),m3=qe(function(s){var l=ar(s),h=wt(s,ap);return l=typeof l=="function"?l:n,l&&h.pop(),h.length&&h[0]===s[0]?Zf(h,n,l):[]});function v3(s,l){return s==null?"":pj.call(s,l)}function ar(s){var l=s==null?0:s.length;return l?s[l-1]:n}function y3(s,l,h){var C=s==null?0:s.length;if(!C)return-1;var I=C;return h!==n&&(I=Ue(h),I=I<0?Yt(C+I,0):cn(I,C-1)),l===l?ZP(s,l,I):oc(s,Vv,I,!0)}function b3(s,l){return s&&s.length?yy(s,Ue(l)):n}var x3=qe(lb);function lb(s,l){return s&&s.length&&l&&l.length?tp(s,l):s}function C3(s,l,h){return s&&s.length&&l&&l.length?tp(s,l,Pe(h,2)):s}function w3(s,l,h){return s&&s.length&&l&&l.length?tp(s,l,n,h):s}var S3=ro(function(s,l){var h=s==null?0:s.length,C=qf(s,l);return Cy(s,wt(l,function(I){return oo(I,h)?+I:I}).sort(Ry)),C});function A3(s,l){var h=[];if(!(s&&s.length))return h;var C=-1,I=[],M=s.length;for(l=Pe(l,3);++C<M;){var L=s[C];l(L,C,s)&&(h.push(L),I.push(C))}return Cy(s,I),h}function Cp(s){return s==null?s:vj.call(s)}function E3(s,l,h){var C=s==null?0:s.length;return C?(h&&typeof h!="number"&&bn(s,l,h)?(l=0,h=C):(l=l==null?0:Ue(l),h=h===n?C:Ue(h)),sr(s,l,h)):[]}function T3(s,l){return Ac(s,l)}function I3(s,l,h){return op(s,l,Pe(h,2))}function O3(s,l){var h=s==null?0:s.length;if(h){var C=Ac(s,l);if(C<h&&Ir(s[C],l))return C}return-1}function P3(s,l){return Ac(s,l,!0)}function j3(s,l,h){return op(s,l,Pe(h,2),!0)}function R3(s,l){var h=s==null?0:s.length;if(h){var C=Ac(s,l,!0)-1;if(Ir(s[C],l))return C}return-1}function M3(s){return s&&s.length?Sy(s):[]}function k3(s,l){return s&&s.length?Sy(s,Pe(l,2)):[]}function F3(s){var l=s==null?0:s.length;return l?sr(s,1,l):[]}function D3(s,l,h){return s&&s.length?(l=h||l===n?1:Ue(l),sr(s,0,l<0?0:l)):[]}function _3(s,l,h){var C=s==null?0:s.length;return C?(l=h||l===n?1:Ue(l),l=C-l,sr(s,l<0?0:l,C)):[]}function L3(s,l){return s&&s.length?Ec(s,Pe(l,3),!1,!0):[]}function B3(s,l){return s&&s.length?Ec(s,Pe(l,3)):[]}var N3=qe(function(s){return Ro(Jt(s,1,Dt,!0))}),$3=qe(function(s){var l=ar(s);return Dt(l)&&(l=n),Ro(Jt(s,1,Dt,!0),Pe(l,2))}),V3=qe(function(s){var l=ar(s);return l=typeof l=="function"?l:n,Ro(Jt(s,1,Dt,!0),n,l)});function W3(s){return s&&s.length?Ro(s):[]}function z3(s,l){return s&&s.length?Ro(s,Pe(l,2)):[]}function U3(s,l){return l=typeof l=="function"?l:n,s&&s.length?Ro(s,n,l):[]}function wp(s){if(!(s&&s.length))return[];var l=0;return s=To(s,function(h){if(Dt(h))return l=Yt(h.length,l),!0}),Nf(l,function(h){return wt(s,_f(h))})}function cb(s,l){if(!(s&&s.length))return[];var h=wp(s);return l==null?h:wt(h,function(C){return Nn(l,n,C)})}var H3=qe(function(s,l){return Dt(s)?ya(s,l):[]}),G3=qe(function(s){return sp(To(s,Dt))}),q3=qe(function(s){var l=ar(s);return Dt(l)&&(l=n),sp(To(s,Dt),Pe(l,2))}),Y3=qe(function(s){var l=ar(s);return l=typeof l=="function"?l:n,sp(To(s,Dt),n,l)}),K3=qe(wp);function X3(s,l){return Iy(s||[],l||[],va)}function Z3(s,l){return Iy(s||[],l||[],Ca)}var Q3=qe(function(s){var l=s.length,h=l>1?s[l-1]:n;return h=typeof h=="function"?(s.pop(),h):n,cb(s,h)});function ub(s){var l=R(s);return l.__chain__=!0,l}function J3(s,l){return l(s),s}function Fc(s,l){return l(s)}var e4=ro(function(s){var l=s.length,h=l?s[0]:0,C=this.__wrapped__,I=function(M){return qf(M,s)};return l>1||this.__actions__.length||!(C instanceof Xe)||!oo(h)?this.thru(I):(C=C.slice(h,+h+(l?1:0)),C.__actions__.push({func:Fc,args:[I],thisArg:n}),new or(C,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function t4(){return ub(this)}function n4(){return new or(this.value(),this.__chain__)}function r4(){this.__values__===n&&(this.__values__=Ab(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function o4(){return this}function i4(s){for(var l,h=this;h instanceof bc;){var C=rb(h);C.__index__=0,C.__values__=n,l?I.__wrapped__=C:l=C;var I=C;h=h.__wrapped__}return I.__wrapped__=s,l}function s4(){var s=this.__wrapped__;if(s instanceof Xe){var l=s;return this.__actions__.length&&(l=new Xe(this)),l=l.reverse(),l.__actions__.push({func:Fc,args:[Cp],thisArg:n}),new or(l,this.__chain__)}return this.thru(Cp)}function a4(){return Ty(this.__wrapped__,this.__actions__)}var l4=Tc(function(s,l,h){ct.call(s,h)?++s[h]:to(s,h,1)});function c4(s,l,h){var C=Ve(s)?Nv:Jj;return h&&bn(s,l,h)&&(l=n),C(s,Pe(l,3))}function u4(s,l){var h=Ve(s)?To:cy;return h(s,Pe(l,3))}var d4=Ly(ob),f4=Ly(ib);function p4(s,l){return Jt(Dc(s,l),1)}function h4(s,l){return Jt(Dc(s,l),Q)}function g4(s,l,h){return h=h===n?1:Ue(h),Jt(Dc(s,l),h)}function db(s,l){var h=Ve(s)?nr:jo;return h(s,Pe(l,3))}function fb(s,l){var h=Ve(s)?FP:ly;return h(s,Pe(l,3))}var m4=Tc(function(s,l,h){ct.call(s,h)?s[h].push(l):to(s,h,[l])});function v4(s,l,h,C){s=En(s)?s:ss(s),h=h&&!C?Ue(h):0;var I=s.length;return h<0&&(h=Yt(I+h,0)),$c(s)?h<=I&&s.indexOf(l,h)>-1:!!I&&Yi(s,l,h)>-1}var y4=qe(function(s,l,h){var C=-1,I=typeof l=="function",M=En(s)?re(s.length):[];return jo(s,function(L){M[++C]=I?Nn(l,L,h):ba(L,l,h)}),M}),b4=Tc(function(s,l,h){to(s,h,l)});function Dc(s,l){var h=Ve(s)?wt:gy;return h(s,Pe(l,3))}function x4(s,l,h,C){return s==null?[]:(Ve(l)||(l=l==null?[]:[l]),h=C?n:h,Ve(h)||(h=h==null?[]:[h]),by(s,l,h))}var C4=Tc(function(s,l,h){s[h?0:1].push(l)},function(){return[[],[]]});function w4(s,l,h){var C=Ve(s)?Ff:zv,I=arguments.length<3;return C(s,Pe(l,4),h,I,jo)}function S4(s,l,h){var C=Ve(s)?DP:zv,I=arguments.length<3;return C(s,Pe(l,4),h,I,ly)}function A4(s,l){var h=Ve(s)?To:cy;return h(s,Bc(Pe(l,3)))}function E4(s){var l=Ve(s)?oy:vR;return l(s)}function T4(s,l,h){(h?bn(s,l,h):l===n)?l=1:l=Ue(l);var C=Ve(s)?Yj:yR;return C(s,l)}function I4(s){var l=Ve(s)?Kj:xR;return l(s)}function O4(s){if(s==null)return 0;if(En(s))return $c(s)?Xi(s):s.length;var l=un(s);return l==me||l==vt?s.size:Jf(s).length}function P4(s,l,h){var C=Ve(s)?Df:CR;return h&&bn(s,l,h)&&(l=n),C(s,Pe(l,3))}var j4=qe(function(s,l){if(s==null)return[];var h=l.length;return h>1&&bn(s,l[0],l[1])?l=[]:h>2&&bn(l[0],l[1],l[2])&&(l=[l[0]]),by(s,Jt(l,1),[])}),_c=uj||function(){return Qt.Date.now()};function R4(s,l){if(typeof l!="function")throw new rr(a);return s=Ue(s),function(){if(--s<1)return l.apply(this,arguments)}}function pb(s,l,h){return l=h?n:l,l=s&&l==null?s.length:l,no(s,F,n,n,n,n,l)}function hb(s,l){var h;if(typeof l!="function")throw new rr(a);return s=Ue(s),function(){return--s>0&&(h=l.apply(this,arguments)),s<=1&&(l=n),h}}var Sp=qe(function(s,l,h){var C=w;if(h.length){var I=Oo(h,os(Sp));C|=O}return no(s,C,l,h,I)}),gb=qe(function(s,l,h){var C=w|T;if(h.length){var I=Oo(h,os(gb));C|=O}return no(l,C,s,h,I)});function mb(s,l,h){l=h?n:l;var C=no(s,E,n,n,n,n,n,l);return C.placeholder=mb.placeholder,C}function vb(s,l,h){l=h?n:l;var C=no(s,P,n,n,n,n,n,l);return C.placeholder=vb.placeholder,C}function yb(s,l,h){var C,I,M,L,V,K,se=0,ae=!1,le=!1,be=!0;if(typeof s!="function")throw new rr(a);l=lr(l)||0,Ot(h)&&(ae=!!h.leading,le="maxWait"in h,M=le?Yt(lr(h.maxWait)||0,l):M,be="trailing"in h?!!h.trailing:be);function Ee(_t){var Or=C,ao=I;return C=I=n,se=_t,L=s.apply(ao,Or),L}function je(_t){return se=_t,V=Aa(Ye,l),ae?Ee(_t):L}function He(_t){var Or=_t-K,ao=_t-se,Lb=l-Or;return le?cn(Lb,M-ao):Lb}function Re(_t){var Or=_t-K,ao=_t-se;return K===n||Or>=l||Or<0||le&&ao>=M}function Ye(){var _t=_c();if(Re(_t))return Ze(_t);V=Aa(Ye,He(_t))}function Ze(_t){return V=n,be&&C?Ee(_t):(C=I=n,L)}function zn(){V!==n&&Oy(V),se=0,C=K=I=V=n}function xn(){return V===n?L:Ze(_c())}function Un(){var _t=_c(),Or=Re(_t);if(C=arguments,I=this,K=_t,Or){if(V===n)return je(K);if(le)return Oy(V),V=Aa(Ye,l),Ee(K)}return V===n&&(V=Aa(Ye,l)),L}return Un.cancel=zn,Un.flush=xn,Un}var M4=qe(function(s,l){return ay(s,1,l)}),k4=qe(function(s,l,h){return ay(s,lr(l)||0,h)});function F4(s){return no(s,H)}function Lc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new rr(a);var h=function(){var C=arguments,I=l?l.apply(this,C):C[0],M=h.cache;if(M.has(I))return M.get(I);var L=s.apply(this,C);return h.cache=M.set(I,L)||M,L};return h.cache=new(Lc.Cache||eo),h}Lc.Cache=eo;function Bc(s){if(typeof s!="function")throw new rr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function D4(s){return hb(2,s)}var _4=wR(function(s,l){l=l.length==1&&Ve(l[0])?wt(l[0],$n(Pe())):wt(Jt(l,1),$n(Pe()));var h=l.length;return qe(function(C){for(var I=-1,M=cn(C.length,h);++I<M;)C[I]=l[I].call(this,C[I]);return Nn(s,this,C)})}),Ap=qe(function(s,l){var h=Oo(l,os(Ap));return no(s,O,n,l,h)}),bb=qe(function(s,l){var h=Oo(l,os(bb));return no(s,k,n,l,h)}),L4=ro(function(s,l){return no(s,B,n,n,n,l)});function B4(s,l){if(typeof s!="function")throw new rr(a);return l=l===n?l:Ue(l),qe(s,l)}function N4(s,l){if(typeof s!="function")throw new rr(a);return l=l==null?0:Yt(Ue(l),0),qe(function(h){var C=h[l],I=ko(h,0,l);return C&&Io(I,C),Nn(s,this,I)})}function $4(s,l,h){var C=!0,I=!0;if(typeof s!="function")throw new rr(a);return Ot(h)&&(C="leading"in h?!!h.leading:C,I="trailing"in h?!!h.trailing:I),yb(s,l,{leading:C,maxWait:l,trailing:I})}function V4(s){return pb(s,1)}function W4(s,l){return Ap(lp(l),s)}function z4(){if(!arguments.length)return[];var s=arguments[0];return Ve(s)?s:[s]}function U4(s){return ir(s,y)}function H4(s,l){return l=typeof l=="function"?l:n,ir(s,y,l)}function G4(s){return ir(s,g|y)}function q4(s,l){return l=typeof l=="function"?l:n,ir(s,g|y,l)}function Y4(s,l){return l==null||sy(s,l,Xt(l))}function Ir(s,l){return s===l||s!==s&&l!==l}var K4=jc(Xf),X4=jc(function(s,l){return s>=l}),mi=fy(function(){return arguments}())?fy:function(s){return jt(s)&&ct.call(s,"callee")&&!Qv.call(s,"callee")},Ve=re.isArray,Z4=kv?$n(kv):iR;function En(s){return s!=null&&Nc(s.length)&&!io(s)}function Dt(s){return jt(s)&&En(s)}function Q4(s){return s===!0||s===!1||jt(s)&&yn(s)==ye}var Fo=fj||Dp,J4=Fv?$n(Fv):sR;function eM(s){return jt(s)&&s.nodeType===1&&!Ea(s)}function tM(s){if(s==null)return!0;if(En(s)&&(Ve(s)||typeof s=="string"||typeof s.splice=="function"||Fo(s)||is(s)||mi(s)))return!s.length;var l=un(s);if(l==me||l==vt)return!s.size;if(Sa(s))return!Jf(s).length;for(var h in s)if(ct.call(s,h))return!1;return!0}function nM(s,l){return xa(s,l)}function rM(s,l,h){h=typeof h=="function"?h:n;var C=h?h(s,l):n;return C===n?xa(s,l,n,h):!!C}function Ep(s){if(!jt(s))return!1;var l=yn(s);return l==Te||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Ea(s)}function oM(s){return typeof s=="number"&&ey(s)}function io(s){if(!Ot(s))return!1;var l=yn(s);return l==fe||l==Ge||l==we||l==Bn}function xb(s){return typeof s=="number"&&s==Ue(s)}function Nc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=$}function Ot(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function jt(s){return s!=null&&typeof s=="object"}var Cb=Dv?$n(Dv):lR;function iM(s,l){return s===l||Qf(s,l,gp(l))}function sM(s,l,h){return h=typeof h=="function"?h:n,Qf(s,l,gp(l),h)}function aM(s){return wb(s)&&s!=+s}function lM(s){if(HR(s))throw new Le(i);return py(s)}function cM(s){return s===null}function uM(s){return s==null}function wb(s){return typeof s=="number"||jt(s)&&yn(s)==Qe}function Ea(s){if(!jt(s)||yn(s)!=Et)return!1;var l=fc(s);if(l===null)return!0;var h=ct.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&lc.call(h)==sj}var Tp=_v?$n(_v):cR;function dM(s){return xb(s)&&s>=-$&&s<=$}var Sb=Lv?$n(Lv):uR;function $c(s){return typeof s=="string"||!Ve(s)&&jt(s)&&yn(s)==Kt}function Wn(s){return typeof s=="symbol"||jt(s)&&yn(s)==yt}var is=Bv?$n(Bv):dR;function fM(s){return s===n}function pM(s){return jt(s)&&un(s)==It}function hM(s){return jt(s)&&yn(s)==ke}var gM=jc(ep),mM=jc(function(s,l){return s<=l});function Ab(s){if(!s)return[];if(En(s))return $c(s)?Er(s):An(s);if(fa&&s[fa])return YP(s[fa]());var l=un(s),h=l==me?Vf:l==vt?ic:ss;return h(s)}function so(s){if(!s)return s===0?s:0;if(s=lr(s),s===Q||s===-Q){var l=s<0?-1:1;return l*oe}return s===s?s:0}function Ue(s){var l=so(s),h=l%1;return l===l?h?l-h:l:0}function Eb(s){return s?fi(Ue(s),0,J):0}function lr(s){if(typeof s=="number")return s;if(Wn(s))return W;if(Ot(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Ot(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Uv(s);var h=Af.test(s);return h||ze.test(s)?RP(s.slice(2),h?2:8):Sf.test(s)?W:+s}function Tb(s){return Fr(s,Tn(s))}function vM(s){return s?fi(Ue(s),-$,$):s===0?s:0}function ot(s){return s==null?"":Vn(s)}var yM=ns(function(s,l){if(Sa(l)||En(l)){Fr(l,Xt(l),s);return}for(var h in l)ct.call(l,h)&&va(s,h,l[h])}),Ib=ns(function(s,l){Fr(l,Tn(l),s)}),Vc=ns(function(s,l,h,C){Fr(l,Tn(l),s,C)}),bM=ns(function(s,l,h,C){Fr(l,Xt(l),s,C)}),xM=ro(qf);function CM(s,l){var h=ts(s);return l==null?h:iy(h,l)}var wM=qe(function(s,l){s=dt(s);var h=-1,C=l.length,I=C>2?l[2]:n;for(I&&bn(l[0],l[1],I)&&(C=1);++h<C;)for(var M=l[h],L=Tn(M),V=-1,K=L.length;++V<K;){var se=L[V],ae=s[se];(ae===n||Ir(ae,Qi[se])&&!ct.call(s,se))&&(s[se]=M[se])}return s}),SM=qe(function(s){return s.push(n,Uy),Nn(Ob,n,s)});function AM(s,l){return $v(s,Pe(l,3),kr)}function EM(s,l){return $v(s,Pe(l,3),Kf)}function TM(s,l){return s==null?s:Yf(s,Pe(l,3),Tn)}function IM(s,l){return s==null?s:uy(s,Pe(l,3),Tn)}function OM(s,l){return s&&kr(s,Pe(l,3))}function PM(s,l){return s&&Kf(s,Pe(l,3))}function jM(s){return s==null?[]:wc(s,Xt(s))}function RM(s){return s==null?[]:wc(s,Tn(s))}function Ip(s,l,h){var C=s==null?n:pi(s,l);return C===n?h:C}function MM(s,l){return s!=null&&qy(s,l,tR)}function Op(s,l){return s!=null&&qy(s,l,nR)}var kM=Ny(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=cc.call(l)),s[l]=h},jp(In)),FM=Ny(function(s,l,h){l!=null&&typeof l.toString!="function"&&(l=cc.call(l)),ct.call(s,l)?s[l].push(h):s[l]=[h]},Pe),DM=qe(ba);function Xt(s){return En(s)?ry(s):Jf(s)}function Tn(s){return En(s)?ry(s,!0):fR(s)}function _M(s,l){var h={};return l=Pe(l,3),kr(s,function(C,I,M){to(h,l(C,I,M),C)}),h}function LM(s,l){var h={};return l=Pe(l,3),kr(s,function(C,I,M){to(h,I,l(C,I,M))}),h}var BM=ns(function(s,l,h){Sc(s,l,h)}),Ob=ns(function(s,l,h,C){Sc(s,l,h,C)}),NM=ro(function(s,l){var h={};if(s==null)return h;var C=!1;l=wt(l,function(M){return M=Mo(M,s),C||(C=M.length>1),M}),Fr(s,pp(s),h),C&&(h=ir(h,g|v|y,kR));for(var I=l.length;I--;)ip(h,l[I]);return h});function $M(s,l){return Pb(s,Bc(Pe(l)))}var VM=ro(function(s,l){return s==null?{}:hR(s,l)});function Pb(s,l){if(s==null)return{};var h=wt(pp(s),function(C){return[C]});return l=Pe(l),xy(s,h,function(C,I){return l(C,I[0])})}function WM(s,l,h){l=Mo(l,s);var C=-1,I=l.length;for(I||(I=1,s=n);++C<I;){var M=s==null?n:s[Dr(l[C])];M===n&&(C=I,M=h),s=io(M)?M.call(s):M}return s}function zM(s,l,h){return s==null?s:Ca(s,l,h)}function UM(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:Ca(s,l,h,C)}var jb=Wy(Xt),Rb=Wy(Tn);function HM(s,l,h){var C=Ve(s),I=C||Fo(s)||is(s);if(l=Pe(l,4),h==null){var M=s&&s.constructor;I?h=C?new M:[]:Ot(s)?h=io(M)?ts(fc(s)):{}:h={}}return(I?nr:kr)(s,function(L,V,K){return l(h,L,V,K)}),h}function GM(s,l){return s==null?!0:ip(s,l)}function qM(s,l,h){return s==null?s:Ey(s,l,lp(h))}function YM(s,l,h,C){return C=typeof C=="function"?C:n,s==null?s:Ey(s,l,lp(h),C)}function ss(s){return s==null?[]:$f(s,Xt(s))}function KM(s){return s==null?[]:$f(s,Tn(s))}function XM(s,l,h){return h===n&&(h=l,l=n),h!==n&&(h=lr(h),h=h===h?h:0),l!==n&&(l=lr(l),l=l===l?l:0),fi(lr(s),l,h)}function ZM(s,l,h){return l=so(l),h===n?(h=l,l=0):h=so(h),s=lr(s),rR(s,l,h)}function QM(s,l,h){if(h&&typeof h!="boolean"&&bn(s,l,h)&&(l=h=n),h===n&&(typeof l=="boolean"?(h=l,l=n):typeof s=="boolean"&&(h=s,s=n)),s===n&&l===n?(s=0,l=1):(s=so(s),l===n?(l=s,s=0):l=so(l)),s>l){var C=s;s=l,l=C}if(h||s%1||l%1){var I=ty();return cn(s+I*(l-s+jP("1e-"+((I+"").length-1))),l)}return np(s,l)}var JM=rs(function(s,l,h){return l=l.toLowerCase(),s+(h?Mb(l):l)});function Mb(s){return Pp(ot(s).toLowerCase())}function kb(s){return s=ot(s),s&&s.replace(tP,zP).replace(xP,"")}function ek(s,l,h){s=ot(s),l=Vn(l);var C=s.length;h=h===n?C:fi(Ue(h),0,C);var I=h;return h-=l.length,h>=0&&s.slice(h,I)==l}function tk(s){return s=ot(s),s&&Gl.test(s)?s.replace(aa,UP):s}function nk(s){return s=ot(s),s&&ca.test(s)?s.replace(Qr,"\\$&"):s}var rk=rs(function(s,l,h){return s+(h?"-":"")+l.toLowerCase()}),ok=rs(function(s,l,h){return s+(h?" ":"")+l.toLowerCase()}),ik=_y("toLowerCase");function sk(s,l,h){s=ot(s),l=Ue(l);var C=l?Xi(s):0;if(!l||C>=l)return s;var I=(l-C)/2;return Pc(mc(I),h)+s+Pc(gc(I),h)}function ak(s,l,h){s=ot(s),l=Ue(l);var C=l?Xi(s):0;return l&&C<l?s+Pc(l-C,h):s}function lk(s,l,h){s=ot(s),l=Ue(l);var C=l?Xi(s):0;return l&&C<l?Pc(l-C,h)+s:s}function ck(s,l,h){return h||l==null?l=0:l&&(l=+l),mj(ot(s).replace(ln,""),l||0)}function uk(s,l,h){return(h?bn(s,l,h):l===n)?l=1:l=Ue(l),rp(ot(s),l)}function dk(){var s=arguments,l=ot(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var fk=rs(function(s,l,h){return s+(h?"_":"")+l.toLowerCase()});function pk(s,l,h){return h&&typeof h!="number"&&bn(s,l,h)&&(l=h=n),h=h===n?J:h>>>0,h?(s=ot(s),s&&(typeof l=="string"||l!=null&&!Tp(l))&&(l=Vn(l),!l&&Ki(s))?ko(Er(s),0,h):s.split(l,h)):[]}var hk=rs(function(s,l,h){return s+(h?" ":"")+Pp(l)});function gk(s,l,h){return s=ot(s),h=h==null?0:fi(Ue(h),0,s.length),l=Vn(l),s.slice(h,h+l.length)==l}function mk(s,l,h){var C=R.templateSettings;h&&bn(s,l,h)&&(l=n),s=ot(s),l=Vc({},l,C,zy);var I=Vc({},l.imports,C.imports,zy),M=Xt(I),L=$f(I,M),V,K,se=0,ae=l.interpolate||ec,le="__p += '",be=Wf((l.escape||ec).source+"|"+ae.source+"|"+(ae===Yl?Ql:ec).source+"|"+(l.evaluate||ec).source+"|$","g"),Ee="//# sourceURL="+(ct.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++EP+"]")+`
|
|
205
205
|
`;s.replace(be,function(Re,Ye,Ze,zn,xn,Un){return Ze||(Ze=zn),le+=s.slice(se,Un).replace(nP,HP),Ye&&(V=!0,le+=`' +
|
|
206
206
|
__e(`+Ye+`) +
|
|
207
207
|
'`),xn&&(K=!0,le+=`';
|
|
@@ -218,9 +218,9 @@ __p += '`),Ze&&(le+=`' +
|
|
|
218
218
|
function print() { __p += __j.call(arguments, '') }
|
|
219
219
|
`:`;
|
|
220
220
|
`)+le+`return __p
|
|
221
|
-
}`;var He=Db(function(){return tt(M,Ee+"return "+le).apply(n,L)});if(He.source=le,Ep(He))throw He;return He}function vk(s){return ot(s).toLowerCase()}function yk(s){return ot(s).toUpperCase()}function bk(s,l,h){if(s=ot(s),s&&(h||l===n))return Uv(s);if(!s||!(l=Vn(l)))return s;var C=Er(s),I=Er(l),M=Hv(C,I),L=Gv(C,I)+1;return ko(C,M,L).join("")}function xk(s,l,h){if(s=ot(s),s&&(h||l===n))return s.slice(0,Yv(s)+1);if(!s||!(l=Vn(l)))return s;var C=Er(s),I=Gv(C,Er(l))+1;return ko(C,0,I).join("")}function Ck(s,l,h){if(s=ot(s),s&&(h||l===n))return s.replace(ln,"");if(!s||!(l=Vn(l)))return s;var C=Er(s),I=Hv(C,Er(l));return ko(C,I).join("")}function wk(s,l){var h=q,C=U;if(Ot(l)){var I="separator"in l?l.separator:I;h="length"in l?Ue(l.length):h,C="omission"in l?Vn(l.omission):C}s=ot(s);var M=s.length;if(Yi(s)){var L=Er(s);M=L.length}if(h>=M)return s;var V=h-Ki(C);if(V<1)return C;var K=L?ko(L,0,V).join(""):s.slice(0,V);if(I===n)return K+C;if(L&&(V+=K.length-V),Tp(I)){if(s.slice(V).search(I)){var se,ae=K;for(I.global||(I=Wf(I.source,ot(Jl.exec(I))+"g")),I.lastIndex=0;se=I.exec(ae);)var le=se.index;K=K.slice(0,le===n?V:le)}}else if(s.indexOf(Vn(I),V)!=V){var be=K.lastIndexOf(I);be>-1&&(K=K.slice(0,be))}return K+C}function Sk(s){return s=ot(s),s&&Hl.test(s)?s.replace(Ul,QP):s}var Ak=ns(function(s,l,h){return s+(h?" ":"")+l.toUpperCase()}),Pp=_y("toUpperCase");function Fb(s,l,h){return s=ot(s),l=h?n:l,l===n?qP(s)?tj(s):BP(s):s.match(l)||[]}var Db=qe(function(s,l){try{return Nn(s,n,l)}catch(h){return Ep(h)?h:new Le(h)}}),Ek=ro(function(s,l){return nr(l,function(h){h=Dr(h),to(s,h,Sp(s[h],s))}),s});function Tk(s){var l=s==null?0:s.length,h=Pe();return s=l?wt(s,function(C){if(typeof C[1]!="function")throw new rr(a);return[h(C[0]),C[1]]}):[],qe(function(C){for(var I=-1;++I<l;){var M=s[I];if(Nn(M[0],this,C))return Nn(M[1],this,C)}})}function Ik(s){return Qj(ir(s,g))}function jp(s){return function(){return s}}function Ok(s,l){return s==null||s!==s?l:s}var Pk=By(),jk=By(!0);function In(s){return s}function Rp(s){return hy(typeof s=="function"?s:ir(s,g))}function Rk(s){return my(ir(s,g))}function Mk(s,l){return vy(s,ir(l,g))}var kk=qe(function(s,l){return function(h){return ba(h,s,l)}}),Fk=qe(function(s,l){return function(h){return ba(s,h,l)}});function Mp(s,l,h){var C=Xt(l),I=wc(l,C);h==null&&!(Ot(l)&&(I.length||!C.length))&&(h=l,l=s,s=this,I=wc(l,Xt(l)));var M=!(Ot(h)&&"chain"in h)||!!h.chain,L=io(s);return nr(I,function(V){var K=l[V];s[V]=K,L&&(s.prototype[V]=function(){var se=this.__chain__;if(M||se){var ae=s(this.__wrapped__),le=ae.__actions__=An(this.__actions__);return le.push({func:K,args:arguments,thisArg:s}),ae.__chain__=se,ae}return K.apply(s,Io([this.value()],arguments))})}),s}function Dk(){return Qt._===this&&(Qt._=aj),this}function kp(){}function _k(s){return s=Ue(s),qe(function(l){return yy(l,s)})}var Lk=up(wt),Bk=up(Nv),Nk=up(Df);function _b(s){return vp(s)?_f(Dr(s)):gR(s)}function $k(s){return function(l){return s==null?n:pi(s,l)}}var Vk=$y(),Wk=$y(!0);function Fp(){return[]}function Dp(){return!1}function zk(){return{}}function Uk(){return""}function Hk(){return!0}function Gk(s,l){if(s=Ue(s),s<1||s>$)return[];var h=J,C=cn(s,J);l=Pe(l),s-=J;for(var I=Nf(C,l);++h<s;)l(h);return I}function qk(s){return Ve(s)?wt(s,Dr):Wn(s)?[s]:An(nb(ot(s)))}function Yk(s){var l=++ij;return ot(s)+l}var Kk=Oc(function(s,l){return s+l},0),Xk=dp("ceil"),Zk=Oc(function(s,l){return s/l},1),Qk=dp("floor");function Jk(s){return s&&s.length?Cc(s,In,Xf):n}function e5(s,l){return s&&s.length?Cc(s,Pe(l,2),Xf):n}function t5(s){return Wv(s,In)}function n5(s,l){return Wv(s,Pe(l,2))}function r5(s){return s&&s.length?Cc(s,In,ep):n}function o5(s,l){return s&&s.length?Cc(s,Pe(l,2),ep):n}var i5=Oc(function(s,l){return s*l},1),s5=dp("round"),a5=Oc(function(s,l){return s-l},0);function l5(s){return s&&s.length?Bf(s,In):0}function c5(s,l){return s&&s.length?Bf(s,Pe(l,2)):0}return R.after=R4,R.ary=pb,R.assign=yM,R.assignIn=Ib,R.assignInWith=Vc,R.assignWith=bM,R.at=xM,R.before=hb,R.bind=Sp,R.bindAll=Ek,R.bindKey=gb,R.castArray=z4,R.chain=ub,R.chunk=QR,R.compact=JR,R.concat=e3,R.cond=Tk,R.conforms=Ik,R.constant=jp,R.countBy=l4,R.create=CM,R.curry=mb,R.curryRight=vb,R.debounce=yb,R.defaults=wM,R.defaultsDeep=SM,R.defer=M4,R.delay=k4,R.difference=t3,R.differenceBy=n3,R.differenceWith=r3,R.drop=o3,R.dropRight=i3,R.dropRightWhile=s3,R.dropWhile=a3,R.fill=l3,R.filter=u4,R.flatMap=p4,R.flatMapDeep=h4,R.flatMapDepth=g4,R.flatten=sb,R.flattenDeep=c3,R.flattenDepth=u3,R.flip=F4,R.flow=Pk,R.flowRight=jk,R.fromPairs=d3,R.functions=jM,R.functionsIn=RM,R.groupBy=m4,R.initial=p3,R.intersection=h3,R.intersectionBy=g3,R.intersectionWith=m3,R.invert=kM,R.invertBy=FM,R.invokeMap=y4,R.iteratee=Rp,R.keyBy=b4,R.keys=Xt,R.keysIn=Tn,R.map=Dc,R.mapKeys=_M,R.mapValues=LM,R.matches=Rk,R.matchesProperty=Mk,R.memoize=Lc,R.merge=BM,R.mergeWith=Ob,R.method=kk,R.methodOf=Fk,R.mixin=Mp,R.negate=Bc,R.nthArg=_k,R.omit=NM,R.omitBy=$M,R.once=D4,R.orderBy=x4,R.over=Lk,R.overArgs=_4,R.overEvery=Bk,R.overSome=Nk,R.partial=Ap,R.partialRight=bb,R.partition=C4,R.pick=VM,R.pickBy=Pb,R.property=_b,R.propertyOf=$k,R.pull=x3,R.pullAll=lb,R.pullAllBy=C3,R.pullAllWith=w3,R.pullAt=S3,R.range=Vk,R.rangeRight=Wk,R.rearg=L4,R.reject=A4,R.remove=A3,R.rest=B4,R.reverse=Cp,R.sampleSize=T4,R.set=zM,R.setWith=UM,R.shuffle=I4,R.slice=E3,R.sortBy=j4,R.sortedUniq=M3,R.sortedUniqBy=k3,R.split=pk,R.spread=N4,R.tail=F3,R.take=D3,R.takeRight=_3,R.takeRightWhile=L3,R.takeWhile=B3,R.tap=J3,R.throttle=$4,R.thru=Fc,R.toArray=Ab,R.toPairs=jb,R.toPairsIn=Rb,R.toPath=qk,R.toPlainObject=Tb,R.transform=HM,R.unary=V4,R.union=N3,R.unionBy=$3,R.unionWith=V3,R.uniq=W3,R.uniqBy=z3,R.uniqWith=U3,R.unset=GM,R.unzip=wp,R.unzipWith=cb,R.update=qM,R.updateWith=YM,R.values=is,R.valuesIn=KM,R.without=H3,R.words=Fb,R.wrap=W4,R.xor=G3,R.xorBy=q3,R.xorWith=Y3,R.zip=K3,R.zipObject=X3,R.zipObjectDeep=Z3,R.zipWith=Q3,R.entries=jb,R.entriesIn=Rb,R.extend=Ib,R.extendWith=Vc,Mp(R,R),R.add=Kk,R.attempt=Db,R.camelCase=JM,R.capitalize=Mb,R.ceil=Xk,R.clamp=XM,R.clone=U4,R.cloneDeep=G4,R.cloneDeepWith=q4,R.cloneWith=H4,R.conformsTo=Y4,R.deburr=kb,R.defaultTo=Ok,R.divide=Zk,R.endsWith=ek,R.eq=Ir,R.escape=tk,R.escapeRegExp=nk,R.every=c4,R.find=d4,R.findIndex=ob,R.findKey=AM,R.findLast=f4,R.findLastIndex=ib,R.findLastKey=EM,R.floor=Qk,R.forEach=db,R.forEachRight=fb,R.forIn=TM,R.forInRight=IM,R.forOwn=OM,R.forOwnRight=PM,R.get=Ip,R.gt=K4,R.gte=X4,R.has=MM,R.hasIn=Op,R.head=ab,R.identity=In,R.includes=v4,R.indexOf=f3,R.inRange=ZM,R.invoke=DM,R.isArguments=mi,R.isArray=Ve,R.isArrayBuffer=Z4,R.isArrayLike=En,R.isArrayLikeObject=Dt,R.isBoolean=Q4,R.isBuffer=Fo,R.isDate=J4,R.isElement=eM,R.isEmpty=tM,R.isEqual=nM,R.isEqualWith=rM,R.isError=Ep,R.isFinite=oM,R.isFunction=io,R.isInteger=xb,R.isLength=Nc,R.isMap=Cb,R.isMatch=iM,R.isMatchWith=sM,R.isNaN=aM,R.isNative=lM,R.isNil=uM,R.isNull=cM,R.isNumber=wb,R.isObject=Ot,R.isObjectLike=jt,R.isPlainObject=Ea,R.isRegExp=Tp,R.isSafeInteger=dM,R.isSet=Sb,R.isString=$c,R.isSymbol=Wn,R.isTypedArray=os,R.isUndefined=fM,R.isWeakMap=pM,R.isWeakSet=hM,R.join=v3,R.kebabCase=rk,R.last=ar,R.lastIndexOf=y3,R.lowerCase=ok,R.lowerFirst=ik,R.lt=gM,R.lte=mM,R.max=Jk,R.maxBy=e5,R.mean=t5,R.meanBy=n5,R.min=r5,R.minBy=o5,R.stubArray=Fp,R.stubFalse=Dp,R.stubObject=zk,R.stubString=Uk,R.stubTrue=Hk,R.multiply=i5,R.nth=b3,R.noConflict=Dk,R.noop=kp,R.now=_c,R.pad=sk,R.padEnd=ak,R.padStart=lk,R.parseInt=ck,R.random=QM,R.reduce=w4,R.reduceRight=S4,R.repeat=uk,R.replace=dk,R.result=WM,R.round=s5,R.runInContext=G,R.sample=E4,R.size=O4,R.snakeCase=fk,R.some=P4,R.sortedIndex=T3,R.sortedIndexBy=I3,R.sortedIndexOf=O3,R.sortedLastIndex=P3,R.sortedLastIndexBy=j3,R.sortedLastIndexOf=R3,R.startCase=hk,R.startsWith=gk,R.subtract=a5,R.sum=l5,R.sumBy=c5,R.template=mk,R.times=Gk,R.toFinite=so,R.toInteger=Ue,R.toLength=Eb,R.toLower=vk,R.toNumber=lr,R.toSafeInteger=vM,R.toString=ot,R.toUpper=yk,R.trim=bk,R.trimEnd=xk,R.trimStart=Ck,R.truncate=wk,R.unescape=Sk,R.uniqueId=Yk,R.upperCase=Ak,R.upperFirst=Pp,R.each=db,R.eachRight=fb,R.first=ab,Mp(R,function(){var s={};return kr(R,function(l,h){ct.call(R.prototype,h)||(s[h]=l)}),s}(),{chain:!1}),R.VERSION=r,nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){R[s].placeholder=R}),nr(["drop","take"],function(s,l){Xe.prototype[s]=function(h){h=h===n?1:Yt(Ue(h),0);var C=this.__filtered__&&!l?new Xe(this):this.clone();return C.__filtered__?C.__takeCount__=cn(h,C.__takeCount__):C.__views__.push({size:cn(h,J),type:s+(C.__dir__<0?"Right":"")}),C},Xe.prototype[s+"Right"]=function(h){return this.reverse()[s](h).reverse()}}),nr(["filter","map","takeWhile"],function(s,l){var h=l+1,C=h==Y||h==N;Xe.prototype[s]=function(I){var M=this.clone();return M.__iteratees__.push({iteratee:Pe(I,3),type:h}),M.__filtered__=M.__filtered__||C,M}}),nr(["head","last"],function(s,l){var h="take"+(l?"Right":"");Xe.prototype[s]=function(){return this[h](1).value()[0]}}),nr(["initial","tail"],function(s,l){var h="drop"+(l?"":"Right");Xe.prototype[s]=function(){return this.__filtered__?new Xe(this):this[h](1)}}),Xe.prototype.compact=function(){return this.filter(In)},Xe.prototype.find=function(s){return this.filter(s).head()},Xe.prototype.findLast=function(s){return this.reverse().find(s)},Xe.prototype.invokeMap=qe(function(s,l){return typeof s=="function"?new Xe(this):this.map(function(h){return ba(h,s,l)})}),Xe.prototype.reject=function(s){return this.filter(Bc(Pe(s)))},Xe.prototype.slice=function(s,l){s=Ue(s);var h=this;return h.__filtered__&&(s>0||l<0)?new Xe(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),l!==n&&(l=Ue(l),h=l<0?h.dropRight(-l):h.take(l-s)),h)},Xe.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Xe.prototype.toArray=function(){return this.take(J)},kr(Xe.prototype,function(s,l){var h=/^(?:filter|find|map|reject)|While$/.test(l),C=/^(?:head|last)$/.test(l),I=R[C?"take"+(l=="last"?"Right":""):l],M=C||/^find/.test(l);I&&(R.prototype[l]=function(){var L=this.__wrapped__,V=C?[1]:arguments,K=L instanceof Xe,se=V[0],ae=K||Ve(L),le=function(Ye){var Ze=I.apply(R,Io([Ye],V));return C&&be?Ze[0]:Ze};ae&&h&&typeof se=="function"&&se.length!=1&&(K=ae=!1);var be=this.__chain__,Ee=!!this.__actions__.length,je=M&&!be,He=K&&!Ee;if(!M&&ae){L=He?L:new Xe(this);var Re=s.apply(L,V);return Re.__actions__.push({func:Fc,args:[le],thisArg:n}),new or(Re,be)}return je&&He?s.apply(this,V):(Re=this.thru(le),je?C?Re.value()[0]:Re.value():Re)})}),nr(["pop","push","shift","sort","splice","unshift"],function(s){var l=sc[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",C=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var I=arguments;if(C&&!this.__chain__){var M=this.value();return l.apply(Ve(M)?M:[],I)}return this[h](function(L){return l.apply(Ve(L)?L:[],I)})}}),kr(Xe.prototype,function(s,l){var h=R[l];if(h){var C=h.name+"";ct.call(Ji,C)||(Ji[C]=[]),Ji[C].push({name:l,func:h})}}),Ji[Ic(n,T).name]=[{name:"wrapper",func:n}],Xe.prototype.clone=Sj,Xe.prototype.reverse=Aj,Xe.prototype.value=Ej,R.prototype.at=e4,R.prototype.chain=t4,R.prototype.commit=n4,R.prototype.next=r4,R.prototype.plant=i4,R.prototype.reverse=s4,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=a4,R.prototype.first=R.prototype.head,fa&&(R.prototype[fa]=o4),R},Xi=nj();li?((li.exports=Xi)._=Xi,Rf._=Xi):Qt._=Xi}).call(wn)})(sd,sd.exports);var Ke=sd.exports;const ee=Yr(Ke),vJ=["e-","entities/"];function yJ(e){let t=e;return vJ.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function bJ(e,t){var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"}function xJ(e,t){const n=yJ(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function hg(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=hg(o.children,t),n))return n}return n}function m2(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&bJ(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=m2(i.children,t),r))return r}return r}function v2(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=v2(o.children,t),n))return n}return n}function y2(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(y2)),e.children&&e.children.length>0):!1}function b2(e){return e.children&&e.children.forEach(t=>{t.parent=e,b2(t)}),e}function CJ(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(v=>i(v)),g}const a=Object.keys(t);function c(g,v){return g.children&&(g.children=g.children.filter(y=>{if(y.resource===!1){const b=y.roles||[];return!!(b.length===0||b.some(x=>o.includes(x)))}return y.type==="item"?v.includes(y.id):(c(y,v),y.children&&y.children.length>0)})),g}const u=ee.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>c(g,a)),d=Object.values(t).map(g=>{var v;return((v=g.options)==null?void 0:v.group)||"admin"}).filter((g,v,y)=>y.indexOf(g)===v).filter(g=>g!==void 0&&v2(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:We.AntDesignOutlined,children:[]})),p=[...u,...d];return Object.values(t).forEach(g=>{var j,E,P,O;const v=m2(p,g),y=(j=v==null?void 0:v.children)==null?void 0:j.find(k=>k.id===g.name),b=(E=v==null?void 0:v.children)==null?void 0:E.some(k=>k.id===g.name),x=(y==null?void 0:y.roles)||((P=g.options)==null?void 0:P.roles)||[],w=!x||x.length===0||x.some(k=>o.includes(k));if(!xJ(g,n)||g.list||!w){b&&v&&v.children&&((O=v==null?void 0:v.children)==null?void 0:O.length)>0&&(v.children=v.children.filter(k=>k.id!==g.name));return}v&&(v.children||(v.children=[]))}),p.filter(y2).map(b2)}function Da(){throw new Error("Not implemented")}const x2={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:Da,openDrawer:Da,activeID:Da,hasError:Da,setMenu:Da},C2=A.createContext(x2);function w2({menu:e,children:t}){const[n,r]=A.useState({...x2,menu:e});function o(d){r(p=>({...p,menu:d}))}function i(d){r(p=>({...p,openItem:d}))}function a(d){r(p=>({...p,selectedID:d}))}function c(d){r(p=>({...p,drawerOpen:d}))}function u(d){r(p=>({...p,error:d}))}return A.useEffect(()=>{o(e)},[e]),f.jsx(C2.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:c,activeID:a,hasError:u},children:t})}function sf(){return A.useContext(C2)}function O0(){const e=Z.useResourceDefinitions(),{isLoading:t,data:n}=Z.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=Z.usePermissions(r),{menu:i}=sf(),a=Z.useTranslate(),c=A.useMemo(()=>{if(t||!n)return null;const p=((n==null?void 0:n.roles)||[]).map(v=>v.id);return CJ(i,e,o,a,p)},[t,n,e,o,a,i]),u=A.useMemo(()=>t,[t]);function d(p){if(c)return hg(c,p)}return{menu:c,isLoading:u,getItem:d,findInMenu:u?()=>{}:hg}}function S2(){const e=Z.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=O0(),{pathname:o}=Di.useLocation();return A.useMemo(()=>{var v;const i=o.split("/").filter(y=>y),a=ee.cloneDeep(n);let c=o,u=r(a,o);if((!u||u.type==="collapse"||u.type==="group")&&(u=r(a,i[i.length-1]),c=u?u.id:c),!u||u.type==="collapse"||u.type==="group")for(let y=i.length;y>=0;y--){const b=i.slice(0,y).join("/");if(u=r(a,b),u){c=u.id;break}}const d=(v=u==null?void 0:u.url)==null?void 0:v.split("/"),p=(d==null?void 0:d.length)||0;if(i.length>=p){const y=i[i.length-1];if(u){const b=y==="create"||o===u.url?"create":"edit",x=`resources.${c}.breadcrumbs.${b}`,w={id:`${c}-${b}`,type:"item",title:e(x,{_:e(x,{_:x})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(w),u=w}}let g=[];if(u){let y={...u,last:!0};for(;y;)g.push(y),y=y.parent;g=g.reverse()}return{isLoading:t,navigation:{items:a},breadcrumbs:g}},[t,o,n,r,e])}function pl(){return sf()}function Mr(e,t,n){const r=ee.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(a=>ee.isFunction(a)?a:void 0).value();n!=null&&n.defaults?ee.defaultsDeep(r,t):ee.merge(r,t);const[o,i]=A.useState(r);return A.useEffect(()=>{ee.isEqual(o,r)||i(r)},[o,r]),o}function wJ(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function Wi(e){this._maxSize=e,this.clear()}Wi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Wi.prototype.get=function(e){return this._values[e]};Wi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var SJ=/[^.^\]^[]+|(?=\[\]|\.\.)/g,A2=/^\d+$/,AJ=/^\d/,EJ=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,TJ=/^\s*(['"]?)(.*?)(\1)\s*$/,P0=512,VC=new Wi(P0),WC=new Wi(P0),zC=new Wi(P0),ki={Cache:Wi,split:gg,normalizePath:mh,setter:function(e){var t=mh(e);return WC.get(e)||WC.set(e,function(r,o){for(var i=0,a=t.length,c=r;i<a-1;){var u=t[i];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;c=c[t[i++]]}c[t[i]]=o})},getter:function(e,t){var n=mh(e);return zC.get(e)||zC.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(j0(n)||A2.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){IJ(Array.isArray(e)?e:gg(e),t,n)}};function mh(e){return VC.get(e)||VC.set(e,gg(e).map(function(t){return t.replace(TJ,"$2")}))}function gg(e){return e.match(SJ)||[""]}function IJ(e,t,n){var r=e.length,o,i,a,c;for(i=0;i<r;i++)o=e[i],o&&(jJ(o)&&(o='"'+o+'"'),c=j0(o),a=!c&&/^\d+$/.test(o),t.call(n,o,c,a,i,e))}function j0(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function OJ(e){return e.match(AJ)&&!e.match(A2)}function PJ(e){return EJ.test(e)}function jJ(e){return!j0(e)&&(OJ(e)||PJ(e))}const RJ=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,af=e=>e.match(RJ)||[],lf=e=>e[0].toUpperCase()+e.slice(1),R0=(e,t)=>af(e).join(t).toLowerCase(),E2=e=>af(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),MJ=e=>lf(E2(e)),kJ=e=>R0(e,"_"),FJ=e=>R0(e,"-"),DJ=e=>lf(R0(e," ")),_J=e=>af(e).map(lf).join(" ");var vh={words:af,upperFirst:lf,camelCase:E2,pascalCase:MJ,snakeCase:kJ,kebabCase:FJ,sentenceCase:DJ,titleCase:_J},M0={exports:{}};M0.exports=function(e){return T2(LJ(e),e)};M0.exports.array=T2;function T2(e,t){var n=e.length,r=new Array(n),o={},i=n,a=BJ(t),c=NJ(e);for(t.forEach(function(d){if(!c.has(d[0])||!c.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||u(e[i],i,new Set);return r;function u(d,p,g){if(g.has(d)){var v;try{v=", node was:"+JSON.stringify(d)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!c.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!o[p]){o[p]=!0;var y=a.get(d)||new Set;if(y=Array.from(y),p=y.length){g.add(d);do{var b=y[--p];u(b,c.get(b),g)}while(p);g.delete(d)}r[--n]=d}}}function LJ(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function BJ(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function NJ(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var $J=M0.exports;const VJ=Yr($J),WJ=Object.prototype.toString,zJ=Error.prototype.toString,UJ=RegExp.prototype.toString,HJ=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",GJ=/^Symbol\((.*)\)(.*)$/;function qJ(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function UC(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return qJ(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return HJ.call(e).replace(GJ,"Symbol($1)");const r=WJ.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+zJ.call(e)+"]":r==="RegExp"?UJ.call(e):null}function Yo(e,t){let n=UC(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=UC(this[r],t);return i!==null?i:o},2)}function I2(e){return e==null?[]:[].concat(e)}let O2,P2,j2,YJ=/\$\{\s*(\w+)\s*\}/g;O2=Symbol.toStringTag;class HC{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[O2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],I2(t).forEach(i=>{if(Rn.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}P2=Symbol.hasInstance;j2=Symbol.toStringTag;class Rn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(YJ,(o,i)=>Yo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new HC(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[j2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Rn)}static[P2](t){return HC[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Lr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Yo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Yo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Yo(n,!0)}\``+o}},jn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Vo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},mg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},KJ={isValue:"${path} field must be ${value}"},Cu={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},XJ={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},ZJ={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Yo(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Yo(n,!0)}\``}return Rn.formatError(Lr.notType,e)}};Object.assign(Object.create(null),{mixed:Lr,string:jn,number:Vo,date:mg,object:Cu,array:XJ,boolean:KJ,tuple:ZJ});const k0=e=>e&&e.__isYupSchema__;class ad{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ad(t,(c,u)=>{var d;let p=a(...c)?o:i;return(d=p==null?void 0:p(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!k0(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const ou={context:"$",value:"."};class zi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ou.context,this.isValue=this.key[0]===ou.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ou.context:this.isValue?ou.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ki.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}zi.prototype.__isYupRef=!0;const mo=e=>e==null;function fs(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},c,u){const{name:d,test:p,params:g,message:v,skipAbsent:y}=e;let{parent:b,context:x,abortEarly:w=a.spec.abortEarly,disableStackTrace:T=a.spec.disableStackTrace}=o;function j(U){return zi.isRef(U)?U.getValue(n,b,x):U}function E(U={}){const ne=Object.assign({value:n,originalValue:i,label:a.spec.label,path:U.path||r,spec:a.spec,disableStackTrace:U.disableStackTrace||T},g,U.params);for(const Y of Object.keys(ne))ne[Y]=j(ne[Y]);const te=new Rn(Rn.formatError(U.message||v,ne),n,ne.path,U.type||d,ne.disableStackTrace);return te.params=ne,te}const P=w?c:u;let O={path:r,parent:b,type:d,from:o.from,createError:E,resolve:j,options:o,originalValue:i,schema:a};const k=U=>{Rn.isError(U)?P(U):U?u(null):P(E())},F=U=>{Rn.isError(U)?P(U):c(U)};if(y&&mo(n))return k(!0);let H;try{var q;if(H=p.call(O,n,O),typeof((q=H)==null?void 0:q.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(H).then(k,F)}}catch(U){F(U);return}k(H)}return t.OPTIONS=e,t}function QJ(e,t,n,r=n){let o,i,a;return t?(ki.forEach(t,(c,u,d)=>{let p=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",v=d?parseInt(p,10):0;if(e.innerType||g){if(g&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[v],e=g?e.spec.types[v]:e.innerType}if(!d){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}i=p,a=u?"["+c+"]":"."+c}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class ld extends Set{describe(){const t=[];for(const n of this.values())t.push(zi.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new ld(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Os(e,t=new Map){if(k0(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Os(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Os(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Os(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Os(o,t)}else throw Error(`Unable to clone ${e}`);return n}class xr{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ld,this._blacklist=new ld,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Lr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Os(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&mo(i))return i;let a=Yo(t),c=Yo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
221
|
+
}`;var He=Db(function(){return tt(M,Ee+"return "+le).apply(n,L)});if(He.source=le,Ep(He))throw He;return He}function vk(s){return ot(s).toLowerCase()}function yk(s){return ot(s).toUpperCase()}function bk(s,l,h){if(s=ot(s),s&&(h||l===n))return Uv(s);if(!s||!(l=Vn(l)))return s;var C=Er(s),I=Er(l),M=Hv(C,I),L=Gv(C,I)+1;return ko(C,M,L).join("")}function xk(s,l,h){if(s=ot(s),s&&(h||l===n))return s.slice(0,Yv(s)+1);if(!s||!(l=Vn(l)))return s;var C=Er(s),I=Gv(C,Er(l))+1;return ko(C,0,I).join("")}function Ck(s,l,h){if(s=ot(s),s&&(h||l===n))return s.replace(ln,"");if(!s||!(l=Vn(l)))return s;var C=Er(s),I=Hv(C,Er(l));return ko(C,I).join("")}function wk(s,l){var h=q,C=U;if(Ot(l)){var I="separator"in l?l.separator:I;h="length"in l?Ue(l.length):h,C="omission"in l?Vn(l.omission):C}s=ot(s);var M=s.length;if(Ki(s)){var L=Er(s);M=L.length}if(h>=M)return s;var V=h-Xi(C);if(V<1)return C;var K=L?ko(L,0,V).join(""):s.slice(0,V);if(I===n)return K+C;if(L&&(V+=K.length-V),Tp(I)){if(s.slice(V).search(I)){var se,ae=K;for(I.global||(I=Wf(I.source,ot(Jl.exec(I))+"g")),I.lastIndex=0;se=I.exec(ae);)var le=se.index;K=K.slice(0,le===n?V:le)}}else if(s.indexOf(Vn(I),V)!=V){var be=K.lastIndexOf(I);be>-1&&(K=K.slice(0,be))}return K+C}function Sk(s){return s=ot(s),s&&Hl.test(s)?s.replace(Ul,QP):s}var Ak=rs(function(s,l,h){return s+(h?" ":"")+l.toUpperCase()}),Pp=_y("toUpperCase");function Fb(s,l,h){return s=ot(s),l=h?n:l,l===n?qP(s)?tj(s):BP(s):s.match(l)||[]}var Db=qe(function(s,l){try{return Nn(s,n,l)}catch(h){return Ep(h)?h:new Le(h)}}),Ek=ro(function(s,l){return nr(l,function(h){h=Dr(h),to(s,h,Sp(s[h],s))}),s});function Tk(s){var l=s==null?0:s.length,h=Pe();return s=l?wt(s,function(C){if(typeof C[1]!="function")throw new rr(a);return[h(C[0]),C[1]]}):[],qe(function(C){for(var I=-1;++I<l;){var M=s[I];if(Nn(M[0],this,C))return Nn(M[1],this,C)}})}function Ik(s){return Qj(ir(s,g))}function jp(s){return function(){return s}}function Ok(s,l){return s==null||s!==s?l:s}var Pk=By(),jk=By(!0);function In(s){return s}function Rp(s){return hy(typeof s=="function"?s:ir(s,g))}function Rk(s){return my(ir(s,g))}function Mk(s,l){return vy(s,ir(l,g))}var kk=qe(function(s,l){return function(h){return ba(h,s,l)}}),Fk=qe(function(s,l){return function(h){return ba(s,h,l)}});function Mp(s,l,h){var C=Xt(l),I=wc(l,C);h==null&&!(Ot(l)&&(I.length||!C.length))&&(h=l,l=s,s=this,I=wc(l,Xt(l)));var M=!(Ot(h)&&"chain"in h)||!!h.chain,L=io(s);return nr(I,function(V){var K=l[V];s[V]=K,L&&(s.prototype[V]=function(){var se=this.__chain__;if(M||se){var ae=s(this.__wrapped__),le=ae.__actions__=An(this.__actions__);return le.push({func:K,args:arguments,thisArg:s}),ae.__chain__=se,ae}return K.apply(s,Io([this.value()],arguments))})}),s}function Dk(){return Qt._===this&&(Qt._=aj),this}function kp(){}function _k(s){return s=Ue(s),qe(function(l){return yy(l,s)})}var Lk=up(wt),Bk=up(Nv),Nk=up(Df);function _b(s){return vp(s)?_f(Dr(s)):gR(s)}function $k(s){return function(l){return s==null?n:pi(s,l)}}var Vk=$y(),Wk=$y(!0);function Fp(){return[]}function Dp(){return!1}function zk(){return{}}function Uk(){return""}function Hk(){return!0}function Gk(s,l){if(s=Ue(s),s<1||s>$)return[];var h=J,C=cn(s,J);l=Pe(l),s-=J;for(var I=Nf(C,l);++h<s;)l(h);return I}function qk(s){return Ve(s)?wt(s,Dr):Wn(s)?[s]:An(nb(ot(s)))}function Yk(s){var l=++ij;return ot(s)+l}var Kk=Oc(function(s,l){return s+l},0),Xk=dp("ceil"),Zk=Oc(function(s,l){return s/l},1),Qk=dp("floor");function Jk(s){return s&&s.length?Cc(s,In,Xf):n}function e5(s,l){return s&&s.length?Cc(s,Pe(l,2),Xf):n}function t5(s){return Wv(s,In)}function n5(s,l){return Wv(s,Pe(l,2))}function r5(s){return s&&s.length?Cc(s,In,ep):n}function o5(s,l){return s&&s.length?Cc(s,Pe(l,2),ep):n}var i5=Oc(function(s,l){return s*l},1),s5=dp("round"),a5=Oc(function(s,l){return s-l},0);function l5(s){return s&&s.length?Bf(s,In):0}function c5(s,l){return s&&s.length?Bf(s,Pe(l,2)):0}return R.after=R4,R.ary=pb,R.assign=yM,R.assignIn=Ib,R.assignInWith=Vc,R.assignWith=bM,R.at=xM,R.before=hb,R.bind=Sp,R.bindAll=Ek,R.bindKey=gb,R.castArray=z4,R.chain=ub,R.chunk=QR,R.compact=JR,R.concat=e3,R.cond=Tk,R.conforms=Ik,R.constant=jp,R.countBy=l4,R.create=CM,R.curry=mb,R.curryRight=vb,R.debounce=yb,R.defaults=wM,R.defaultsDeep=SM,R.defer=M4,R.delay=k4,R.difference=t3,R.differenceBy=n3,R.differenceWith=r3,R.drop=o3,R.dropRight=i3,R.dropRightWhile=s3,R.dropWhile=a3,R.fill=l3,R.filter=u4,R.flatMap=p4,R.flatMapDeep=h4,R.flatMapDepth=g4,R.flatten=sb,R.flattenDeep=c3,R.flattenDepth=u3,R.flip=F4,R.flow=Pk,R.flowRight=jk,R.fromPairs=d3,R.functions=jM,R.functionsIn=RM,R.groupBy=m4,R.initial=p3,R.intersection=h3,R.intersectionBy=g3,R.intersectionWith=m3,R.invert=kM,R.invertBy=FM,R.invokeMap=y4,R.iteratee=Rp,R.keyBy=b4,R.keys=Xt,R.keysIn=Tn,R.map=Dc,R.mapKeys=_M,R.mapValues=LM,R.matches=Rk,R.matchesProperty=Mk,R.memoize=Lc,R.merge=BM,R.mergeWith=Ob,R.method=kk,R.methodOf=Fk,R.mixin=Mp,R.negate=Bc,R.nthArg=_k,R.omit=NM,R.omitBy=$M,R.once=D4,R.orderBy=x4,R.over=Lk,R.overArgs=_4,R.overEvery=Bk,R.overSome=Nk,R.partial=Ap,R.partialRight=bb,R.partition=C4,R.pick=VM,R.pickBy=Pb,R.property=_b,R.propertyOf=$k,R.pull=x3,R.pullAll=lb,R.pullAllBy=C3,R.pullAllWith=w3,R.pullAt=S3,R.range=Vk,R.rangeRight=Wk,R.rearg=L4,R.reject=A4,R.remove=A3,R.rest=B4,R.reverse=Cp,R.sampleSize=T4,R.set=zM,R.setWith=UM,R.shuffle=I4,R.slice=E3,R.sortBy=j4,R.sortedUniq=M3,R.sortedUniqBy=k3,R.split=pk,R.spread=N4,R.tail=F3,R.take=D3,R.takeRight=_3,R.takeRightWhile=L3,R.takeWhile=B3,R.tap=J3,R.throttle=$4,R.thru=Fc,R.toArray=Ab,R.toPairs=jb,R.toPairsIn=Rb,R.toPath=qk,R.toPlainObject=Tb,R.transform=HM,R.unary=V4,R.union=N3,R.unionBy=$3,R.unionWith=V3,R.uniq=W3,R.uniqBy=z3,R.uniqWith=U3,R.unset=GM,R.unzip=wp,R.unzipWith=cb,R.update=qM,R.updateWith=YM,R.values=ss,R.valuesIn=KM,R.without=H3,R.words=Fb,R.wrap=W4,R.xor=G3,R.xorBy=q3,R.xorWith=Y3,R.zip=K3,R.zipObject=X3,R.zipObjectDeep=Z3,R.zipWith=Q3,R.entries=jb,R.entriesIn=Rb,R.extend=Ib,R.extendWith=Vc,Mp(R,R),R.add=Kk,R.attempt=Db,R.camelCase=JM,R.capitalize=Mb,R.ceil=Xk,R.clamp=XM,R.clone=U4,R.cloneDeep=G4,R.cloneDeepWith=q4,R.cloneWith=H4,R.conformsTo=Y4,R.deburr=kb,R.defaultTo=Ok,R.divide=Zk,R.endsWith=ek,R.eq=Ir,R.escape=tk,R.escapeRegExp=nk,R.every=c4,R.find=d4,R.findIndex=ob,R.findKey=AM,R.findLast=f4,R.findLastIndex=ib,R.findLastKey=EM,R.floor=Qk,R.forEach=db,R.forEachRight=fb,R.forIn=TM,R.forInRight=IM,R.forOwn=OM,R.forOwnRight=PM,R.get=Ip,R.gt=K4,R.gte=X4,R.has=MM,R.hasIn=Op,R.head=ab,R.identity=In,R.includes=v4,R.indexOf=f3,R.inRange=ZM,R.invoke=DM,R.isArguments=mi,R.isArray=Ve,R.isArrayBuffer=Z4,R.isArrayLike=En,R.isArrayLikeObject=Dt,R.isBoolean=Q4,R.isBuffer=Fo,R.isDate=J4,R.isElement=eM,R.isEmpty=tM,R.isEqual=nM,R.isEqualWith=rM,R.isError=Ep,R.isFinite=oM,R.isFunction=io,R.isInteger=xb,R.isLength=Nc,R.isMap=Cb,R.isMatch=iM,R.isMatchWith=sM,R.isNaN=aM,R.isNative=lM,R.isNil=uM,R.isNull=cM,R.isNumber=wb,R.isObject=Ot,R.isObjectLike=jt,R.isPlainObject=Ea,R.isRegExp=Tp,R.isSafeInteger=dM,R.isSet=Sb,R.isString=$c,R.isSymbol=Wn,R.isTypedArray=is,R.isUndefined=fM,R.isWeakMap=pM,R.isWeakSet=hM,R.join=v3,R.kebabCase=rk,R.last=ar,R.lastIndexOf=y3,R.lowerCase=ok,R.lowerFirst=ik,R.lt=gM,R.lte=mM,R.max=Jk,R.maxBy=e5,R.mean=t5,R.meanBy=n5,R.min=r5,R.minBy=o5,R.stubArray=Fp,R.stubFalse=Dp,R.stubObject=zk,R.stubString=Uk,R.stubTrue=Hk,R.multiply=i5,R.nth=b3,R.noConflict=Dk,R.noop=kp,R.now=_c,R.pad=sk,R.padEnd=ak,R.padStart=lk,R.parseInt=ck,R.random=QM,R.reduce=w4,R.reduceRight=S4,R.repeat=uk,R.replace=dk,R.result=WM,R.round=s5,R.runInContext=G,R.sample=E4,R.size=O4,R.snakeCase=fk,R.some=P4,R.sortedIndex=T3,R.sortedIndexBy=I3,R.sortedIndexOf=O3,R.sortedLastIndex=P3,R.sortedLastIndexBy=j3,R.sortedLastIndexOf=R3,R.startCase=hk,R.startsWith=gk,R.subtract=a5,R.sum=l5,R.sumBy=c5,R.template=mk,R.times=Gk,R.toFinite=so,R.toInteger=Ue,R.toLength=Eb,R.toLower=vk,R.toNumber=lr,R.toSafeInteger=vM,R.toString=ot,R.toUpper=yk,R.trim=bk,R.trimEnd=xk,R.trimStart=Ck,R.truncate=wk,R.unescape=Sk,R.uniqueId=Yk,R.upperCase=Ak,R.upperFirst=Pp,R.each=db,R.eachRight=fb,R.first=ab,Mp(R,function(){var s={};return kr(R,function(l,h){ct.call(R.prototype,h)||(s[h]=l)}),s}(),{chain:!1}),R.VERSION=r,nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){R[s].placeholder=R}),nr(["drop","take"],function(s,l){Xe.prototype[s]=function(h){h=h===n?1:Yt(Ue(h),0);var C=this.__filtered__&&!l?new Xe(this):this.clone();return C.__filtered__?C.__takeCount__=cn(h,C.__takeCount__):C.__views__.push({size:cn(h,J),type:s+(C.__dir__<0?"Right":"")}),C},Xe.prototype[s+"Right"]=function(h){return this.reverse()[s](h).reverse()}}),nr(["filter","map","takeWhile"],function(s,l){var h=l+1,C=h==Y||h==N;Xe.prototype[s]=function(I){var M=this.clone();return M.__iteratees__.push({iteratee:Pe(I,3),type:h}),M.__filtered__=M.__filtered__||C,M}}),nr(["head","last"],function(s,l){var h="take"+(l?"Right":"");Xe.prototype[s]=function(){return this[h](1).value()[0]}}),nr(["initial","tail"],function(s,l){var h="drop"+(l?"":"Right");Xe.prototype[s]=function(){return this.__filtered__?new Xe(this):this[h](1)}}),Xe.prototype.compact=function(){return this.filter(In)},Xe.prototype.find=function(s){return this.filter(s).head()},Xe.prototype.findLast=function(s){return this.reverse().find(s)},Xe.prototype.invokeMap=qe(function(s,l){return typeof s=="function"?new Xe(this):this.map(function(h){return ba(h,s,l)})}),Xe.prototype.reject=function(s){return this.filter(Bc(Pe(s)))},Xe.prototype.slice=function(s,l){s=Ue(s);var h=this;return h.__filtered__&&(s>0||l<0)?new Xe(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),l!==n&&(l=Ue(l),h=l<0?h.dropRight(-l):h.take(l-s)),h)},Xe.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Xe.prototype.toArray=function(){return this.take(J)},kr(Xe.prototype,function(s,l){var h=/^(?:filter|find|map|reject)|While$/.test(l),C=/^(?:head|last)$/.test(l),I=R[C?"take"+(l=="last"?"Right":""):l],M=C||/^find/.test(l);I&&(R.prototype[l]=function(){var L=this.__wrapped__,V=C?[1]:arguments,K=L instanceof Xe,se=V[0],ae=K||Ve(L),le=function(Ye){var Ze=I.apply(R,Io([Ye],V));return C&&be?Ze[0]:Ze};ae&&h&&typeof se=="function"&&se.length!=1&&(K=ae=!1);var be=this.__chain__,Ee=!!this.__actions__.length,je=M&&!be,He=K&&!Ee;if(!M&&ae){L=He?L:new Xe(this);var Re=s.apply(L,V);return Re.__actions__.push({func:Fc,args:[le],thisArg:n}),new or(Re,be)}return je&&He?s.apply(this,V):(Re=this.thru(le),je?C?Re.value()[0]:Re.value():Re)})}),nr(["pop","push","shift","sort","splice","unshift"],function(s){var l=sc[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",C=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var I=arguments;if(C&&!this.__chain__){var M=this.value();return l.apply(Ve(M)?M:[],I)}return this[h](function(L){return l.apply(Ve(L)?L:[],I)})}}),kr(Xe.prototype,function(s,l){var h=R[l];if(h){var C=h.name+"";ct.call(es,C)||(es[C]=[]),es[C].push({name:l,func:h})}}),es[Ic(n,T).name]=[{name:"wrapper",func:n}],Xe.prototype.clone=Sj,Xe.prototype.reverse=Aj,Xe.prototype.value=Ej,R.prototype.at=e4,R.prototype.chain=t4,R.prototype.commit=n4,R.prototype.next=r4,R.prototype.plant=i4,R.prototype.reverse=s4,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=a4,R.prototype.first=R.prototype.head,fa&&(R.prototype[fa]=o4),R},Zi=nj();li?((li.exports=Zi)._=Zi,Rf._=Zi):Qt._=Zi}).call(wn)})(sd,sd.exports);var Ke=sd.exports;const ee=Yr(Ke),vJ=["e-","entities/"];function yJ(e){let t=e;return vJ.forEach(n=>{t=t!=null&&t.startsWith(n)?t==null?void 0:t.substring(n.length):t}),t}function bJ(e,t){var n,r;return((n=t.options)==null?void 0:n.group)===e.id||!((r=t.options)!=null&&r.group)&&e.id==="admin"}function xJ(e,t){const n=yJ(e.name);return(t==null?void 0:t.includes(`${n}:list`))||(t==null?void 0:t.includes(`${n}:find`))}function hg(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=hg(o.children,t),n))return n}return n}function m2(e,t,n){let r=e.find(o=>["group","collapse"].indexOf(o.type)!==-1&&bJ(o,t));if(!r)for(let o=0;o<e.length;o++){const i=e[o];if(i.children&&(r=m2(i.children,t),r))return r}return r}function v2(e,t){let n=e.find(r=>r.id===t);if(!n)for(let r=0;r<e.length;r++){const o=e[r];if(o.children&&(n=v2(o.children,t),n))return n}return n}function y2(e){return e?e.type==="item"?!0:(e.children&&(e.children=e.children.filter(y2)),e.children&&e.children.length>0):!1}function b2(e){return e.children&&e.children.forEach(t=>{t.parent=e,b2(t)}),e}function CJ(e,t,n,r,o){function i(g){return g.title=r(g.title,{_:g.title}),g.children&&g.children.forEach(v=>i(v)),g}const a=Object.keys(t);function c(g,v){return g.children&&(g.children=g.children.filter(y=>{if(y.resource===!1){const b=y.roles||[];return!!(b.length===0||b.some(x=>o.includes(x)))}return y.type==="item"?v.includes(y.id):(c(y,v),y.children&&y.children.length>0)})),g}const u=ee.cloneDeep(e).map(g=>({children:[],...g,type:g.type||"group"})).map(i).map(g=>c(g,a)),d=Object.values(t).map(g=>{var v;return((v=g.options)==null?void 0:v.group)||"admin"}).filter((g,v,y)=>y.indexOf(g)===v).filter(g=>g!==void 0&&v2(e,g)===null).map(g=>({id:g,title:r(`ra.menu.group.${g}`),type:"group",icon:We.AntDesignOutlined,children:[]})),p=[...u,...d];return Object.values(t).forEach(g=>{var j,E,P,O;const v=m2(p,g),y=(j=v==null?void 0:v.children)==null?void 0:j.find(k=>k.id===g.name),b=(E=v==null?void 0:v.children)==null?void 0:E.some(k=>k.id===g.name),x=(y==null?void 0:y.roles)||((P=g.options)==null?void 0:P.roles)||[],w=!x||x.length===0||x.some(k=>o.includes(k));if(!xJ(g,n)||g.list||!w){b&&v&&v.children&&((O=v==null?void 0:v.children)==null?void 0:O.length)>0&&(v.children=v.children.filter(k=>k.id!==g.name));return}v&&(v.children||(v.children=[]))}),p.filter(y2).map(b2)}function Da(){throw new Error("Not implemented")}const x2={openItem:[],openComponent:"buttons",selectedID:null,drawerOpen:!1,error:null,menu:[],activeItem:Da,openDrawer:Da,activeID:Da,hasError:Da,setMenu:Da},C2=A.createContext(x2);function w2({menu:e,children:t}){const[n,r]=A.useState({...x2,menu:e});function o(d){r(p=>({...p,menu:d}))}function i(d){r(p=>({...p,openItem:d}))}function a(d){r(p=>({...p,selectedID:d}))}function c(d){r(p=>({...p,drawerOpen:d}))}function u(d){r(p=>({...p,error:d}))}return A.useEffect(()=>{o(e)},[e]),f.jsx(C2.Provider,{value:{...n,setMenu:o,activeItem:i,openDrawer:c,activeID:a,hasError:u},children:t})}function sf(){return A.useContext(C2)}function O0(){const e=Z.useResourceDefinitions(),{isLoading:t,data:n}=Z.useGetIdentity(),r=!!n&&!!n.id,{permissions:o}=Z.usePermissions(r),{menu:i}=sf(),a=Z.useTranslate(),c=A.useMemo(()=>{if(t||!n)return null;const p=((n==null?void 0:n.roles)||[]).map(v=>v.id);return CJ(i,e,o,a,p)},[t,n,e,o,a,i]),u=A.useMemo(()=>t,[t]);function d(p){if(c)return hg(c,p)}return{menu:c,isLoading:u,getItem:d,findInMenu:u?()=>{}:hg}}function S2(){const e=Z.useTranslate(),{isLoading:t,menu:n,findInMenu:r}=O0(),{pathname:o}=_i.useLocation();return A.useMemo(()=>{var v;const i=o.split("/").filter(y=>y),a=ee.cloneDeep(n);let c=o,u=r(a,o);if((!u||u.type==="collapse"||u.type==="group")&&(u=r(a,i[i.length-1]),c=u?u.id:c),!u||u.type==="collapse"||u.type==="group")for(let y=i.length;y>=0;y--){const b=i.slice(0,y).join("/");if(u=r(a,b),u){c=u.id;break}}const d=(v=u==null?void 0:u.url)==null?void 0:v.split("/"),p=(d==null?void 0:d.length)||0;if(i.length>=p){const y=i[i.length-1];if(u){const b=y==="create"||o===u.url?"create":"edit",x=`resources.${c}.breadcrumbs.${b}`,w={id:`${c}-${b}`,type:"item",title:e(x,{_:e(x,{_:x})}),url:o,breadcrumbs:!0,parent:u};u.type="collapse",u.breadcrumbs=!0,u.children=u.children||[],u.children.push(w),u=w}}let g=[];if(u){let y={...u,last:!0};for(;y;)g.push(y),y=y.parent;g=g.reverse()}return{isLoading:t,navigation:{items:a},breadcrumbs:g}},[t,o,n,r,e])}function pl(){return sf()}function Mr(e,t,n){const r=ee.chain((e==null?void 0:e.sx)??{}).cloneDeepWith(a=>ee.isFunction(a)?a:void 0).value();n!=null&&n.defaults?ee.defaultsDeep(r,t):ee.merge(r,t);const[o,i]=A.useState(r);return A.useEffect(()=>{ee.isEqual(o,r)||i(r)},[o,r]),o}function wJ(){let e=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function zi(e){this._maxSize=e,this.clear()}zi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};zi.prototype.get=function(e){return this._values[e]};zi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var SJ=/[^.^\]^[]+|(?=\[\]|\.\.)/g,A2=/^\d+$/,AJ=/^\d/,EJ=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,TJ=/^\s*(['"]?)(.*?)(\1)\s*$/,P0=512,VC=new zi(P0),WC=new zi(P0),zC=new zi(P0),Fi={Cache:zi,split:gg,normalizePath:mh,setter:function(e){var t=mh(e);return WC.get(e)||WC.set(e,function(r,o){for(var i=0,a=t.length,c=r;i<a-1;){var u=t[i];if(u==="__proto__"||u==="constructor"||u==="prototype")return r;c=c[t[i++]]}c[t[i]]=o})},getter:function(e,t){var n=mh(e);return zC.get(e)||zC.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(j0(n)||A2.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){IJ(Array.isArray(e)?e:gg(e),t,n)}};function mh(e){return VC.get(e)||VC.set(e,gg(e).map(function(t){return t.replace(TJ,"$2")}))}function gg(e){return e.match(SJ)||[""]}function IJ(e,t,n){var r=e.length,o,i,a,c;for(i=0;i<r;i++)o=e[i],o&&(jJ(o)&&(o='"'+o+'"'),c=j0(o),a=!c&&/^\d+$/.test(o),t.call(n,o,c,a,i,e))}function j0(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function OJ(e){return e.match(AJ)&&!e.match(A2)}function PJ(e){return EJ.test(e)}function jJ(e){return!j0(e)&&(OJ(e)||PJ(e))}const RJ=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,af=e=>e.match(RJ)||[],lf=e=>e[0].toUpperCase()+e.slice(1),R0=(e,t)=>af(e).join(t).toLowerCase(),E2=e=>af(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),MJ=e=>lf(E2(e)),kJ=e=>R0(e,"_"),FJ=e=>R0(e,"-"),DJ=e=>lf(R0(e," ")),_J=e=>af(e).map(lf).join(" ");var vh={words:af,upperFirst:lf,camelCase:E2,pascalCase:MJ,snakeCase:kJ,kebabCase:FJ,sentenceCase:DJ,titleCase:_J},M0={exports:{}};M0.exports=function(e){return T2(LJ(e),e)};M0.exports.array=T2;function T2(e,t){var n=e.length,r=new Array(n),o={},i=n,a=BJ(t),c=NJ(e);for(t.forEach(function(d){if(!c.has(d[0])||!c.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||u(e[i],i,new Set);return r;function u(d,p,g){if(g.has(d)){var v;try{v=", node was:"+JSON.stringify(d)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!c.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!o[p]){o[p]=!0;var y=a.get(d)||new Set;if(y=Array.from(y),p=y.length){g.add(d);do{var b=y[--p];u(b,c.get(b),g)}while(p);g.delete(d)}r[--n]=d}}}function LJ(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function BJ(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function NJ(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var $J=M0.exports;const VJ=Yr($J),WJ=Object.prototype.toString,zJ=Error.prototype.toString,UJ=RegExp.prototype.toString,HJ=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",GJ=/^Symbol\((.*)\)(.*)$/;function qJ(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function UC(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return qJ(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return HJ.call(e).replace(GJ,"Symbol($1)");const r=WJ.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+zJ.call(e)+"]":r==="RegExp"?UJ.call(e):null}function Yo(e,t){let n=UC(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=UC(this[r],t);return i!==null?i:o},2)}function I2(e){return e==null?[]:[].concat(e)}let O2,P2,j2,YJ=/\$\{\s*(\w+)\s*\}/g;O2=Symbol.toStringTag;class HC{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[O2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],I2(t).forEach(i=>{if(Rn.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}P2=Symbol.hasInstance;j2=Symbol.toStringTag;class Rn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(YJ,(o,i)=>Yo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new HC(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[j2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Rn)}static[P2](t){return HC[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Lr={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Yo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Yo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Yo(n,!0)}\``+o}},jn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Vo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},mg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},KJ={isValue:"${path} field must be ${value}"},Cu={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},XJ={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},ZJ={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Yo(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Yo(n,!0)}\``}return Rn.formatError(Lr.notType,e)}};Object.assign(Object.create(null),{mixed:Lr,string:jn,number:Vo,date:mg,object:Cu,array:XJ,boolean:KJ,tuple:ZJ});const k0=e=>e&&e.__isYupSchema__;class ad{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ad(t,(c,u)=>{var d;let p=a(...c)?o:i;return(d=p==null?void 0:p(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!k0(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const ou={context:"$",value:"."};class Ui{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ou.context,this.isValue=this.key[0]===ou.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ou.context:this.isValue?ou.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Fi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ui.prototype.__isYupRef=!0;const mo=e=>e==null;function ps(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},c,u){const{name:d,test:p,params:g,message:v,skipAbsent:y}=e;let{parent:b,context:x,abortEarly:w=a.spec.abortEarly,disableStackTrace:T=a.spec.disableStackTrace}=o;function j(U){return Ui.isRef(U)?U.getValue(n,b,x):U}function E(U={}){const ne=Object.assign({value:n,originalValue:i,label:a.spec.label,path:U.path||r,spec:a.spec,disableStackTrace:U.disableStackTrace||T},g,U.params);for(const Y of Object.keys(ne))ne[Y]=j(ne[Y]);const te=new Rn(Rn.formatError(U.message||v,ne),n,ne.path,U.type||d,ne.disableStackTrace);return te.params=ne,te}const P=w?c:u;let O={path:r,parent:b,type:d,from:o.from,createError:E,resolve:j,options:o,originalValue:i,schema:a};const k=U=>{Rn.isError(U)?P(U):U?u(null):P(E())},F=U=>{Rn.isError(U)?P(U):c(U)};if(y&&mo(n))return k(!0);let H;try{var q;if(H=p.call(O,n,O),typeof((q=H)==null?void 0:q.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(H).then(k,F)}}catch(U){F(U);return}k(H)}return t.OPTIONS=e,t}function QJ(e,t,n,r=n){let o,i,a;return t?(Fi.forEach(t,(c,u,d)=>{let p=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:o,value:n});let g=e.type==="tuple",v=d?parseInt(p,10):0;if(e.innerType||g){if(g&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&v>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[v],e=g?e.spec.types[v]:e.innerType}if(!d){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[p],e=e.fields[p]}i=p,a=u?"["+c+"]":"."+c}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class ld extends Set{describe(){const t=[];for(const n of this.values())t.push(Ui.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new ld(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Ps(e,t=new Map){if(k0(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Ps(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Ps(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ps(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Ps(o,t)}else throw Error(`Unable to clone ${e}`);return n}class xr{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ld,this._blacklist=new ld,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Lr.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ps(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&mo(i))return i;let a=Yo(t),c=Yo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
222
222
|
|
|
223
223
|
attempted value: ${a}
|
|
224
|
-
`+(c!==a?`result of cast: ${c}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let p of Object.values(this.internalTests))p&&d.push(p);this.runTests({path:i,value:u,originalValue:a,options:n,tests:d},r,p=>{if(p.length)return o(p,u);this.runTests({path:i,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:c,path:u,options:d}=t,p=x=>{o||(o=!0,n(x,a))},g=x=>{o||(o=!0,r(x,a))},v=i.length,y=[];if(!v)return g([]);let b={value:a,originalValue:c,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const w=i[x];w(b,p,function(j){j&&(Array.isArray(j)?y.push(...j):y.push(j)),--v<=0&&g(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const p=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${o||""}[${u?c:`"${c}"`}]`:(o?`${o}.`:"")+t});return(g,v,y)=>this.resolve(p)._validate(d,p,v,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,c)=>o._validate(t,n,(u,d)=>{Rn.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Rn(u,d,void 0,void 0,i)):a(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Rn.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Rn(c,t,void 0,void 0,a);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Rn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Rn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Os(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=fs({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=fs({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Lr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Lr.notNull){return this.nullability(!1,t)}required(t=Lr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Lr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=fs(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=I2(t).map(i=>new zi(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new ad(o,n):ad.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=fs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Lr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=fs({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Lr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=fs({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,p)=>p.findIndex(g=>g.name===u.name)===d)}}}xr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])xr.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=QJ(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])xr.prototype[e]=xr.prototype.oneOf;for(const e of["not","nope"])xr.prototype[e]=xr.prototype.notOneOf;const JJ=()=>!0;function R2(e){return new M2(e)}class M2 extends xr{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:JJ},t))}}R2.prototype=M2.prototype;const eee=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function tee(e){const t=vg(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function vg(e){var t,n;const r=eee.exec(e);return r?{year:uo(r[1]),month:uo(r[2],1)-1,day:uo(r[3],1),hour:uo(r[4]),minute:uo(r[5]),second:uo(r[6]),millisecond:r[7]?uo(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:uo(r[10]),minuteOffset:uo(r[11])}:null}function uo(e,t=0){return Number(e)||t}let nee=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ree=/^((https?|ftp):)?\/\/(((([a-z]|\d|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f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,oee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,iee="^\\d{4}-\\d{2}-\\d{2}",see="\\d{2}:\\d{2}:\\d{2}",aee="(([+-]\\d{2}(:?\\d{2})?)|Z)",lee=new RegExp(`${iee}T${see}(\\.\\d+)?${aee}$`),cee=e=>mo(e)||e===e.trim(),uee={}.toString();function vo(){return new k2}class k2 extends xr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===uee?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Lr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=jn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=jn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||jn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=jn.email){return this.matches(nee,{name:"email",message:t,excludeEmptyString:!0})}url(t=jn.url){return this.matches(ree,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jn.uuid){return this.matches(oee,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(lee,{name:"datetime",message:n||jn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=vg(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||jn.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=vg(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:cee})}lowercase(t=jn.lowercase){return this.transform(n=>mo(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>mo(n)||n===n.toLowerCase()})}uppercase(t=jn.uppercase){return this.transform(n=>mo(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>mo(n)||n===n.toUpperCase()})}}vo.prototype=k2.prototype;let dee=e=>e!=+e;function F2(){return new D2}class D2 extends xr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!dee(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Vo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Vo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Vo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Vo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Vo.positive){return this.moreThan(0,t)}negative(t=Vo.negative){return this.lessThan(0,t)}integer(t=Vo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>mo(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>mo(o)?o:Math[t](o))}}F2.prototype=D2.prototype;let fee=new Date(""),pee=e=>Object.prototype.toString.call(e)==="[object Date]";class cf extends xr{constructor(){super({type:"date",check(t){return pee(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=tee(t),isNaN(t)?cf.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(zi.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=mg.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=mg.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}cf.INVALID_DATE=fee;cf.prototype;function hee(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,c])=>`${a}-${c}`));function i(a,c){let u=ki.split(a)[0];r.add(u),o.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),zi.isRef(c)&&c.isSibling?i(c.path,a):k0(c)&&"deps"in c&&c.deps.forEach(u=>i(u,a))}return VJ.array(Array.from(r),n).reverse()}function GC(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function _2(e){return(t,n)=>GC(e,t)-GC(e,n)}const gee=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function wu(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=wu(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=wu(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(wu)}):"optional"in e?e.optional():e}const mee=(e,t)=>{const n=[...ki.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=ki.getter(ki.join(n),!0)(e);return!!(o&&r in o)};let qC=e=>Object.prototype.toString.call(e)==="[object Object]";function YC(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vee=_2([]);function F0(e){return new L2(e)}class L2 extends xr{constructor(t){super({type:"object",check(n){return qC(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=vee,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),p=!1;for(const g of c){let v=i[g],y=g in o;if(v){let b,x=o[g];d.path=(n.path?`${n.path}.`:"")+g,v=v.resolve({value:x,context:n.context,parent:u});let w=v instanceof xr?v.spec:void 0,T=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||g in o;continue}b=!n.__validating||!T?v.cast(o[g],d):o[g],b!==void 0&&(u[g]=b)}else y&&!a&&(u[g]=o[g]);(y!==g in u||u[g]!==o[g])&&(p=!0)}return p?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!qC(d)){o(u,d);return}a=a||d;let p=[];for(let g of this._nodes){let v=this.fields[g];!v||zi.isRef(v)||p.push(v.asNestedTest({options:n,key:g,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:p,value:d,originalValue:a,options:n},r,g=>{o(g.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=hee(t,n),r._sortErrors=_2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return wu(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=ki.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return mee(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(gee)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Cu.exact,test(n){if(n==null)return!0;const r=YC(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Cu.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=YC(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Cu.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(vh.camelCase)}snakeCase(){return this.transformKeys(vh.snakeCase)}constantCase(){return this.transformKeys(t=>vh.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let c=t;(o=c)!=null&&o.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[i]})),r.fields[i]=a.describe(c)}return r}}F0.prototype=L2.prototype;const KC=R2().test("function","Invalid function",e=>ee.isFunction(e));var zo,ji,Na;class B2{constructor(){lo(this,ji);lo(this,zo,[])}get(t){if(vo().required().validateSync(t),Ia(this,ji,Na).call(this)){const n=localStorage.getItem(t);return ee.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return vo().required().validateSync(t),Ia(this,ji,Na).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){vo().required().validateSync(t),KC.validateSync(n),Ia(this,ji,Na).call(this)&&(On(this,zo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){vo().required().validateSync(t),KC.optional().default(ee.identity).validateSync(n),Ia(this,ji,Na).call(this)&&(n!==void 0?Do(this,zo,ee.reject(On(this,zo),r=>r.key===t&&r.callback===n)):Do(this,zo,ee.reject(On(this,zo),r=>r.key===t)))}}zo=new WeakMap,ji=new WeakSet,Na=function(){return typeof window<"u"};function cd(e={},t=[],n={}){const{isEmpty:r=ee.isEmpty}=n;return!ee.some(t,o=>r((e??{})[o.locale]))}function N2(e={},t=[],n={}){const{isEmpty:r=ee.isEmpty}=n;return ee.some(t,o=>!r((e??{})[o.locale]))}function D0(e,t,n){if(!ee.isPlainObject(e)||t===void 0)return;const r=ee.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const a=ee.isArray(r.fallbackLocales)&&!ee.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=ee.chain(a).map(c=>e[String(c)]).reject(ee.isUndefined).first().value(),i===void 0&&(i=ee.chain(e).values().first().value())}return i}function uf(e=[],t){const n=ee.isArray(e)?e:[e],r=ee.filter(n,o=>A.isValidElement(o));ee.each(r,o=>{var i;t(o),uf(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}var $2={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",c="minute",u="hour",d="day",p="week",g="month",v="quarter",y="year",b="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var X=["th","st","nd","rd"],N=Y%100;return"["+Y+(X[(N-20)%10]||X[N]||X[0])+"]"}},E=function(Y,X,N){var Q=String(Y);return!Q||Q.length>=X?Y:""+Array(X+1-Q.length).join(N)+Y},P={s:E,z:function(Y){var X=-Y.utcOffset(),N=Math.abs(X),Q=Math.floor(N/60),$=N%60;return(X<=0?"+":"-")+E(Q,2,"0")+":"+E($,2,"0")},m:function Y(X,N){if(X.date()<N.date())return-Y(N,X);var Q=12*(N.year()-X.year())+(N.month()-X.month()),$=X.clone().add(Q,g),oe=N-$<0,W=X.clone().add(Q+(oe?-1:1),g);return+(-(Q+(N-$)/(oe?$-W:W-$))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:g,y,w:p,d,D:b,h:u,m:c,s:a,ms:i,Q:v}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},O="en",k={};k[O]=j;var F="$isDayjsObject",B=function(Y){return Y instanceof ne||!(!Y||!Y[F])},H=function Y(X,N,Q){var $;if(!X)return O;if(typeof X=="string"){var oe=X.toLowerCase();k[oe]&&($=oe),N&&(k[oe]=N,$=oe);var W=X.split("-");if(!$&&W.length>1)return Y(W[0])}else{var J=X.name;k[J]=X,$=J}return!Q&&$&&(O=$),$||!Q&&O},q=function(Y,X){if(B(Y))return Y.clone();var N=typeof X=="object"?X:{};return N.date=Y,N.args=arguments,new ne(N)},U=P;U.l=H,U.i=B,U.w=function(Y,X){return q(Y,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var ne=function(){function Y(N){this.$L=H(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[F]=!0}var X=Y.prototype;return X.parse=function(N){this.$d=function(Q){var $=Q.date,oe=Q.utc;if($===null)return new Date(NaN);if(U.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var W=$.match(w);if(W){var J=W[2]-1||0,ue=(W[7]||"0").substring(0,3);return oe?new Date(Date.UTC(W[1],J,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ue)):new Date(W[1],J,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ue)}}return new Date($)}(N),this.init()},X.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},X.$utils=function(){return U},X.isValid=function(){return this.$d.toString()!==x},X.isSame=function(N,Q){var $=q(N);return this.startOf(Q)<=$&&$<=this.endOf(Q)},X.isAfter=function(N,Q){return q(N)<this.startOf(Q)},X.isBefore=function(N,Q){return this.endOf(Q)<q(N)},X.$g=function(N,Q,$){return U.u(N)?this[Q]:this.set($,N)},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this.$d.getTime()},X.startOf=function(N,Q){var $=this,oe=!!U.u(Q)||Q,W=U.p(N),J=function(ve,Ce){var Te=U.w($.$u?Date.UTC($.$y,Ce,ve):new Date($.$y,Ce,ve),$);return oe?Te:Te.endOf(d)},ue=function(ve,Ce){return U.w($.toDate()[ve].apply($.toDate("s"),(oe?[0,0,0,0]:[23,59,59,999]).slice(Ce)),$)},he=this.$W,de=this.$M,pe=this.$D,ge="set"+(this.$u?"UTC":"");switch(W){case y:return oe?J(1,0):J(31,11);case g:return oe?J(1,de):J(0,de+1);case p:var we=this.$locale().weekStart||0,ye=(he<we?he+7:he)-we;return J(oe?pe-ye:pe+(6-ye),de);case d:case b:return ue(ge+"Hours",0);case u:return ue(ge+"Minutes",1);case c:return ue(ge+"Seconds",2);case a:return ue(ge+"Milliseconds",3);default:return this.clone()}},X.endOf=function(N){return this.startOf(N,!1)},X.$set=function(N,Q){var $,oe=U.p(N),W="set"+(this.$u?"UTC":""),J=($={},$[d]=W+"Date",$[b]=W+"Date",$[g]=W+"Month",$[y]=W+"FullYear",$[u]=W+"Hours",$[c]=W+"Minutes",$[a]=W+"Seconds",$[i]=W+"Milliseconds",$)[oe],ue=oe===d?this.$D+(Q-this.$W):Q;if(oe===g||oe===y){var he=this.clone().set(b,1);he.$d[J](ue),he.init(),this.$d=he.set(b,Math.min(this.$D,he.daysInMonth())).$d}else J&&this.$d[J](ue);return this.init(),this},X.set=function(N,Q){return this.clone().$set(N,Q)},X.get=function(N){return this[U.p(N)]()},X.add=function(N,Q){var $,oe=this;N=Number(N);var W=U.p(Q),J=function(de){var pe=q(oe);return U.w(pe.date(pe.date()+Math.round(de*N)),oe)};if(W===g)return this.set(g,this.$M+N);if(W===y)return this.set(y,this.$y+N);if(W===d)return J(1);if(W===p)return J(7);var ue=($={},$[c]=r,$[u]=o,$[a]=n,$)[W]||1,he=this.$d.getTime()+N*ue;return U.w(he,this)},X.subtract=function(N,Q){return this.add(-1*N,Q)},X.format=function(N){var Q=this,$=this.$locale();if(!this.isValid())return $.invalidDate||x;var oe=N||"YYYY-MM-DDTHH:mm:ssZ",W=U.z(this),J=this.$H,ue=this.$m,he=this.$M,de=$.weekdays,pe=$.months,ge=$.meridiem,we=function(Ce,Te,fe,Ge){return Ce&&(Ce[Te]||Ce(Q,oe))||fe[Te].slice(0,Ge)},ye=function(Ce){return U.s(J%12||12,Ce,"0")},ve=ge||function(Ce,Te,fe){var Ge=Ce<12?"AM":"PM";return fe?Ge.toLowerCase():Ge};return oe.replace(T,function(Ce,Te){return Te||function(fe){switch(fe){case"YY":return String(Q.$y).slice(-2);case"YYYY":return U.s(Q.$y,4,"0");case"M":return he+1;case"MM":return U.s(he+1,2,"0");case"MMM":return we($.monthsShort,he,pe,3);case"MMMM":return we(pe,he);case"D":return Q.$D;case"DD":return U.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return we($.weekdaysMin,Q.$W,de,2);case"ddd":return we($.weekdaysShort,Q.$W,de,3);case"dddd":return de[Q.$W];case"H":return String(J);case"HH":return U.s(J,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return ve(J,ue,!0);case"A":return ve(J,ue,!1);case"m":return String(ue);case"mm":return U.s(ue,2,"0");case"s":return String(Q.$s);case"ss":return U.s(Q.$s,2,"0");case"SSS":return U.s(Q.$ms,3,"0");case"Z":return W}return null}(Ce)||W.replace(":","")})},X.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},X.diff=function(N,Q,$){var oe,W=this,J=U.p(Q),ue=q(N),he=(ue.utcOffset()-this.utcOffset())*r,de=this-ue,pe=function(){return U.m(W,ue)};switch(J){case y:oe=pe()/12;break;case g:oe=pe();break;case v:oe=pe()/3;break;case p:oe=(de-he)/6048e5;break;case d:oe=(de-he)/864e5;break;case u:oe=de/o;break;case c:oe=de/r;break;case a:oe=de/n;break;default:oe=de}return $?oe:U.a(oe)},X.daysInMonth=function(){return this.endOf(g).$D},X.$locale=function(){return k[this.$L]},X.locale=function(N,Q){if(!N)return this.$L;var $=this.clone(),oe=H(N,Q,!0);return oe&&($.$L=oe),$},X.clone=function(){return U.w(this.$d,this)},X.toDate=function(){return new Date(this.valueOf())},X.toJSON=function(){return this.isValid()?this.toISOString():null},X.toISOString=function(){return this.$d.toISOString()},X.toString=function(){return this.$d.toUTCString()},Y}(),te=ne.prototype;return q.prototype=te,[["$ms",i],["$s",a],["$m",c],["$H",u],["$W",d],["$M",g],["$y",y],["$D",b]].forEach(function(Y){te[Y[1]]=function(X){return this.$g(X,Y[0],Y[1])}}),q.extend=function(Y,X){return Y.$i||(Y(X,ne,q),Y.$i=!0),q},q.locale=H,q.isDayjs=B,q.unix=function(Y){return q(1e3*Y)},q.en=k[O],q.Ls=k,q.p={},q})})($2);var V2=$2.exports;const Rr=Yr(V2);function W2(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Rr().hour(n).minute(r)}const $a=new B2;function yee(e,t,n){return function(r){const o=ee.isFunction(r)?r(t):r;return $a.set(e,o),n(o),o}}function _0(e,t){var u;vo().required().validateSync(e);const[n,r]=A.useState($a.get(e)??t),o=A.useRef(t),i=ee.isEqual(o.current,t)?o.current:t,a=A.useRef(),c=a.current;return A.useEffect(()=>{r($a.get(e)??i)},[e,i,r]),A.useEffect(()=>{function d(p){r(p)}return $a.watch(e,d),()=>{$a.unwatch(e,d)}},[e,r]),(e!==(c==null?void 0:c.key)||!ee.isEqual(n,c==null?void 0:c.value))&&(a.current={key:e,value:n,setter:yee(e,n,r)}),[n,((u=a.current)==null?void 0:u.setter)??ee.noop]}function z2(e){const[t]=Z.useLocaleState();return e!==void 0?String(e):t}function bee(e,t){const n=z2(t==null?void 0:t.locale);return D0(e,n,t)}function xee(e){const t=z2(e==null?void 0:e.locale);return A.useCallback(r=>D0(r,t,e),[t,e])}function U2(e){if(!ee.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=A.useState(e);return A.useEffect(()=>{ee.isEqual(e,t)||n(e)},[e,t]),t}function ra(){const[e,t]=A.useState(null),n=!!e,r=A.useCallback(a=>t((a==null?void 0:a.currentTarget)??null),[t]),o=A.useCallback(()=>t(null),[t]),i=A.useCallback(a=>{n?o():r(a)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function Cee(e,t){const[n,r]=A.useState({width:1,height:1}),o=e.current;return A.useEffect(()=>{function i(){var d;let c=0,u=0;switch(t){case"client":c=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":c=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":c=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((d=e.current)==null?void 0:d.getBoundingClientRect())??{width:0,height:0};c=p.width,u=p.height;break}}r({width:c,height:u})}const a=new ResizeObserver(i);return ee.isEmpty(e==null?void 0:e.current)||(a.observe(e==null?void 0:e.current),i()),()=>{a.disconnect()}},[o,t,e]),n}function L0(e){const t=_.useRecordContext(),n=_.useTranslate(),r=_.useResourceContext(),o=t!=null&&t.id?"edit":"create";return A.useMemo(()=>{if(e===!1)return;const a=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(a,{_:a}),...t})},[o,t,r,n,e])}function H2(){const{mode:e}=Sn(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=A.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=A.useRef(n);return A.useEffect(()=>{function i(){const c=t.matches?"dark":"light";c!==o.current&&(r(c),o.current=c)}i();const a=t;return a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[t]),n}function _r(){throw new Error("Method must be implemented")}const G2={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:_r,setMenuOrientation:_r,setMiniDrawer:_r,setContainer:_r,setMode:_r,setPresetColor:_r,setThemeDirection:_r,setAppDefaultPath:_r,setDrawerWidth:_r,setHorizontalMaxItems:_r,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function wee(e){return e==="vertical"}function See(e){return e==="horizontal"}const B0=A.createContext(G2);function yg({initialConfig:e,children:t}){const[n,r]=_0("theme-config",{...G2,...e});function o(b){r(x=>({...x,fontFamily:b}))}function i(b){r(x=>({...x,menuOrientation:b}))}function a(b){r(x=>({...x,miniDrawer:b}))}function c(b){r(x=>({...x,container:b}))}function u(b){r(x=>({...x,mode:b}))}function d(b){r(x=>({...x,presetColor:b}))}function p(b){r(x=>({...x,themeDirection:b}))}function g(b){r(x=>({...x,appDefaultPath:b}))}function v(b){r(x=>({...x,drawerWidth:b}))}function y(b){r(x=>({...x,horizontalMaxItems:b}))}return f.jsx(B0.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:a,setContainer:c,setMode:u,setPresetColor:d,setThemeDirection:p,setAppDefaultPath:g,setDrawerWidth:v,setHorizontalMaxItems:y,isVerticalLayout:wee,isHorizontalLayout:See},children:t})}function N0(){return A.useContext(B0)}function Sn(){return N0()}const Aee=kl(_.Toolbar,{slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end",position:"initial !important","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}}));function ni(e){return f.jsx(Aee,{...e})}function q2({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=Sn();return f.jsx(Tee,{defaultValues:n,spacing:t||o,children:f.jsx(S.Grid,{container:!0,...r,spacing:t||o,children:e})})}function Eee({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:a=12,md:c=12,sm:u=12,xs:d=12,...p}){const g=_.useTranslate(),v=_.useResourceContext(),{cardTitle:y,cardSubheader:b}=A.useMemo(()=>{const x=n||`resources.${v}.title`;return{cardTitle:g(x,{_:x}),cardSubheader:r!==null?g(r,{_:r}):null}},[v,r,n,g]);return f.jsx(S.Grid,{item:!0,...p,lg:a,md:c,sm:u,xs:d,children:f.jsx(Mn,{content:t,title:y,subheader:b,secondary:o,divider:!0,children:f.jsxs(f.Fragment,{children:[e,i===!0?f.jsx(ni,{children:f.jsx(_.SaveButton,{})}):i]})})})}const Tee=ce(_.Form,{slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*1.25),padding:0,minHeight:"unset"},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingRight:"0 !important",paddingLeft:"0 !important",paddingBottom:"0 !important"}}));q2.Section=Eee;function Y2(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=jee,label:a="ra.action.delete",mutationMode:c="pessimistic",mutationOptions:u={},onClick:d,onSuccess:p,onError:g,...v}=e,{meta:y,...b}=u,{selectedIds:x,onUnselectItems:w}=Z.useListContext(e),[T,j]=Z.useSafeSetState(!1),E=Z.useNotify(),P=Z.useResourceContext(e),O=Z.useRefresh(),k=Z.useTranslate(),F=gt(),[B,{isLoading:H}]=Z.useDeleteMany(P,{ids:x,meta:y},{onSuccess:()=>{O(),E("ra.notification.deleted",{type:"info",messageArgs:{smart_count:x.length},undoable:c==="undoable"}),w(),j(!1),p&&ee.isFunction(p)&&p()},onError:te=>{E(typeof te=="string"?te:te.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof te=="string"?te:te&&te.message?te.message:void 0}}),j(!1),g&&ee.isFunction(g)&&g()},mutationMode:c,...b});function q(te){j(!0),te.stopPropagation()}function U(){j(!1)}function ne(te){B(),typeof d=="function"&&d(te)}return f.jsxs(f.Fragment,{children:[f.jsx(Pee,{onClick:q,label:a,...Iee(v),children:i}),f.jsx(_.Confirm,{isOpen:T,loading:H,sx:o||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:F.palette.primary.main,color:F.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:F.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${F.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:t?typeof t=="string"?k(t):t:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(We.DeleteFilled,{})})}),content:n||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:k("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:x.length,name:k(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Uo.humanize(k(`resources.${P}.name`,{smart_count:x.length,_:Uo.inflect(P,x.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:x.length,name:k(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Uo.humanize(k(`resources.${P}.name`,{smart_count:x.length,_:Uo.inflect(P,x.length)}),!0)})},onConfirm:ne,onClose:U})]})}function Iee({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const Oee="RaBulkDeleteWithConfirmButton",Pee=ce(_.Button,{name:Oee,overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:Je(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),jee=f.jsx(d0,{});Y2.propTypes={confirmTitle:m.node,confirmContent:m.node,confirmColor:m.string,dialogSx:m.object,icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),resource:m.string,selectedIds:m.arrayOf(m.any),onSuccess:m.func,onError:m.func};const Ree="RaButton";function Mee(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}const kee=ce(S.Button,{name:Ree,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function Ui(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:a,disabled:c,alignIcon:u,to:d,...p}=e,g=_.useTranslate(),v=Mee(d);if(t){const y=n?g(n,{_:n}):void 0;return f.jsx(kee,{className:o,color:i,size:a,"aria-label":y,disabled:c,startIcon:u==="left"&&r?r:void 0,endIcon:u==="right"&&r?r:void 0,...v,...p,children:y})}return f.jsx(_.Button,{...e})}function K2(e){const{className:t,icon:n=Fee,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:a,to:c,state:u={},disableFloatingButton:d=!1,...p}=e,g=Z.useResourceContext(e),v=Z.useCreatePath(),y=Z.useTranslate(),b=S.useMediaQuery(T=>T.breakpoints.down("md")),x=ME({},Dee.get(String(i)),u),w=Nee(c);return!d&&b?f.jsx(_ee,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,color:"primary",className:Be(dd.floating,t),"aria-label":r?y(r):"ra.action.create",...p,...w,children:n}):f.jsx(Lee,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,className:Be(dd.root,t),label:r,variant:a,...p,...w,children:n})}const Fee=f.jsx(Zm,{}),Dee=new Map([["true",{_scrollToTop:!0}],["false",{}]]);K2.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};const ud="RaCreateButton",dd={root:`${ud}-root`,floating:`${ud}-floating`},_ee=ce(S.Fab,{name:ud,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${dd.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),Lee=ce(Ui,{name:ud,overridesResolver:(e,t)=>t.root})({});function Bee(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&dl(e.to,t.to)&&dl(e.state,t.state)}const X2=D.memo(K2,Bee);function Nee(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}function $0(e,t){const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]}function $ee(e,t){return e&&e.data?{data:$0(e.data,t),total:e.total+1}:e}function Vee(e,t){return e&&e.length>0?$0(e,t):e}function Wee(e,t){return e&&e.data?{...e,data:$0(e.data,t),total:e.total+1}:e}function zee(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=f.jsx(We.PlusCircleOutlined,{}),...o}=e,i=A.useCallback(a=>{var c;a.preventDefault(),(c=e==null?void 0:e.onClick)==null||c.call(e)},[e]);return t?f.jsx(Ui,{...o,onClick:i,label:n,children:r}):f.jsx(IK,{...e,onClick:i,label:n,children:r})}function Uee(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=rn.useFormContext(),o=Z.useTranslate(),i=A.useCallback(a=>{a.preventDefault(),a.stopPropagation(),r(c=>t(c,n))()},[r,t,n]);return f.jsx(S.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function Hee(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:a,scroll:c="body",...u}=e,d=js.useQueryClient(),p=Z.useResourceContext(),g=Z.useTranslate(),v=A.Children.only(t),[y,b]=A.useState(!1),x=Z.useNotify(),w=A.useCallback(()=>b(!0),[]),T=A.useCallback(()=>b(!1),[]),j=A.useCallback((E,P,O)=>{var B,H;const F=Date.now();d.setQueryData([p,"getOne",{id:E.id}],E),d.setQueriesData([p,"getList"],q=>Wee(q,E),{updatedAt:F}),d.setQueriesData([p,"getMany"],q=>Vee(q,E),{updatedAt:F}),d.setQueriesData([p,"getManyReference"],q=>$ee(q,E),{updatedAt:F}),T(),x("ra.notification.created",{messageArgs:{smart_count:1}}),(H=(B=e==null?void 0:e.mutationOptions)==null?void 0:B.onSuccess)==null||H.call(B,E,P,O)},[T,x,e.mutationOptions,d,p]);return f.jsxs(f.Fragment,{children:[f.jsx(zee,{...u,onClick:w}),f.jsx(S.Dialog,{open:y,scroll:c,onClose:T,maxWidth:n,fullWidth:r,fullScreen:o,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(Z.CreateBase,{...e,mutationOptions:{...a,onSuccess:j},children:A.isValidElement(v)?A.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(ni,{children:[f.jsx(S.Button,{variant:"text",size:"medium",onClick:T,children:g("ra.action.cancel")}),i?f.jsx(Uee,{onSubmit:i,closeDialog:T}):f.jsx(E0,{type:"button"})]})}):null})})})]})}function Nl(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:a,icon:c=f.jsx(d0,{}),label:u="ra.action.delete",mutationMode:d="pessimistic",mutationOptions:p,onClick:g,redirect:v="list",translateOptions:y={},...b}=e,x=Z.useTranslate(),w=Z.useRecordContext(e),T=Z.useResourceContext(e),j=S.useTheme(),{open:E,isLoading:P,handleDialogOpen:O,handleDialogClose:k,handleDelete:F}=Z.useDeleteWithConfirmController({record:w,redirect:v,mutationMode:d,onClick:g,mutationOptions:p,resource:T});return f.jsxs(f.Fragment,{children:[f.jsx(Ui,{onClick:O,label:u,className:Be("ra-delete-button",t),color:i,...b,children:c},"button"),f.jsx(GE,{isOpen:E,loading:P,sx:a||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:j.palette.primary.main,color:j.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:j.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${j.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?x(n):n:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(We.DeleteFilled,{})})}),content:r||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:x("ra.message.delete_content",{_:"ra.message.delete_content",name:x(`resources.${T}.forcedCaseName`,{smart_count:1,_:Uo.humanize(x(`resources.${T}.name`,{smart_count:1,_:Uo.singularize(T)}),!0)}),id:w==null?void 0:w.id})}),confirmColor:o,translateOptions:{name:x(`resources.${T}.forcedCaseName`,{smart_count:1,_:Uo.humanize(x(`resources.${T}.name`,{smart_count:1,_:Uo.singularize(T)}),!0)}),id:w==null?void 0:w.id,...y},onConfirm:F,onClose:k})]})}Nl.propTypes={basePath:m.string,className:m.string,confirmColor:m.string,confirmContent:m.oneOfType([m.string,m.element]),confirmTitle:m.oneOfType([m.string,m.element]),icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),onClick:m.func,record:m.any,redirect:m.oneOfType([m.string,m.bool,m.func]),resource:m.string,translateOptions:m.object};function Gee(e){const t=A.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return f.jsx(QE,{...e,onClick:t})}function qee(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=rn.useFormContext(),o=A.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(a=>t(a,n))()},[r,t,n]);return f.jsx(Ui,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function Yee(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:a,scroll:c="body",...u}=e,d=Z.useNotify(),[p,g]=A.useState(!1),v=A.Children.only(t),y=A.useCallback(()=>g(!0),[]),b=A.useCallback(()=>g(!1),[]),x=A.useCallback((T,j,E)=>{var P,O;b(),d("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(O=(P=e==null?void 0:e.mutationOptions)==null?void 0:P.onSuccess)==null||O.call(P,T,j,E)},[b,d,e.mutationOptions,e.mutationMode]),w=Z.useRecordContext();return f.jsxs(f.Fragment,{children:[f.jsx(Gee,{...u,onClick:y}),f.jsx(S.Dialog,{open:p,scroll:c,onClose:b,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(Z.EditBase,{...e,id:w.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:x},children:A.isValidElement(v)?A.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(ni,{children:[f.jsx(Ui,{disableIconOnly:!0,variant:"text",size:"medium",onClick:b,label:"ra.action.cancel"}),a?f.jsx(qee,{onSubmit:a,closeDialog:b}):f.jsx(E0,{type:"button"})]})}):null})})})]})}function Kee({label:e="ra.auth.sign_in",...t}){const n=_.useRecordContext(),[r,o]=A.useState(!1),i=_.useAuthProvider(),a=A.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),i.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[i,n==null?void 0:n.id]);return f.jsx(_.Button,{disabled:r||i.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(nn.VpnKey,{})})}const Xee=kl(_.SimpleForm,{slot:"Root"})(({theme:e})=>({[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}}));function V0({title:e,modal:t=!1,content:n=!1,subheader:r=null,toolbar:o=f.jsx(ni,{children:f.jsx(_.SaveButton,{type:"button"})}),secondary:i=f.jsx(Qo,{children:f.jsx(Nl,{})}),sx:a,...c}){const u=L0(e),d=_.useRecordContext(),p=Em();return f.jsx(Mn,{content:n,title:u,subheader:r,secondary:d!=null&&d.id?i:null,sx:{...a,"& .MuiToolbar-root":{paddingLeft:p.spacing(2.5),paddingRight:p.spacing(2.5),paddingBottom:p.spacing(2.5),paddingTop:t?p.spacing(2.5):0,borderTop:t?`1px solid ${p.palette.divider}`:void 0}},border:!t,divider:!0,children:f.jsx(Xee,{toolbar:o,...c})})}const Z2={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},Q2=A.createContext(Z2);function Zee(e){const[t,n]=A.useState(Z2);function r(a,c){n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()}function o(a,c){n(u=>({...u,openDialogs:u.openDialogs.filter(d=>d!==a)})),c&&c()}function i(){return t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null}return f.jsx(Q2.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:i},children:e.children})}function J2(){const e=A.useContext(Q2);if(e===void 0)throw new Error("useAppState must be used within an AppStateProvider");return e}function W0(){return J2()}function eT({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,fullWidth:c,...u}){const d=tn.useTheme(),{getCurrentDialog:p}=W0(),{source:g,resource:v,isRequired:y}=u,{getFieldState:b,formState:x}=rn.useFormContext(),{error:w}=b(g,x),T=p();return f.jsxs(S.Stack,{spacing:1,sx:{"& .MuiFormHelperText-root":{color:w?d.palette.error.main:d.palette.text.secondary,"& span":{display:"none"}},width:c?"100%":"auto",...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:!!w,sx:{borderBottom:a?`1px solid ${d.palette.divider}`:"none",pb:a?1:0,mt:a?1:0,pt:1},children:f.jsx(_.FieldTitle,{label:e,source:g,resource:T||v,isRequired:y})}),A.isValidElement(t)?A.cloneElement(t,{...t.props,...u,label:n==="legend"?e:!1}):t,n==="label"&&r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:!!w,children:r}):null]})}const Qee=ce(_.ArrayInput,{slot:"root"})(({theme:e})=>({"& .MuiStack-root > label":{marginTop:e.spacing(2)},"& .MuiInputLabel-shrink":{paddingBottom:0},marginTop:"0 !important","& .RaSimpleFormIterator-line > .RaSimpleFormIterator-form":{paddingBottom:e.spacing(.5),"& > div":{width:"100%"}}}));function Jee({label:e,addLabel:t,source:n,helperText:r,divider:o=!0,...i}){return f.jsx(eT,{label:e,addLabel:t,source:n,helperText:r,divider:o,fullWidth:i==null?void 0:i.fullWidth,children:f.jsx(Qee,{source:n,label:!1,...i})})}function ete({canEdit:e=!0,canDelete:t=!0,canClone:n=!1}){return!e&&!t&&!n?null:f.jsxs(Qo,{children:[e?f.jsx(_.EditButton,{}):null,t?f.jsx(Nl,{}):null,n?f.jsx(_.CloneButton,{}):null]})}const XC=ce("div",{overridesResolver:(e,t)=>t.root})({display:"inline-block"}),tte=ce("ul")({display:"inline-block"});function nte(e){var p;const{className:t,emptyText:n,source:r,title:o,...i}=e,a=Z.useRecordContext(e),c=Ke.get(a,r),u=Z.useTranslate();if(!c)return n?f.jsx(S.Typography,{component:"span",variant:"body2",className:t,...i,children:n?u(n,{_:n}):null}):f.jsx(XC,{className:t,...i});if(Array.isArray(c))return f.jsx(tte,{className:t,...i,children:c.map((g,v)=>{var b;const y=o instanceof String?(b=Ke.get(g,o))==null?void 0:b.toString():o;return f.jsx("li",{children:y},v)})});const d=o instanceof String?(p=Ke.get(a,o))==null?void 0:p.toString():o;return f.jsx(XC,{className:t,...i,children:d})}function tT({entityId:e,property:t,disabled:n,showUser:r=!1,userResource:o="entities/user",resource:i,...a}){const[c,u]=A.useState(null),d=_.useRecordContext(a),p=_.useDataProvider(),g=_.useResourceContext(),v=_.useNotify(),y=A.useCallback(async w=>{w.preventDefault(),w.stopPropagation(),v("ra.notification.download",{type:"info"});const T=Ke.get(d,a==null?void 0:a.source),j=(i||g).replace("entities/",""),E=e||(d==null?void 0:d.id),P=await p.getFile(`/attachments/${j}/${E}/${t||(a==null?void 0:a.source)}/${(T==null?void 0:T.id)||(d==null?void 0:d.id)}`),O=document.createElement("a");O.href=P,O.download=Ke.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source)),O.click()},[p,d,e,g,i,t,a==null?void 0:a.source,a==null?void 0:a.title,v]),b=A.useMemo(()=>({...d,[a==null?void 0:a.source]:(d==null?void 0:d.src)||Ke.get(d,a==null?void 0:a.source),[a==null?void 0:a.title]:(d==null?void 0:d.title)||Ke.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),[d,a==null?void 0:a.source,a==null?void 0:a.title]),x=_.useTranslate();return A.useEffect(()=>{!d||!(d!=null&&d.userId)||r===!1||p.getOne(o,{id:d==null?void 0:d.userId}).then(({data:w})=>u(w)).catch(()=>u(null))},[d,p,o,r]),f.jsx(nte,{...a,disabled:n,record:b,onClick:y,title:f.jsxs(S.Box,{sx:{cursor:"pointer"},children:[f.jsx(S.Typography,{variant:"subtitle1",children:Ke.get(b,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),f.jsxs(S.Typography,{variant:"caption",color:"secondary",children:[Ke.get(b,"sizeDescription"),r&&c?" | ":null,r&&c?x("ra.attachment.info",{user:c==null?void 0:c.name,created:Rr(b==null?void 0:b.createdAt).format("DD/MM/YYYY HH:mm")}):null]})]})})}const rte=ce(_.ImageField,{slot:"root"})(()=>({}));function nT(e){const t=`_${e==null?void 0:e.source}`;return f.jsx(rte,{...e,source:t})}function rT({width:e=150,height:t=150,circle:n=!1,justify:r="flex-start",record:o,sx:i,...a}){const c=A.useMemo(()=>({width:typeof e=="number"?`${e}px !important`:`${e} !important`,height:typeof t=="number"?`${t}px !important`:`${t} !important`,borderRadius:n?"50%":1.5,...i}),[e,t,n,i]),u=_.useRecordContext(),d=o||u;return f.jsx(nT,{sx:p=>({margin:0,display:"flex",justifyContent:r,"& img":{margin:"0px !important",border:`1px solid ${p.palette.divider}`,objectFit:"cover !important",...c,minWidth:c.width,minHeight:c.height}}),...a,record:d})}var ote={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wn,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],o=n%100;return"["+n+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(ote);var ite={exports:{}};(function(e,t){(function(n,r){e.exports=r(V2)})(wn,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(n),i={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return o.default.locale(i,null,!0),i})})(ite);var oT={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wn,function(){return function(n,r,o){n=n||{};var i=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(d,p,g,v){return i.fromToBase(d,p,g,v)}o.en.relativeTime=a,i.fromToBase=function(d,p,g,v,y){for(var b,x,w,T=g.$locale().relativeTime||a,j=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=j.length,P=0;P<E;P+=1){var O=j[P];O.d&&(b=v?o(d).diff(g,O.d,!0):g.diff(d,O.d,!0));var k=(n.rounding||Math.round)(Math.abs(b));if(w=b>0,k<=O.r||!O.r){k<=1&&P>0&&(O=j[P-1]);var F=T[O.l];y&&(k=y(""+k)),x=typeof F=="string"?F.replace("%d",k):F(k,p,O.l,w);break}}if(p)return x;var B=w?T.future:T.past;return typeof B=="function"?B(x):B.replace("%s",x)},i.to=function(d,p){return c(d,p,this,!0)},i.from=function(d,p){return c(d,p,this)};var u=function(d){return d.$u?o.utc():o()};i.toNow=function(d){return this.to(u(this),d)},i.fromNow=function(d){return this.from(u(this),d)}}})})(oT);var ste=oT.exports;const ate=Yr(ste);Rr.extend(ate);function iT(e){const t=_.useRecordContext(e),[n]=_.useLocaleState(),r=A.useMemo(()=>Rr(Ke.get(t,e==null?void 0:e.source)).locale(n).fromNow(),[t,e==null?void 0:e.source,n]);return f.jsxs(f.Fragment,{children:[f.jsx(_.DateField,{record:t,source:e.source,showTime:!0}),f.jsx("br",{}),f.jsx(S.Typography,{variant:"caption",color:"textSecondary",children:r})]})}const lte=ce(_.DateField,{slot:"Root"})(()=>({}));function cte({variant:e="body1",...t}){return f.jsx(lte,{...t,variant:e})}const ute=ce(_.EmailField,{slot:"Root"})(()=>({}));function dte({variant:e="body1",...t}){return f.jsx(ute,{...t,variant:e})}const fte=ce(_.FileField,{slot:"root"})(()=>({}));function sT({...e}){const t=_.useRecordContext(e),n=A.useCallback(r=>{r.preventDefault(),r.stopPropagation();const o=Ke.get(t,`_${e==null?void 0:e.source}`,Ke.get(t,e==null?void 0:e.source)),i=Ke.get(t,(e==null?void 0:e.title)||(e==null?void 0:e.source))||(e==null?void 0:e.title),a=document.createElement("a");a.href=o,a.download=i,a.click()},[e==null?void 0:e.source,t,e==null?void 0:e.title]);return f.jsx(fte,{...e,record:t,onClick:n})}function pte({variant:e="body1",...t}){return f.jsx(_.FunctionField,{...t,variant:e})}const hte=ce(_.TextField,{slot:"Root"})(()=>({}));function aT({variant:e="body1",...t}){return f.jsx(hte,{...t,variant:e})}function gte(e){const t=S.useTheme(),n=Z.useLocales(),{source:r=""}=e,i=Z.useRecordContext(e)[r],a=!cd(i,n),c=Mr(e,{flex:1}),[u]=Z.useLocaleState(),d=A.useMemo(()=>a?f.jsx(We.FlagFilled,{style:{color:t.palette.warning.main}}):f.jsx(We.FlagOutlined,{}),[a,t.palette.warning.main]),p=A.useMemo(()=>f.jsx(S.Stack,{children:ee.map(n,(g,v)=>f.jsx(S.Typography,{children:`${g.locale.toUpperCase()}: ${(i??{})[g.locale]??""}`},v))}),[i,n]);return f.jsx(Xd,{title:p,arrow:!1,children:f.jsxs(S.Stack,{alignItems:"center",direction:"row",gap:1,children:[d,f.jsx(aT,{...e,source:`${r}.${u}`,sx:c})]})})}const mte=ce("div")(({theme:e,fullWidth:t})=>({borderBottom:`1px solid ${e.palette.divider}`,paddingTop:e.spacing(1),paddingBottom:e.spacing(1),marginBottom:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:t?"100%":"auto",[e.breakpoints.down("sm")]:{whiteSpace:"normal",overflow:"visible",textOverflow:"inherit"}}));function vte({source:e,defaultValue:t=" ",...n}){const r=_.useRecordContext(n),o=Ke.get(r,e,t);return f.jsx(S.Typography,{...n,dangerouslySetInnerHTML:{__html:o&&o!==null?o:t}})}function yte({title:e,children:t}){return t==null?null:typeof e=="string"||e===!0?f.jsx(S.Tooltip,{title:e,placement:"top",children:t}):t}function bte({label:e,source:t,defaultValue:n=" ",children:r=f.jsx(vte,{source:"",defaultValue:void 0,record:void 0}),tooltip:o,...i}){const a=A.Children.only(r),{getCurrentDialog:c}=J2(),u=_.useRecordContext(i),d=_.useResourceContext(i),p=c(),g=A.useMemo(()=>o===!1?!1:typeof o=="function"?o(u):typeof o=="string"?Ke.get(u,o,o):o,[u,o]),v=Mr(i,{width:i!=null&&i.fullWidth?"100%":"auto"});return f.jsx(yte,{title:g,children:f.jsxs(f.Fragment,{children:[f.jsx(S.InputLabel,{sx:{pt:1},children:f.jsx(_.FieldTitle,{label:e,source:t,resource:p||d})}),f.jsx(mte,{...i,children:A.isValidElement(a)?A.cloneElement(a,{...a.props,source:t,record:u,defaultValue:n,resource:p||d,sx:v}):null})]})})}function xte({children:e=null,className:t=""}){return f.jsx("div",{className:t,children:e})}const Cte=kl(xte,{slot:"root"})(({theme:e,bulkActionButtons:t})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,"&>div:first-of-type":{alignItems:"center","& form":{padding:e.spacing(2.5)},"& .MuiToolbar-root":{alignItems:"center",padding:"0 !important",marginTop:e.spacing(1),[e.breakpoints.up("sm")]:{marginLeft:e.spacing(2),marginRight:e.spacing(2),width:`calc(100% - ${e.spacing(4)})`},[e.breakpoints.down("md")]:{marginTop:0,display:"contents"}}},"& .RaDatagrid-root":{overflowX:"auto",paddingTop:t===!1?0:48,[e.breakpoints.down("sm")]:{width:"calc(100vw - 26px)"},"& .RaBulkActionsToolbar-toolbar":{borderRadius:0,"& > .RaBulkActionsToolbar-title":{alignItems:"center"},[e.breakpoints.down("sm")]:{paddingLeft:e.spacing(3)}},"& .RaDatagrid-table":{borderBottom:`1px solid ${e.palette.divider}`}},"& .MuiTablePagination-toolbar":{marginTop:"0 !important",marginBottom:"0 !important"},"& .RaBulkActionsToolbar-collapsed.RaBulkActionsToolbar-toolbar":{minHeight:0}}));function lT(e){return f.jsx(Cte,{...e,children:f.jsx(_.ReferenceManyField,{pagination:f.jsx(_.Pagination,{}),...e})})}function wte({source:e,...t}){const n=_.useRecordContext(t),r=Ke.get(n,e,0),o=r/1024,i=o/1024,a=i/1024,c=a>1?`${a.toFixed(2)} GB`:i>1?`${i.toFixed(2)} MB`:o>1?`${o.toFixed(2)} KB`:`${r.toFixed(2)} B`;return f.jsx(S.Typography,{component:"span",variant:"body1",...t,children:c})}function gn({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,...c}){const u=gt(),{getCurrentDialog:d}=W0(),{source:p,resource:g,isRequired:v,chip:y}=c,{fieldState:{invalid:b}}=_.useInput(c),x=d();return f.jsxs(S.Stack,{spacing:1,sx:{width:c!=null&&c.fullWidth?"100%":"auto","& .MuiFormHelperText-root":{pb:0,color:b?u.palette.error.main:u.palette.text.secondary,"& span":{display:"none"}},...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:b===!0,sx:{borderBottom:a?`1px solid ${u.palette.divider}`:"none",pt:.5,pb:a?1:0,mt:a?1:0},children:f.jsx(_.FieldTitle,{label:e,source:p,resource:x||g,isRequired:v})}),A.isValidElement(t)?A.cloneElement(t,{...t.props,...c,chip:y&&typeof y=="function"?A.createElement(y):y,label:n==="legend"?e:!1}):t,r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:b===!0,children:r}):null]})}function Ste(e){return e?{"& .RaFileInput-removeButton > .RaFileInputPreview-removeButton":{display:"none",visiblity:"hidden"},"& .RaFileInput-dropZone":{display:"none",visiblity:"hidden"}}:{}}const Ate=ce(_.FileInput,{slot:"root"})(({disabled:e,theme:t})=>({"& .previews":{},"& .previews>div":{marginTop:t.spacing(1),padding:t.spacing(1.5),border:`1px solid ${t.palette.divider}`,borderRadius:t.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:t.palette.action.hover},"& .MuiLink-root":{fontSize:t.typography.body1.fontSize}},...Ste(e)}));function Ete({children:e=f.jsx(tT,{title:"name",source:"path"}),multiple:t=!1,disabled:n=!1,type:r="attachment",...o}){const i=_.useRecordContext(o),a=o==null?void 0:o.source,c=i==null?void 0:i.id;return _.useInput({source:`__${r}__${o==null?void 0:o.source}`,defaultValue:o==null?void 0:o.source}),f.jsx(gn,{...o,disabled:n,children:f.jsx(Ate,{type:r,multiple:t,disabled:n,children:A.cloneElement(e,{entityId:c,property:a,...e.props})})})}const Tte=ce(_.AutocompleteArrayInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall:has(.MuiChip-root)":{paddingBottom:"4px"},"& .MuiAutocomplete-tag":{margin:"0px 4px 4px 0px"}}));function Ite({size:e="small",...t}){return f.jsx(gn,{...t,children:f.jsx(Tte,{size:e})})}const Ote=ce(_.AutocompleteInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"}}));function Pte({size:e="small",...t}){const{perPage:n,...r}=t;return f.jsx(gn,{...r,children:f.jsx(Ote,{size:e})})}const jte=ce(_.BooleanInput,{slot:"Root"})(()=>({marginTop:"0 !important"}));function Rte({...e}){const t=tn.useTheme();return f.jsx(gn,{...e,children:f.jsx(jte,{sx:{"& .MuiFormControlLabel-root":{marginLeft:"0 !important",marginRight:"0 !important"},"& .MuiSwitch-root":{margin:"0 !important",marginTop:e.display==="legend"?0:`${t.spacing(1)} !important`}}})})}const Mte=4,kte=ce(_.DateInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function Fte(e){const[t,n]=A.useState(""),r=A.useCallback(o=>{const i=o.target.value;Rr(i).year().toString().length>Mte?o.target.value=t:n(i)},[t]);return f.jsx(gn,{...e,children:f.jsx(kte,{...e,onInput:r})})}const Dte=ce(_.DateTimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function _te(e){return f.jsx(gn,{...e,children:f.jsx(Dte,{})})}const Lte=ce(_.FileInput,{slot:"root"})(({theme:e})=>({"& .previews":{},"& .previews>div":{marginTop:e.spacing(1),padding:e.spacing(1.5),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:e.palette.action.hover},"& .MuiLink-root":{fontSize:e.typography.body1.fontSize}}}));function Bte({children:e=f.jsx(sT,{source:"",title:""}),title:t,...n}){const r=rn.useWatch({name:n.source}),o=_.useRecordContext(n),{source:i}=n,a=A.useMemo(()=>{if(r&&(r!=null&&r.title))return r==null?void 0:r.title;const c=Ke.get(o,i);if(c){const u=c.split("__");return u.length>0?u[u.length-1]:c}return c},[o,i,r]);return f.jsx(gn,{...n,children:f.jsx(Lte,{children:A.cloneElement(e,{...e.props,title:t||i,source:i,record:{...o,[i]:(r==null?void 0:r.title)||Ke.get(o,i),[`_${i}`]:(r==null?void 0:r.src)||Ke.get(o,`_${i}`),[t||i]:a}})})})}function Nte({children:e=f.jsx(rT,{}),title:t,multiple:n=!1,...r}){const o=rn.useWatch({name:r.source}),i=_.useRecordContext(r),{source:a}=r;return _.useInput({source:`__image__${r==null?void 0:r.source}`,defaultValue:r==null?void 0:r.source}),f.jsx(gn,{...r,multiple:n,children:f.jsx(_.ImageInput,{accept:"image/*",children:A.cloneElement(e,{...e.props,title:t,source:a,record:{...i,[a]:(o==null?void 0:o.title)||Ke.get(i,a),[`_${a}`]:(o==null?void 0:o.src)||Ke.get(i,`_${a}`)}})})})}function mr(e){return f.jsx(gn,{...e,children:f.jsx(_.TextInput,{})})}const $te={vertical:"bottom",horizontal:"right"},Vte={vertical:"top",horizontal:"right"};function Wte({requiredAtLeastOneLocale:e,requiredLocale:t,validate:n,required:r,...o}){const{source:i}=o,a=Z.useLocales(),c=A.useCallback((k="ra.validation.required",F="ra.validation.required_locale")=>B=>{if(e&&!t&&!N2(B,a))return k;if(t&&(!ee.has(B,t)||ee.isEmpty(ee.get(B,t))))return{message:F,args:{locale:t}};if(!e&&r&&!cd(B,a))return k},[e,t,a,r]),u=A.useMemo(()=>Z.composeValidators(n,c()),[n,c]),{fieldState:d}=Z.useInput({...o,validate:u}),{error:p}=d,g=rn.useWatch({name:i}),v=!cd(g,a),[y]=Z.useLocaleState(),[b,x]=A.useState(y),[w,T]=A.useState(null),j=!!w,E=A.useCallback(k=>T(j?null:k.currentTarget),[j,T]),P=A.useCallback(()=>T(null),[T]),O=A.useMemo(()=>ee.map(a,(k,F)=>f.jsx(S.MenuItem,{onClick:()=>{x(k.locale),P()},children:f.jsx(S.ListItemText,{primary:`${k.locale.toUpperCase()}: ${(g??{})[k.locale]??""}`})},F)),[a,x,P,g]);return f.jsx(gn,{...o,validate:u,helperText:p!=null&&p.message?f.jsx(Z.ValidationError,{error:p==null?void 0:p.message}):o==null?void 0:o.helperText,children:f.jsx(f.Fragment,{children:f.jsxs(S.Box,{flex:1,children:[ee.map(a,(k,F)=>f.jsx(mr,{...o,source:`${i}.${k.locale}`,sx:{width:"100%",display:k.locale===b?"inline-flex":"none"},label:!1,helperText:!1,required:!1,InputProps:{endAdornment:f.jsx(S.Chip,{label:f.jsx(S.Typography,{variant:"button",children:b}),size:"small",onClick:E,color:v?"warning":void 0})}},F)),f.jsx(S.Menu,{anchorEl:w,open:j,anchorOrigin:$te,transformOrigin:Vte,onClose:P,children:O})]})})})}const zte=ce(_.NumberInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function Ute(e){return f.jsx(gn,{...e,children:f.jsx(zte,{})})}const Hte=ce(_.RadioButtonGroupInput,{slot:"root"})(()=>({marginTop:"0 !important","& .MuiFormControlLabel-root":{marginLeft:-8}}));function Gte(e){return f.jsx(gn,{...e,children:f.jsx(Hte,{})})}function qte({source:e,minWidth:t=300,children:n}){const r=_.useResourceContext(),o=_.useRecordContext(),[i,a]=A.useState(Ke.get(o,e,"")),[c,u]=A.useState(!1),d=A.useCallback(b=>a(b.target.value),[]),p=_.useDataProvider(),g=A.useCallback(b=>{b.key==="Enter"&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,o,e]),v=A.useCallback(()=>{Ke.get(o,e)!==i&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,e,o]),y=A.useCallback(b=>{u(!0),p.update(r,{id:o.id,data:{...o,[e]:b,_changed:e},previousData:o}).then(()=>u(!1))},[p,r,e,o]);return A.useEffect(()=>a(Ke.get(o,e)),[o,e]),n?A.cloneElement(n,{...n.props,source:e,value:i,onChange:y}):f.jsx(S.TextField,{value:i,disabled:c,onChange:d,onKeyPress:g,onBlur:v,style:{minWidth:t,width:"100%"},multiline:!0,InputProps:{"arial-label":"naked"},size:"small"})}function Yte({children:e,...t}){const n=A.Children.only(e);return f.jsx(_.ReferenceArrayInput,{...t,children:A.cloneElement(n,{...t,source:n.props.source||t.source})})}function Kte({children:e,...t}){const n=A.Children.only(e);return f.jsx(_.ReferenceInput,{...t,children:A.cloneElement(n,{...t,source:n.props.source||t.source})})}function Xte({reference:e,target:t,children:n,filters:r,actions:o,...i}){return f.jsx(_.ResourceContextProvider,{value:e,children:f.jsx(lT,{perPage:5,pagination:f.jsx(_.Pagination,{}),...i,reference:e,target:t,children:f.jsxs(f.Fragment,{children:[f.jsx(_.ListToolbar,{filters:r,actions:o}),n]})})})}const Zte=ce(_.SearchInput,{slot:"root"})(()=>({}));function Qte(e){return f.jsx(Zte,{...e})}const Jte=ce(_.SelectArrayInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiFormLabel-root.MuiInputLabel-root":{marginTop:"-3px"},"& .MuiInputLabel-root.MuiInputLabel-shrink":{marginTop:0},"& .MuiOutlinedInput-input:has(.MuiChip-root)":{paddingTop:"4px",paddingBottom:"6px",paddingLeft:"6px"}}));function ene({optionText:e="name",optionValue:t="id",...n}){return f.jsx(gn,{...n,children:f.jsx(Jte,{optionText:e,optionValue:t,options:{autoWidth:!1}})})}const tne=ce(_.SelectInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1||e===null?0:"auto"}}));function nne(e){return f.jsx(gn,{...e,children:f.jsx(tne,{})})}function rne({multiline:e=!1,...t}){var u,d;const n=_.useTranslate(),r=_.maxLength(t==null?void 0:t.maxLength,"app.input.max_length_error"),o=(d=(u=rn.useController({name:t==null?void 0:t.source}))==null?void 0:u.field)==null?void 0:d.value;let i=t.helperText,a=t.validate;a?Array.isArray(a)&&a.indexOf(r)===-1&&a.push(r):a=[r];const c=n("app.input.max_length_info",{count:(o==null?void 0:o.length)||0,max:t==null?void 0:t.maxLength});return t!=null&&t.maxLength&&(i=i&&i.length>0?`${c} - ${n(i)}`:c),f.jsx(mr,{...t,validate:a,helperText:i,multiline:e,inputProps:{maxLength:t==null?void 0:t.maxLength}})}function one(e){if(!e)return"";const t=W2(e);return t?t.format("HH:mm"):""}function ine(e){return e}const sne=ce(_.TimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function ane({parse:e=ine,format:t=one,...n}){return f.jsx(gn,{...n,children:f.jsx(sne,{parse:e,format:t,...n})})}function z0({onSuccess:e,firstAccess:t}){const{spacing:n}=Sn(),[r,o]=A.useState(!1),i=Z.useAuthProvider(),a=Z.useTranslate(),c=Z.useNotify(),u=A.useCallback(d=>{const{oldPassword:p,newPassword:g}=d;o(!0),i==null||i.changePassword(p,g).then(()=>{c("ra.auth.password_changed"),e()}).catch(v=>{c((v==null?void 0:v.message)||(v==null?void 0:v.toString()),{type:"error"})}).finally(()=>o(!1))},[i,e,c]);return f.jsx(Z.ResourceContextProvider,{value:"user/change-password",children:f.jsx(Z.EditContextProvider,{value:{record:{},resource:"user/change-password",save:u},children:f.jsx(V0,{onSubmit:u,toolbar:f.jsx(ni,{children:f.jsx(_.SaveButton,{disabled:r})}),children:f.jsxs(S.Grid,{container:!0,spacing:n,children:[t===!0&&f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Alert,{severity:"warning",children:[f.jsx(S.AlertTitle,{children:a("ra.auth.first_access.change_password")}),a("ra.auth.first_access.change_password_helper")]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(mr,{source:"oldPassword",type:"password",validate:Z.required()})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(mr,{source:"newPassword",type:"password",validate:Z.required()})})]})})})})}const cT=A.createContext({});function lne(e){const{useDefaults:t=!1,queryOptions:n={}}=e,r=_.useResourceContext(),o=_.useDataProvider(),{search:i}=Di.useLocation(),a=`${r}/new`,c=A.useCallback(()=>{if(!t||!ee.isFunction(o.get))return Promise.resolve({});const v={};return new URLSearchParams(i??"").forEach((y,b)=>{v[b]=y}),o.get(a,v).then(y=>y.data).then(y=>{const{responseCode:b,value:x}=y;return b==="ok"?x:Promise.reject(y)})},[t,i,o,a]),u=A.useMemo(()=>ee.chain(n).extend({queryKey:[r,i],queryFn:c}).value(),[r,i,c,n]),{data:d,isLoading:p}=js.useQuery(u),g=ee.omit(e,["useDefaults"]);return p?f.jsx(S.Stack,{alignItems:"center",justifyContent:"center",flex:1,p:2,children:f.jsx(S.CircularProgress,{})}):f.jsx(cT.Provider,{value:d??{},children:f.jsx(_.Create,{...g,children:e.children})})}const cne=ce(lne,{slot:"root"})(({theme:e})=>({"& .RaCreate-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaCreate-main":{marginTop:0},"& .RaCreate-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaCreate-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaCreate-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function une(){return A.useContext(cT)}const dne=ce(_.Edit,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-card":{[e.breakpoints.down("sm")]:{marginBottom:e.spacing(6)}},"& .RaEdi-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaEdit-main":{marginTop:0},"& .RaEdit-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaEdit-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function fne(e){return f.jsx(dne,{...e})}const pne=ce(S.CardHeader)(({theme:e})=>({marginTop:e.spacing(2.5),marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0})),hne=ce(S.Divider)(({theme:e})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,marginBottom:e.spacing(2),width:`calc(100% + ${e.spacing(5)})`}));function gne({title:e,divider:t=!0,variant:n="h5"}){const r=_.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(pne,{title:r(e,{_:e}),titleTypographyProps:{variant:n}}),t?f.jsx(hne,{}):null]})}function bg(e){return e.id??e.label}function uT(e,t){const n=`^${e}.`.replaceAll(".","\\."),r=new RegExp(n,"g");return t.match(r)!==null}function mne(e){return ee.map(e,"id")}function fd(e){const t=e.match(new RegExp("[^.]+","g"));return t===null?0:t.length}function dT(e,t){const n=e!==void 0?fd(e):0;return ee.chain(t).filter(o=>e!==void 0?uT(e,o.id):!0).filter(o=>fd(o.id)===n+1).value()}function vne(e,t){var i;const n=ee.clone(e),{type:r,payload:o}=t;switch(r){case"setFormRootPath":return ee.extend(n,{formRootPath:o});case"setSyncWithLocation":return ee.extend(n,{syncWithLocation:o});case"setErrorCount":return ee.extend(n,{errorCount:o});case"setActiveItem":return ee.includes(mne(e.items),o)?ee.extend(n,{activeItem:o}):n;case"addItem":{const{id:a}=o;return ee.extend(n,{items:ee.chain(n.items).clone().reject(c=>c.id===a).concat([o]).orderBy(c=>c.index).value()})}case"removeItem":{const a=ee.isString(o)?o:o.id,c=ee.chain(n.items).clone().reject(u=>u.id===a).value();return ee.extend(n,{items:c}),n.activeItem===a&&ee.extend(n,{activeItem:((i=ee.first(c))==null?void 0:i.id)??void 0}),n}default:return n}}const yne={syncWithLocation:!0,errorCount:!0,items:[],activeItem:void 0},fT=A.createContext(void 0);function pT(e){const t=!!(e.syncWithLocation??!0),n=!!(e.errorCount??!0),{rootMatchString:r}=e,{pathname:o}=Di.useLocation(),[i,a]=A.useReducer(vne,ee.cloneDeep(yne)),{formRootPath:c,items:u}=i,d=A.useMemo(()=>({state:i,dispatch:a}),[i,a]);return A.useEffect(()=>{const p=["entities/:resource/create/*",":resource/create/*","entities/:resource/:id/show/*",":resource/:id/show/*","entities/:resource/:id/*",":resource/:id/*"];r!==void 0&&p.push(r);const g=ee.chain(p).map(y=>Di.matchPath(y,o)).reject(y=>y===null).first().value(),v=g==null?void 0:g.pathnameBase;v!==void 0&&v!==c&&a({type:"setFormRootPath",payload:v})},[o,c,r]),A.useEffect(()=>{a({type:"setSyncWithLocation",payload:!!t})},[t,a]),A.useEffect(()=>{a({type:"setErrorCount",payload:!!n})},[n,a]),A.useEffect(()=>{var p;if(t&&c!==void 0){let g=o.replace(c,"").replace(new RegExp(/^\/?/),"");ee.isEmpty(g)&&(g=((p=ee.chain(u).filter(v=>dT(v.id,u).length===0).orderBy([v=>fd(v.id),v=>v.index]).first().value())==null?void 0:p.id)??void 0),a({type:"setActiveItem",payload:g})}},[a,c,o,u,t]),f.jsx(fT.Provider,{value:d,children:e.children})}function hT(){const e=A.useContext(fT);if(e===void 0)throw new Error("[LongForm] useFormContext: context undefined. Please provide a valid Context using LongForm.Provider");return e}function $l(){return hT().state}function U0(){return hT().dispatch}function gT(){return $l().formRootPath}function mT(){return $l().activeItem}function vT(){return $l().items}function yT(){return $l().syncWithLocation}function bT(){return $l().errorCount}function xT(){const e=U0();return A.useCallback(n=>{e({type:"setActiveItem",payload:n})},[e])}function CT(){const e=U0();return A.useCallback(n=>{e({type:"addItem",payload:n})},[e])}function wT(){const e=U0();return A.useCallback(n=>{e({type:"removeItem",payload:n})},[e])}const bne=ce(S.Grid,{name:"LongFormView",slot:"Root"})(({theme:e})=>({"& .MuiToolbar-root.RaToolbar-desktopToolbar":{marginLeft:`-${e.spacing(3)}`,marginRight:`-${e.spacing(3)}`,marginBottom:`-${e.spacing(2)}`,paddingTop:e.spacing(2.5),paddingBottom:e.spacing(2.5),[e.breakpoints.down("sm")]:{width:"auto !important",marginRight:0}},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingLeft:"0 !important",paddingRight:"0 !important",paddingBottom:"0 !important"},"& form > .MuiToolbar-root":{margin:0,marginRight:`-${e.spacing(.5)}`,[e.breakpoints.down("sm")]:{marginRight:e.spacing(.5)}}}));function ST(e){const{spacing:t}=Sn(),{spacing:n=t}=e,r=ee.omit(e,["spacing"]);return f.jsx(_.Form,{...r,className:"LongFormView",children:f.jsx(bne,{container:!0,spacing:n*2,children:e.children})})}function AT(e){const{disposition:t={xl:9,lg:9,md:8,sm:8,xs:12}}=e,n=ee.omit(e,["disposition"]);return f.jsx(S.Grid,{...n,item:!0,...t,children:e.children})}function ET(e){const t=mT();return t===void 0?!1:e===t||uT(e,t)}function TT(e){const t=vT();return A.useMemo(()=>dT(e,t),[t,e])}function xne(){const e=gT(),{search:t}=Di.useLocation(),n=Di.useNavigate();return A.useCallback(o=>{n(`${e}/${o}${t}`)},[e,n,t])}function IT(){const e=TT();return f.jsx(S.Card,{variant:"outlined",children:f.jsx(S.List,{sx:{"& .MuiListItemButton-root.Mui-selected":{borderColor:"palette.primary.main",borderRightStyle:"solid",borderRightWidth:2},"& .MuiListItemAvatar-root":{minWidth:24}},children:ee.map(e,(t,n)=>f.jsx(H0,{...t},n))})})}function H0(e){const t=Z.useTranslate()??ee.identity,n=OT(e),{selected:r,label:o,icon:i,onClick:a,badge:c,items:u,isGroup:d,level:p,errors:g=0}=n,{spacing:v}=Sn(),[y,b]=A.useState(r),x=A.useCallback(j=>{b(!y),a(j)},[a,y]),w=i!==void 0,T=ee.omit(e,["label","icon","selected","badge"]);return A.useEffect(()=>{r&&!y&&b(r)},[r,y,b]),f.jsxs(f.Fragment,{children:[f.jsx(S.ListItem,{...T,disablePadding:!0,children:f.jsxs(S.ListItemButton,{selected:r?!d:null,onClick:x,sx:{pl:v*p},children:[w?f.jsx(S.ListItemIcon,{children:i}):null,f.jsx(S.ListItemText,{inset:!w,primary:g===0?t(o):f.jsx(S.Badge,{variant:"dot",color:"error",sx:{"& > .MuiBadge-badge":{transform:"scale(1) translate(125%, 0)"}},children:t(o)})}),c?f.jsx(S.ListItemAvatar,{children:f.jsx(Vu,{type:"filled",size:"xs",color:c.color??"default",children:c.content})}):null,d?y?f.jsx(nn.ExpandLess,{}):f.jsx(nn.ExpandMore,{}):null]})}),d?f.jsx(S.Collapse,{in:y,timeout:"auto",children:f.jsx(S.List,{children:ee.map(u,(j,E)=>f.jsx(H0,{...j},E))})}):null]})}function OT(e){const{id:t}=e,n=ET(t),r=fd(t),o=xne(),i=yT(),a=xT(),c=TT(t),u=!ee.isEmpty(c),d=A.useCallback(g=>{u||(i?o(e.id):a(e.id)),ee.isFunction(e.onClick)&&e.onClick(g)},[a,o,e,i,u]);return A.useMemo(()=>({...e,selected:n,onClick:d,items:c,isGroup:u,level:r}),[e,n,d,c,u,r])}var Cne=e=>{let t=e;for(;t=t.parentElement;){const n=getComputedStyle(t,null).getPropertyValue("overflow-y");if(t===document.body)return window;if(n==="auto"||n==="scroll"||n==="overlay")return t}return window},PT=e=>e.firstChild?e.firstChild.offsetParent===e:!0,wne=(e,t)=>{let n=e,r=0;PT(t)||(r+=e.offsetTop-t.offsetTop,t=e.offsetParent,r+=-e.offsetTop);do r+=n.offsetTop,n=n.offsetParent;while(n&&n!==t);return r},Sne=e=>{let t=e.parentElement;for(;t&&getComputedStyle(t,null).getPropertyValue("display")==="contents";)t=t.parentElement;return t||window},hl=null;typeof CSS<"u"&&CSS.supports&&(CSS.supports("position","sticky")?hl="sticky":CSS.supports("position","-webkit-sticky")&&(hl="-webkit-sticky"));var pd=!1;try{const e=Object.defineProperty({},"passive",{get(){pd={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch{}var yh=e=>{const{el:t,onChange:n,unsubs:r,measure:o}=e;if(t===window){const i=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),a=o(i()),c=()=>{Object.assign(a,o(i())),n()};return window.addEventListener("resize",c,pd),r.push(()=>window.removeEventListener("resize",c)),a}else{const i=o(t.getBoundingClientRect()),a=()=>{Object.assign(i,o(t.getBoundingClientRect())),n()},c=new ResizeObserver(a);return c.observe(t),r.push(()=>c.disconnect()),i}},Ane=e=>{const t=getComputedStyle(e,null),n=parseInt(t.getPropertyValue("padding-top"),10),r=parseInt(t.getPropertyValue("padding-bottom"),10);return{top:n,bottom:r}},Ene=(e,t,n)=>{const{bottom:r,offsetBottom:o,offsetTop:i}=n,a=Cne(e);let c=!1;const u=()=>{c||requestAnimationFrame(()=>{const F=g();F!==E&&P(F),c=!1}),c=!0};let d=a===window?window.scrollY:a.scrollTop;const p=F=>{const{offsetTop:B,height:H}=y,{naturalTop:q}=w,{height:U}=T;return F+B+H>=q+U+j+o},g=()=>{const{height:F}=y,{height:B}=T;return B+i+o<=F?3:p(d)?1:2},v=a!==window&&PT(a),y=yh({el:a,onChange:u,unsubs:t,measure:({height:F,top:B})=>({height:F,offsetTop:v?B:0})}),b=Sne(e),x=b===window?{top:0,bottom:0}:Ane(b),w=yh({el:b,onChange:u,unsubs:t,measure:({height:F})=>({height:F-x.top-x.bottom,naturalTop:b===window?0:wne(b,a)+x.top+y.offsetTop})}),T=yh({el:e,onChange:u,unsubs:t,measure:({height:F})=>({height:F})});let j=0,E=g();const P=F=>{const B=E;if(E=F,B===2&&(j=-1),F===3){e.style.position=hl,r?e.style.bottom=`${o}px`:e.style.top=`${i}px`;return}const{height:H,offsetTop:q}=y,{height:U,naturalTop:ne}=w,{height:te}=T;if(F===2)if(e.style.position="relative",j=B===0?Math.max(0,q+d-ne+i):Math.max(0,q+d+H-(ne+te+o)),r){const Y=Math.max(0,U-te-j);e.style.bottom=`${Y}px`}else e.style.top=`${j}px`;else e.style.position=hl,F===1?r?e.style.bottom=`${o}px`:e.style.top=`${H-te-o}px`:r?e.style.bottom=`${H-te-o}px`:e.style.top=`${i}px`};P(E);const O=F=>{if(F===d)return;const B=F-d;if(d=F,E===3)return;const{offsetTop:H,height:q}=y,{naturalTop:U,height:ne}=w,{height:te}=T;if(B>0)if(E===0){if(F+H+i>U){const Y=Math.max(0,H+d-U+i);F+H+q<=U+te+Y+o?P(2):P(1)}}else E===2&&p(F)&&P(1);else if(E===1){if(H+F+q<U+ne+o){const Y=Math.max(0,H+d+q-(U+te+o));H+F+i>=U+Y?P(2):P(0)}}else E===2&&H+F+i<U+j&&P(0)},k=a===window?()=>O(window.scrollY):()=>O(a.scrollTop);a.addEventListener("scroll",k,pd),a.addEventListener("mousewheel",k,pd),t.push(()=>a.removeEventListener("scroll",k),()=>a.removeEventListener("mousewheel",k))},Tne=({offsetTop:e=0,offsetBottom:t=0,bottom:n=!1}={})=>{const[r,o]=A.useState(null);return A.useEffect(()=>{if(!r||!hl)return;const i=[];return Ene(r,i,{offsetBottom:t,offsetTop:e,bottom:n}),()=>{i.forEach(a=>a())}},[r,t,e,n]),o},Ine=e=>{const{offsetTop:t,offsetBottom:n,bottom:r,children:o,className:i,style:a}=e,c=Tne({offsetTop:t,offsetBottom:n,bottom:r});return f.jsx("div",{className:i,style:a,ref:c,children:o})},One=Ine,jT=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(jT||{});function RT(e){const{sticky:t=!0,disposition:n={xl:3,lg:3,md:4,sm:4,xs:12},spacing:r=2}=e,o=ee.omit(e,["sticky","disposition","spacing"]),i=t?One:S.Box,a=A.useMemo(()=>t?{offsetTop:74,offsetBottom:r*2}:{},[t,r]);return f.jsx(S.Grid,{...o,item:!0,...n,children:f.jsx(i,{...a,children:f.jsx(S.Stack,{spacing:r,children:e.children})})})}function MT(e){return f.jsx(f.Fragment,{children:e.children})}function kT(e){const{children:t}=e;return A.useMemo(()=>{const r={top:[],bottom:[]};return A.Children.forEach(t,o=>{if(A.isValidElement(o)&&(o==null?void 0:o.type)===MT){const{position:i}=o.props;switch(i){case"top":r.top.push(o);break;case"bottom":r.bottom.push(o);break}}}),r},[t])}function FT(e){const{errors:t}=rn.useFormState(),n=bT(),{label:r,icon:o,badge:i,index:a=0,children:c}=e,u=bg(e),d=CT(),p=wT(),g=ET(u),v=[];n&&(e.sources!==void 0?v.push(...e.sources):uf(c,b=>{var x;((x=b==null?void 0:b.props)==null?void 0:x.source)!==void 0&&v.push(b.props.source)}));const y=ee.chain(v).uniq().map(b=>ee.get(t,b)).reject(b=>b===void 0).value().length;return A.useEffect(()=>{d({id:u,index:a,label:r,icon:o,badge:i,errors:y})},[d,p,r,o,u,i,a,y]),A.useEffect(()=>()=>{p(u)},[u,p]),f.jsx(S.Box,{display:g?"unset":"none",children:e.children})}function DT(e){const t=G0(e),n=bg(e);return f.jsx(FT,{...e,id:n,children:A.Children.map(t,r=>{const o=bg(r.props);return A.cloneElement(r,{id:`${n}.${o}`})})})}function _T(e){return f.jsx(FT,{...e})}function G0(e){const{children:t}=e;return A.useMemo(()=>ee.chain(A.Children.toArray(t)).filter(r=>A.isValidElement(r)&&((r==null?void 0:r.type)===_T||(r==null?void 0:r.type)===DT)).map((r,o)=>A.cloneElement(r,{index:o})).value(),[t])}function Pne(e){const{tabsDisposition:t,contentDisposition:n,spacing:r=2}=e,o=ee.pick(e,["syncWithLocation","errorCount"]),i=ee.omit(e,["tabsDisposition","contentDisposition","syncWithLocation"]),{top:a,bottom:c}=kT(e),u=G0(e);return f.jsx(pT,{...o,children:f.jsxs(ST,{...i,spacing:r,children:[f.jsxs(RT,{disposition:t,spacing:r,children:[a,f.jsx(IT,{}),c]}),f.jsx(AT,{disposition:n,children:u})]})})}const Ft=Pne;Ft.BaseForm=ST;Ft.Content=AT;Ft.Provider=pT;Ft.useItems=vT;Ft.useSyncWithLocation=yT;Ft.useErrorCount=bT;Ft.useFormRootPath=gT;Ft.useActiveItem=mT;Ft.useSetActiveItem=xT;Ft.useAddItem=CT;Ft.useRemoveItem=wT;Ft.Sidebar=RT;Ft.SidebarSection=MT;Ft.SidebarSectionPosition=jT;Ft.useSidebarChildren=kT;Ft.NavMenu=IT;Ft.NavMenuItem=H0;Ft.useNavMenuItem=OT;Ft.Tab=_T;Ft.Group=DT;Ft.useBaseItemChildren=G0;const jne=ce(_.Show,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaShow-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaShow-main>.MuiPaper-root:first-of-type":{overflow:"visible"}}));function Rne(e){return f.jsx(jne,{...e})}const Mne=ce(_.SimpleFormIterator,{root:"root"})(({theme:e})=>({"& .RaSimpleFormIterator-line":{paddingTop:e.spacing(1),paddingBottom:e.spacing(.5)},"& .RaSimpleFormIterator-action":{display:"flex",flexDirection:"row",alignItems:"center",mb:1.5},"& section":{width:"100%","& label":{position:"relative",overflow:"visible",transform:"none",marginLeft:0}}}));function kne(e){return f.jsx(Mne,{...e})}const Fne=kl(_.TabbedForm,{slot:"Root"})(({theme:e})=>({"& .MuiGrid-root.MuiGrid-container":{paddingBottom:0},[e.breakpoints.down("sm")]:{paddingBottom:0,"& .MuiTableContainer-root":{paddingBottom:e.spacing(1)}}}));function Dne({children:e}){return f.jsx(f.Fragment,{children:e})}function q0(e){const{title:t,modal:n,content:r,subheader:o,secondary:i=f.jsx(Qo,{children:f.jsx(Nl,{})}),sx:a,noPadding:c,toolbar:u=f.jsx(ni,{children:f.jsx(_.SaveButton,{type:"button"})}),...d}=e,p=L0(t),g=S.useTheme();return f.jsx(Mn,{title:p,modal:n,content:r,subheader:o,secondary:i,sx:{...a,"& .MuiTabs-root":{m:2.5,mb:0},"& .tabbed-form > .MuiDivider-root":{ml:2.5,mr:2.5},"& .MuiToolbar-root.RaToolbar-desktopToolbar":{paddingTop:n?g.spacing(2.5):0},"& .MuiToolbar-root":{padding:g.spacing(2.5),borderTop:n?`1px solid ${g.palette.divider}`:void 0}},border:!n,divider:!0,children:f.jsx(Fne,{toolbar:u,component:c?Dne:void 0,...d})})}function _ne({children:e,...t}){return f.jsx(_.TabbedForm.Tab,{...t,children:f.jsx(S.Box,{sx:{width:"100%",p:2.5},children:e})})}q0.Tab=_.TabbedForm.Tab;q0.TabStack=_ne;function Y0(e){const{label:t,disableAdd:n,onClick:r,inset:o}=e,i=S.useTheme(),a=i.palette.mode==="dark"?i.palette.grey.A400:i.palette.grey.A800,c=i.palette.mode==="light"?"#000000":"#FFFFFF";return f.jsxs(S.Stack,{justifyContent:"space-between",alignItems:"center",flexDirection:"row",sx:o?{p:2.5}:{pt:2},children:[t!==!1&&f.jsx(S.Typography,{children:t}),!n&&(A.isValidElement(e==null?void 0:e.customButton)?A.cloneElement(e==null?void 0:e.customButton,{onClick:r}):f.jsx(S.IconButton,{color:"secondary",sx:{border:`1px solid ${a}`},onClick:r,children:f.jsx(We.PlusCircleOutlined,{style:{color:c}})}))]})}const K0=A.createContext(void 0);function LT(){return A.useContext(K0)}function hd(e){const{children:t}=e,{item:n,index:r}=LT(),[o,i]=A.useState(!1),{update:a}=_.useArrayInput(),c=_.useTranslate(),u=A.useCallback(d=>(i(!1),a(r,d),Promise.resolve()),[r,a]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{color:"primary",onClick:()=>i(!0),sx:{justifyContent:"flex-start"},children:c("ra.action.edit")}),f.jsx(S.Dialog,{open:o,onClose:()=>i(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(_.EditContextProvider,{value:{record:n,save:u},children:t})})]})}function BT({source:e,children:t}){const n=A.Children.only(t),{getValues:r}=rn.useFormContext(),o=_.useRecordContext({record:r()});return A.isValidElement(n)?A.cloneElement(n,{source:e,record:o}):null}function X0(e){const{label:t,disableAdd:n,inset:r,source:o,template:i}=e,[a,c]=A.useState(!1),{append:u}=_.useArrayInput(),d=A.useCallback(()=>{c(g=>!g)},[c]),p=A.useCallback(g=>(c(!1),u(g),Promise.resolve()),[c,u]);return f.jsxs(f.Fragment,{children:[A.cloneElement(f.jsx(Y0,{}),{label:t,source:o,disableAdd:n,template:i,onClick:d,inset:r}),f.jsx(S.Dialog,{open:a,onClose:d,maxWidth:"xs",children:f.jsx(Z.CreateContextProvider,{value:{save:p},children:e.children})})]})}const Z0=A.createContext(void 0);function NT(){return A.useContext(Z0)}const $T=D.forwardRef((e,t)=>{const{children:n,disabled:r,disableRemove:o=!1,index:i,member:a,resource:c,record:u}=e,d=_.useTranslate(),[p,g]=D.useState(!1),{total:v,remove:y}=NT(),b=D.useCallback(()=>{g(!1),y(i)},[i,y]),x=A.useMemo(()=>({index:i,total:v,item:u,remove:()=>y(i)}),[i,v,y,u]),w=A.useMemo(()=>A.Children.map(n,T=>A.isValidElement(T)&&(T==null?void 0:T.type)===hd&&D.isValidElement(T)?T:null),[n]);return f.jsxs(K0.Provider,{value:x,children:[A.Children.map(n,(T,j)=>{if(T.type===hd||!A.isValidElement(T))return null;const{source:E,...P}=T.props;return f.jsx(S.TableCell,{children:A.cloneElement(T,{source:E?`${a}.${E}`:a,index:E?void 0:j,resource:c,disabled:r,...P,label:""})})}),!o&&f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsxs(Qo,{horizontal:!0,children:[f.jsx(S.Button,{onClick:()=>g(!0),color:"error",sx:{justifyContent:"flex-start"},children:d("ra.action.delete")}),w]})})}),o&&w?f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsx(Qo,{horizontal:!0,children:w})})}):null,n.length>0&&f.jsx(_.Confirm,{isOpen:p,title:d("ra.action.remove_item"),content:d("ra.message.remove_item"),onConfirm:b,onClose:()=>g(!1)})]})});function Lne(e){var Q,$;const{children:t,resource:n,source:r,label:o,disableAdd:i=!1,disableRemove:a=!1,enableClearAll:c=!1,className:u,empty:d,template:p={},addButton:g=f.jsx(Y0,{}),inset:v,sx:y}=e,[b,x]=A.useState(!1),{fields:w,remove:T,replace:j,append:E}=_.useArrayInput(e),{resetField:P}=rn.useFormContext(),O=gt(),k=Z.useTranslate(),F=A.useRef(p||{}),B=Z.useTranslateLabel(),H=A.useCallback(oe=>{T(oe)},[T]);if(w.length>0){const{...oe}=w[0];F.current=oe;for(const W in F.current)F.current[W]=null}const q=A.useCallback((oe=void 0)=>{let W=oe;oe==null&&(W=F.current,A.Children.count(t)===1&&D.isValidElement(A.Children.only(t))&&!A.Children.only(t).props.source&&A.Children.map(t,ue=>D.isValidElement(ue)&&ue.type!==Z.FormDataConsumer).some(Boolean)?W="":(W=W||{},A.Children.forEach(t,ue=>{D.isValidElement(ue)&&ue.type!==Z.FormDataConsumer&&ue.props.source&&(W[ue.props.source]=ue.props.defaultValue??null)})));const J={...W,...p};E(J),P(`${r}.${w.length}`,{defaultValue:W})},[E,t,P,r,w.length,p]);function U(oe){return W=>{q(),oe&&oe(W)}}const ne=A.useCallback(()=>{j([]),x(!1)},[j]),te=A.useMemo(()=>({total:w.length,remove:H,source:r}),[w.length,H,r]),Y=O.palette.mode==="dark"?O.palette.grey.A400:O.palette.grey.A800,X=w.length>0&&c,N=v===!0?{borderRadius:0,borderBottom:`1px solid ${O.palette.divider}`}:{mt:2,border:`1px solid ${Y}`,boxShadow:O.customShadows.z0};return w?f.jsx(Z0.Provider,{value:te,children:f.jsxs("div",{className:u,children:[D.cloneElement(g,{label:o,source:r,disableAdd:i,template:p,onClick:(g==null?void 0:g.type)!==X0?U(($=(Q=e==null?void 0:e.addButton)==null?void 0:Q.props)==null?void 0:$.onClick):void 0,inset:v}),f.jsx(S.TableContainer,{component:S.Paper,sx:{...N,boxShadow:O.customShadows.z0,...y},children:f.jsxs(S.Table,{size:"small",children:[f.jsx(S.TableHead,{sx:v===!0?{}:{borderTop:0,borderBottom:`1px solid ${Y}`},children:f.jsxs(S.TableRow,{children:[A.Children.map(t,(oe,W)=>{if(oe.type===hd||!D.isValidElement(oe))return null;const J=f.jsx(S.Typography,{display:"flex",variant:"subtitle1",color:"text.primary",textTransform:"none",children:B({...oe.props,resource:n})});return f.jsx(S.TableCell,{children:oe.props.title?f.jsx(Xd,{title:oe.props.title,arrow:!0,children:J}):J},W)}),!a&&X?f.jsx(S.TableCell,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(Qo,{horizontal:!0,children:f.jsx(S.Typography,{color:"error",onClick:()=>x(!0),children:k("ra.action.delete")})})},"actions"):f.jsx(S.TableCell,{},"empty_actions")]})}),f.jsxs(S.TableBody,{children:[w.length===0&&f.jsx(S.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:f.jsx(S.TableCell,{colSpan:4+(a?0:1),align:"center",children:d||f.jsx(S.Typography,{variant:"body1",color:"text.secondary",children:"-"})})}),w.length>0&&w.map((oe,W)=>f.jsx(S.TableRow,{sx:{borderBottom:0},children:f.jsx($T,{disableRemove:a,index:W,member:`${r}.${W}`,onRemoveField:H,record:w&&w[W]||{},resource:n,source:r,children:t})},oe.id))]})]})}),w.length>0&&f.jsx(_.Confirm,{isOpen:b,title:k("ra.action.clear_array_input"),content:k("ra.message.clear_array_input"),onConfirm:ne,onClose:()=>x(!1)})]})}):null}const Bne=ce(Lne,{slot:"Root"})(({theme:e})=>({"& > div.MuiPaper-root":{overflowX:"auto",[e.breakpoints.down("sm")]:{width:`calc(100vw - ${e.spacing(8.25)})`}},[e.breakpoints.down("sm")]:{"& .MuiTableRow-root:last-child":{borderBottom:0}}})),df=Bne;df.CreateButton=X0;df.EditButton=hd;df.Field=BT;const VT=A.createContext(void 0);function ff(){const e=A.useContext(VT);if(!e)throw new Error("useWizardFormContext must be used within a WizardFormProvider");return e}function Nne({value:e,children:t}){return f.jsx(VT.Provider,{value:e,children:t})}function $ne({cancelButton:e,...t}){const{hasNextStep:n,hasPreviousStep:r,goToNextStep:o,goToPreviousStep:i}=ff(),a=Z.useTranslate(),{handleSubmit:c}=rn.useFormContext(),u=A.useCallback(()=>{o()},[o]);return f.jsxs(ni,{...t,children:[f.jsx(S.Box,{sx:{"& .MuiButtonBase-root":{ml:0}},children:e?A.cloneElement(e):null}),f.jsx(S.Box,{sx:{flex:"1 1 auto"}}),r()&&f.jsx(S.Button,{variant:"text",color:"primary",onClick:i,children:a("ra.action.back")}),n()?f.jsx(S.Button,{variant:"contained",color:"primary",onClick:c(u),children:a("ra.action.next")}):f.jsx(_.SaveButton,{})]})}const Vne=S.styled(S.Stepper,{shouldForwardProp:e=>e!=="isHorizontal"})(({theme:e,isHorizontal:t})=>({paddingBottom:e.spacing(2),display:"flex",justifyContent:t?"space-between":"flex-start",".MuiStep-root":{flex:t?1:"none",maxWidth:t?"none":"100%",display:"flex",justifyContent:t?"center":"flex-start"},".MuiStepConnector-line.MuiStepConnector-lineVertical":{minHeight:12},".MuiStepConnector-vertical":{marginLeft:14.5},".MuiStepConnector-horizontal":{marginLeft:-10}})),Wne=S.styled(S.Box)(({theme:e,ownerState:t})=>({backgroundColor:t.error?e.palette.error.main:t.completed||t.active?e.palette.primary.main:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[400],zIndex:1,color:e.palette.common.white,width:30,height:30,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center"}));function zne({completed:e,active:t,error:n,icon:r,className:o}){return f.jsx(Wne,{ownerState:{completed:e,active:t,error:n},className:o,children:n?"!":r})}function Une({isHorizontal:e,setCurrentStep:t,stepFields:n}){const{currentStep:r,steps:o}=ff(),{errors:i}=rn.useFormState();function a(c){c<=r&&t(c)}return f.jsx(Vne,{activeStep:r,orientation:e?"horizontal":"vertical",isHorizontal:e,sx:{p:3,mt:1},children:o.map((c,u)=>{const d=n[u].some(v=>ee.get(i,v)),{label:p,icon:g}=c.props;return f.jsx(S.Step,{children:f.jsx(S.StepLabel,{StepIconComponent:zne,error:d,icon:g,onClick:()=>a(u),style:{cursor:u<=r?"pointer":"default"},children:e?null:p})},u)})})}function Hne({title:e,subheader:t,secondary:n,toolbar:r,progress:o,isSmall:i,modal:a,sx:c,setCurrentStep:u}){const{currentStep:d,steps:p}=ff(),g=_.useTranslate(),v=S.useTheme(),y=i||a,b=A.useMemo(()=>r?A.Children.toArray(r.props.children).find(w=>{var T;return A.isValidElement(w)&&w.type===S.Button&&((T=w.props)==null?void 0:T.children)===g("ra.action.cancel")}):null,[r,g]),x=p.map(w=>{const T=[],{sources:j}=w.props;return j!==void 0?T.push(...j):uf(w,E=>{var P;((P=E==null?void 0:E.props)==null?void 0:P.source)!==void 0&&T.push(E.props.source)}),T});return f.jsxs(S.Grid,{container:!0,spacing:2,sx:c,children:[f.jsx(S.Grid,{item:!0,xl:a?12:2,lg:a?12:3,md:a?12:3,sm:a?12:4,xs:12,children:o||f.jsx(Une,{isHorizontal:y,setCurrentStep:u,stepFields:x})}),a?f.jsx(S.Divider,{sx:{width:"100%"}}):null,f.jsx(S.Grid,{item:!0,xl:a?12:10,lg:a?12:9,md:a?12:9,sm:a?12:8,xs:12,sx:{paddingTop:a?"0 !important":null},children:f.jsxs(Mn,{title:e||p[d].props.label,subheader:t,secondary:n,border:!a,divider:!0,children:[f.jsx(S.Box,{children:p[d]}),f.jsx(S.Box,{sx:{"& .MuiToolbar-root":{paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:v.spacing(2)}},children:r&&!b?r:f.jsx($ne,{cancelButton:b})})]})})]})}const Gne=S.styled(_.Form,{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({[e.breakpoints.down("sm")]:t?{}:{paddingBottom:`${e.spacing(2.5)}`}}));function WT({children:e,toolbar:t,progress:n,title:r,subheader:o=null,secondary:i=null,sx:a,modal:c=!1,...u}){const[d,p]=A.useState(0),g=A.Children.toArray(e),v=S.useMediaQuery(j=>j.breakpoints.down("sm"));function y(){return d<g.length-1}function b(){return d>0}function x(){p(j=>Math.min(j+1,g.length-1))}function w(){p(j=>Math.max(j-1,0))}const T={currentStep:d,steps:g,hasNextStep:y,hasPreviousStep:b,goToNextStep:x,goToPreviousStep:w};return f.jsx(Nne,{value:T,children:f.jsx(Gne,{...u,modal:c,children:f.jsx(Hne,{title:r,subheader:o,secondary:i,modal:c,sx:a,toolbar:t,progress:n,isSmall:v,setCurrentStep:p})})})}function qne({children:e}){return f.jsx(f.Fragment,{children:e})}WT.Step=qne;function Yne(e,t){const n=ee.clone(e),{type:r,payload:o}=t;switch(r){case"updateMedia":{const i=ee.chain(n.media).clone().extend(o).value();return ee.extend(n,{media:i})}case"updateDrawer":{const i=ee.chain(n.drawer).clone().extend(o).value();return ee.extend(n,{drawer:i})}case"updateLogo":{const i=ee.chain(n.logo).clone().extend(o).value();return ee.extend(n,{logo:i})}case"updateNotifications":{const i=ee.chain(n.notifications).clone().extend(o).value();return ee.extend(n,{notifications:i})}case"updateTheme":{const i=ee.chain(n.theme).clone().extend(o).value();return ee.extend(n,{theme:i})}default:return n}}const Kne={drawer:{open:!0,width:260,handleDrawerToggle:()=>{}},media:{downMd:!1,downLg:!1,downXl:!1,horizontal:!1},logo:{},notifications:{enable:!0,resource:"entities/notification"},theme:{iconColor:"grey.300",iconColorOpen:"grey.100"}},zT=A.createContext(void 0);function UT(e){var q;const t=Z.useAuthProvider(),n=Z.useGetIdentity(),r=S.useTheme(),o=S.useMediaQuery(r.breakpoints.down("md")),i=S.useMediaQuery(r.breakpoints.down("lg")),a=S.useMediaQuery(r.breakpoints.down("xl")),{miniDrawer:c,isHorizontalLayout:u,themeDirection:d,drawerWidth:p}=N0(),g=u(d)&&!i,{drawerOpen:v,openDrawer:y}=sf(),b=A.useCallback(()=>{y(!v)},[v,y]),[x,w]=A.useState(!1),[T,j]=A.useReducer(Yne,ee.chain(Kne).clone().merge({drawer:{open:!c||v}}).value()),E=A.useCallback(()=>w(!1),[]),P=A.useMemo(()=>({state:T,dispatch:j}),[T,j]),{logoIcon:O,logoMain:k,enableNotification:F,notification:B}=e,H=_.useLoading();return A.useEffect(()=>{j({type:"updateMedia",payload:{downMd:o,downLg:i,downXl:a,horizontal:g}})},[o,i,a,g]),A.useEffect(()=>{j({type:"updateDrawer",payload:{open:v,width:p,handleDrawerToggle:b}})},[v,p,b]),A.useEffect(()=>{c||y(!a)},[a,c]),A.useEffect(()=>{j({type:"updateLogo",payload:{main:k,icon:O}})},[O,k]),A.useEffect(()=>{j({type:"updateNotifications",payload:{enable:F,resource:B??"entities/notification"}})},[F,B]),A.useEffect(()=>{j({type:"updateTheme",payload:{iconColorOpen:r.palette.mode==="dark"?"grey.200":"grey.300",iconColor:r.palette.mode==="dark"?"background.default":"grey.100"}})},[r.palette.mode]),A.useEffect(()=>{if(!H){if(!t.isImpersonating){console.warn("authProvider does not contain a method called isImpersonating",t);return}t==null||t.isImpersonating().then(U=>{var ne;w(!U&&((ne=n==null?void 0:n.data)==null?void 0:ne.needToChangePassword)===!0)})}},[(q=n==null?void 0:n.data)==null?void 0:q.needToChangePassword,t,H]),f.jsxs(zT.Provider,{value:P,children:[f.jsx(S.Dialog,{open:x,maxWidth:"xs",fullWidth:!0,children:f.jsx(z0,{onSuccess:E,firstAccess:!0})}),e.children]})}function HT(e){return A.forwardRef((t,n)=>{const{logoIcon:r,logoMain:o,enableNotification:i,notification:a}=t;return f.jsx(UT,{logoIcon:r,logoMain:o,enableNotification:i,notification:a,children:f.jsx(e,{ref:n,...t})})})}function Q0(){const e=A.useContext(zT);if(e===void 0)throw new Error("[Layout] useLayoutContext: context undefined. Please provide a valid LayoutContext using LayoutProvider");return e}function Xne(){return Q0().dispatch}function oa(){return Q0().state}function Qn(){return oa().media}function Hi(){return oa().drawer}function GT(){return oa().logo}function pf(){return oa().notifications}function Zne(){return oa().theme}function qT(e){const{width:t}=Hi(),{horizontal:n}=Qn(),{container:r}=Sn(),[o,i]=A.useState(null);function a(u,d){i(d)}const c=gt();return f.jsx(aZ,{onError:a,fallbackRender:({error:u,resetErrorBoundary:d})=>f.jsx(I0,{error:u,errorComponent:e.error,errorInfo:o,resetErrorBoundary:d}),children:f.jsx(A.Suspense,{fallback:f.jsx(XE,{}),children:f.jsxs(S.Box,{component:"main",sx:{width:`calc(100% - ${t}px)`,flexGrow:1,p:{xs:0,sm:2,lg:1},pt:{lg:2}},children:[f.jsx(S.Toolbar,{sx:{mt:n?8:"inherit"}})," ",f.jsx(S.Container,{maxWidth:r?"xl":!1,sx:{...r&&{px:{xs:0,sm:2}},position:"relative",minHeight:"calc(100vh - 110px)",display:"flex",flexDirection:"column",[c.breakpoints.down("sm")]:{px:"12px"}},children:e.children})]})})})}const YT=ce(S.Box,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({...e.mixins.toolbar,display:"flex",alignItems:"center",justifyContent:t?"flex-start":"center",paddingLeft:e.spacing(t?3:0)}));function KT({isIcon:e,sx:t,to:n,logoIcon:r,logoMain:o}){const{appDefaultPath:i}=Sn();return f.jsx(S.ButtonBase,{disableRipple:!0,component:ut.Link,to:n||i,sx:t,children:e?r:o})}function XT(e){const t=S.useTheme(),{horizontal:n}=Qn(),{open:r}=Hi(),{icon:o,main:i}=GT(),a=Mr(e,{minHeight:n?"unset":"60px",width:n?{xs:"100%",lg:"424px"}:"inherit",paddingTop:n?{xs:"10px",lg:"0"}:"8px",paddingBottom:n?{xs:"18px",lg:"0"}:"8px",paddingLeft:n?{xs:"24px",lg:"0"}:r?"24px":0});return f.jsx(YT,{theme:t,open:r,sx:a,children:f.jsx(KT,{to:"/",isIcon:!r,sx:{width:r?"auto":35,height:35},logoMain:i,logoIcon:o})})}function ZC(e,t){return{width:t,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",boxShadow:e.palette.mode==="dark"?e.customShadows.z1:"none"}}function QC(e){return{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:e.spacing(7.5),borderRight:"none",boxShadow:e.customShadows.z1}}const Qne=ce(S.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Sn();return{width:n,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...ZC(e,n),"& .MuiDrawer-paper":ZC(e,n)},...!t&&{...QC(e),"& .MuiDrawer-paper":QC(e)}}});var Ae={},xg={exports:{}};(function(e,t){(function(n,r){var o="1.0.39",i="",a="?",c="function",u="undefined",d="object",p="string",g="major",v="model",y="name",b="type",x="vendor",w="version",T="architecture",j="console",E="mobile",P="tablet",O="smarttv",k="wearable",F="embedded",B=500,H="Amazon",q="Apple",U="ASUS",ne="BlackBerry",te="Browser",Y="Chrome",X="Edge",N="Firefox",Q="Google",$="Huawei",oe="LG",W="Microsoft",J="Motorola",ue="Opera",he="Samsung",de="Sharp",pe="Sony",ge="Xiaomi",we="Zebra",ye="Facebook",ve="Chromium OS",Ce="Mac OS",Te=" Browser",fe=function(ke,Fe){var Ie={};for(var xe in ke)Fe[xe]&&Fe[xe].length%2===0?Ie[xe]=Fe[xe].concat(ke[xe]):Ie[xe]=ke[xe];return Ie},Ge=function(ke){for(var Fe={},Ie=0;Ie<ke.length;Ie++)Fe[ke[Ie].toUpperCase()]=ke[Ie];return Fe},me=function(ke,Fe){return typeof ke===p?Qe(Fe).indexOf(Qe(ke))!==-1:!1},Qe=function(ke){return ke.toLowerCase()},an=function(ke){return typeof ke===p?ke.replace(/[^\d\.]/g,i).split(".")[0]:r},Et=function(ke,Fe){if(typeof ke===p)return ke=ke.replace(/^\s\s*/,i),typeof Fe===u?ke:ke.substring(0,B)},mt=function(ke,Fe){for(var Ie=0,xe,ft,Vt,$e,Oe,Zt;Ie<Fe.length&&!Oe;){var er=Fe[Ie],Ar=Fe[Ie+1];for(xe=ft=0;xe<er.length&&!Oe&&er[xe];)if(Oe=er[xe++].exec(ke),Oe)for(Vt=0;Vt<Ar.length;Vt++)Zt=Oe[++ft],$e=Ar[Vt],typeof $e===d&&$e.length>0?$e.length===2?typeof $e[1]==c?this[$e[0]]=$e[1].call(this,Zt):this[$e[0]]=$e[1]:$e.length===3?typeof $e[1]===c&&!($e[1].exec&&$e[1].test)?this[$e[0]]=Zt?$e[1].call(this,Zt,$e[2]):r:this[$e[0]]=Zt?Zt.replace($e[1],$e[2]):r:$e.length===4&&(this[$e[0]]=Zt?$e[3].call(this,Zt.replace($e[1],$e[2])):r):this[$e]=Zt||r;Ie+=2}},Bn=function(ke,Fe){for(var Ie in Fe)if(typeof Fe[Ie]===d&&Fe[Ie].length>0){for(var xe=0;xe<Fe[Ie].length;xe++)if(me(Fe[Ie][xe],ke))return Ie===a?r:Ie}else if(me(Fe[Ie],ke))return Ie===a?r:Ie;return Fe.hasOwnProperty("*")?Fe["*"]:ke},Tt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},vt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Kt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,w],[/opios[\/ ]+([\w\.]+)/i],[w,[y,ue+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[y,ue+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[y,ue]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[y,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[y,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[y,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+te],w],[/\bfocus\/([\w\.]+)/i],[w,[y,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[y,ue+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[y,ue+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[y,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[w,[y,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360"+Te]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+Te],w],[/samsungbrowser\/([\w\.]+)/i],[w,[y,he+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],w],[/metasr[\/ ]?([\d\.]+)/i],[w,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[y,w],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,ye],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[y,Y+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,Y+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[y,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[w,Bn,Tt]],[/(webkit|khtml)\/([\w\.]+)/i],[y,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],w],[/(wolvic)\/([\w\.]+)/i],[y,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[y,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[y,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,Qe]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,i,Qe]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,Qe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[x,he],[b,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[x,he],[b,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[x,q],[b,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[x,q],[b,P]],[/(macintosh);/i],[v,[x,q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[x,de],[b,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[x,$],[b,P]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[x,$],[b,E]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[v,/_/g," "],[x,ge],[b,E]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[x,ge],[b,P]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[x,"OPPO"],[b,E]],[/\b(opd2\d{3}a?) bui/i],[v,[x,"OPPO"],[b,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[x,"Vivo"],[b,E]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[x,"Realme"],[b,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[x,J],[b,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[x,J],[b,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[x,oe],[b,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[x,oe],[b,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[x,"Lenovo"],[b,P]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[x,"Nokia"],[b,E]],[/(pixel c)\b/i],[v,[x,Q],[b,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[x,Q],[b,E]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[x,pe],[b,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[x,pe],[b,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[x,"OnePlus"],[b,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[x,H],[b,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[x,H],[b,E]],[/(playbook);[-\w\),; ]+(rim)/i],[v,x,[b,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[x,ne],[b,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[x,U],[b,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[x,U],[b,E]],[/(nexus 9)/i],[v,[x,"HTC"],[b,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[v,/_/g," "],[b,E]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[v,[x,"TCL"],[b,P]],[/(itel) ((\w+))/i],[[x,Qe],v,[b,Bn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[x,"Acer"],[b,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[x,"Meizu"],[b,E]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[x,"Ulefone"],[b,E]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[x,"Nothing"],[b,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[x,v,[b,E]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[x,v,[b,P]],[/(surface duo)/i],[v,[x,W],[b,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[x,"Fairphone"],[b,E]],[/(u304aa)/i],[v,[x,"AT&T"],[b,E]],[/\bsie-(\w*)/i],[v,[x,"Siemens"],[b,E]],[/\b(rct\w+) b/i],[v,[x,"RCA"],[b,P]],[/\b(venue[\d ]{2,7}) b/i],[v,[x,"Dell"],[b,P]],[/\b(q(?:mv|ta)\w+) b/i],[v,[x,"Verizon"],[b,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[x,"Barnes & Noble"],[b,P]],[/\b(tm\d{3}\w+) b/i],[v,[x,"NuVision"],[b,P]],[/\b(k88) b/i],[v,[x,"ZTE"],[b,P]],[/\b(nx\d{3}j) b/i],[v,[x,"ZTE"],[b,E]],[/\b(gen\d{3}) b.+49h/i],[v,[x,"Swiss"],[b,E]],[/\b(zur\d{3}) b/i],[v,[x,"Swiss"],[b,P]],[/\b((zeki)?tb.*\b) b/i],[v,[x,"Zeki"],[b,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[x,"Dragon Touch"],v,[b,P]],[/\b(ns-?\w{0,9}) b/i],[v,[x,"Insignia"],[b,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[x,"NextBook"],[b,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[x,"Voice"],v,[b,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[x,"LvTel"],v,[b,E]],[/\b(ph-1) /i],[v,[x,"Essential"],[b,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[x,"Envizen"],[b,P]],[/\b(trio[-\w\. ]+) b/i],[v,[x,"MachSpeed"],[b,P]],[/\btu_(1491) b/i],[v,[x,"Rotor"],[b,P]],[/(shield[\w ]+) b/i],[v,[x,"Nvidia"],[b,P]],[/(sprint) (\w+)/i],[x,v,[b,E]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[x,W],[b,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[x,we],[b,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[x,we],[b,E]],[/smart-tv.+(samsung)/i],[x,[b,O]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[x,he],[b,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,oe],[b,O]],[/(apple) ?tv/i],[x,[v,q+" TV"],[b,O]],[/crkey/i],[[v,Y+"cast"],[x,Q],[b,O]],[/droid.+aft(\w+)( bui|\))/i],[v,[x,H],[b,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[x,de],[b,O]],[/(bravia[\w ]+)( bui|\))/i],[v,[x,pe],[b,O]],[/(mitv-\w{5}) bui/i],[v,[x,ge],[b,O]],[/Hbbtv.*(technisat) (.*);/i],[x,v,[b,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,Et],[v,Et],[b,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[x,v,[b,j]],[/droid.+; (shield) bui/i],[v,[x,"Nvidia"],[b,j]],[/(playstation [345portablevi]+)/i],[v,[x,pe],[b,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[x,W],[b,j]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[x,he],[b,k]],[/((pebble))app/i],[x,v,[b,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[x,q],[b,k]],[/droid.+; (glass) \d/i],[v,[x,Q],[b,k]],[/droid.+; (wt63?0{2,3})\)/i],[v,[x,we],[b,k]],[/(quest( \d| pro)?)/i],[v,[x,ye],[b,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[b,F]],[/(aeobc)\b/i],[v,[x,H],[b,F]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[b,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[b,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,E]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[y,X+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,w],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[y,[w,Bn,vt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Bn,vt],[y,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ce],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,w],[/\(bb(10);/i],[w,[y,ne]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[y,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[y,Y+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,ve],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,w],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,w]]},yt=function(ke,Fe){if(typeof ke===d&&(Fe=ke,ke=r),!(this instanceof yt))return new yt(ke,Fe).getResult();var Ie=typeof n!==u&&n.navigator?n.navigator:r,xe=ke||(Ie&&Ie.userAgent?Ie.userAgent:i),ft=Ie&&Ie.userAgentData?Ie.userAgentData:r,Vt=Fe?fe(Kt,Fe):Kt,$e=Ie&&Ie.userAgent==xe;return this.getBrowser=function(){var Oe={};return Oe[y]=r,Oe[w]=r,mt.call(Oe,xe,Vt.browser),Oe[g]=an(Oe[w]),$e&&Ie&&Ie.brave&&typeof Ie.brave.isBrave==c&&(Oe[y]="Brave"),Oe},this.getCPU=function(){var Oe={};return Oe[T]=r,mt.call(Oe,xe,Vt.cpu),Oe},this.getDevice=function(){var Oe={};return Oe[x]=r,Oe[v]=r,Oe[b]=r,mt.call(Oe,xe,Vt.device),$e&&!Oe[b]&&ft&&ft.mobile&&(Oe[b]=E),$e&&Oe[v]=="Macintosh"&&Ie&&typeof Ie.standalone!==u&&Ie.maxTouchPoints&&Ie.maxTouchPoints>2&&(Oe[v]="iPad",Oe[b]=P),Oe},this.getEngine=function(){var Oe={};return Oe[y]=r,Oe[w]=r,mt.call(Oe,xe,Vt.engine),Oe},this.getOS=function(){var Oe={};return Oe[y]=r,Oe[w]=r,mt.call(Oe,xe,Vt.os),$e&&!Oe[y]&&ft&&ft.platform&&ft.platform!="Unknown"&&(Oe[y]=ft.platform.replace(/chrome os/i,ve).replace(/macos/i,Ce)),Oe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return xe},this.setUA=function(Oe){return xe=typeof Oe===p&&Oe.length>B?Et(Oe,B):Oe,this},this.setUA(xe),this};yt.VERSION=o,yt.BROWSER=Ge([y,w,g]),yt.CPU=Ge([T]),yt.DEVICE=Ge([v,x,b,j,E,O,P,k,F]),yt.ENGINE=yt.OS=Ge([y,w]),e.exports&&(t=e.exports=yt),t.UAParser=yt;var $t=typeof n!==u&&(n.jQuery||n.Zepto);if($t&&!$t.ua){var It=new yt;$t.ua=It.getResult(),$t.ua.get=function(){return It.getUA()},$t.ua.set=function(ke){It.setUA(ke);var Fe=It.getResult();for(var Ie in Fe)$t.ua[Ie]=Fe[Ie]}}})(typeof window=="object"?window:wn)})(xg,xg.exports);var Jne=xg.exports;Object.defineProperty(Ae,"__esModule",{value:!0});function ere(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var hn=A,ht=ere(hn),ZT=Jne,ri=new ZT,mn=ri.getBrowser(),tre=ri.getCPU(),Jn=ri.getDevice(),J0=ri.getEngine(),oi=ri.getOS(),Vl=ri.getUA(),QT=function(t){return ri.setUA(t)},Wl=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new ZT(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},JT=Object.freeze({ClientUAInstance:ri,browser:mn,cpu:tre,device:Jn,engine:J0,os:oi,ua:Vl,setUa:QT,parseUserAgent:Wl});function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){sre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qa=function(t){return typeof t}:Qa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function rre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ore(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ire(e,t,n){return t&&ore(e.prototype,t),e}function sre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cg(){return Cg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cg.apply(this,arguments)}function are(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sg(e,t)}function wg(e){return wg=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wg(e)}function Sg(e,t){return Sg=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Sg(e,t)}function lre(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Sr(e,t){if(e==null)return{};var n=lre(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Su(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cre(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Su(e)}function ure(e,t){return dre(e)||fre(e,t)||pre(e,t)||hre()}function dre(e){if(Array.isArray(e))return e}function fre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,c=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw c}}return r}}function pre(e,t){if(e){if(typeof e=="string")return ew(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ew(e,t)}}function ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
225
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pn={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Ln={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ia={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},gre={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},mre=function(t){switch(t){case pn.Mobile:return{isMobile:!0};case pn.Tablet:return{isTablet:!0};case pn.SmartTv:return{isSmartTV:!0};case pn.Console:return{isConsole:!0};case pn.Wearable:return{isWearable:!0};case pn.Browser:return{isBrowser:!0};case pn.Embedded:return{isEmbedded:!0};default:return gre}},vre=function(t){return QT(t)},De=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},ev=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},tv=function(t){var n=ev();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},yre=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:De(n.major),browserFullVersion:De(n.version),browserName:De(n.name),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}},tw=function(t,n,r,o){return nre({},t,{vendor:De(n.vendor),model:De(n.model),os:De(r.name),osVersion:De(r.version),ua:De(o)})},bre=function(t,n,r,o){return{isSmartTV:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},xre=function(t,n,r,o){return{isConsole:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},Cre=function(t,n,r,o){return{isWearable:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},wre=function(t,n,r,o,i){return{isEmbedded:t,vendor:De(n.vendor),model:De(n.model),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}};function Sre(e){var t=e?Wl(e):JT,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,c=mre(n.type),u=c.isBrowser,d=c.isMobile,p=c.isTablet,g=c.isSmartTV,v=c.isConsole,y=c.isWearable,b=c.isEmbedded;if(u)return yre(u,r,o,i,a);if(g)return bre(g,o,i,a);if(v)return xre(v,o,i,a);if(d||p)return tw(c,n,i,a);if(y)return Cre(y,o,i,a);if(b)return wre(b,n,o,i,a)}var eI=function(t){var n=t.type;return n===pn.Mobile},tI=function(t){var n=t.type;return n===pn.Tablet},nI=function(t){var n=t.type;return n===pn.Mobile||n===pn.Tablet},rI=function(t){var n=t.type;return n===pn.SmartTv},gd=function(t){var n=t.type;return n===pn.Browser},oI=function(t){var n=t.type;return n===pn.Wearable},iI=function(t){var n=t.type;return n===pn.Console},sI=function(t){var n=t.type;return n===pn.Embedded},aI=function(t){var n=t.vendor;return De(n)},lI=function(t){var n=t.model;return De(n)},cI=function(t){var n=t.type;return De(n,"browser")},uI=function(t){var n=t.name;return n===ia.Android},dI=function(t){var n=t.name;return n===ia.Windows},fI=function(t){var n=t.name;return n===ia.MAC_OS},pI=function(t){var n=t.name;return n===ia.WindowsPhone},hI=function(t){var n=t.name;return n===ia.IOS},gI=function(t){var n=t.version;return De(n)},mI=function(t){var n=t.name;return De(n)},vI=function(t){var n=t.name;return n===Ln.Chrome},yI=function(t){var n=t.name;return n===Ln.Firefox},bI=function(t){var n=t.name;return n===Ln.Chromium},md=function(t){var n=t.name;return n===Ln.Edge},xI=function(t){var n=t.name;return n===Ln.Yandex},CI=function(t){var n=t.name;return n===Ln.Safari||n===Ln.MobileSafari},wI=function(t){var n=t.name;return n===Ln.MobileSafari},SI=function(t){var n=t.name;return n===Ln.Opera},AI=function(t){var n=t.name;return n===Ln.InternetExplorer||n===Ln.Ie},EI=function(t){var n=t.name;return n===Ln.MIUI},TI=function(t){var n=t.name;return n===Ln.SamsungBrowser},II=function(t){var n=t.version;return De(n)},OI=function(t){var n=t.major;return De(n)},PI=function(t){var n=t.name;return De(n)},jI=function(t){var n=t.name;return De(n)},RI=function(t){var n=t.version;return De(n)},MI=function(){var t=ev(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Fs=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},kI=function(){var t=ev();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Nr=function(){return tv("iPad")},FI=function(){return tv("iPhone")},DI=function(){return tv("iPod")},_I=function(t){return De(t)};function LI(e){var t=e||JT,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:rI(n),isConsole:iI(n),isWearable:oI(n),isEmbedded:sI(n),isMobileSafari:wI(r)||Nr(),isChromium:bI(r),isMobile:nI(n)||Nr(),isMobileOnly:eI(n),isTablet:tI(n)||Nr(),isBrowser:gd(n),isDesktop:gd(n),isAndroid:uI(o),isWinPhone:pI(o),isIOS:hI(o)||Nr(),isChrome:vI(r),isFirefox:yI(r),isSafari:CI(r),isOpera:SI(r),isIE:AI(r),osVersion:gI(o),osName:mI(o),fullBrowserVersion:II(r),browserVersion:OI(r),browserName:PI(r),mobileVendor:aI(n),mobileModel:lI(n),engineName:jI(i),engineVersion:RI(i),getUA:_I(a),isEdge:md(r)||Fs(a),isYandex:xI(r),deviceType:cI(n),isIOS13:kI(),isIPad13:Nr(),isIPhone13:FI(),isIPod13:DI(),isElectron:MI(),isEdgeChromium:Fs(a),isLegacyEdge:md(r)&&!Fs(a),isWindows:dI(o),isMacOs:fI(o),isMIUI:EI(r),isSamsungBrowser:TI(r)}}var BI=rI(Jn),NI=iI(Jn),$I=oI(Jn),Are=sI(Jn),Ere=wI(mn)||Nr(),Tre=bI(mn),hf=nI(Jn)||Nr(),VI=eI(Jn),WI=tI(Jn)||Nr(),zI=gd(Jn),Ire=gd(Jn),UI=uI(oi),HI=pI(oi),GI=hI(oi)||Nr(),Ore=vI(mn),Pre=yI(mn),jre=CI(mn),Rre=SI(mn),qI=AI(mn),Mre=gI(oi),kre=mI(oi),Fre=II(mn),Dre=OI(mn),_re=PI(mn),Lre=aI(Jn),Bre=lI(Jn),Nre=jI(J0),$re=RI(J0),Vre=_I(Vl),Wre=md(mn)||Fs(Vl),zre=xI(mn),Ure=cI(Jn),Hre=kI(),Gre=Nr(),qre=FI(),Yre=DI(),Kre=MI(),Xre=Fs(Vl),Zre=md(mn)&&!Fs(Vl),Qre=dI(oi),Jre=fI(oi),eoe=EI(mn),toe=TI(mn),noe=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=Wl(t),r=n.device,o=n.browser,i=n.os,a=n.engine,c=n.ua;return LI({device:r,browser:o,os:i,engine:a,ua:c})},roe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return UI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},ooe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return zI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},ioe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return qI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},soe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return GI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},aoe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return hf?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},loe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return WI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},coe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return HI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},uoe=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=Sr(t,["renderWithFragment","children","viewClassName","style"]);return VI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},doe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return BI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},foe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return NI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},poe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return $I?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},hoe=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=Sr(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",i,r):null};function goe(e){return function(t){are(n,t);function n(r){var o;return rre(this,n),o=cre(this,wg(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(Su(o)),o.onOrientationChange=o.onOrientationChange.bind(Su(o)),o.onPageLoad=o.onPageLoad.bind(Su(o)),o.state={isLandscape:!1,isPortrait:!1},o}return ire(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":Qa(window))!==void 0&&hf&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ht.createElement(e,Cg({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ht.Component)}function moe(){var e=hn.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=ure(e,2),n=t[0],r=t[1],o=hn.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return hn.useEffect(function(){return(typeof window>"u"?"undefined":Qa(window))!==void 0&&hf&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function YI(e){var t=e||window.navigator.userAgent;return Wl(t)}function voe(e){var t=e||window.navigator.userAgent,n=YI(t),r=LI(n);return[r,n]}Ae.AndroidView=roe;Ae.BrowserTypes=Ln;var yoe=Ae.BrowserView=ooe;Ae.ConsoleView=foe;Ae.CustomView=hoe;Ae.IEView=ioe;Ae.IOSView=soe;Ae.MobileOnlyView=uoe;var boe=Ae.MobileView=aoe;Ae.OsTypes=ia;Ae.SmartTVView=doe;Ae.TabletView=loe;Ae.WearableView=poe;Ae.WinPhoneView=coe;Ae.browserName=_re;Ae.browserVersion=Dre;Ae.deviceDetect=Sre;Ae.deviceType=Ure;Ae.engineName=Nre;Ae.engineVersion=$re;Ae.fullBrowserVersion=Fre;Ae.getSelectorsByUserAgent=noe;Ae.getUA=Vre;Ae.isAndroid=UI;Ae.isBrowser=zI;Ae.isChrome=Ore;Ae.isChromium=Tre;Ae.isConsole=NI;Ae.isDesktop=Ire;Ae.isEdge=Wre;Ae.isEdgeChromium=Xre;Ae.isElectron=Kre;Ae.isEmbedded=Are;Ae.isFirefox=Pre;Ae.isIE=qI;Ae.isIOS=GI;Ae.isIOS13=Hre;Ae.isIPad13=Gre;Ae.isIPhone13=qre;Ae.isIPod13=Yre;Ae.isLegacyEdge=Zre;Ae.isMIUI=eoe;Ae.isMacOs=Jre;Ae.isMobile=hf;Ae.isMobileOnly=VI;Ae.isMobileSafari=Ere;Ae.isOpera=Rre;Ae.isSafari=jre;Ae.isSamsungBrowser=toe;Ae.isSmartTV=BI;Ae.isTablet=WI;Ae.isWearable=$I;Ae.isWinPhone=HI;Ae.isWindows=Qre;Ae.isYandex=zre;Ae.mobileModel=Bre;Ae.mobileVendor=Lre;Ae.osName=kre;Ae.osVersion=Mre;Ae.parseUserAgent=Wl;Ae.setUserAgent=vre;Ae.useDeviceData=YI;Ae.useDeviceSelectors=voe;Ae.useMobileOrientation=moe;Ae.withOrientationChange=goe;var xoe=typeof global=="object"&&global&&global.Object===Object&&global,Coe=typeof self=="object"&&self&&self.Object===Object&&self,KI=xoe||Coe||Function("return this")(),vd=KI.Symbol,XI=Object.prototype,woe=XI.hasOwnProperty,Soe=XI.toString,_a=vd?vd.toStringTag:void 0;function Aoe(e){var t=woe.call(e,_a),n=e[_a];try{e[_a]=void 0;var r=!0}catch{}var o=Soe.call(e);return r&&(t?e[_a]=n:delete e[_a]),o}var Eoe=Object.prototype,Toe=Eoe.toString;function Ioe(e){return Toe.call(e)}var Ooe="[object Null]",Poe="[object Undefined]",nw=vd?vd.toStringTag:void 0;function joe(e){return e==null?e===void 0?Poe:Ooe:nw&&nw in Object(e)?Aoe(e):Ioe(e)}function Roe(e){return e!=null&&typeof e=="object"}var Moe="[object Symbol]";function koe(e){return typeof e=="symbol"||Roe(e)&&joe(e)==Moe}var Foe=/\s/;function Doe(e){for(var t=e.length;t--&&Foe.test(e.charAt(t)););return t}var _oe=/^\s+/;function Loe(e){return e&&e.slice(0,Doe(e)+1).replace(_oe,"")}function yd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rw=NaN,Boe=/^[-+]0x[0-9a-f]+$/i,Noe=/^0b[01]+$/i,$oe=/^0o[0-7]+$/i,Voe=parseInt;function ow(e){if(typeof e=="number")return e;if(koe(e))return rw;if(yd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Loe(e);var n=Noe.test(e);return n||$oe.test(e)?Voe(e.slice(2),n?2:8):Boe.test(e)?rw:+e}var bh=function(){return KI.Date.now()},Woe="Expected a function",zoe=Math.max,Uoe=Math.min;function Au(e,t,n){var r,o,i,a,c,u,d=0,p=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(Woe);t=ow(t)||0,yd(n)&&(p=!!n.leading,g="maxWait"in n,i=g?zoe(ow(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function y(k){var F=r,B=o;return r=o=void 0,d=k,a=e.apply(B,F),a}function b(k){return d=k,c=setTimeout(T,t),p?y(k):a}function x(k){var F=k-u,B=k-d,H=t-F;return g?Uoe(H,i-B):H}function w(k){var F=k-u,B=k-d;return u===void 0||F>=t||F<0||g&&B>=i}function T(){var k=bh();if(w(k))return j(k);c=setTimeout(T,x(k))}function j(k){return c=void 0,v&&r?y(k):(r=o=void 0,a)}function E(){c!==void 0&&clearTimeout(c),d=0,r=u=o=c=void 0}function P(){return c===void 0?a:j(bh())}function O(){var k=bh(),F=w(k);if(r=arguments,o=this,u=k,F){if(c===void 0)return b(u);if(g)return clearTimeout(c),c=setTimeout(T,t),y(u)}return c===void 0&&(c=setTimeout(T,t)),a}return O.cancel=E,O.flush=P,O}var Hoe="Expected a function";function Goe(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Hoe);return yd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Au(e,t,{leading:r,maxWait:t,trailing:o})}var Ps=function(){return Ps=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ps.apply(this,arguments)};function ZI(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function QI(e){return!e||!e.ownerDocument?document:e.ownerDocument}var JI=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var a=i[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=o.value}}return r},t);return n};function eO(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function tO(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function nO(e){return".".concat(e.split(" ").join("."))}var nv=!!(typeof window<"u"&&window.document&&window.document.createElement),qoe=Object.freeze({__proto__:null,addClasses:eO,canUseDOM:nv,classNamesToQuery:nO,getElementDocument:QI,getElementWindow:ZI,getOptions:JI,removeClasses:tO}),bs=null,iw=null;nv&&window.addEventListener("resize",function(){iw!==window.devicePixelRatio&&(iw=window.devicePixelRatio,bs=null)});function sw(){if(bs===null){if(typeof document>"u")return bs=0,bs;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),bs=n}return bs}var Lo=ZI,xh=QI,Yoe=JI,Bo=eO,No=tO,Pn=nO,iu=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=Lo(r.el);r.scrollXTicking||(o.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(o.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Bo(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){No(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Bo(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){No(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(o){r.mouseX=o.clientX,r.mouseY=o.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var i,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(i||a)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(i&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(o,"x"):r.onTrackClick(o,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(o,"y"):r.onTrackClick(o,"y"))))}},this.drag=function(o){var i,a,c,u,d,p,g,v,y,b,x;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,T=r.axis[r.draggedAxis].track,j=(a=(i=T.rect)===null||i===void 0?void 0:i[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,E=r.axis[r.draggedAxis].scrollbar,P=(u=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,O=parseInt((p=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?w=o.pageY:w=o.pageX;var k=w-((v=(g=T.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;k=r.draggedAxis==="x"&&r.isRtl?((b=(y=T.rect)===null||y===void 0?void 0:y[r.axis[r.draggedAxis].sizeAttr])!==null&&b!==void 0?b:0)-E.size-k:k;var F=k/(j-E.size),B=F*(P-O);r.draggedAxis==="x"&&r.isRtl&&(B=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-B:B),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=B}},this.onEndDrag=function(o){r.isDragging=!1;var i=xh(r.el),a=Lo(r.el);o.preventDefault(),o.stopPropagation(),No(r.el,r.classNames.dragging),r.onStopScrolling(),i.removeEventListener("mousemove",r.drag,!0),i.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){i.removeEventListener("click",r.preventClick,!0),i.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=Ps(Ps({},e.defaultOptions),n),this.classNames=Ps(Ps({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Goe(this._onMouseMove,64),this.onWindowResize=Au(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Au(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Au(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:sw()}catch{return sw()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=xh(t),o=Lo(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){nv&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Pn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Pn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Pn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Pn(this.classNames.offset)),this.maskEl=this.el.querySelector(Pn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Pn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Pn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Pn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Pn(this.classNames.track)).concat(Pn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Pn(this.classNames.track)).concat(Pn(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Pn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Pn(this.classNames.scrollbar)))||null,this.options.autoHide||(Bo(this.axis.x.scrollbar.el,this.classNames.visible),Bo(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Lo(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,i=r.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){o&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Lo(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,i=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>i-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],i=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,a=i/o,c;return c=Math.max(~~(a*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,o;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(a-u),g=~~((c-i.size)*p);g=t==="x"&&this.isRtl?-g+(c-i.size):g,i.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Bo(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(No(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Bo(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Bo(n.scrollbar.el,this.classNames.hover):No(n.scrollbar.el,this.classNames.hover)):(No(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),No(this.axis[t].track.el,this.classNames.hover),No(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var o=xh(this.el),i=Lo(this.el),a=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Bo(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,o,i,a,c;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Lo(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[n].scrollbar,g=(i=(o=p.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&i!==void 0?i:0,v=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),y=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],b=n==="y"?this.mouseY-g:this.mouseX-g,x=b<0?-1:1,w=x===-1?y-v:y+v,T=40,j=function(){r.contentWrapperEl&&(x===-1?y>w&&(y-=T,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)):y<w&&(y+=T,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)))};j()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Lo(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return r.call(o,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Yoe,e.helpers=qoe,e}(),Gn=function(){return Gn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gn.apply(this,arguments)};function Koe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var rO=D.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,i=Koe(e,["children","scrollableNodeProps"]),a=D.useRef(),c=D.useRef(),u=D.useRef(),d={},p={};Object.keys(i).forEach(function(y){Object.prototype.hasOwnProperty.call(iu.defaultOptions,y)?d[y]=i[y]:p[y]=i[y]});var g=Gn(Gn({},iu.defaultOptions.classNames),d.classNames),v=Gn(Gn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||iu.defaultOptions.ariaLabel});return D.useEffect(function(){var y;return c.current=v.ref?v.ref.current:c.current,a.current&&(y=new iu(a.current,Gn(Gn(Gn({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),D.createElement("div",Gn({"data-simplebar":"init",ref:a},p),D.createElement("div",{className:g.wrapper},D.createElement("div",{className:g.heightAutoObserverWrapperEl},D.createElement("div",{className:g.heightAutoObserverEl})),D.createElement("div",{className:g.mask},D.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Gn(Gn({},v),{ref:c}),contentNodeRef:u,contentNodeProps:{className:g.contentEl,ref:u}}):D.createElement("div",Gn({},v),D.createElement("div",{className:g.contentEl},n)))),D.createElement("div",{className:g.placeholder})),D.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},D.createElement("div",{className:g.scrollbar})),D.createElement("div",{className:"".concat(g.track," simplebar-vertical")},D.createElement("div",{className:g.scrollbar})))});rO.displayName="SimpleBar";const Xoe=ce(yoe)({flexGrow:1,height:"100%",overflow:"hidden"}),Zoe=ce(rO)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:Je(e.palette.grey[500],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}));function oO({children:e,sx:t,...n}){return f.jsxs(f.Fragment,{children:[f.jsx(Xoe,{children:f.jsx(Zoe,{timeout:500,clickOnTrack:!1,sx:t,...n,children:e})}),f.jsx(boe,{children:f.jsx(S.Box,{sx:{overflowX:"auto",...t},...n,children:e})})]})}function iO(e){const t=S.useTheme(),n=Mr(e,{flexShrink:{md:0},zIndex:1200}),{downLg:r}=Qn(),{open:o,handleDrawerToggle:i,width:a}=Hi(),c=r?S.Drawer:Qne,u=document.body,d=A.useMemo(()=>r?{container:u,variant:"temporary",onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",lg:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:a,borderRight:`1px solid ${t.palette.divider}`,backgroundImage:"none",boxShadow:"inherit",overflow:"auto"}}}:{variant:"permanent"},[r,u,i,a,t.palette.divider]);return f.jsx(S.Box,{component:"nav",sx:n,"aria-label":"mailbox folders",children:f.jsxs(c,{...d,open:o,children:[f.jsx(XT,{}),f.jsx(oO,{sx:{"& .simplebar-content":{display:"flex",flexDirection:"column"}},children:e.children})]})})}function rv(e){const{name:t,version:n,copy:r="© Applica Software Guru for"}=e;return f.jsx(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",flexGrow:1,height:"auto",sx:{pt:1},children:f.jsxs(S.Typography,{variant:"caption",children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:r||""}})," ",t," - ",n]})})}const sO=ce(S.AppBar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Sn();return{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...!t&&{width:`calc(100% - ${e.spacing(7.5)})`},...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}}}),aO=A.forwardRef(function(t,n){const r=Mr(t,{color:"text.primary"},{defaults:!0});return f.jsx(S.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),Qoe=A.forwardRef(function(t,n){const r=Mr(t,{color:"text.primary"},{defaults:!0});return f.jsx(Hd,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),sa=A.forwardRef(function(t,n){const r=Mr(t,{color:"text.primary",borderStyle:"none",padding:1,fontSize:"1.5rem",width:36,height:36},{defaults:!0});return f.jsx(S.ToggleButton,{ref:n,...t,color:"secondary",sx:r})});function lO({onClick:e=void 0}){const{open:t,anchorEl:n,handleClose:r,handleToggle:o}=ra(),[i,a]=Z.useLocaleState(),c=Z.useLocales();if(c.length===0)return null;function u(d){if(e){e(d,r);return}a(d),r()}return f.jsxs(f.Fragment,{children:[f.jsx(aO,{value:"locale",onClick:o,sx:{minWidth:"auto"},children:f.jsxs(S.Stack,{direction:"row",spacing:.5,children:[f.jsx(S.Typography,{variant:"body1",children:i.toUpperCase()}),t?f.jsx(We.CaretUpOutlined,{}):f.jsx(We.CaretDownOutlined,{})]})}),f.jsx(S.Menu,{id:"menu-appbar",anchorEl:n,keepMounted:!0,open:t,onClose:r,children:c.map((d,p)=>f.jsx(S.MenuItem,{onClick:()=>u(d.locale),children:d.name},p))})]})}const Joe={ml:{xs:0,lg:-2}};function cO(){const{open:e,handleDrawerToggle:t}=Hi();return f.jsx(sa,{value:"drawer","aria-label":"open drawer",sx:Joe,onChange:t,selected:e,children:e?f.jsx(We.MenuFoldOutlined,{}):f.jsx(We.MenuUnfoldOutlined,{})})}function uO(e){const t=A.useRef(),n=S.useTheme(),{downLg:r,horizontal:o}=Qn(),{open:i,width:a}=Hi(),c=r?S.AppBar:sO,d={position:"fixed",color:"inherit",elevation:0,sx:Mr(e,{borderBottom:`1px solid ${n.palette.divider}`,zIndex:1200,width:o?"100%":i?`calc(100% - ${a}px)`:{xs:"100%",lg:"calc(100% - 60px)"}})};return r||ee.extend(d,{open:i}),f.jsx(c,{ref:t,...d,children:f.jsxs(S.Toolbar,{sx:{"& > *":{marginX:n.spacing(.325)}},children:[!o&&f.jsx(cO,{}),e.children]})})}function eie(e){const t=S.useTheme(),{notification:n,onClick:r,selected:o,divider:i}=e,{resource:a}=pf(),c=Z.useNotify(),u=Z.useRedirect(),[d]=Z.useUpdate(a,{id:n==null?void 0:n.id,data:{...n,readed:Rr().toISOString()}},{onSuccess:()=>{n!=null&&n.resource?n!=null&&n.resource.startsWith("/")?(u(n==null?void 0:n.resource),r()):(r(),document.location.href=n==null?void 0:n.resource):r()},onFailure:()=>{c("resources.notifications.messages.readed.error","warning")}}),p=A.useCallback(()=>d(),[d]),[g]=Z.useLocaleState(),v=A.useMemo(()=>Rr(n.created).locale(g).fromNow(),[n,g]);return f.jsx(S.ListItem,{disablePadding:!0,divider:i,children:f.jsxs(S.ListItemButton,{selected:o,onClick:p,children:[f.jsx(S.ListItemAvatar,{children:f.jsx(S.Avatar,{sx:{color:"primary.main",bgcolor:"primary.lighter"},children:f.jsx(We.MessageOutlined,{})})}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",wordBreak:"break-word",width:"90%"},primary:n.title,secondary:n.content}),f.jsx(S.Box,{flexGrow:1,flexShrink:1,minWidth:t.spacing(2)}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},primary:v,primaryTypographyProps:{variant:"caption"}})]})})}const tie={width:36,height:36,fontSize:"1rem"},nie={mt:"6px",ml:1,top:"auto",right:"auto",alignSelf:"flex-start",transform:"none"};function dO(){const{enable:e}=pf();return e?f.jsx(rie,{}):null}function rie(){const e=Z.useTranslate(),t=S.useTheme(),n=Z.useRefresh(),r=Z.useNotify(),{downMd:o}=Qn(),{resource:i}=pf(),[a,c]=A.useState([]),{data:u,isLoading:d}=Z.useGetList(i,{pagination:{page:1,perPage:25},sort:{field:"created",order:"DESC"},filter:{readed:!1}}),p=a.filter(j=>j.readed===null).length,{open:g,anchorEl:v,handleClose:y,handleToggle:b}=ra();A.useEffect(()=>{!d&&u&&c(u??[])},[u,d]);const x=a.filter(j=>!j.readed).map(j=>j.id),[w]=Z.useUpdateMany(i,{ids:x,data:{readed:Rr().toISOString()}},{onSuccess:()=>{n(),r("resources.notifications.messages.readed.done")},onError:()=>r("ra.notification.readed_error")}),T=A.useCallback(()=>{w()},[w]);return f.jsxs(f.Fragment,{children:[f.jsx(sa,{value:"notifications",selected:g,onChange:b,children:f.jsx(S.Badge,{badgeContent:p,color:"primary",children:f.jsx(We.BellOutlined,{})})}),f.jsx(S.Popper,{placement:o?"bottom":"bottom-end",open:g,anchorEl:v,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:j})=>f.jsx(Zo,{type:"grow",position:o?"top":"top-right",in:g,...j,children:f.jsx(S.Paper,{sx:{marginTop:1,boxShadow:t.customShadows.z1,width:"100%",minWidth:285,maxWidth:420,[t.breakpoints.down("md")]:{maxWidth:285}},children:f.jsx(S.ClickAwayListener,{onClickAway:y,children:f.jsxs(Mn,{title:e("ra.notification.title"),elevation:0,border:!1,content:!1,secondary:f.jsx(f.Fragment,{children:p>0&&f.jsx(S.Tooltip,{title:e("ra.notification.mark-as-read"),onClick:T,children:f.jsx(Hd,{color:"success",size:"small",children:f.jsx(We.CheckCircleOutlined,{style:{fontSize:"1.15rem"}})})})}),children:[f.jsx(S.List,{component:"nav",sx:{p:0,"& .MuiListItemButton-root":{py:.5,"&.Mui-selected":{bgcolor:"grey.50",color:"text.primary"},"& .MuiAvatar-root":tie,"& .MuiListItemSecondaryAction-root":{...nie,position:"relative"}},maxHeight:"calc(100vh - 240px)",overflow:"auto"},children:a.map((E,P)=>f.jsx(eie,{selected:p>0,notification:E,onClick:y,divider:P<a.length-1},E.id))}),f.jsx(S.ListItemButton,{sx:{textAlign:"center",py:"12px !important"},to:`/${i}`,LinkComponent:ut.Link,onClick:y,children:f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"primary",children:e("ra.notification.view_all")})})}),f.jsx(S.Divider,{})]})})})})})]})}function fO(){const[e,t]=A.useState(!1),n=A.useCallback(()=>t(!1),[t]),r=A.useCallback(()=>t(!0),[t]),o=Z.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{onClick:r,children:[f.jsx(S.ListItemIcon,{children:f.jsx(nn.Key,{})}),f.jsx(S.ListItemText,{primary:o("ra.auth.change_password")})]}),f.jsx(S.Dialog,{open:e,onClose:()=>t(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(z0,{onSuccess:n})})]})}function pO(){const e=Z.useLogout(),t=Z.useTranslate();return f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:e,children:[f.jsx(S.ListItemIcon,{children:f.jsx(nn.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:t("ra.auth.logout")})]})})}function hO(){const e=Z.useTranslate(),t=Z.useAuthProvider(),n=A.useCallback(()=>t.stopImpersonate().then(()=>document.location.href="/"),[t]),[r,o]=A.useState(!1);return A.useEffect(()=>{if(!t.isImpersonating){console.warn("The authProvider does not support the isImpersonating feature",t);return}t.isImpersonating().then(i=>o(i))},[t,o]),r?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:n,children:[f.jsx(S.ListItemIcon,{children:f.jsx(nn.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:e("ra.auth.stop_impersonate")})]})}):null}function gO(e){var x;const{roles:t}=e,n=S.useTheme(),r=Z.useDataProvider(),{identity:o}=Z.useGetIdentity(),i=o!==void 0&&o.image&&o.image!==null&&o.image!=="",[a,c]=A.useState(null),{open:u,anchorEl:d,handleToggle:p,handleClose:g}=ra(),v=Z.useLogout(),y=A.useCallback(()=>{v()},[v]);A.useEffect(()=>{i&&r.getFile("/profile/me/image").then(w=>c(w))},[r,i]);const b=A.useMemo(()=>{var w;return A.isValidElement(t)?t:t?f.jsx(f.Fragment,{children:t}):(w=o==null?void 0:o.roles)==null?void 0:w.map(T=>T.name.replace("ROLE_","")).join(",")},[t,o]);return f.jsxs(f.Fragment,{children:[f.jsx(sa,{sx:{p:.25,width:"auto"},onClick:p,value:"profile",selected:u,children:f.jsxs(S.Stack,{direction:"row",spacing:2,alignItems:"center",sx:{p:.5},children:[f.jsx(Vu,{alt:(x=o==null?void 0:o.name)==null?void 0:x.toUpperCase(),src:a,size:"xs"}),f.jsx(S.Typography,{variant:"subtitle1",children:o==null?void 0:o.name})]})}),f.jsx(Ym,{placement:"bottom-end",open:u,anchorEl:d,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:w})=>f.jsx(Zo,{type:"grow",position:"top-right",in:u,...w,children:f.jsx(S.Paper,{sx:{boxShadow:n.customShadows.z1,width:290,minWidth:240,maxWidth:290,[n.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:g,children:f.jsxs(Mn,{elevation:0,border:!1,content:!1,children:[f.jsx(S.CardContent,{sx:{px:2.5,pt:3},children:f.jsxs(S.Grid,{container:!0,justifyContent:"space-between",alignItems:"center",children:[f.jsx(S.Grid,{item:!0,children:f.jsxs(S.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[f.jsx(Vu,{alt:"profile user",src:a,sx:{width:32,height:32}}),f.jsxs(S.Stack,{children:[f.jsx(S.Typography,{variant:"h6",children:o==null?void 0:o.name}),f.jsx(S.Typography,{variant:"body2",color:"textSecondary",children:b})]})]})}),f.jsx(S.Grid,{item:!0,children:f.jsx(S.Tooltip,{title:"Logout",children:f.jsx(Hd,{size:"large",sx:{color:"text.primary"},onClick:y,children:f.jsx(We.LogoutOutlined,{})})})})]})}),f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.List,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32}},children:[f.jsx(fO,{}),f.jsx(pO,{}),f.jsx(hO,{})]})})})]})})})})})]})}function mO(e){const t=gt(),{downMd:n}=Qn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=ra();return n?f.jsxs(f.Fragment,{children:[f.jsx(sa,{value:"drawer","aria-label":"open more menu","aria-controls":r?"menu-list-grow":void 0,"aria-haspopup":"true",onClick:i,selected:r,children:f.jsx(We.MoreOutlined,{})}),f.jsx(S.Popper,{placement:"bottom-end",open:r,anchorEl:o,role:void 0,transition:!0,disablePortal:!0,style:{width:"100%"},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,9]}}]},children:({TransitionProps:c})=>f.jsx(Zo,{type:"fade",in:r,...c,children:f.jsx(S.Paper,{sx:{boxShadow:t.customShadows.z1},children:f.jsx(S.ClickAwayListener,{onClickAway:a,children:f.jsx(S.AppBar,{color:"inherit",children:f.jsx(S.Toolbar,{children:e.children})})})})})})]}):f.jsx(f.Fragment,{children:e.children})}function vO(e){return f.jsx(S.Box,{...e,flex:1})}function yO(e){const t=S.useTheme(),n=S.useScrollTrigger({disableHysteresis:!0,threshold:0}),{container:r}=Sn();return t.shadows[4]=t.customShadows.z1,f.jsx(S.AppBar,{elevation:n?4:0,sx:{top:60,bgcolor:t.palette.background.paper,width:"100%",height:62,justifyContent:"center",borderTop:`1px solid ${t.palette.divider}`,borderBottom:`1px solid ${t.palette.divider}`,zIndex:1098,color:t.palette.grey[500]},children:f.jsx(S.Container,{maxWidth:r?"xl":!1,children:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center"},children:e.children})})})}function bO(e){const{horizontal:t}=Qn();return t?f.jsx(yO,{children:e.children}):f.jsx(iO,{children:e.children})}function Ja({item:e,level:t}){const n=gt(),{horizontal:r,downLg:o}=Qn(),{drawerOpen:i,openItem:a,activeItem:c,openDrawer:u}=pl();let d="_self";e.target&&(d="_blank");const p=(e==null?void 0:e.external)!==!1?{component:A.forwardRef((T,j)=>f.jsx(ut.Link,{...T,to:e.url,target:d,ref:j}))}:{component:"a",href:e.url,target:d},g=e.icon,v=e.icon?f.jsx(g,{style:{fontSize:i?"1rem":"1.25rem"}}):!1,y=a.findIndex(T=>T===e.id)>-1,{pathname:b}=ut.useLocation();A.useEffect(()=>{b.endsWith(e.url)&&c([e.id])},[b]);const x=n.palette.mode==="dark"?"grey.400":"text.primary",w=n.palette.mode==="dark"&&i?"text.primary":"primary.main";return f.jsx(f.Fragment,{children:r?f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,...i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{bgcolor:"transparent",color:w,"&:hover":{color:w,bgcolor:"transparent"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:36,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:v}):null,!v&&f.jsx(S.ListItemIcon,{sx:{color:y?"primary.main":"secondary.main",...!i&&{borderRadius:1.5,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:f.jsx(Nm,{size:4,color:y?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"inherit",children:e.title})}),(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]}):f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,pl:i?`${t*28}px`:1.5,py:!i&&t===1?1.25:1,...i&&{"&:hover":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter",borderRight:`2px solid ${n.palette.primary.main}`,color:w,"&:hover":{color:w,bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},...o&&{onClick:()=>u(!1)},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:28,color:y?w:x,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:n.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!i&&y&&{bgcolor:n.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:n.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:v}):null,i||!i&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",sx:{color:y?w:x},children:e.title})}):null,(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]})})}const aw=ce(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:38,left:-5,width:10,height:10,backgroundColor:e.palette.background.paper,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderLeft:`1px solid ${e.palette.grey.A800}`,borderBottom:`1px solid ${e.palette.grey.A800}`}}));function el({menu:e,level:t,parentId:n,setSelectedItems:r,selectedItems:o,setSelectedLevel:i,selectedLevel:a}){var $;const c=gt(),{activeItem:u}=pl(),{horizontal:d}=Qn(),{drawerOpen:p}=pl(),g=ut.useNavigate(),[v,y]=A.useState(!1),[b,x]=A.useState(null),[w,T]=A.useState(null);function j(oe){T(null),i(t),p?(y(!v),x(b?null:e.id),r(b?"":e.id),e.url&&g(`${e.url}`)):T(oe==null?void 0:oe.currentTarget)}function E(){p||e.url&&g(`${e.url}`)}function P(oe){T(oe==null?void 0:oe.currentTarget)}function O(){y(!1),x(null),T(null)}A.useMemo(()=>{b===o?t===1&&y(!0):t===a&&(y(!1),x(null))},[o,t,b,a]);const{pathname:k}=ut.useLocation(),F=!!w;function B(oe,W){oe.forEach(J=>{J.url===k&&(y(!0),x(W))})}A.useEffect(()=>{y(!1),x(null),F&&T(null),e.children&&e.children.forEach(oe=>{var W;(W=oe.children)!=null&&W.length&&B(oe.children,e.id),oe.url===k&&(x(e.id),y(!0)),k.includes(oe.url)&&(x(e.id),y(!0))})},[k,e.children]),A.useEffect(()=>{e.url===k&&b!==e.id&&(u([e.id]),x(e.id),T(null),y(!0))},[k,e,b,u]);const H=($=e.children)==null?void 0:$.map(oe=>{switch(oe.type){case"collapse":return f.jsx(el,{setSelectedItems:r,setSelectedLevel:i,selectedLevel:a,selectedItems:o,menu:oe,level:t+1,parentId:n},oe.id);case"item":return f.jsx(Ja,{item:oe,level:t+1},oe.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Collapse or Item"},oe.id)}}),q=b===e.id,U=t===1?f.jsx(We.BorderOutlined,{style:{fontSize:"1rem"}}):!1,ne=e.icon,te=e.icon?f.jsx(ne,{style:{fontSize:p?"1rem":"1.25rem"}}):U,Y=c.palette.mode==="dark"?"grey.400":"text.primary",X=c.palette.mode==="dark"&&p?c.palette.text.primary:c.palette.primary.main,N=F?`collapse-pop-${e.id}`:void 0,Q={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"};return f.jsx(f.Fragment,{children:d?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{id:`boundary-${N}`,disableRipple:!0,selected:q,onMouseEnter:P,onMouseLeave:O,onClick:P,"aria-describedby":N,sx:{"&.Mui-selected":{bgcolor:"transparent"}},children:[f.jsxs(S.Box,{onClick:E,sx:Q,children:[te?f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,color:c.palette.secondary.dark},children:te}):null,!te&&t!==1&&f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,bgcolor:"transparent","&:hover":{bgcolor:"transparent"}},children:f.jsx(Nm,{size:4,color:q?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"body1",color:"inherit",sx:{my:"auto"},children:e.title})}),F?f.jsx(We.RightOutlined,{}):f.jsx(We.DownOutlined,{})]}),w?f.jsx(aw,{id:N,open:F,anchorEl:w,placement:"right-start",style:{zIndex:2001},modifiers:[{name:"offset",options:{offset:[-10,0]}}],children:({TransitionProps:oe})=>f.jsx(Zo,{in:F,...oe,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,py:.5,boxShadow:c.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:H})})})})}):null]})}):f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{disableRipple:!0,selected:b===e.id,...!p&&{onMouseEnter:j,onMouseLeave:O},onClick:j,sx:{pl:p?`${t*28}px`:1.5,py:!p&&t===1?1.25:1,...p&&{"&:hover":{bgcolor:c.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:"transparent",color:X,"&:hover":{color:X,bgcolor:c.palette.mode==="dark"?"divider":"transparent"}}},...!p&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[te?f.jsx(S.ListItemIcon,{onClick:E,sx:{minWidth:28,color:b===e.id?"primary.main":Y,...!p&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:c.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!p&&b===e.id&&{bgcolor:c.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:c.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:te}):null,p||!p&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:b===e.id?"primary":Y,children:e.title}),secondary:e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null}):null,p||!p&&t!==1?F||v?f.jsx(We.UpOutlined,{style:{fontSize:"0.625rem",marginLeft:1,color:c.palette.primary.main}}):f.jsx(We.DownOutlined,{style:{fontSize:"0.625rem",marginLeft:1}}):null,!p&&f.jsx(aw,{open:F,anchorEl:w,placement:"right-start",style:{zIndex:2001},popperOptions:{modifiers:[{name:"offset",options:{offset:[-12,1]}}]},children:({TransitionProps:oe})=>f.jsx(Zo,{in:F,...oe,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,boxShadow:c.customShadows.z1,backgroundImage:"none",border:`1px solid ${c.palette.divider}`},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:H})})})})})]}),p?f.jsx(S.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:f.jsx(S.List,{sx:{p:0},children:H})}):null]})})}const oie=ce(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:5,left:32,width:12,height:12,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderWidth:"6px",borderStyle:"solid",borderColor:`${e.palette.background.paper} transparent transparent ${e.palette.background.paper}`}}));function xO({item:e,lastItem:t,remItems:n,lastItemId:r,setSelectedItems:o,selectedItems:i,setSelectedLevel:a,selectedLevel:c}){var N,Q;const u=gt(),d=_.useTranslate(),{pathname:p}={pathname:""},{horizontal:g,downLg:v}=Qn(),y=pl(),{drawerOpen:b,selectedID:x,activeID:w}=y,[T,j]=A.useState(null),[E,P]=A.useState(e),O=!!T;A.useEffect(()=>{if(t)if(e.id===r){const $={...e},oe=n.map(W=>W.elements);$.children=oe.flat(1),P($)}else P(e)},[e,t,v]);function k($,oe){$.forEach(W=>{var J;(J=W.children)!=null&&J.length&&k(W.children,E.id),W.url===p&&w(oe)})}function F($){($.children?$.children:[]).forEach(W=>{var J;(J=W.children)!=null&&J.length&&k(W.children,E.id),W.url===p&&w(E.id)})}A.useEffect(()=>{F(E),O&&j(null)},[p,E]);function B($){O||j($==null?void 0:$.currentTarget)}function H(){j(null)}const q=E==null?void 0:E.icon,U=E!=null&&E.icon?f.jsx(q,{style:{fontSize:20,stroke:"1.5",color:x===E.id?u.palette.primary.main:u.palette.secondary.dark}}):null,ne=(N=e.children)==null?void 0:N.map($=>{switch($.type){case"collapse":return f.jsx(el,{menu:$,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i,level:1,parentId:E.id},$.id);case"item":return f.jsx(Ja,{item:$,level:1},$.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},$.id)}}),te=n.map(($,oe)=>{var W;return f.jsxs(A.Fragment,{children:[$.title?f.jsx(S.Typography,{variant:"caption",sx:{pl:2},children:$.title}):null,(W=$==null?void 0:$.elements)==null?void 0:W.map(J=>{switch(J.type){case"collapse":return f.jsx(el,{menu:J,level:1,parentId:E.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},J.id);case"item":return f.jsx(Ja,{item:J,level:1},J.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},J.id)}})]},oe)}),Y=(Q=E.children)==null?void 0:Q.map($=>{switch($.type){case"collapse":return f.jsx(el,{menu:$,level:1,parentId:E.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},$.id);case"item":return f.jsx(Ja,{item:$,level:1},$.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},$.id)}}),X=O?`group-pop-${e.id}`:void 0;return f.jsx(f.Fragment,{children:g?f.jsx(S.List,{children:f.jsxs(S.ListItemButton,{selected:x===E.id,sx:{p:1,my:.5,mr:1,display:"flex",alignItems:"center",backgroundColor:"inherit","&.Mui-selected":{bgcolor:"transparent"}},onMouseEnter:B,onClick:B,onMouseLeave:H,"aria-describedby":X,children:[U?f.jsx(S.ListItemIcon,{sx:{minWidth:28},children:E.id===r?f.jsx(We.DownOutlined,{style:{fontSize:20,stroke:"1.5"}}):U}):null,f.jsx(S.ListItemText,{sx:{mr:1},primary:f.jsx(S.Typography,{variant:"body1",color:x===E.id?u.palette.primary.main:u.palette.secondary.dark,children:E.id===r?d("ra.actions.more"):E.title})}),O?f.jsx(We.DownOutlined,{style:{fontSize:16,stroke:"1.5"}}):f.jsx(We.RightOutlined,{style:{fontSize:16,stroke:"1.5"}}),T?f.jsx(oie,{id:X,open:O,anchorEl:T,placement:"bottom-start",style:{zIndex:2001},children:({TransitionProps:$})=>f.jsx(Zo,{in:O,...$,children:f.jsx(S.Paper,{sx:{mt:.5,py:1.25,boxShadow:u.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:H,children:f.jsx(S.Box,{sx:{maxHeight:"calc(100vh - 170px)",overflowY:"auto","&::-webkit-scrollbar":{opacity:0,width:4,"&:hover":{opacity:.7}},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:u.palette.divider,borderRadius:4}},children:E.id!==r?Y:te})})})})}):null]})}):f.jsx(S.List,{subheader:e.title&&b?f.jsxs(S.Box,{sx:{pl:3,mb:1.5},children:[f.jsx(S.Typography,{variant:"subtitle2",color:u.palette.mode==="dark"?"textSecondary":"text.secondary",children:e.title}),e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null]}):null,sx:{mt:b&&e.title?1.5:0,py:0,zIndex:0},children:ne})})}function CO(e){const{horizontal:t}=Qn(),{open:n}=Hi(),r=Mr(e,{pt:n?t?0:2:0,"& > ul:first-of-type":{mt:0},display:t?{xs:"block",lg:"flex"}:"block"});return f.jsx(S.Box,{sx:r,children:e.children})}function wO(e){const{horizontal:t}=Qn(),{menu:n,isLoading:r}=O0(),[o,i]=A.useState(""),[a,c]=A.useState(0),{horizontalMaxItems:u}=Sn(),d=t?u:void 0;let p=r?0:(n??[]).length-1,g=[],v;return!r&&d&&d<(n??[]).length&&(v=(n??[])[d-1].id,p=d-1,g=(n??[]).slice(d-1,(n??[]).length).map(y=>({title:y.title,elements:y.children,icon:y.icon}))),f.jsx(CO,{...e,children:!r&&ee.map((n??[]).slice(0,p+1),y=>{const{type:b}=y;switch(b){case"group":return f.jsx(xO,{item:y,setSelectedItems:i,setSelectedLevel:c,selectedLevel:a,selectedItems:o,lastItem:d,remItems:g,lastItemId:v},y.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Navigation Group"},y.id)}})})}function iie({open:e,anchorEl:t,handleClose:n,theme:r,mode:o,toggleThemeMode:i}){const a=Z.useTranslate();return f.jsx(Ym,{placement:"bottom-end",open:e,anchorEl:t,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:c})=>f.jsx(Zo,{type:"grow",position:"top-right",in:e,...c,children:f.jsx(S.Paper,{sx:{boxShadow:r.customShadows.z1,minWidth:200,[r.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:n,children:f.jsx(Mn,{elevation:0,border:!1,content:!1,children:f.jsxs(S.List,{children:[f.jsxs(S.ListItemButton,{selected:o==="light",onClick:()=>i("light"),children:[f.jsx(We.SunOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.light")})]}),f.jsxs(S.ListItemButton,{selected:o==="dark",onClick:()=>i("dark"),children:[f.jsx(We.MoonOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.dark")})]}),f.jsxs(S.ListItemButton,{selected:o==="auto",onClick:()=>i("auto"),children:[f.jsx(nn.Brightness6,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,textTransform:"none",children:a("ra.preferences.theme.auto")})]})]})})})})})})}function SO(){const e=S.useTheme(),{mode:t,setMode:n}=Sn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=ra(),c=A.useCallback(d=>{n(d)},[n]),u=A.useCallback(()=>{switch(t){case"light":return f.jsx(We.SunOutlined,{});case"dark":return f.jsx(We.MoonOutlined,{});default:return f.jsx(nn.Brightness6,{})}},[t]);return f.jsxs(sa,{value:"theme-mode","aria-label":"toggle mode",onClick:i,selected:!1,children:[f.jsx(u,{}),r?f.jsx(iie,{open:r,anchorEl:o,handleClose:a,theme:e,mode:t,toggleThemeMode:c}):null]})}const AO=A.forwardRef((e,t)=>{const n=Mr(e,{display:"flex",width:"100%"});return f.jsx(S.Box,{ref:t,...e,sx:n,children:e.children})});function ov({source:e="paper"}){const{mode:t}=Sn(),n=S.useTheme();return A.useEffect(()=>{var o;const r=ee.get(n.palette.background,e);(o=document.querySelector('meta[name="theme-color"]'))==null||o.setAttribute("content",r)},[t,n,e]),null}const EO=HT(function(t){const{name:n,version:r,enableThemeToggler:o,enableNotification:i,enableLocaleSwitcher:a}=t,{isLoading:c,navigation:u,breadcrumbs:d}=S2();return f.jsxs(AO,{children:[f.jsxs(uO,{children:[f.jsx(vO,{}),a?f.jsx(lO,{}):null,o?f.jsx(SO,{}):null,f.jsx(ov,{}),f.jsx(_E,{}),i?f.jsx(dO,{}):null,f.jsx(mO,{children:f.jsx(gO,{})})]}),f.jsx(bO,{children:f.jsx(wO,{})}),f.jsxs(qT,{error:t.error,children:[!c&&f.jsx(NA,{titleBottom:!0,mode:"breadcrumbs",navigation:u,breadcrumbs:d,card:!1,divider:!1,icon:!0,icons:!0}),t.children,f.jsx(ut.Outlet,{}),f.jsx(rv,{name:n,version:r,copy:t==null?void 0:t.copy})]})]})});function sie(e){const{sx:t}=e;return f.jsx(S.Box,{sx:{...t,flex:"1 1 auto",backgroundColor:"background.paper",overflowY:"auto"},children:e.children})}const aie=444;function lie(e){const{sx:t,anchor:n="right",variant:r="temporary",open:o=!1,onClose:i}=e,a=S.useTheme(),u=S.useMediaQuery(a.breakpoints.down("sm"))?"bottom":n,d=A.useCallback(()=>{Ke.isFunction(i)&&i()},[i]),p={backgroundImage:"none",boxShadow:"-10px 4px 42px 0px rgba(0, 0, 0, 0.25)",width:{sm:"30%"},maxWidth:{sm:aie},[a.breakpoints.down("sm")]:{width:"100% !important",maxWidth:"100% !important"}};return f.jsx(S.Drawer,{...e,anchor:u,onClose:d,open:o,PaperProps:{sx:{...p,...t}},variant:r,children:e.children})}function cie(e){return f.jsxs(S.Box,{children:[f.jsx(S.Divider,{}),f.jsx(S.Box,{bgcolor:"background.paper",px:2,py:2.5,children:e.children})]})}function uie(e){const{sx:t}=e;return f.jsxs(S.Box,{children:[f.jsx(S.Stack,{alignItems:"center",bgcolor:"background.paper",direction:"row",px:2.5,py:2,spacing:2,minHeight:"64px",sx:t,children:e.children}),f.jsx(S.Divider,{sx:{opacity:.6}})]})}function die(e){const{primary:t,secondary:n}=e;return f.jsxs(S.Box,{display:"inline-flex",flexGrow:1,flexShrink:1,flexDirection:"column",children:[t?f.jsx(S.Typography,{variant:"h5",children:t}):null,n?f.jsx(S.Typography,{variant:"h6",children:n}):null]})}function fie(e){return f.jsx(S.Box,{display:"inline-flex",flexGrow:0,flexShrink:0,children:e.children})}const hr=lie;hr.Content=sie;hr.Footer=cie;hr.Header=uie;hr.HeaderText=die;hr.HeaderAction=fie;function TO(e){const t=S.useMediaQuery(n=>n.breakpoints.down("sm"));return f.jsx(hie,{disableGutters:!0,variant:t?"regular":"dense",...gie(e)})}TO.propTypes={children:m.node,className:m.string};const pie="RaTopToolbar",hie=S.styled(S.Toolbar,{name:pie,overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:e.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingInline:e.spacing(2),[e.breakpoints.down("md")]:{flex:"0 1 100%"},[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,justifyContent:"space-between",alignItems:"center"}}));function gie({hasCreate:e,...t}){return t}const mie=ce("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}}));function IO(){return f.jsx(mie,{children:f.jsx(S.LinearProgress,{color:"primary"})})}function vie(e){return t=>f.jsx(A.Suspense,{fallback:f.jsx(IO,{}),children:f.jsx(e,{...t})})}function iv({title:e}){return f.jsxs(S.Stack,{direction:"row",children:[f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]})}const yie=ce(_.Notification,{})(({theme:e})=>({zIndex:2e3,"& *":{fontSize:e.typography.body1.fontSize}}));function OO(e){return f.jsx(yie,{...e})}var gl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(gl||{});const PO=vo().required(),jO=vo().oneOf(Object.values(gl));function bie(e){var T;const t=js.useQueryClient(),[n,r]=A.useState(!1),[o,i]=A.useState(()=>()=>Promise.resolve()),a=Z.useGetIdentity(),c=(T=a==null?void 0:a.data)==null?void 0:T.email,u=Z.useDataProvider(),d=A.useCallback(()=>c?u.get("onboarding").then(j=>{var E;return(E=j==null?void 0:j.data)==null?void 0:E.value}):Promise.reject(),[u,c]),{data:p,isLoading:g,isError:v}=js.useQuery({queryKey:["GET","onboarding",c],queryFn:d,staleTime:24*60*60*1e3,retry:c!==void 0}),[y,b]=A.useState(()=>()=>Promise.resolve()),w=js.useMutation({mutationFn:y}).mutateAsync;return A.useEffect(()=>{function j(){const E=ee.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",E).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}b(()=>j)},[u,p,e,t,c]),A.useEffect(()=>{r(ee.isNil((p??{})[e]))},[p,e,r]),A.useEffect(()=>{i(()=>()=>w())},[w]),{loading:g,error:v,onboardingRequired:n,acknowledgeOnboarding:o}}function xie(e){const[t,n]=_0("onboarding",{}),[r,o]=A.useState(!1),[i,a]=A.useState(()=>()=>Promise.resolve());return A.useEffect(()=>{o(ee.isNil((t??{})[e]))},[t,e,o]),A.useEffect(()=>{a(()=>()=>(n(c=>ee.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:i}}function Cie(){return{onboardingRequired:!1,acknowledgeOnboarding:A.useRef(()=>Promise.resolve()).current}}function RO(e,t){F0({mode:jO,topic:PO}).validateSync({mode:e,topic:t});const n=bie(t),r=xie(t),o=Cie();switch(e){case gl.USER:return n.loading?o:n.error?r:ee.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case gl.BROWSER:return r;default:return o}}var Ds=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Ds||{});function wie(e,t){var o;const n=ee.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:i}=t;return ee.extend(n,{show:i})}case"REGISTER_TIP":{const{payload:i}=t,{id:a}=i,c=ee.chain(n.tips).clone().reject(p=>p.id===a).value(),u=ee.find(n.tips,{id:a}),d=ee.chain(u??{}).clone().extend(i).value();return c.push(d),ee.extend(n,{tips:ee.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:i}=t,a=ee.isString(i)?i:i.id,c=ee.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ee.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:i}=t,a=ee.isString(i)?i:i.id,c=ee.chain(n.tips).reject(v=>v.id===a).value(),u=ee.find(n.tips,{id:a});if(ee.isNil(u))return n;const d=ee.chain(u).clone().extend({dismissed:!0}).value();c.push(d);const p=((o=ee.chain(c).reject(v=>v.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(d==null?void 0:d.completeOnboarding)&&ee.chain(c).reject(v=>v.step<p).reject(v=>v.dismissed??!1).isEmpty().value()&&e.onComplete(),ee.extend(n,{tips:ee.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:i}=t;return ee.extend(n,{onComplete:i})}case"RESTART":{const i=ee.chain(n.tips).clone().map(a=>ee.omit(a,"dismissed")).value();return ee.extend(n,{tips:i,currentStep:0})}default:return n}}const sv=A.createContext(void 0);function Sie(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=RO(t,n),[i,a]=A.useReducer(wie,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=A.useMemo(()=>({state:i,dispatch:a}),[i,a]);return A.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),A.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(sv.Provider,{value:c,children:e.children})}function MO(){const e=A.useContext(sv);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function Aie(){return MO().state}function kO(){return MO().dispatch}function FO(e){F0({id:vo().required(),step:F2().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:i,currentStep:a}=Aie(),c=ee.find(i,{id:t}),{dismissed:u}=c??{},d=kO(),p=A.useCallback(()=>{d({type:Ds.DISMISS_TIP,payload:t})},[d,t]);return A.useEffect(()=>{(ee.isNil(c)||n!==(c==null?void 0:c.step))&&d({type:Ds.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c,d]),A.useEffect(()=>()=>{d({type:Ds.UNREGISTER_TIP,payload:t})},[t,d]),{tip:ee.chain(c??e).clone().extend({open:o&&!ee.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function Eie(){const e=kO();return A.useCallback(()=>{e({type:Ds.RESTART})},[e])}function Tie(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:i,dismiss:a}=FO({id:t,step:n,completeOnboarding:o}),{open:c}=i,u=ee.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(Xd,{...u,arrow:!0,open:c,title:f.jsxs(S.Stack,{gap:1,children:[f.jsx(S.Typography,{children:r}),f.jsx(S.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const Iie=S.styled(Tie)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${S.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${S.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${S.tooltipClasses.arrow}`]:{color:r.main}}}),av=A.memo(e=>{const{page:t,rowsPerPage:n,count:r,onPageChange:o,size:i="small",className:a,...c}=e,u=Z.useTranslate(),d=Math.ceil(r/n)||1;if(d===1)return f.jsx(lw,{className:a});function p(g,v,y){return g==="page"?y?u("ra.navigation.current_page",{page:v,_:`page ${v}`}):u("ra.navigation.page",{page:v,_:`Go to page ${v}`}):u(`ra.navigation.${g}`,{_:`Go to ${g} page`})}return f.jsx(lw,{className:a,children:f.jsx(S.Pagination,{size:i,count:d,page:t+1,onChange:(g,v)=>o(g,v-1),...Pie(c),getItemAriaLabel:p})})});av.propTypes={count:m.number.isRequired,onPageChange:m.func.isRequired,page:m.number.isRequired,rowsPerPage:m.number.isRequired,color:m.oneOf(["primary","secondary","standard"]),size:m.oneOf(["small","medium","large"])};const Oie="RaPaginationActions",lw=ce("div",{name:Oie,overridesResolver:e=>e.root})(()=>({flexShrink:0,ml:4}));function Pie({nextIconButtonProps:e,backIconButtonProps:t,slotProps:n,...r}){return r}const lv=A.memo(e=>{const{rowsPerPageOptions:t=jie,actions:n,limit:r=null,...o}=e,{isLoading:i,hasNextPage:a,page:c,perPage:u,total:d,setPage:p,setPerPage:g}=Z.useListPaginationContext(e),v=Z.useTranslate(),y=S.useMediaQuery(B=>B.breakpoints.down("md")),[b,x]=A.useState(c-1),{hasCreate:w}=Z.useResourceDefinition(e),T=A.useMemo(()=>d!=null?Math.ceil(d/u):void 0,[u,d]),j=A.useCallback(Ke.debounce(B=>{p(B+1)},500),[p]),E=A.useCallback((B,H)=>{var ne,te;if(!B)return;if(B.preventDefault(),H<0||T!==void 0&&H>T-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:H+1}));const q=(((ne=B.target.dataset)==null?void 0:ne.testid)||((te=B.target.classList)==null?void 0:te.value))??"",U=q.includes("MuiPaginationItem-previousNext")||q.includes("NavigateBeforeIcon")||q.includes("NavigateNextIcon")||q.includes("KeyboardArrowLeftIcon")||q.includes("KeyboardArrowRightIcon");x(H),U?j(H):p(H+1)},[j,p,v,T]),P=A.useCallback(B=>{g(Number(B.target.value))},[g]),O=A.useCallback(({from:B,to:H,count:q})=>q===-1&&a?v("ra.navigation.partial_page_range_info",{offsetBegin:B,offsetEnd:H,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:B,offsetEnd:H,total:q===-1?H:q,_:"%{from}-%{to} of %{count === -1 ? to : count}"}),[v,a]),k=A.useCallback(B=>v(`ra.navigation.${B}`,{_:`Go to ${B} page`}),[v]);if(i)return f.jsx(S.Toolbar,{variant:"dense"});if(d===0||c<1||T!==void 0&&c>T)return r!=null&&process.env.NODE_ENV==="development"&&console.warn("The Pagination limit prop is deprecated. Empty state should be handled by the component displaying data (Datagrid, SimpleList)."),null;if(y)return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:E,rowsPerPageOptions:Rie,component:"span",labelDisplayedRows:O,sx:{justifyContent:w?"flex-start":"flex-end",display:w?"flex":"block"},...Z.sanitizeListRestProps(o)});const F=n||(!i&&d!=null?av:void 0);return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:E,onRowsPerPageChange:P,ActionsComponent:F,nextIconButtonProps:{disabled:!a},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:O,getItemAriaLabel:k,rowsPerPageOptions:t,...Z.sanitizeListRestProps(o)})});lv.propTypes={actions:Z.ComponentPropType,limit:m.element,rowsPerPageOptions:m.arrayOf(m.oneOfType([m.number,m.shape({label:m.string.isRequired,value:m.number.isRequired})]))};const jie=[5,10,25,50],Rie=[];function DO({children:e}){const t=ut.useLocation(),{pathname:n}=t;return A.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),f.jsx(f.Fragment,{children:e})}const Mie=ce("div")({width:"100%",overflowX:"auto",display:"block"});function kie({shadow:e,children:t,...n}){return f.jsx(Mn,{content:!1,border:!1,shadow:e,boxShadow:!0,...n,children:t})}function _O({title:e}){return f.jsx(S.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substring(0,1).toUpperCase()})}function Fie({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:i,component:a,leftIcon:c,rightIcon:u,button:d,buttonProps:p,...g}){const{getCurrentDialog:v}=W0(),y=Z.useResourceContext(g),b=v(),x=Z.useRecordContext(),w=r||x,T=Ke.get(w,e||"");return f.jsxs(S.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:j=>({pt:1,pb:1,borderBottom:`1px solid ${j.palette.divider}`,...o&&{mb:2},...i&&{mt:2}}),children:[f.jsxs(S.Stack,{direction:"row",alignItems:"start",children:[c?A.isValidElement(c)?A.cloneElement(c,{style:su}):A.createElement(c,{style:su}):null,f.jsx(Z.FieldTitle,{label:t,source:e,resource:b||y})]}),f.jsxs(S.Stack,{direction:"row",alignItems:"center",children:[a?A.isValidElement(a)?A.cloneElement(a,{record:w,resource:y,value:T}):A.createElement(a,{source:e,record:w,resource:y,value:T}):f.jsx(S.Typography,{variant:n,children:T}),u?A.isValidElement(u)?A.cloneElement(u,{style:su}):A.createElement(u,{style:su}):null,d?f.jsx(S.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:d}):null]})]})}const su={width:"1.5rem",alignSelf:"center"};function LO(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:i,resource:a,selectedIds:c=[],onUnselectItems:u}=Z.useListContext(e),d=Z.useTranslate(),p=A.useCallback(()=>{u()},[u]);return f.jsx(Die,{className:r,children:f.jsxs(S.Toolbar,{"data-test":"bulk-actions-toolbar",className:Be(Pr.toolbar,{[Pr.collapsed]:c.length===0}),...Z.sanitizeListRestProps(o),children:[f.jsxs("div",{className:Pr.title,children:[f.jsx(S.IconButton,{className:Pr.icon,"aria-label":d("ra.action.unselect"),title:d("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(nn.Close,{fontSize:"small"})}),f.jsx(S.Typography,{color:"inherit",variant:"subtitle1",children:d(t,{_:t,smart_count:c.length})})]}),f.jsx(_.TopToolbar,{className:Pr.topToolbar,children:A.Children.map(n,g=>A.isValidElement(g)?A.cloneElement(g,{filterValues:i,resource:a,selectedIds:c}):null)})]})})}const Ti="RaBulkActionsToolbar",Pr={toolbar:`${Ti}-toolbar`,topToolbar:`${Ti}-topToolbar`,buttons:`${Ti}-buttons`,collapsed:`${Ti}-collapsed`,title:`${Ti}-title`,icon:`${Ti}-icon`},Die=ce("div",{name:Ti,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${Pr.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Yh(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${Pr.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${Pr.buttons}`]:{},[`& .${Pr.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${Pr.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${Pr.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),Ch={p:0,m:0},cw={p:2,m:0,borderRadius:0,width:"100%"};function _ie(e){const{children:t}=e,[n,r]=D.useState(null);function o(b){r(b.currentTarget)}function i(){r(null)}const a=S.useMediaQuery(b=>b.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:d=[],onUnselectItems:p}=_.useListContext(e),g=!!n&&d!==void 0&&d.length>0,v=g?"simple-popover":void 0,y=D.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(S.Fade,{in:d!==void 0&&d.length>0,children:f.jsxs(S.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(S.Fab,{color:"primary","aria-label":"manage",onClick:o,children:d==null?void 0:d.length}),f.jsx(S.Popover,{id:v,open:g,anchorEl:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(S.List,{sx:Ch,children:[f.jsx(S.ListItem,{sx:Ch,children:f.jsx(_.Button,{onClick:y,sx:cw,label:"ra.action.unselect",startIcon:f.jsx(pg,{}),children:f.jsx(pg,{})})}),D.Children.map(t,b=>{var x;return f.jsx(S.ListItem,{sx:Ch,children:D.isValidElement(b)?D.cloneElement(b,{filterValues:c,resource:u,selectedIds:d,sx:cw,...(x=b.props)!=null&&x.popover?{closePopover:i}:{}}):null})})]})})]})})}const BO=A.createContext({});BO.displayName="DatagridContext";function Lie({children:e,value:t}){return f.jsx(BO.Provider,{value:t,children:e})}const Bie=S.styled("div")(({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center",gap:e.spacing(2)})),tl="ApplicaEmpty",Fi={message:`${tl}-message`,icon:`${tl}-icon`,toolbar:`${tl}-toolbar`},Nie=S.styled("span",{name:tl,slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,height:"calc(100vh - 200px)",[`& .${Fi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${Fi.icon}`]:{fontSize:"9em",marginTop:"16px",marginBottom:"16px"},[`& .${Fi.toolbar}`]:{textAlign:"center"}}));function gf({actions:e,className:t,hasCreate:n,icon:r=f.jsx(We.DropboxOutlined,{className:Fi.icon}),title:o,subtitle:i,sx:a,...c}){const{hasCreate:u}=Z.useResourceDefinition(c),d=n??u,p=Z.useResourceContext(c),g=Z.useTranslate(),v=Z.useGetResourceLabel(),y=g(`resources.${p}.forcedCaseName`,{smart_count:0,_:v(p,0)}),b=g("ra.page.empty",{name:y}),x=g("ra.page.invite");return f.jsxs(Nie,{className:Be(`${tl}-root`,t),sx:a,children:[f.jsxs(S.Box,{className:Fi.message,children:[r,f.jsx(S.Typography,{variant:"h4",paragraph:!0,children:o||g(`resources.${p}.empty`,{_:b})}),i||(d?f.jsx(S.Typography,{variant:"body1",children:g(`resources.${p}.invite`,{_:x})}):null)]}),f.jsx(Bie,{className:Fi.toolbar,children:e||(d?f.jsx(X2,{disableFloatingButton:!0}):null)})]})}const uw=f.jsx(_.BulkDeleteButton,{}),NO=D.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?_.PureDatagridBody:_.DatagridBody,header:o=_.DatagridHeader,children:i,className:a,empty:c,expand:u,bulkActionsToolbar:d=!1,bulkActionButtons:p=uw,hover:g,isRowSelectable:v,isRowExpandable:y,resource:b,rowClick:x,rowSx:w,rowStyle:T,size:j="small",sx:E,expandSingle:P=!1,...O}=e,k=Z.useTranslate(),{sort:F,data:B,isLoading:H,onSelect:q,onToggleItem:U,selectedIds:ne,setSort:te,total:Y}=Z.useListContext(e),X=!!p,N=A.useMemo(()=>({isRowExpandable:y,expandSingle:P}),[y,P]),Q=A.useRef(null);A.useEffect(()=>{(!ne||ne.length===0)&&(Q.current=null)},[JSON.stringify(ne)]);const $=A.useCallback((W,J)=>{const ue=B.map(de=>de.id),he=ue.indexOf(Q.current);if(Q.current=J.target.checked?W:null,J.shiftKey&&he!==-1){const de=ue.indexOf(W),pe=ue.slice(Math.min(he,de),Math.max(he,de)+1),ge=J.target.checked?XQ(ne,pe):dJ(ne,pe);q(v?ge.filter(we=>v(B.find(ye=>ye.id===we))):ge)}else U(W)},[B,v,q,U,ne]),oe=f.jsx(gf,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:k("ra.navigation.no_results")})});return H===!0?f.jsx(_.DatagridLoading,{className:a,expand:u,hasBulkActions:X,nbChildren:D.Children.count(i),size:j}):B==null||B.length===0||Y===0?c||oe:f.jsx(Lie,{value:N,children:f.jsxs(_.DatagridRoot,{sx:E,className:Be(_.DatagridClasses.root,a),children:[d!=null&&A.isValidElement(d)?A.cloneElement(d,{selectedIds:ne,total:Y}):p!==!1?f.jsx(LO,{children:A.isValidElement(p)?p:uw}):null,f.jsx("div",{className:_.DatagridClasses.tableWrapper,children:f.jsxs(S.Table,{ref:t,className:_.DatagridClasses.table,size:j,...Vie(O),children:[dw(o,{children:i,sort:F,data:B,hasExpand:!!u,hasBulkActions:X,isRowSelectable:v,onSelect:q,resource:b,selectedIds:ne,setSort:te},i),dw(r,{expand:u,rowClick:x,data:B,hasBulkActions:X,hover:g,onToggleItem:$,resource:b,rowSx:w,rowStyle:T,selectedIds:ne,isRowSelectable:v},i)]})})]})})});function dw(e,t,n){return A.isValidElement(e)?A.cloneElement(e,t,n):A.createElement(e,t,n)}const $ie=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"];function Vie(e){return Object.keys(Z.sanitizeListRestProps(e)).filter(t=>!$ie.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{})}NO.displayName="Datagrid";const Wie=ce(NO,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function zie(e){return f.jsx(Wie,{...e})}const cv=A.createContext({hasFilterSidebar:!1});function $O(){var e;return((e=A.useContext(cv))==null?void 0:e.hasFilterSidebar)??!1}function uv({source:e,value:t}){const n=A.useContext(_.FilterContext),r=_.useResourceContext(),o=A.useMemo(()=>n.find(u=>{var d;return A.isValidElement(u)&&((d=u.props)==null?void 0:d.source)===e}),[n,e]),i=A.useMemo(()=>A.isValidElement(o)?o.props:{},[o]);if(!(i!=null&&i.chip))throw new Error(`No chip component found for filter source "${e}". Ensure your filter components define a 'chip' prop.`);const a={...i,record:{[e]:t},value:t,resource:r};return A.isValidElement(i.chip)?A.cloneElement(i.chip,a):Ke.isFunction(i.chip)?A.createElement(i.chip,a):null}function Uie(e){const{value:t,source:n,lastItem:r}=e,o=uv({source:n,value:t});return f.jsxs(S.Stack,{children:[f.jsx(S.ListItem,{alignItems:"flex-start",sx:{pl:0},children:f.jsx(S.ListItemText,{primary:o,sx:{my:0}})}),r===n?null:f.jsx(S.Divider,{})]})}function Hie(){const{filterValues:e}=Z.useListContext(),t=Z.useTranslate();return f.jsxs(S.Stack,{mt:4,width:"100%",children:[f.jsx(S.Typography,{variant:"h6",fontWeight:"bold",color:"secondary",children:t("ra.title.selected_filters")}),f.jsx(S.List,{sx:{bgcolor:"background.paper",pt:0},children:e?Object.entries(e).map(([n,r])=>{const o=Object.entries(e).pop(),i=o?o[0]:"";return f.jsx(Uie,{lastItem:i,value:r,source:n},n)}):null})]})}function Gie(e){const{onClose:t,addQuery:n}=e,r=Z.useTranslate(),{handleSubmit:o}=rn.useFormContext(),i=A.useCallback(a=>{n(a.queryName)},[n]);return f.jsxs(S.Toolbar,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{variant:"contained",onClick:o(i),children:r("ra.action.save")})]})}function VO(e){const{open:t,onClose:n}=e,{filterValues:r,sort:o,perPage:i,displayedFilters:a,resource:c}=Z.useListContext(),[u,d]=h2(c),p=Z.useTranslate(),g=A.useCallback(y=>{const b={label:y.trim(),value:{filter:r,sort:o,perPage:i,displayedFilters:a}},x=g2(u);d(x.concat(b)),n()},[r,o,i,a,u,d,n]),v=A.useCallback(()=>y=>{if(u.some(b=>b.label===(y==null?void 0:y.trim())))return"ra.validation.already_exists"},[u]);return f.jsx(S.Dialog,{open:t,onClose:n,maxWidth:"xs",fullWidth:!0,children:f.jsxs(V0,{toolbar:f.jsx(Gie,{addQuery:g,onClose:n}),title:p("ra.title.save_favorite_filter"),modal:!0,children:[f.jsx(mr,{fullWidth:!0,source:"queryName",label:p("ra.input.query_name"),placeholder:p("ra.input.query_name_placeholder"),validate:[Z.required(),v()]}),f.jsx(Hie,{})]})})}function WO(){const[e,t]=A.useState(!1),n=Z.useTranslate(),r=A.useCallback(()=>{t(!1)},[]),o=A.useCallback(()=>{t(!0)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{sx:{height:"36px"},variant:"contained",onClick:o,children:n("ra.action.save_filter")}),f.jsx(VO,{open:e,onClose:r})]})}function qie(e){const{onDelete:t,value:n,source:r}=e,o=uv({source:r,value:n});return o&&f.jsx(S.Chip,{label:o,variant:"combined",color:"primary",sx:{height:"36px","& .MuiChip-deleteIcon":{fontSize:"1rem !important",mr:1}},deleteIcon:f.jsx(nn.Close,{}),onDelete:t})}function Yie(){const{filterValues:e,setFilters:t}=Z.useListContext(),n=S.useTheme(),r=S.useMediaQuery(n.breakpoints.down("sm")),o=Z.useTranslate(),i=A.useCallback(()=>{t({})},[t]),a=A.useCallback(u=>{const d={...e};delete d[u],t(d)},[e,t]),c=A.useCallback(()=>f.jsxs(S.Stack,{flexDirection:"row",gap:2,children:[f.jsx(WO,{}),f.jsx(S.Button,{variant:"outlined",onClick:i,children:o("ra.action.reset_filters")})]}),[i,o]);return f.jsxs(S.Stack,{gap:2,flexDirection:r?"column":"row",children:[f.jsxs(S.Stack,{flexDirection:"row",flexWrap:r?"nowrap":"wrap",gap:2,py:.5,overflow:"auto",width:r?window.innerWidth-58:"auto",children:[Object.entries(e).map(([u,d])=>f.jsx(qie,{source:u,value:d,onDelete:()=>a(u)},u)),r?null:f.jsx(c,{})]}),r?f.jsx(c,{}):null]})}function Ag(){const{filterValues:e}=Z.useListContext(),t=S.useTheme(),n=S.useMediaQuery(t.breakpoints.down("sm")),r=Z.useTranslate();return e&&!Ke.isEmpty(e)?f.jsxs(S.Stack,{flexDirection:n?"column":"row",alignItems:"baseline",gap:2,m:n?2:0,children:[f.jsx(S.Typography,{variant:"h6",color:"secondary",whiteSpace:"nowrap",children:r("ra.title.active_filters")}),f.jsx(Yie,{})]}):null}function zO({open:e,onClose:t,filterToRemove:n}){var b;const r=Z.useTranslate(),{resource:o,filterValues:i,sort:a,perPage:c,displayedFilters:u}=Z.useListContext(),d=((b=n==null?void 0:n.value)==null?void 0:b.filter)||i,p=(n==null?void 0:n.label)??"",[g,v]=_.useSavedQueries(o);function y(){const x={filter:d,sort:a,perPage:c,displayedFilters:u},w=_.extractValidSavedQueries(g),T=w.findIndex(j=>dl(j.value,x));v([...w.slice(0,T),...w.slice(T+1)]),t()}return f.jsxs(S.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[f.jsx(S.DialogTitle,{id:"alert-dialog-title",children:r("ra.saved_queries.remove_dialog_title",{label:p,_:"Remove saved query?"})}),f.jsx(S.DialogContent,{children:f.jsx(S.DialogContentText,{children:r("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"})})}),f.jsxs(S.DialogActions,{children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{onClick:y,color:"primary",autoFocus:!0,children:r("ra.action.confirm")})]})]})}function Kie(e){const{query:t}=e,[n,r]=A.useState(!1),o=A.useCallback(()=>{r(a=>!a)},[]),i=Z.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{size:"small",color:"primary",onClick:o,children:i("ra.action.delete")}),f.jsx(zO,{open:n,onClose:o,filterToRemove:t})]})}function UO(e){const{closeSidebar:t}=e,{resource:n,setFilters:r,setSort:o,setPage:i,setPerPage:a}=Z.useListContext(),[c,u]=A.useState(!1),d=gt(),[p]=h2(n),g=g2(p),v=Z.useTranslate(),y=A.useCallback(()=>{u(x=>!x)},[]),b=A.useCallback(x=>{const{value:w}=x;r(w.filter),o({field:w.sort.field,order:w.sort.order}),i(1),a(w.perPage),t()},[r,o,i,a,t]);return p&&p.length>0?f.jsx(S.Box,{sx:{mt:"-1px",mb:2,"& .MuiAccordion-root":{borderColor:d.palette.divider,"& .Mui-expanded:last-of-type":{marginBottom:"inherit"},"& .MuiAccordionSummary-root":{bgcolor:"transparent",flexDirection:"row"},"& .MuiAccordionSummary-content":{justifyContent:"space-between",marginLeft:0},"& .MuiAccordionDetails-root":{borderColor:d.palette.divider},"& .MuiAccordionSummary-expandIconWrapper":{color:d.palette.text.primary,"&.Mui-expanded":{transform:"rotate(180deg)"}}}},children:f.jsxs(S.Accordion,{expanded:c,onChange:y,children:[f.jsx(S.AccordionSummary,{sx:{px:"20px"},expandIcon:f.jsx(qE,{fontSize:"small"}),children:f.jsxs(S.Typography,{variant:"h5",fontWeight:"bold",children:[v("ra.action.saved_filters")," (",g.length,")"]})}),g==null?void 0:g.map((x,w)=>f.jsxs(S.AccordionDetails,{sx:{display:"flex",justifyContent:"space-between",px:"20px",alignItems:"center"},children:[f.jsx(S.Typography,{variant:"body1",children:x.label}),f.jsxs(S.Stack,{flexDirection:"row",alignItems:"center",children:[f.jsx(Kie,{query:x}),f.jsx(S.Button,{size:"small",color:"primary",onClick:()=>b({value:x.value}),children:v("ra.action.apply")})]})]},w))]})}):f.jsx(S.Box,{height:16})}function Xie(e){const{form:t,filters:n}=e,r=Z.useResourceContext();return f.jsx(_.FilterContext.Provider,{value:Array.isArray(n)?n:[n],children:f.jsx(rn.FormProvider,{...t,children:f.jsx(S.Box,{px:"20px",children:n?(Array.isArray(n)?n:[n]).map((o,i)=>{const a={...o.props,display:"label"};return A.isValidElement(o)?f.jsx(S.Box,{mb:1,children:A.cloneElement(o,{...a,resource:r})},i):null}):null})})})}function Eu(e){const{filters:t}=e,[n,r]=A.useState(!1),{setSidebarOpen:o,sidebarOpen:i}=dv(),{filterValues:a,setFilters:c}=Z.useListContext(),u=Z.useTranslate(),d=rn.useForm({defaultValues:a}),{handleSubmit:p,getValues:g,reset:v,watch:y}=d,b=y(),x=A.useMemo(()=>{const O={};return t&&(Array.isArray(t)?t:[t]).forEach(k=>{O[k.props.source]=(a==null?void 0:a[k.props.source])??""}),O},[t,a]);A.useEffect(()=>{const O=_.getFilterFormValues(g(),a),k=g();Ke.isEqual(O,k)||v(O)},[JSON.stringify(a),a,g,v]);const w=A.useCallback(()=>{Ke.isFunction(o)&&o(!1)},[o]),T=A.useCallback(O=>{c(O),w()},[c,w]),j=A.useCallback(()=>{v({}),c({})},[v,c]),E=A.useCallback(()=>{r(O=>!O),j(),setTimeout(()=>{r(!1)},1e3)},[j]),P=A.useMemo(()=>{const O=g();return Ke.isEmpty(x)||Ke.isEqual(O,x)},[x,g,b]);return f.jsxs(hr,{sx:{height:"100%"},open:i,onClose:w,children:[f.jsxs(hr.Header,{children:[f.jsx(hr.HeaderText,{primary:u("ra.action.add_filter")}),f.jsx(hr.HeaderAction,{children:f.jsx(eE,{variant:"text",loading:n,loadingPosition:"start",startIcon:f.jsx(We.ReloadOutlined,{}),onClick:E,children:u("ra.action.reset_filters")})})]}),f.jsxs(hr.Content,{children:[f.jsx(UO,{closeSidebar:w}),f.jsx(Xie,{form:d,filters:t})]}),f.jsx(hr.Footer,{children:f.jsxs(S.Stack,{direction:"row",spacing:2,children:[f.jsx(S.Button,{fullWidth:!0,onClick:()=>{v({}),w()},children:u("ra.action.close")}),f.jsx(S.Button,{fullWidth:!0,disabled:P,variant:"contained",color:"primary",onClick:p(T),children:u("ra.action.apply_filters")})]})})]})}function Zie(){const{setSidebarOpen:e}=dv(),t=A.useContext(_.FilterContext),n=$O(),r=_.useTranslate(),o=S.useTheme(),i=S.useMediaQuery(o.breakpoints.down("sm"));if(!n)throw new Error("The <FilterSidebarButton> component requires the <List aside={<FilterSidebar />}> prop to be set");if(t===void 0)throw new Error("The <FilterSidebarButton> component requires the <List filters> prop to be set");const a=A.useCallback(()=>{Ke.isFunction(e)&&e(!0)},[e]);return i?f.jsxs(S.Button,{className:"add-filter",onClick:a,children:[f.jsx(nn.FilterList,{sx:{fontSize:"1rem",mr:.5}}),f.jsx(S.Typography,{variant:"h6",children:r("ra.action.add_filter")})]}):f.jsx(Ui,{label:"ra.action.add_filter",onClick:a,children:f.jsx(nn.FilterList,{})})}function HO(e){const{filters:t,actions:n,className:r,hasFilterSidebar:o,...i}=e,a=gt(),c=S.useMediaQuery(a.breakpoints.down("sm")),u=n?A.cloneElement(n,{...i,...n.props}):null,{filterValues:d}=Z.useListContext();return Array.isArray(t)?f.jsx(cv.Provider,{value:{hasFilterSidebar:o},children:f.jsx(_.FilterContext.Provider,{value:t,children:c&&o?f.jsxs("div",{children:[u,Ke.isEmpty(d)?null:f.jsxs("div",{children:[f.jsx(S.Divider,{}),f.jsx(Ag,{})]})]}):f.jsxs(fw,{className:r,children:[o?f.jsx(Ag,{}):f.jsx(_.FilterForm,{}),f.jsx("span",{}),u]})})}):f.jsxs(fw,{className:r,children:[t?A.cloneElement(t,{...i,context:"form"}):null,f.jsx("span",{}),n?A.cloneElement(n,{...i,filters:t,...n.props}):null]})}HO.propTypes={filters:m.oneOfType([m.element,m.arrayOf(m.element)]),actions:m.oneOfType([m.bool,m.element]),exporter:m.oneOfType([m.func,m.bool])};const Qie="RaListToolbar",fw=ce("div",{name:Qie,overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%",[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"}})),GO=A.memo(HO),Jie=f.jsx(_.ListActions,{}),ese=f.jsx(_.Pagination,{}),tse=f.jsx(gf,{}),nse=S.Card;function rse(e){const{actions:t=Jie,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:i,hasCreate:a,pagination:c=ese,children:u,className:d,component:p=nse,title:g,empty:v=tse,...y}=e,{defaultTitle:b,data:x,error:w,isLoading:T,filterValues:j,resource:E}=Z.useListContext(e),P=gt(),O=D.isValidElement(n)&&(n==null?void 0:n.type)!==Eu,k=D.isValidElement(n)&&(n==null?void 0:n.type)===Eu;if(!u||!x&&T&&i)return null;function F(X){return f.jsxs("div",{className:$r.main,style:{border:O?"1px solid":"none",borderRadius:O?4:0,borderColor:O?P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800:"transparent",backgroundColor:O?P.palette.background.paper:"transparent"},children:[r||t?f.jsx(GO,{className:$r.actions,filters:r,actions:t,hasCreate:a,hasFilterSidebar:k}):null,!w&&f.jsx(p,{className:$r.content,sx:X?{background:"transparent"}:{},children:o&&u&&D.isValidElement(u)?A.cloneElement(u,{bulkActionButtons:o}):u}),w?f.jsx(I0,{error:w,resetErrorBoundary:null}):c!==!1&&c]})}function B(){return v!==!1&&A.cloneElement(v,{className:$r.noResults,hasCreate:a})}const H=!T&&(x==null?void 0:x.length)===0,q=!T&&(x==null?void 0:x.length)===0&&!Object.keys(j).length&&v!==!1,U=D.isValidElement(n),ne=U&&(n==null?void 0:n.type)===Eu,te=T||q||U&&!ne?D.Fragment:Mn,Y=!T&&!q&&(!n||ne)?{content:!1}:void 0;return f.jsxs(ise,{className:Be("list-page",d),...y,sx:H?{"& .MuiPaper-root":{backgroundColor:"transparent",border:"none"},"& .RaList-actions":{border:"1px solid",borderRadius:`${P.shape.borderRadius}px`,borderColor:P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800,backgroundColor:P.palette.background.paper}}:{},children:[f.jsx(_.Title,{title:g,defaultTitle:b,preferenceKey:`${E}.list.title`}),f.jsx(te,{...Y,children:T?f.jsx(S.CircularProgress,{sx:{position:"absolute",top:"50%",left:"50%",marginTop:"-20px",marginLeft:"-20px"}}):q?B():F(H)}),O?f.jsx(ose,{aside:n}):null,k?D.cloneElement(n,{filters:r}):null]})}function ose({aside:e}){var r;const t=((r=e==null?void 0:e.props)==null?void 0:r.order)??-1,n=gt();return f.jsx(S.Card,{className:$r.asideCard,sx:{order:t,mr:t===-1?2:0,ml:t!==-1?2:0,width:200,border:"1px solid",borderRadius:1,borderColor:n.palette.mode==="dark"?n.palette.divider:n.palette.grey.A800,backgroundColor:n.palette.background.paper,backgroundImage:"none"},children:f.jsx(S.CardContent,{sx:{pt:1},children:A.cloneElement(e,{})})})}const xs="RaList",$r={main:`${xs}-main`,content:`${xs}-content`,actions:`${xs}-actions`,noResults:`${xs}-noResults`,asideCard:`${xs}-asideCard`},ise=ce("div",{name:xs,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex","& >.MuiPaper-root":{flex:1},[`& .${$r.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${$r.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${$r.actions}`]:{},[`& .${$r.noResults}`]:{alignContent:"center"},[`& .${$r.asideCard}`]:{[e.breakpoints.down("md")]:{display:"none"},[`& .${_.SavedQueriesListClasses.floatingIcon}`]:{fontSize:"1.125rem"},[`& .${_.SavedQueriesListClasses.floatingTooltip}`]:{top:"-1.2em"},"& form":{marginTop:e.spacing(2)}}})),qO=A.createContext({sidebarOpen:!1,setSidebarOpen:()=>{}});function YO(e){const[t,n]=A.useState(!1);return f.jsx(qO.Provider,{value:{sidebarOpen:t,setSidebarOpen:n},children:e.children})}function dv(){return A.useContext(qO)}function sse({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=ase,filterDefaultValues:i,perPage:a=10,queryOptions:c,resource:u,sort:d,storeKey:p,...g}){return f.jsx(Z.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:i,perPage:a,queryOptions:c,resource:u,sort:d,storeKey:p,children:f.jsx(YO,{children:f.jsx(rse,{...g})})})}const ase={},lse=kl(sse,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),[e.breakpoints.down("sm")]:{flexDirection:"row"},"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiInputLabel-root":{paddingTop:0},"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}},"& .ApplicaEmpty-root":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"calc(100vh - 260px)"}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function cse(e){return f.jsx(lse,{...e,pagination:f.jsx(lv,{})})}function use(){const e=_.useRefresh(),t=_.useNotify(),n=_.useResourceContext(),r=_.useUnselectAll(n),{selectedIds:o,data:i}=_.useListContext(),a=_.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)),[u,{isLoading:d}]=_.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Rr().toISOString()},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=A.useCallback(()=>{u()},[u]);return f.jsx(_.Button,{label:"ra.notification.mark_as_readed",disabled:d||(a==null?void 0:a.readed)!==null,onClick:p,children:f.jsx(nn.Email,{})})}function dse(){const e=_.useRefresh(),t=_.useNotify(),n=_.useResourceContext(),r=_.useUnselectAll(n),{selectedIds:o,data:i}=_.useListContext(),a=_.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)).concat([a]),[u,{isLoading:d}]=_.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=A.useCallback(()=>{u()},[u]);return f.jsx(_.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:d||a&&!(a!=null&&a.readed),onClick:p,children:f.jsx(nn.Drafts,{})})}function fse(e){const t=_.useRecordContext(e),n=_.useResourceContext(e),r=_.useRedirect(),o=_.useNotify(),i=_.useTranslate(),[a]=_.useLocaleState(),c=A.useMemo(()=>t!=null&&t.readed?Rr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=_.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Rr().toISOString()}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),d=A.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:d,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(S.Typography,{variant:"subtitle1",children:f.jsxs(S.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(S.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c?f.jsx(S.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:i("ra.notification.readed",{readed:c})}):null]})}function pse({...e}){const t=S.useTheme(),{mode:n,colorize:r,density:o}=A.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?S.darken:S.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]);function i(a){return{backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)}}return f.jsxs(_.Datagrid,{...e,rowSx:i,children:[f.jsx(fse,{source:"notification",sortable:!1}),f.jsx(iT,{source:"created"}),f.jsxs(Qo,{children:[f.jsx(use,{}),f.jsx(dse,{})]})]})}function hse({empty:e,...t}){const n=_.useTranslate(),r=f.jsx(gf,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:n("ra.navigation.no_results")})});return f.jsx(_.SimpleList,{...t,empty:e||r})}function gse({children:e}){const t=gt();return f.jsx(Mn,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,border:!1,boxShadow:!0,shadow:t.customShadows.z1,children:f.jsx(S.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})}function mf({version:e,name:t,copy:n,children:r,logo:o,background:i=Zd,footer:a=!0}){return f.jsxs(S.Box,{children:[f.jsx(ov,{source:"default"}),A.isValidElement(i)?i:A.createElement(i),f.jsxs(S.Grid,{container:!0,direction:"column",justifyContent:"flex-end",children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(iv,{title:t})}),f.jsxs(S.Grid,{item:!0,xs:12,children:[f.jsx(S.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(S.Grid,{item:!0,children:f.jsx(gse,{children:r})})}),a?f.jsx(S.Grid,{item:!0,sx:{pb:1,position:"absolute",bottom:0,ml:2},children:f.jsx(rv,{name:t,copy:n,version:e})}):null]})]})]})}function mse({name:e,copy:t,logo:n,version:r,background:o}){const i=Z.useTranslate(),a=Z.useAuthProvider(),c=Z.useNotify(),u=ut.useNavigate(),{token:d}=ut.useParams();return A.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(d).then(()=>{c("ra.auth.activate_success",{type:"info"}),ee.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),ee.delay(()=>u("/login"),1e3)})},[d,a,c,u]),f.jsx(mf,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:i("ra.auth.activate")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})}function KO(){const e=A.useCallback(()=>location.reload(),[]);return f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{alt:"Error",src:oE,style:{width:"100%",maxWidth:450}}),f.jsx(S.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(S.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(S.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}function XO({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:i=!1,redirectTo:a,background:c=f.jsx(Zd,{})}){const[u,d]=Z.useSafeSetState(!1),p=Z.useLogin(),g=Z.useTranslate(),v=Z.useNotify(),y=Z.useCheckAuth(),b=ut.useNavigate();A.useEffect(()=>{y({},!1).then(()=>{b("/")}).catch(()=>{})},[y,b]);function x(w){d(!0),p(w,a).then(()=>{d(!1)}).catch(T=>{d(!1),v(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"error",messageArgs:{_:typeof T=="string"?T:T&&T.message?T.message:void 0}})})}return f.jsx(mf,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:"Login"}),i?f.jsx(S.Typography,{component:ut.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:g("ra.auth.register")}):null]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(Z.Form,{onSubmit:x,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(mr,{autoFocus:!0,source:"username",label:g("ra.auth.username"),autoComplete:"username",validate:Z.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(mr,{source:"password",label:g("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Z.required(),placeholder:g("ra.auth.password_placeholder"),fullWidth:!0})})]}),o?f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(S.Link,{variant:"h6",component:ut.Link,to:"/recover",color:"text.primary",children:g("ra.auth.forgot_password")})})}):null,f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(S.CircularProgress,{size:19,thickness:3}):g("ra.auth.sign_in")})})]})})]})})}function vse({name:e,copy:t,logo:n,version:r,background:o}){const[i,a]=A.useState(!1),c=Z.useTranslate(),u=Z.useRedirect(),d=Z.useNotify(),p=Z.useAuthProvider();function g({email:v}){a(!0),p.recover(v).then(y=>{const b=`ra.auth.recover_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>a(!1))}return f.jsx(mf,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(_.Form,{onSubmit:g,children:[f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"email",validate:[Z.required(),Z.email()]})})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(S.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})}function yse({name:e,copy:t,version:n,logo:r,background:o}){const[i,a]=A.useState(!1),c=Z.useTranslate(),u=Z.useRedirect(),d=Z.useNotify(),p=Z.useAuthProvider();function g(v){a(!0),p.register(v).then(y=>{const b=`ra.auth.register_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d(y,{type:"error"})}).finally(()=>a(!1))}return f.jsx(mf,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(_.Form,{onSubmit:g,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"name",label:c("ra.register.name"),validate:Z.required()})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"email",type:"email",validate:[Z.required(),Z.email()]})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"password",type:"password",validate:Z.required()})})]}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})}function bse(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function xse(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Cse(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(We.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function yi({color:e,theme:t}){const n=sn(t,e),{lighter:r,light:o,main:i}=n;return{borderColor:Je(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:i}}}function wse(e){const t=yi({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":yi({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":yi({color:"secondary",theme:e}),"&.MuiAlert-borderError":yi({color:"error",theme:e}),"&.MuiAlert-borderSuccess":yi({color:"success",theme:e}),"&.MuiAlert-borderInfo":yi({color:"info",theme:e}),"&.MuiAlert-borderWarning":yi({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function Sse(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Ase(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function bi({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function Ese(e){const t=bi({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":bi({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":bi({color:"secondary",theme:e}),"&.MuiBadge-colorError":bi({color:"error",theme:e}),"&.MuiBadge-colorInfo":bi({color:"info",theme:e}),"&.MuiBadge-colorSuccess":bi({color:"success",theme:e}),"&.MuiBadge-colorWarning":bi({color:"warning",theme:e})}}}}}function et({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,main:i,dark:a,contrastText:c}=r,u=`${t}Button`,d=Xs(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${Je(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Je(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:i,boxShadow:d,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function Tse(e){const t=et({variant:"dashed",color:"primary",theme:e}),n=et({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":et({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":et({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":et({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":et({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":et({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":et({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":et({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":et({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":et({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":et({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":et({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":et({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:et({variant:"contained",color:"primary",theme:e}),containedSecondary:et({variant:"contained",color:"secondary",theme:e}),containedError:et({variant:"contained",color:"error",theme:e}),containedSuccess:et({variant:"contained",color:"success",theme:e}),containedInfo:et({variant:"contained",color:"info",theme:e}),containedWarning:et({variant:"contained",color:"warning",theme:e}),outlinedPrimary:et({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:et({variant:"outlined",color:"secondary",theme:e}),outlinedError:et({variant:"outlined",color:"error",theme:e}),outlinedSuccess:et({variant:"outlined",color:"success",theme:e}),outlinedInfo:et({variant:"outlined",color:"info",theme:e}),outlinedWarning:et({variant:"outlined",color:"warning",theme:e}),textPrimary:et({variant:"text",color:"primary",theme:e}),textSecondary:et({variant:"text",color:"secondary",theme:e}),textError:et({variant:"text",color:"error",theme:e}),textSuccess:et({variant:"text",color:"success",theme:e}),textInfo:et({variant:"text",color:"info",theme:e}),textWarning:et({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Ise(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Ose(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function Pse(){return{MuiCard:{styleOverrides:{root:{boxShadow:"none"}}}}}function jse(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function ps({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:i}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function Rse(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function wh(e){const t=Rse(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function Mse(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(We.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(We.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...wh("small")},"&.size-medium":{...wh("medium")},"&.size-large":{...wh("large")}},colorPrimary:ps({color:"primary",theme:e}),colorSecondary:ps({color:"secondary",theme:e}),colorSuccess:ps({color:"success",theme:e}),colorWarning:ps({color:"warning",theme:e}),colorInfo:ps({color:"info",theme:e}),colorError:ps({color:"error",theme:e})}}}}function hs({color:e,theme:t}){const n=sn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Hn({color:e,theme:t}){const n=sn(t,e),{light:r,lighter:o,main:i}=n;return{color:i,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:i,"&:hover":{color:r}}}}function kse(e){const t=Hn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":hs({color:"primary",theme:e}),"&.MuiChip-colorSecondary":hs({color:"secondary",theme:e}),"&.MuiChip-colorError":hs({color:"error",theme:e}),"&.MuiChip-colorInfo":hs({color:"info",theme:e}),"&.MuiChip-colorSuccess":hs({color:"success",theme:e}),"&.MuiChip-colorWarning":hs({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Hn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Hn({color:"secondary",theme:e}),"&.MuiChip-lightError":Hn({color:"error",theme:e}),"&.MuiChip-lightInfo":Hn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Hn({color:"success",theme:e}),"&.MuiChip-lightWarning":Hn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Hn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Hn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Hn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Hn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Hn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Hn({color:"warning",theme:e})}}}}}function Fse(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:Je("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function Dse(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function _se(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function gs({color:e,theme:t}){const n=sn(t,e),{main:r,dark:o,contrastText:i}=n,a=`${e}Button`,c=Xs(t,a);return{color:i,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${Je(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${Je(r,.9)}`}}}function Lse(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":gs({color:"primary",theme:e}),"&.MuiFab-secondary":gs({color:"secondary",theme:e}),"&.Mui-error":gs({color:"error",theme:e}),"&.MuiFab-success":gs({color:"success",theme:e}),"&.MuiFab-info":gs({color:"info",theme:e}),"&.MuiFab-warning":gs({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function Bse(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function Nse(e){return{MuiInputBase:{styleOverrides:{}}}}function $se(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1.3em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function Vse(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function Wse(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function zse(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function Use(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function Hse(e){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function Gse(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function xi({variant:e,theme:t}){const n=sn(t,e),{light:r}=n,o=Xs(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function qse(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{...xi({variant:"primary",theme:e}),"&.Mui-error":{...xi({variant:"error",theme:e})}},inputSizeSmall:{padding:"9px 8px 9px 12px"},inputMultiline:{padding:0},colorSecondary:xi({variant:"secondary",theme:e}),colorError:xi({variant:"error",theme:e}),colorWarning:xi({variant:"warning",theme:e}),colorInfo:xi({variant:"info",theme:e}),colorSuccess:xi({variant:"success",theme:e})}}}}function Yse(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function At({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:i},...d};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:i},...d};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...d}}}function Kse(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":At({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":At({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":At({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":At({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":At({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":At({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":At({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":At({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":At({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":At({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":At({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":At({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":At({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":At({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":At({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":At({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":At({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":At({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":At({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":At({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":At({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":At({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":At({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":At({variant:"outlined",color:"warning",theme:e})}}}}}}function Xse(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function ms({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:i}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function Zse(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function Sh(e){const t=Zse(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function Qse(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(S.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...Sh("small")},"&.size-medium":{...Sh("medium")},"&.size-large":{...Sh("large")}},colorPrimary:ms({color:"primary",theme:e}),colorSecondary:ms({color:"secondary",theme:e}),colorSuccess:ms({color:"success",theme:e}),colorWarning:ms({color:"warning",theme:e}),colorInfo:ms({color:"info",theme:e}),colorError:ms({color:"error",theme:e})}}}}function vs({color:e,theme:t}){const n=sn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function Jse(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":vs({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":vs({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":vs({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":vs({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":vs({color:"info",theme:e}),"&.MuiSlider-thumbColorError":vs({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function eae(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function Ah(e,t){const n=eae(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function tae(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...Ah(e,"medium")},sizeLarge:{...Ah(e,"large")},sizeSmall:{...Ah(e,"small")}}}}}function nae(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function rae(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function oae(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function iae(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function sae(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function aae(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function lae(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function cae(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function uae(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function dae(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function fae(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function pae(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function hae(e){return Ke.merge(bse(e),xse(e),Cse(e),wse(e),Sse(),Ase(e),Ese(e),Tse(e),Ise(),Ose(),Pse(),jse(),Mse(e),kse(e),Fse(e),Dse(e),_se(),Lse(e),Bse(e),Nse(),$se(e),Vse(),Wse(),zse(e),Use(e),Hse(),Gse(),qse(e),Yse(),Kse(e),Xse(e),Qse(e),Jse(e),tae(e),nae(e),rae(e),oae(e),iae(e),sae(e),aae(),lae(),cae(),uae(e),dae(e),fae(),pae())}function gae(e){const{blue:t,red:n,gold:r,cyan:o,green:i,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:u},grey:c}}function mae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],d=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(i=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],d=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function vae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function yae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function bae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function xae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Cae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function wae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Sae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Aae(e,t,n){switch(t){case"theme1":return mae(e,n);case"theme2":return vae(e,n);case"theme3":return yae(e,n);case"theme4":return bae(e,n);case"theme5":return xae(e,n);case"theme6":return Cae(e,n);case"theme7":return wae(e,n);case"theme8":return Sae(e,n);default:return gae(e)}}var Eg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Eg.primary=Eg[5];var Tg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tg.primary=Tg[5];var Ig=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ig.primary=Ig[5];var Og=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Og.primary=Og[5];var Pg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Pg.primary=Pg[5];var jg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];jg.primary=jg[5];var Rg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rg.primary=Rg[5];var Mg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Mg.primary=Mg[5];var kg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];kg.primary=kg[5];var Fg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Fg.primary=Fg[5];var Dg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Dg.primary=Dg[5];var _g=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_g.primary=_g[5];var Lg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lg.primary=Lg[5];var Eae={red:Eg,volcano:Tg,orange:Ig,gold:Og,yellow:Pg,lime:jg,green:Rg,cyan:Mg,blue:kg,geekblue:Fg,purple:Dg,magenta:_g,grey:Lg},Bg=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Bg.primary=Bg[5];var Ng=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Ng.primary=Ng[5];var $g=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];$g.primary=$g[5];var Vg=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Vg.primary=Vg[5];var Wg=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Wg.primary=Wg[5];var zg=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];zg.primary=zg[5];var Ug=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ug.primary=Ug[5];var Hg=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Hg.primary=Hg[5];var Gg=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Gg.primary=Gg[5];var qg=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];qg.primary=qg[5];var Yg=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Yg.primary=Yg[5];var Kg=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Kg.primary=Kg[5];var Xg=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Xg.primary=Xg[5];var Tae={red:Bg,volcano:Ng,orange:$g,gold:Vg,yellow:Wg,lime:zg,green:Ug,cyan:Hg,blue:Gg,geekblue:qg,purple:Yg,magenta:Kg,grey:Xg};function Iae(e,t){const n=e==="dark"?Tae:Eae;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#121212","#d3d8db"]),n.grey=[...r,...o,...i];const a=Aae(n,t,e);return Pm({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?Je(a.grey[900],.87):a.grey[700],secondary:e==="dark"?Je(a.grey[900],.45):a.grey[500],disabled:e==="dark"?Je(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?Je(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})}function Oae(e){return{button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z0:"none",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${Je(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Je(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Je(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Je(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Je(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Je(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Je(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Je(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Je(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Je(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Je(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Je(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Je(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Je(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Je(e.palette.grey[500],.2)}`}}function Pae(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}}}function fv({themeOverrides:e,children:t}){const n=Sn(),{themeDirection:r,mode:o,presetColor:i,fontFamily:a}=n,c=H2(),u=A.useMemo(()=>o==="auto"?c:o,[o,c]),d=A.useMemo(()=>Iae(u,i),[u,i]),p=A.useMemo(()=>Pae(a),[a]),g=A.useMemo(()=>Oae(d),[d]),v=A.useMemo(()=>ee.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:d.palette,customShadows:g,typography:p,components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:d.spacing(2.6875),height:d.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(d):e),[r,d,p,g,e]),y=Pm(v),b=ee.cloneDeep(y.components??{});return y.components=ee.merge(hae(y),b),f.jsx(S.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(DA,{theme:y,children:[f.jsx(S.CssBaseline,{enableColorScheme:!0}),t]})})}function jae({children:e,theme:t,...n}){return f.jsx(_.CoreAdminContext,{...n,children:f.jsx(fv,{themeOverrides:t,children:f.jsx(DO,{children:e})})})}function ZO(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:i,disableTelemetry:a,history:c,i18nProvider:u,layout:d,loading:p,loginPage:g,authCallbackPage:v,menu:y,notification:b,queryClient:x,requireAuth:w,store:T=_.localStorageStore(),ready:j,theme:E,title:P="React Admin"}=e;return f.jsx(jae,{authProvider:t,dataProvider:i,i18nProvider:u,store:T,history:c,queryClient:x,theme:E,children:f.jsx(_.AdminUI,{layout:d,dashboard:o,disableTelemetry:a,menu:y,catchAll:n,title:P,loading:p,loginPage:g,authCallbackPage:v,notification:b,requireAuth:w,ready:j,children:r})})}class QO{constructor({catch:t,display:n,log:r,error:o}){Ta(this,"catch");Ta(this,"display");Ta(this,"log");Ta(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}var ml,vl,_s;class Rae{constructor(t){lo(this,ml);lo(this,vl);lo(this,_s,new Set);const{apiUrl:n}=t??{};if(!ee.isString(n)||ee.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");Do(this,vl,n),Do(this,ml,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:i}=t,a=`${n}${r}${o}${i}`;On(this,_s).has(a)||(On(this,_s).add(a),fetch(`${On(this,vl)}/ui/error-log`,{method:"PUT",headers:On(this,ml),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(u=>{console.warn("Unable to send error to server",u),On(this,_s).delete(a)}))}}ml=new WeakMap,vl=new WeakMap,_s=new WeakMap;function Mae({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=i=>new QO({catch:i!=null,display:!1,log:i!=null,error:i}),...o}){const i=D.useMemo(()=>o.errorHandler?o.errorHandler:new Rae({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=D.useCallback(function(u,...d){var g;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(g=u==null?void 0:u.toString())==null?void 0:g.replace(/%s/g,()=>d.shift()));return p.isCatched()||(p.logError()&&(u instanceof ErrorEvent?i.handle(u):i.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)),!1},[r,i,a]);return D.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c,a]),!0}var yl,bl,Ri;class kae{constructor(t){lo(this,yl);lo(this,bl);lo(this,Ri,[]);const{apiUrl:n}=t??{};if(!ee.isString(n)||ee.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");Do(this,bl,n),Do(this,yl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ee.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ee.isString(n)||ee.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ee.isString(r)||ee.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ee.some(On(this,Ri),o=>ee.isEqual(o,{code:n,lang:r}))){On(this,Ri).push({code:n,lang:r}),fetch(`${On(this,bl)}/i18n/message`,{method:"put",headers:On(this,yl),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),Do(this,Ri,ee.reject(On(this,Ri),i=>ee.isEqual(i,{code:n,lang:r})))});return}}}yl=new WeakMap,bl=new WeakMap,Ri=new WeakMap;function JO(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,i=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new kae({apiUrl:t});function u(){return fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(g=>g.json()).catch(()=>Promise.resolve(i))}function d(){return fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(g=>g.json()).then(g=>g.reduce((v,y)=>({...v,[y.lang]:{...v[y.lang]||{},[y.code]:y.text}}),{}))}function p(g,v,y){return r||console.error(`Warning: Missing translation for key: "${g}"`),o&&(ee.isString(g)?g.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${g}`):c.handleMessage({code:g,lang:y}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),g}return Promise.all([u(),d()]).then(g=>{const[v,y]=g;function b(x){return ee.get(y,x,{})}return pw(b,n,v,{allowMissing:r||o,onMissingKey:p})})}function Fae(e){const{defaultLocale:t,path:n}=e,r=[{locale:t,name:t}],o=new Headers({Accept:"application/json","Content-Type":"application/json"});function i(){return fetch(`${n}/languages.json`,{headers:o,method:"get"}).then(c=>c.json()).catch(()=>Promise.resolve(r))}function a(){return fetch(`${n}/messages.json`,{headers:o,method:"get"}).then(c=>c.json()).then(c=>c.reduce((u,d)=>({...u,[d.lang]:{...u[d.lang]||{},[d.code]:d.text}}),{}))}return Promise.all([i(),a()]).then(c=>{const[u,d]=c;function p(g){return ee.get(d,g,{})}return pw(p,t,u,{allowMissing:!0})})}function Dae({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})}){const[r,o]=A.useState({loading:!0,languages:null});return A.useEffect(()=>{const i=new Headers;i.append("Accept","application/json"),i.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:i}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r}function eP(e){const[t,n]=A.useState(),r=U2(e);return A.useEffect(()=>{if(e.customProvider!==void 0){e.customProvider.then(n);return}JO(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r,e==null?void 0:e.customProvider]),t}const _ae=new js.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function Lae({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:i,logoIcon:a,loginPage:c=f.jsx(XO,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(Zd,{})}),menu:u,name:d,copy:p,version:g="0.0.0",dataProvider:v,authProvider:y,i18nProvider:b,errorHandler:x,error:w,enableNotification:T=!1,enableRegistration:j=!1,enablePasswordRecover:E=!1,enableThemeToggler:P=!1,enableLocaleSwitcher:O=!1,queryClient:k=_ae,background:F,notificationAPI:B="entities/notification",...H}){Mae({apiUrl:n,errorHandler:x,catcherFn:te=>{const Y=te==null?void 0:te.toString(),N=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some($=>Y==null?void 0:Y.includes($));return new QO({catch:N,display:!N,log:!N&&o===!0,error:Y})}});const q=A.useMemo(()=>A.isValidElement(c)?A.cloneElement(c,{name:d,copy:p,logo:i,version:g,background:F,enableRegistration:j,enablePasswordRecover:E}):c,[c,d,g,p,F,i,j,E]),U=A.useMemo(()=>te=>{const Y=d?f.jsx(iv,{title:d}):i,X=d?f.jsx(_O,{title:d}):a;return f.jsx(EO,{...te,name:d,copy:p,version:g,logoMain:Y,logoIcon:X,notification:B,enableThemeToggler:P,enableNotification:T,enableLocaleSwitcher:O,error:w})},[i,a,d,p,g,w,B,T,P,O]),ne=eP({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o,customProvider:b});return ne===void 0?f.jsx(f.Fragment,{}):ne.error?f.jsx(yg,{initialConfig:t,children:f.jsx(fv,{themeOverrides:e,children:f.jsx(KO,{})})}):f.jsx(Zee,{children:f.jsx(w2,{menu:u,children:f.jsx(yg,{initialConfig:t,children:f.jsx(ZO,{theme:e,layout:U,notification:OO,queryClient:k,dataProvider:v,authProvider:y,i18nProvider:ne,loginPage:q,...H})})})})}Object.defineProperty(exports,"ArrayField",{enumerable:!0,get:()=>_.ArrayField});Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>_.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>_.BooleanField});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>_.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>_.Confirm});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>_.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>_.CustomRoutes});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>_.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>_.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>_.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>_.FieldTitle});Object.defineProperty(exports,"FilterButton",{enumerable:!0,get:()=>_.FilterButton});Object.defineProperty(exports,"FilterList",{enumerable:!0,get:()=>_.FilterList});Object.defineProperty(exports,"FilterListItem",{enumerable:!0,get:()=>_.FilterListItem});Object.defineProperty(exports,"FilterLiveSearch",{enumerable:!0,get:()=>_.FilterLiveSearch});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>_.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>_.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>_.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>_.I18nContextProvider});Object.defineProperty(exports,"ListBase",{enumerable:!0,get:()=>_.ListBase});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>_.LoadingIndicator});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>_.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>_.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>_.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>_.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>_.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>_.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>_.SaveButton});Object.defineProperty(exports,"SavedQueriesList",{enumerable:!0,get:()=>_.SavedQueriesList});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>_.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleShowLayout",{enumerable:!0,get:()=>_.SimpleShowLayout});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>_.SingleFieldList});Object.defineProperty(exports,"TabbedFormTabs",{enumerable:!0,get:()=>_.TabbedFormTabs});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>_.UrlField});Object.defineProperty(exports,"ValidationError",{enumerable:!0,get:()=>_.ValidationError});Object.defineProperty(exports,"WithListContext",{enumerable:!0,get:()=>_.WithListContext});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>_.choices});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>_.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>_.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>_.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>_.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>_.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>_.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>_.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>_.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>_.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>_.useAuthProvider});Object.defineProperty(exports,"useCheckAuth",{enumerable:!0,get:()=>_.useCheckAuth});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>_.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>_.useChoicesContext});Object.defineProperty(exports,"useCreate",{enumerable:!0,get:()=>_.useCreate});Object.defineProperty(exports,"useCreateContext",{enumerable:!0,get:()=>_.useCreateContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>_.useCreateController});Object.defineProperty(exports,"useCreateSuggestionContext",{enumerable:!0,get:()=>_.useCreateSuggestionContext});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>_.useDataProvider});Object.defineProperty(exports,"useDeleteMany",{enumerable:!0,get:()=>_.useDeleteMany});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>_.useEditContext});Object.defineProperty(exports,"useEditController",{enumerable:!0,get:()=>_.useEditController});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>_.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>_.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>_.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>_.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>_.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>_.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>_.useListContext});Object.defineProperty(exports,"useListController",{enumerable:!0,get:()=>_.useListController});Object.defineProperty(exports,"useLocaleState",{enumerable:!0,get:()=>_.useLocaleState});Object.defineProperty(exports,"useLocales",{enumerable:!0,get:()=>_.useLocales});Object.defineProperty(exports,"useLogin",{enumerable:!0,get:()=>_.useLogin});Object.defineProperty(exports,"useLogout",{enumerable:!0,get:()=>_.useLogout});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>_.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>_.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>_.useRecordContext});Object.defineProperty(exports,"useReferenceArrayFieldController",{enumerable:!0,get:()=>_.useReferenceArrayFieldController});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>_.useRefresh});Object.defineProperty(exports,"useRemoveFromStore",{enumerable:!0,get:()=>_.useRemoveFromStore});Object.defineProperty(exports,"useResetStore",{enumerable:!0,get:()=>_.useResetStore});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>_.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>_.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>_.useResourceDefinitions});Object.defineProperty(exports,"useSafeSetState",{enumerable:!0,get:()=>_.useSafeSetState});Object.defineProperty(exports,"useShowContext",{enumerable:!0,get:()=>_.useShowContext});Object.defineProperty(exports,"useShowController",{enumerable:!0,get:()=>_.useShowController});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>_.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>_.useSimpleFormIteratorItem});Object.defineProperty(exports,"useStore",{enumerable:!0,get:()=>_.useStore});Object.defineProperty(exports,"useStoreContext",{enumerable:!0,get:()=>_.useStoreContext});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>_.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>_.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>_.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>_.useUnselectAll});Object.defineProperty(exports,"useUpdate",{enumerable:!0,get:()=>_.useUpdate});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>_.useUpdateMany});Object.defineProperty(exports,"withLifecycleCallbacks",{enumerable:!0,get:()=>_.withLifecycleCallbacks});exports.ActionsField=ete;exports.ActionsMenu=Qo;exports.ActivatePage=mse;exports.ActiveFiltersChips=Ag;exports.AddTableRow=Y0;exports.Admin=ZO;exports.AnimateButton=AD;exports.AppBarStyled=sO;exports.ApplicaAdmin=Lae;exports.ArrayInput=Jee;exports.AttachmentField=tT;exports.AttachmentInput=Ete;exports.AuthBackground=Zd;exports.AutocompleteArrayInput=Ite;exports.AutocompleteInput=Pte;exports.Avatar=Vu;exports.BooleanInput=Rte;exports.Breadcrumbs=NA;exports.BulkActionsToolbar=LO;exports.BulkDeleteWithConfirmButton=Y2;exports.BulkFloatingActionsToolbar=_ie;exports.Button=Ui;exports.CardForm=q2;exports.ChangePasswordButton=fO;exports.ChangePasswordForm=z0;exports.CircularWithLabel=O$;exports.CircularWithPath=P$;exports.CoverField=rT;exports.Create=cne;exports.CreateButton=X2;exports.CreateButtonClasses=dd;exports.CreateInDialogButton=Hee;exports.Datagrid=zie;exports.DateAgoField=iT;exports.DateField=cte;exports.DateInput=Fte;exports.DateTimeInput=_te;exports.DeleteWithConfirmButton=Nl;exports.Dot=Nm;exports.Drawer=iO;exports.DrawerHeader=XT;exports.DrawerHeaderStyled=YT;exports.DrawerToggle=cO;exports.Edit=fne;exports.EditInDialogButton=Yee;exports.EmailField=dte;exports.Empty=gf;exports.EmptyClasses=Fi;exports.Error=I0;exports.Field=BT;exports.FileField=sT;exports.FileInput=Bte;exports.FilterSidebar=Eu;exports.FilterSidebarButton=Zie;exports.FilterSidebarContext=cv;exports.Footer=rv;exports.FormHeader=gne;exports.FunctionField=pte;exports.GenericErrorPage=KO;exports.Header=uO;exports.HeaderButton=aO;exports.HeaderIconButton=Qoe;exports.HeaderNotification=dO;exports.HeaderProfile=gO;exports.HeaderSpacer=vO;exports.HeaderToggleButton=sa;exports.HorizontalBar=yO;exports.IconButton=Hd;exports.ImageField=nT;exports.ImageInput=Nte;exports.ImpersonateUserButton=Kee;exports.LabeledArrayInput=eT;exports.LabeledInput=gn;exports.Layout=EO;exports.LayoutContent=qT;exports.LayoutProvider=UT;exports.LayoutWrapper=AO;exports.LinearWithIcon=j$;exports.LinearWithLabel=R$;exports.List=cse;exports.ListItem=Fie;exports.ListToolbar=GO;exports.ListViewProvider=YO;exports.Loadable=vie;exports.Loader=IO;exports.LoadingButton=eE;exports.LocalStorage=B2;exports.LocaleButton=lO;exports.LocalizedTextField=gte;exports.LocalizedTextInput=Wte;exports.LoginPage=XO;exports.Logo=KT;exports.LogoutButton=pO;exports.LongForm=Ft;exports.MainCard=Mn;exports.MainIcon=iv;exports.MenuConfigProvider=w2;exports.MenuPopover=rE;exports.NavCollapse=el;exports.NavGroup=xO;exports.NavItem=Ja;exports.NavList=CO;exports.NavMenu=bO;exports.Navigation=wO;exports.Notification=OO;exports.NotificationList=pse;exports.NumberInput=Ute;exports.OnboardingActionType=Ds;exports.OnboardingContext=sv;exports.OnboardingModes=gl;exports.OnboardingProvider=Sie;exports.OnboardingTip=Iie;exports.Pagination=lv;exports.PaginationActions=av;exports.PopupTransition=I$;exports.RadioButtonGroupInput=Gte;exports.ReadonlyField=bte;exports.RecordInput=qte;exports.RecoverPage=vse;exports.ReferenceArrayInput=Yte;exports.ReferenceInput=Kte;exports.ReferenceManyField=lT;exports.ReferenceManyInput=Xte;exports.RegisterPage=yse;exports.RemoveSavedQueryDialog=zO;exports.ResponsiveSection=mO;exports.SaveFiltersButton=WO;exports.SaveFiltersDialog=VO;exports.SavedFiltersList=UO;exports.ScrollTop=DO;exports.ScrollX=Mie;exports.SearchInput=Qte;exports.SelectArrayInput=ene;exports.SelectInput=nne;exports.ShadowBox=kie;exports.Show=Rne;exports.Sidebar=hr;exports.SimpleBar=oO;exports.SimpleForm=V0;exports.SimpleFormIterator=kne;exports.SimpleList=hse;exports.SizeField=wte;exports.SmallIcon=_O;exports.SmartTextInput=rne;exports.StopImpersonateButton=hO;exports.StyledArrow=tE;exports.TabbedForm=q0;exports.TableCreateButton=X0;exports.TableFormIterator=df;exports.TableFormIteratorContext=Z0;exports.TableFormIteratorItem=$T;exports.TableFormIteratorItemContext=K0;exports.TextField=aT;exports.TextInput=mr;exports.ThemeColor=ov;exports.ThemeContext=B0;exports.ThemeCustomizationProvider=fv;exports.ThemeProvider=yg;exports.ThemeToggler=SO;exports.TimeInput=ane;exports.Toolbar=ni;exports.Tooltip=Xd;exports.TopToolbar=TO;exports.Transitions=Zo;exports.WizardForm=WT;exports.createI18nProvider=JO;exports.createJsonI18nProvider=Fae;exports.getLocalizedValue=D0;exports.getPosition=nE;exports.getThemeColor=sn;exports.getThemeShadow=Xs;exports.localizedValueHasAllLocales=cd;exports.localizedValueHasAtLeastOneLocale=N2;exports.onboardingModesSchema=jO;exports.onboardingTopicSchema=PO;exports.parseTime=W2;exports.useBreadcrumbs=S2;exports.useGetChipValue=uv;exports.useGetLocalizedValue=xee;exports.useI18nLanguages=Dae;exports.useI18nProvider=eP;exports.useIsEnabledSidebarFilter=$O;exports.useLayoutContext=Q0;exports.useLayoutDispatch=Xne;exports.useLayoutDrawerState=Hi;exports.useLayoutLogoState=GT;exports.useLayoutMediaState=Qn;exports.useLayoutNotificationsState=pf;exports.useLayoutState=oa;exports.useLayoutThemeState=Zne;exports.useListViewContext=dv;exports.useLocalStorage=_0;exports.useLocalizedValue=bee;exports.useMemoizedObject=U2;exports.useMenu=O0;exports.useMenuConfig=pl;exports.useMenuContext=sf;exports.useOnboardingDataProvider=RO;exports.useOnboardingTip=FO;exports.usePopoverState=ra;exports.useRefDimensions=Cee;exports.useResourceDefaultValues=une;exports.useResourceTitle=L0;exports.useRestartOnboarding=Eie;exports.useSx=Mr;exports.useSystemTheme=H2;exports.useTableFormIterator=NT;exports.useTableFormIteratorItem=LT;exports.useThemeConfig=Sn;exports.useThemeContext=N0;exports.useWizardFormContext=ff;exports.uuid=wJ;exports.walkChildren=uf;exports.withLayoutProvider=HT;
|
|
224
|
+
`+(c!==a?`result of cast: ${c}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let p of Object.values(this.internalTests))p&&d.push(p);this.runTests({path:i,value:u,originalValue:a,options:n,tests:d},r,p=>{if(p.length)return o(p,u);this.runTests({path:i,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:c,path:u,options:d}=t,p=x=>{o||(o=!0,n(x,a))},g=x=>{o||(o=!0,r(x,a))},v=i.length,y=[];if(!v)return g([]);let b={value:a,originalValue:c,path:u,options:d,schema:this};for(let x=0;x<i.length;x++){const w=i[x];w(b,p,function(j){j&&(Array.isArray(j)?y.push(...j):y.push(j)),--v<=0&&g(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const p=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${o||""}[${u?c:`"${c}"`}]`:(o?`${o}.`:"")+t});return(g,v,y)=>this.resolve(p)._validate(d,p,v,y)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,c)=>o._validate(t,n,(u,d)=>{Rn.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Rn(u,d,void 0,void 0,i)):a(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Rn.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Rn(c,t,void 0,void 0,a);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Rn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Rn.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ps(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=ps({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=ps({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Lr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Lr.notNull){return this.nullability(!1,t)}required(t=Lr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Lr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=ps(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=I2(t).map(i=>new Ui(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new ad(o,n):ad.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ps({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Lr.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=ps({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=Lr.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=ps({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,p)=>p.findIndex(g=>g.name===u.name)===d)}}}xr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])xr.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=QJ(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])xr.prototype[e]=xr.prototype.oneOf;for(const e of["not","nope"])xr.prototype[e]=xr.prototype.notOneOf;const JJ=()=>!0;function R2(e){return new M2(e)}class M2 extends xr{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:JJ},t))}}R2.prototype=M2.prototype;const eee=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function tee(e){const t=vg(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function vg(e){var t,n;const r=eee.exec(e);return r?{year:uo(r[1]),month:uo(r[2],1)-1,day:uo(r[3],1),hour:uo(r[4]),minute:uo(r[5]),second:uo(r[6]),millisecond:r[7]?uo(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:uo(r[10]),minuteOffset:uo(r[11])}:null}function uo(e,t=0){return Number(e)||t}let nee=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ree=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,oee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,iee="^\\d{4}-\\d{2}-\\d{2}",see="\\d{2}:\\d{2}:\\d{2}",aee="(([+-]\\d{2}(:?\\d{2})?)|Z)",lee=new RegExp(`${iee}T${see}(\\.\\d+)?${aee}$`),cee=e=>mo(e)||e===e.trim(),uee={}.toString();function vo(){return new k2}class k2 extends xr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===uee?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Lr.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jn.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=jn.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=jn.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||jn.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=jn.email){return this.matches(nee,{name:"email",message:t,excludeEmptyString:!0})}url(t=jn.url){return this.matches(ree,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jn.uuid){return this.matches(oee,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(lee,{name:"datetime",message:n||jn.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jn.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=vg(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||jn.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=vg(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jn.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:cee})}lowercase(t=jn.lowercase){return this.transform(n=>mo(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>mo(n)||n===n.toLowerCase()})}uppercase(t=jn.uppercase){return this.transform(n=>mo(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>mo(n)||n===n.toUpperCase()})}}vo.prototype=k2.prototype;let dee=e=>e!=+e;function F2(){return new D2}class D2 extends xr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!dee(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Vo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Vo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Vo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Vo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Vo.positive){return this.moreThan(0,t)}negative(t=Vo.negative){return this.lessThan(0,t)}integer(t=Vo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>mo(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>mo(o)?o:Math[t](o))}}F2.prototype=D2.prototype;let fee=new Date(""),pee=e=>Object.prototype.toString.call(e)==="[object Date]";class cf extends xr{constructor(){super({type:"date",check(t){return pee(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=tee(t),isNaN(t)?cf.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ui.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=mg.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=mg.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}cf.INVALID_DATE=fee;cf.prototype;function hee(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,c])=>`${a}-${c}`));function i(a,c){let u=Fi.split(a)[0];r.add(u),o.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),Ui.isRef(c)&&c.isSibling?i(c.path,a):k0(c)&&"deps"in c&&c.deps.forEach(u=>i(u,a))}return VJ.array(Array.from(r),n).reverse()}function GC(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function _2(e){return(t,n)=>GC(e,t)-GC(e,n)}const gee=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function wu(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=wu(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=wu(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(wu)}):"optional"in e?e.optional():e}const mee=(e,t)=>{const n=[...Fi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=Fi.getter(Fi.join(n),!0)(e);return!!(o&&r in o)};let qC=e=>Object.prototype.toString.call(e)==="[object Object]";function YC(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vee=_2([]);function F0(e){return new L2(e)}class L2 extends xr{constructor(t){super({type:"object",check(n){return qC(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=vee,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(o).filter(g=>!this._nodes.includes(g))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),p=!1;for(const g of c){let v=i[g],y=g in o;if(v){let b,x=o[g];d.path=(n.path?`${n.path}.`:"")+g,v=v.resolve({value:x,context:n.context,parent:u});let w=v instanceof xr?v.spec:void 0,T=w==null?void 0:w.strict;if(w!=null&&w.strip){p=p||g in o;continue}b=!n.__validating||!T?v.cast(o[g],d):o[g],b!==void 0&&(u[g]=b)}else y&&!a&&(u[g]=o[g]);(y!==g in u||u[g]!==o[g])&&(p=!0)}return p?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!qC(d)){o(u,d);return}a=a||d;let p=[];for(let g of this._nodes){let v=this.fields[g];!v||Ui.isRef(v)||p.push(v.asNestedTest({options:n,key:g,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:p,value:d,originalValue:a,options:n},r,g=>{o(g.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=hee(t,n),r._sortErrors=_2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return wu(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=Fi.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return mee(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(gee)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Cu.exact,test(n){if(n==null)return!0;const r=YC(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Cu.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=YC(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=Cu.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(vh.camelCase)}snakeCase(){return this.transformKeys(vh.snakeCase)}constantCase(){return this.transformKeys(t=>vh.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let c=t;(o=c)!=null&&o.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[i]})),r.fields[i]=a.describe(c)}return r}}F0.prototype=L2.prototype;const KC=R2().test("function","Invalid function",e=>ee.isFunction(e));var zo,ji,Na;class B2{constructor(){lo(this,ji);lo(this,zo,[])}get(t){if(vo().required().validateSync(t),Ia(this,ji,Na).call(this)){const n=localStorage.getItem(t);return ee.isNil(n)?null:JSON.parse(n)}else return null}set(t,n){return vo().required().validateSync(t),Ia(this,ji,Na).call(this)?(localStorage.setItem(t,JSON.stringify(n)),n):null}watch(t,n){vo().required().validateSync(t),KC.validateSync(n),Ia(this,ji,Na).call(this)&&(On(this,zo).push({key:t,callback:n}),window.addEventListener("storage",r=>{r.storageArea===localStorage&&r.key===t&&n(this.get(t))}))}unwatch(t,n){vo().required().validateSync(t),KC.optional().default(ee.identity).validateSync(n),Ia(this,ji,Na).call(this)&&(n!==void 0?Do(this,zo,ee.reject(On(this,zo),r=>r.key===t&&r.callback===n)):Do(this,zo,ee.reject(On(this,zo),r=>r.key===t)))}}zo=new WeakMap,ji=new WeakSet,Na=function(){return typeof window<"u"};function cd(e={},t=[],n={}){const{isEmpty:r=ee.isEmpty}=n;return!ee.some(t,o=>r((e??{})[o.locale]))}function N2(e={},t=[],n={}){const{isEmpty:r=ee.isEmpty}=n;return ee.some(t,o=>!r((e??{})[o.locale]))}function D0(e,t,n){if(!ee.isPlainObject(e)||t===void 0)return;const r=ee.isPlainObject(n)?n:{},o=!!((r==null?void 0:r.fallback)??!0);let i=e[String(t)];if(i===void 0&&o){const a=ee.isArray(r.fallbackLocales)&&!ee.isEmpty(r.fallbackLocales)?r.fallbackLocales:["en"];i=ee.chain(a).map(c=>e[String(c)]).reject(ee.isUndefined).first().value(),i===void 0&&(i=ee.chain(e).values().first().value())}return i}function uf(e=[],t){const n=ee.isArray(e)?e:[e],r=ee.filter(n,o=>A.isValidElement(o));ee.each(r,o=>{var i;t(o),uf(((i=o==null?void 0:o.props)==null?void 0:i.children)??[],t)})}var $2={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wn,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",c="minute",u="hour",d="day",p="week",g="month",v="quarter",y="year",b="date",x="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Y){var X=["th","st","nd","rd"],N=Y%100;return"["+Y+(X[(N-20)%10]||X[N]||X[0])+"]"}},E=function(Y,X,N){var Q=String(Y);return!Q||Q.length>=X?Y:""+Array(X+1-Q.length).join(N)+Y},P={s:E,z:function(Y){var X=-Y.utcOffset(),N=Math.abs(X),Q=Math.floor(N/60),$=N%60;return(X<=0?"+":"-")+E(Q,2,"0")+":"+E($,2,"0")},m:function Y(X,N){if(X.date()<N.date())return-Y(N,X);var Q=12*(N.year()-X.year())+(N.month()-X.month()),$=X.clone().add(Q,g),oe=N-$<0,W=X.clone().add(Q+(oe?-1:1),g);return+(-(Q+(N-$)/(oe?$-W:W-$))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:g,y,w:p,d,D:b,h:u,m:c,s:a,ms:i,Q:v}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},O="en",k={};k[O]=j;var F="$isDayjsObject",B=function(Y){return Y instanceof ne||!(!Y||!Y[F])},H=function Y(X,N,Q){var $;if(!X)return O;if(typeof X=="string"){var oe=X.toLowerCase();k[oe]&&($=oe),N&&(k[oe]=N,$=oe);var W=X.split("-");if(!$&&W.length>1)return Y(W[0])}else{var J=X.name;k[J]=X,$=J}return!Q&&$&&(O=$),$||!Q&&O},q=function(Y,X){if(B(Y))return Y.clone();var N=typeof X=="object"?X:{};return N.date=Y,N.args=arguments,new ne(N)},U=P;U.l=H,U.i=B,U.w=function(Y,X){return q(Y,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var ne=function(){function Y(N){this.$L=H(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[F]=!0}var X=Y.prototype;return X.parse=function(N){this.$d=function(Q){var $=Q.date,oe=Q.utc;if($===null)return new Date(NaN);if(U.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var W=$.match(w);if(W){var J=W[2]-1||0,ue=(W[7]||"0").substring(0,3);return oe?new Date(Date.UTC(W[1],J,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ue)):new Date(W[1],J,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ue)}}return new Date($)}(N),this.init()},X.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},X.$utils=function(){return U},X.isValid=function(){return this.$d.toString()!==x},X.isSame=function(N,Q){var $=q(N);return this.startOf(Q)<=$&&$<=this.endOf(Q)},X.isAfter=function(N,Q){return q(N)<this.startOf(Q)},X.isBefore=function(N,Q){return this.endOf(Q)<q(N)},X.$g=function(N,Q,$){return U.u(N)?this[Q]:this.set($,N)},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this.$d.getTime()},X.startOf=function(N,Q){var $=this,oe=!!U.u(Q)||Q,W=U.p(N),J=function(ve,Ce){var Te=U.w($.$u?Date.UTC($.$y,Ce,ve):new Date($.$y,Ce,ve),$);return oe?Te:Te.endOf(d)},ue=function(ve,Ce){return U.w($.toDate()[ve].apply($.toDate("s"),(oe?[0,0,0,0]:[23,59,59,999]).slice(Ce)),$)},he=this.$W,de=this.$M,pe=this.$D,ge="set"+(this.$u?"UTC":"");switch(W){case y:return oe?J(1,0):J(31,11);case g:return oe?J(1,de):J(0,de+1);case p:var we=this.$locale().weekStart||0,ye=(he<we?he+7:he)-we;return J(oe?pe-ye:pe+(6-ye),de);case d:case b:return ue(ge+"Hours",0);case u:return ue(ge+"Minutes",1);case c:return ue(ge+"Seconds",2);case a:return ue(ge+"Milliseconds",3);default:return this.clone()}},X.endOf=function(N){return this.startOf(N,!1)},X.$set=function(N,Q){var $,oe=U.p(N),W="set"+(this.$u?"UTC":""),J=($={},$[d]=W+"Date",$[b]=W+"Date",$[g]=W+"Month",$[y]=W+"FullYear",$[u]=W+"Hours",$[c]=W+"Minutes",$[a]=W+"Seconds",$[i]=W+"Milliseconds",$)[oe],ue=oe===d?this.$D+(Q-this.$W):Q;if(oe===g||oe===y){var he=this.clone().set(b,1);he.$d[J](ue),he.init(),this.$d=he.set(b,Math.min(this.$D,he.daysInMonth())).$d}else J&&this.$d[J](ue);return this.init(),this},X.set=function(N,Q){return this.clone().$set(N,Q)},X.get=function(N){return this[U.p(N)]()},X.add=function(N,Q){var $,oe=this;N=Number(N);var W=U.p(Q),J=function(de){var pe=q(oe);return U.w(pe.date(pe.date()+Math.round(de*N)),oe)};if(W===g)return this.set(g,this.$M+N);if(W===y)return this.set(y,this.$y+N);if(W===d)return J(1);if(W===p)return J(7);var ue=($={},$[c]=r,$[u]=o,$[a]=n,$)[W]||1,he=this.$d.getTime()+N*ue;return U.w(he,this)},X.subtract=function(N,Q){return this.add(-1*N,Q)},X.format=function(N){var Q=this,$=this.$locale();if(!this.isValid())return $.invalidDate||x;var oe=N||"YYYY-MM-DDTHH:mm:ssZ",W=U.z(this),J=this.$H,ue=this.$m,he=this.$M,de=$.weekdays,pe=$.months,ge=$.meridiem,we=function(Ce,Te,fe,Ge){return Ce&&(Ce[Te]||Ce(Q,oe))||fe[Te].slice(0,Ge)},ye=function(Ce){return U.s(J%12||12,Ce,"0")},ve=ge||function(Ce,Te,fe){var Ge=Ce<12?"AM":"PM";return fe?Ge.toLowerCase():Ge};return oe.replace(T,function(Ce,Te){return Te||function(fe){switch(fe){case"YY":return String(Q.$y).slice(-2);case"YYYY":return U.s(Q.$y,4,"0");case"M":return he+1;case"MM":return U.s(he+1,2,"0");case"MMM":return we($.monthsShort,he,pe,3);case"MMMM":return we(pe,he);case"D":return Q.$D;case"DD":return U.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return we($.weekdaysMin,Q.$W,de,2);case"ddd":return we($.weekdaysShort,Q.$W,de,3);case"dddd":return de[Q.$W];case"H":return String(J);case"HH":return U.s(J,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return ve(J,ue,!0);case"A":return ve(J,ue,!1);case"m":return String(ue);case"mm":return U.s(ue,2,"0");case"s":return String(Q.$s);case"ss":return U.s(Q.$s,2,"0");case"SSS":return U.s(Q.$ms,3,"0");case"Z":return W}return null}(Ce)||W.replace(":","")})},X.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},X.diff=function(N,Q,$){var oe,W=this,J=U.p(Q),ue=q(N),he=(ue.utcOffset()-this.utcOffset())*r,de=this-ue,pe=function(){return U.m(W,ue)};switch(J){case y:oe=pe()/12;break;case g:oe=pe();break;case v:oe=pe()/3;break;case p:oe=(de-he)/6048e5;break;case d:oe=(de-he)/864e5;break;case u:oe=de/o;break;case c:oe=de/r;break;case a:oe=de/n;break;default:oe=de}return $?oe:U.a(oe)},X.daysInMonth=function(){return this.endOf(g).$D},X.$locale=function(){return k[this.$L]},X.locale=function(N,Q){if(!N)return this.$L;var $=this.clone(),oe=H(N,Q,!0);return oe&&($.$L=oe),$},X.clone=function(){return U.w(this.$d,this)},X.toDate=function(){return new Date(this.valueOf())},X.toJSON=function(){return this.isValid()?this.toISOString():null},X.toISOString=function(){return this.$d.toISOString()},X.toString=function(){return this.$d.toUTCString()},Y}(),te=ne.prototype;return q.prototype=te,[["$ms",i],["$s",a],["$m",c],["$H",u],["$W",d],["$M",g],["$y",y],["$D",b]].forEach(function(Y){te[Y[1]]=function(X){return this.$g(X,Y[0],Y[1])}}),q.extend=function(Y,X){return Y.$i||(Y(X,ne,q),Y.$i=!0),q},q.locale=H,q.isDayjs=B,q.unix=function(Y){return q(1e3*Y)},q.en=k[O],q.Ls=k,q.p={},q})})($2);var V2=$2.exports;const Rr=Yr(V2);function W2(e){const t=e.split(":");t.length===1&&t.push("00");const n=parseInt(t[0]),r=parseInt(t[1]);return Rr().hour(n).minute(r)}const $a=new B2;function yee(e,t,n){return function(r){const o=ee.isFunction(r)?r(t):r;return $a.set(e,o),n(o),o}}function _0(e,t){var u;vo().required().validateSync(e);const[n,r]=A.useState($a.get(e)??t),o=A.useRef(t),i=ee.isEqual(o.current,t)?o.current:t,a=A.useRef(),c=a.current;return A.useEffect(()=>{r($a.get(e)??i)},[e,i,r]),A.useEffect(()=>{function d(p){r(p)}return $a.watch(e,d),()=>{$a.unwatch(e,d)}},[e,r]),(e!==(c==null?void 0:c.key)||!ee.isEqual(n,c==null?void 0:c.value))&&(a.current={key:e,value:n,setter:yee(e,n,r)}),[n,((u=a.current)==null?void 0:u.setter)??ee.noop]}function z2(e){const[t]=Z.useLocaleState();return e!==void 0?String(e):t}function bee(e,t){const n=z2(t==null?void 0:t.locale);return D0(e,n,t)}function xee(e){const t=z2(e==null?void 0:e.locale);return A.useCallback(r=>D0(r,t,e),[t,e])}function U2(e){if(!ee.isPlainObject(e))throw new Error("[useMemoizedObject]: param must be a plain JS object");const[t,n]=A.useState(e);return A.useEffect(()=>{ee.isEqual(e,t)||n(e)},[e,t]),t}function ra(){const[e,t]=A.useState(null),n=!!e,r=A.useCallback(a=>t((a==null?void 0:a.currentTarget)??null),[t]),o=A.useCallback(()=>t(null),[t]),i=A.useCallback(a=>{n?o():r(a)},[n,r,o]);return{anchorEl:e,open:n,handleClick:r,handleClose:o,handleToggle:i}}function Cee(e,t){const[n,r]=A.useState({width:1,height:1}),o=e.current;return A.useEffect(()=>{function i(){var d;let c=0,u=0;switch(t){case"client":c=(o==null?void 0:o.clientWidth)??0,u=(o==null?void 0:o.clientHeight)??0;break;case"offset":c=(o==null?void 0:o.offsetWidth)??0,u=(o==null?void 0:o.offsetHeight)??0;break;case"scroll":c=(o==null?void 0:o.scrollWidth)??0,u=(o==null?void 0:o.scrollHeight)??0;break;case"bounding":default:{const p=((d=e.current)==null?void 0:d.getBoundingClientRect())??{width:0,height:0};c=p.width,u=p.height;break}}r({width:c,height:u})}const a=new ResizeObserver(i);return ee.isEmpty(e==null?void 0:e.current)||(a.observe(e==null?void 0:e.current),i()),()=>{a.disconnect()}},[o,t,e]),n}function L0(e){const t=_.useRecordContext(),n=_.useTranslate(),r=_.useResourceContext(),o=t!=null&&t.id?"edit":"create";return A.useMemo(()=>{if(e===!1)return;const a=`resources.${r}.title`;return e||n(`resources.${r}.title.${o}`,{_:n(a,{_:a}),...t})},[o,t,r,n,e])}function H2(){const{mode:e}=Sn(),t=window.matchMedia("(prefers-color-scheme: dark)"),[n,r]=A.useState(()=>e==="auto"?t.matches?"dark":"light":e),o=A.useRef(n);return A.useEffect(()=>{function i(){const c=t.matches?"dark":"light";c!==o.current&&(r(c),o.current=c)}i();const a=t;return a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[t]),n}function _r(){throw new Error("Method must be implemented")}const G2={fontFamily:"'Inter', sans-serif",menuOrientation:"vertical",miniDrawer:!1,container:!1,mode:"light",presetColor:"theme4",themeDirection:"ltr",appDefaultPath:"/",drawerWidth:260,horizontalMaxItems:6,spacing:2,setFontFamily:_r,setMenuOrientation:_r,setMiniDrawer:_r,setContainer:_r,setMode:_r,setPresetColor:_r,setThemeDirection:_r,setAppDefaultPath:_r,setDrawerWidth:_r,setHorizontalMaxItems:_r,isVerticalLayout:e=>!1,isHorizontalLayout:e=>!1};function wee(e){return e==="vertical"}function See(e){return e==="horizontal"}const B0=A.createContext(G2);function yg({initialConfig:e,children:t}){const[n,r]=_0("theme-config",{...G2,...e});function o(b){r(x=>({...x,fontFamily:b}))}function i(b){r(x=>({...x,menuOrientation:b}))}function a(b){r(x=>({...x,miniDrawer:b}))}function c(b){r(x=>({...x,container:b}))}function u(b){r(x=>({...x,mode:b}))}function d(b){r(x=>({...x,presetColor:b}))}function p(b){r(x=>({...x,themeDirection:b}))}function g(b){r(x=>({...x,appDefaultPath:b}))}function v(b){r(x=>({...x,drawerWidth:b}))}function y(b){r(x=>({...x,horizontalMaxItems:b}))}return f.jsx(B0.Provider,{value:{...n,setFontFamily:o,setMenuOrientation:i,setMiniDrawer:a,setContainer:c,setMode:u,setPresetColor:d,setThemeDirection:p,setAppDefaultPath:g,setDrawerWidth:v,setHorizontalMaxItems:y,isVerticalLayout:wee,isHorizontalLayout:See},children:t})}function N0(){return A.useContext(B0)}function Sn(){return N0()}const Aee=kl(_.Toolbar,{slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end",position:"initial !important","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}}));function ni(e){return f.jsx(Aee,{...e})}function q2({children:e,spacing:t,defaultValues:n,...r}){const{spacing:o}=Sn();return f.jsx(Tee,{defaultValues:n,spacing:t||o,children:f.jsx(S.Grid,{container:!0,...r,spacing:t||o,children:e})})}function Eee({children:e,content:t=!0,title:n,subheader:r=null,secondary:o=null,toolbar:i=!1,lg:a=12,md:c=12,sm:u=12,xs:d=12,...p}){const g=_.useTranslate(),v=_.useResourceContext(),{cardTitle:y,cardSubheader:b}=A.useMemo(()=>{const x=n||`resources.${v}.title`;return{cardTitle:g(x,{_:x}),cardSubheader:r!==null?g(r,{_:r}):null}},[v,r,n,g]);return f.jsx(S.Grid,{item:!0,...p,lg:a,md:c,sm:u,xs:d,children:f.jsx(Mn,{content:t,title:y,subheader:b,secondary:o,divider:!0,children:f.jsxs(f.Fragment,{children:[e,i===!0?f.jsx(ni,{children:f.jsx(_.SaveButton,{})}):i]})})})}const Tee=ce(_.Form,{slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*1.25),padding:0,minHeight:"unset"},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingRight:"0 !important",paddingLeft:"0 !important",paddingBottom:"0 !important"}}));q2.Section=Eee;function Y2(e){const{confirmTitle:t,confirmContent:n,confirmColor:r="primary",dialogSx:o,icon:i=jee,label:a="ra.action.delete",mutationMode:c="pessimistic",mutationOptions:u={},onClick:d,onSuccess:p,onError:g,...v}=e,{meta:y,...b}=u,{selectedIds:x,onUnselectItems:w}=Z.useListContext(e),[T,j]=Z.useSafeSetState(!1),E=Z.useNotify(),P=Z.useResourceContext(e),O=Z.useRefresh(),k=Z.useTranslate(),F=gt(),[B,{isLoading:H}]=Z.useDeleteMany(P,{ids:x,meta:y},{onSuccess:()=>{O(),E("ra.notification.deleted",{type:"info",messageArgs:{smart_count:x.length},undoable:c==="undoable"}),w(),j(!1),p&&ee.isFunction(p)&&p()},onError:te=>{E(typeof te=="string"?te:te.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof te=="string"?te:te&&te.message?te.message:void 0}}),j(!1),g&&ee.isFunction(g)&&g()},mutationMode:c,...b});function q(te){j(!0),te.stopPropagation()}function U(){j(!1)}function ne(te){B(),typeof d=="function"&&d(te)}return f.jsxs(f.Fragment,{children:[f.jsx(Pee,{onClick:q,label:a,...Iee(v),children:i}),f.jsx(_.Confirm,{isOpen:T,loading:H,sx:o||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:F.palette.primary.main,color:F.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:F.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${F.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:t?typeof t=="string"?k(t):t:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(We.DeleteFilled,{})})}),content:n||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:k("ra.message.bulk_delete_content",{_:"ra.message.bulk_delete_content",smart_count:x.length,name:k(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Uo.humanize(k(`resources.${P}.name`,{smart_count:x.length,_:Uo.inflect(P,x.length)}),!0)})})}),confirmColor:r,translateOptions:{smart_count:x.length,name:k(`resources.${P}.forcedCaseName`,{smart_count:x.length,_:Uo.humanize(k(`resources.${P}.name`,{smart_count:x.length,_:Uo.inflect(P,x.length)}),!0)})},onConfirm:ne,onClose:U})]})}function Iee({classes:e,filterValues:t,label:n,selectedIds:r,...o}){return o}const Oee="RaBulkDeleteWithConfirmButton",Pee=ce(_.Button,{name:Oee,overridesResolver:e=>e.root})(({theme:e})=>({color:e.palette.error.main,"&:hover":{backgroundColor:Je(e.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}})),jee=f.jsx(d0,{});Y2.propTypes={confirmTitle:m.node,confirmContent:m.node,confirmColor:m.string,dialogSx:m.object,icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),resource:m.string,selectedIds:m.arrayOf(m.any),onSuccess:m.func,onError:m.func};const Ree="RaButton";function Mee(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}const kee=ce(S.Button,{name:Ree,overridesResolver:(e,t)=>t.root})({"&.MuiButton-sizeSmall":{lineHeight:1.5}});function Hi(e){const{disableIconOnly:t=!1,label:n,children:r,className:o,color:i,size:a,disabled:c,alignIcon:u,to:d,...p}=e,g=_.useTranslate(),v=Mee(d);if(t){const y=n?g(n,{_:n}):void 0;return f.jsx(kee,{className:o,color:i,size:a,"aria-label":y,disabled:c,startIcon:u==="left"&&r?r:void 0,endIcon:u==="right"&&r?r:void 0,...v,...p,children:y})}return f.jsx(_.Button,{...e})}function K2(e){const{className:t,icon:n=Fee,label:r="ra.action.create",resource:o,scrollToTop:i=!0,variant:a,to:c,state:u={},disableFloatingButton:d=!1,...p}=e,g=Z.useResourceContext(e),v=Z.useCreatePath(),y=Z.useTranslate(),b=S.useMediaQuery(T=>T.breakpoints.down("md")),x=ME({},Dee.get(String(i)),u),w=Nee(c);return!d&&b?f.jsx(_ee,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,color:"primary",className:Be(dd.floating,t),"aria-label":r?y(r):"ra.action.create",...p,...w,children:n}):f.jsx(Lee,{component:ut.Link,to:v({resource:g,type:"create"}),state:x,className:Be(dd.root,t),label:r,variant:a,...p,...w,children:n})}const Fee=f.jsx(Zm,{}),Dee=new Map([["true",{_scrollToTop:!0}],["false",{}]]);K2.propTypes={resource:m.string,className:m.string,icon:m.element,label:m.string};const ud="RaCreateButton",dd={root:`${ud}-root`,floating:`${ud}-floating`},_ee=ce(S.Fab,{name:ud,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${dd.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}})),Lee=ce(Hi,{name:ud,overridesResolver:(e,t)=>t.root})({});function Bee(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&dl(e.to,t.to)&&dl(e.state,t.state)}const X2=D.memo(K2,Bee);function Nee(e){if(e==null)return;if(typeof e=="string")return{to:e};const{redirect:t,replace:n,state:r,...o}=e;return{to:o,redirect:t,replace:n,state:r}}function $0(e,t){const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]}function $ee(e,t){return e&&e.data?{data:$0(e.data,t),total:e.total+1}:e}function Vee(e,t){return e&&e.length>0?$0(e,t):e}function Wee(e,t){return e&&e.data?{...e,data:$0(e.data,t),total:e.total+1}:e}function zee(e){const{disableFloatingButton:t,label:n="ra.action.create",startIcon:r=f.jsx(We.PlusCircleOutlined,{}),...o}=e,i=A.useCallback(a=>{var c;a.preventDefault(),(c=e==null?void 0:e.onClick)==null||c.call(e)},[e]);return t?f.jsx(Hi,{...o,onClick:i,label:n,children:r}):f.jsx(IK,{...e,onClick:i,label:n,children:r})}function Uee(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=rn.useFormContext(),o=Z.useTranslate(),i=A.useCallback(a=>{a.preventDefault(),a.stopPropagation(),r(c=>t(c,n))()},[r,t,n]);return f.jsx(S.Button,{onClick:i,color:"primary",variant:"contained",size:"medium",children:o("ra.action.save")})}function Hee(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,onSubmit:i,mutationOptions:a,scroll:c="body",...u}=e,d=Mi.useQueryClient(),p=Z.useResourceContext(),g=Z.useTranslate(),v=A.Children.only(t),[y,b]=A.useState(!1),x=Z.useNotify(),w=A.useCallback(()=>b(!0),[]),T=A.useCallback(()=>b(!1),[]),j=A.useCallback((E,P,O)=>{var B,H;const F=Date.now();d.setQueryData([p,"getOne",{id:E.id}],E),d.setQueriesData([p,"getList"],q=>Wee(q,E),{updatedAt:F}),d.setQueriesData([p,"getMany"],q=>Vee(q,E),{updatedAt:F}),d.setQueriesData([p,"getManyReference"],q=>$ee(q,E),{updatedAt:F}),T(),x("ra.notification.created",{messageArgs:{smart_count:1}}),(H=(B=e==null?void 0:e.mutationOptions)==null?void 0:B.onSuccess)==null||H.call(B,E,P,O)},[T,x,e.mutationOptions,d,p]);return f.jsxs(f.Fragment,{children:[f.jsx(zee,{...u,onClick:w}),f.jsx(S.Dialog,{open:y,scroll:c,onClose:T,maxWidth:n,fullWidth:r,fullScreen:o,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(Z.CreateBase,{...e,mutationOptions:{...a,onSuccess:j},children:A.isValidElement(v)?A.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(ni,{children:[f.jsx(S.Button,{variant:"text",size:"medium",onClick:T,children:g("ra.action.cancel")}),i?f.jsx(Uee,{onSubmit:i,closeDialog:T}):f.jsx(E0,{type:"button"})]})}):null})})})]})}function Nl(e){const{className:t,confirmTitle:n,confirmContent:r,confirmColor:o="primary",color:i="error",dialogSx:a,icon:c=f.jsx(d0,{}),label:u="ra.action.delete",mutationMode:d="pessimistic",mutationOptions:p,onClick:g,redirect:v="list",translateOptions:y={},...b}=e,x=Z.useTranslate(),w=Z.useRecordContext(e),T=Z.useResourceContext(e),j=S.useTheme(),{open:E,isLoading:P,handleDialogOpen:O,handleDialogClose:k,handleDelete:F}=Z.useDeleteWithConfirmController({record:w,redirect:v,mutationMode:d,onClick:g,mutationOptions:p,resource:T});return f.jsxs(f.Fragment,{children:[f.jsx(Hi,{onClick:O,label:u,className:Be("ra-delete-button",t),color:i,...b,children:c},"button"),f.jsx(GE,{isOpen:E,loading:P,sx:a||{"& .MuiPaper-root":{p:2},"& .MuiDialogActions-root":{display:"flex",justifyContent:"space-between",width:"100%","& .RaConfirm-confirmPrimary":{backgroundColor:j.palette.primary.main,color:j.palette.primary.contrastText,ml:2,"&:hover":{backgroundColor:j.palette.primary.dark}},"& .MuiButtonBase-root":{width:"50%",border:`1px solid ${j.palette.action.disabled}`},"& .MuiButton-icon":{display:"none"}}},title:n?typeof n=="string"?x(n):n:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(S.Box,{sx:{color:"primary.main",fontSize:"28px",borderRadius:"50%",backgroundColor:"primary.lighter",width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(We.DeleteFilled,{})})}),content:r||f.jsx(S.Typography,{maxWidth:"300px",variant:"h4",align:"center",children:x("ra.message.delete_content",{_:"ra.message.delete_content",name:x(`resources.${T}.forcedCaseName`,{smart_count:1,_:Uo.humanize(x(`resources.${T}.name`,{smart_count:1,_:Uo.singularize(T)}),!0)}),id:w==null?void 0:w.id})}),confirmColor:o,translateOptions:{name:x(`resources.${T}.forcedCaseName`,{smart_count:1,_:Uo.humanize(x(`resources.${T}.name`,{smart_count:1,_:Uo.singularize(T)}),!0)}),id:w==null?void 0:w.id,...y},onConfirm:F,onClose:k})]})}Nl.propTypes={basePath:m.string,className:m.string,confirmColor:m.string,confirmContent:m.oneOfType([m.string,m.element]),confirmTitle:m.oneOfType([m.string,m.element]),icon:m.element,label:m.string,mutationMode:m.oneOf(["pessimistic","optimistic","undoable"]),onClick:m.func,record:m.any,redirect:m.oneOfType([m.string,m.bool,m.func]),resource:m.string,translateOptions:m.object};function Gee(e){const t=A.useCallback(n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e==null?void 0:e.onClick)==null||r.call(e)},[e]);return f.jsx(QE,{...e,onClick:t})}function qee(e){const{onSubmit:t,closeDialog:n}=e,{handleSubmit:r}=rn.useFormContext(),o=A.useCallback(i=>{i.preventDefault(),i.stopPropagation(),r(a=>t(a,n))()},[r,t,n]);return f.jsx(Hi,{disableIconOnly:!0,onClick:o,color:"primary",variant:"contained",size:"medium",label:"ra.action.save"})}function Yee(e){const{children:t,maxWidth:n="md",fullWidth:r=!0,fullScreen:o,mutationOptions:i,onSubmit:a,scroll:c="body",...u}=e,d=Z.useNotify(),[p,g]=A.useState(!1),v=A.Children.only(t),y=A.useCallback(()=>g(!0),[]),b=A.useCallback(()=>g(!1),[]),x=A.useCallback((T,j,E)=>{var P,O;b(),d("ra.notification.updated",{messageArgs:{smart_count:1},undoable:(e==null?void 0:e.mutationMode)==="undoable"}),(O=(P=e==null?void 0:e.mutationOptions)==null?void 0:P.onSuccess)==null||O.call(P,T,j,E)},[b,d,e.mutationOptions,e.mutationMode]),w=Z.useRecordContext();return f.jsxs(f.Fragment,{children:[f.jsx(Gee,{...u,onClick:y}),f.jsx(S.Dialog,{open:p,scroll:c,onClose:b,fullWidth:r,maxWidth:n,fullScreen:o,keepMounted:!1,children:f.jsx(S.DialogContent,{sx:{m:0,p:0},children:f.jsx(Z.EditBase,{...e,id:w.id,mutationMode:"pessimistic",mutationOptions:{...i,onSuccess:x},children:A.isValidElement(v)?A.cloneElement(v,{...v.props,modal:!0,toolbar:f.jsxs(ni,{children:[f.jsx(Hi,{disableIconOnly:!0,variant:"text",size:"medium",onClick:b,label:"ra.action.cancel"}),a?f.jsx(qee,{onSubmit:a,closeDialog:b}):f.jsx(E0,{type:"button"})]})}):null})})})]})}function Kee({label:e="ra.auth.sign_in",...t}){const n=_.useRecordContext(),[r,o]=A.useState(!1),i=_.useAuthProvider(),a=A.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),i.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[i,n==null?void 0:n.id]);return f.jsx(_.Button,{disabled:r||i.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(nn.VpnKey,{})})}const Xee=kl(_.SimpleForm,{slot:"Root"})(({theme:e})=>({[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}}));function V0({title:e,modal:t=!1,content:n=!1,subheader:r=null,toolbar:o=f.jsx(ni,{children:f.jsx(_.SaveButton,{type:"button"})}),secondary:i=f.jsx(Qo,{children:f.jsx(Nl,{})}),sx:a,...c}){const u=L0(e),d=_.useRecordContext(),p=Em();return f.jsx(Mn,{content:n,title:u,subheader:r,secondary:d!=null&&d.id?i:null,sx:{...a,"& .MuiToolbar-root":{paddingLeft:p.spacing(2.5),paddingRight:p.spacing(2.5),paddingBottom:p.spacing(2.5),paddingTop:t?p.spacing(2.5):0,borderTop:t?`1px solid ${p.palette.divider}`:void 0}},border:!t,divider:!0,children:f.jsx(Xee,{toolbar:o,...c})})}const Z2={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},Q2=A.createContext(Z2);function Zee(e){const[t,n]=A.useState(Z2);function r(a,c){n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()}function o(a,c){n(u=>({...u,openDialogs:u.openDialogs.filter(d=>d!==a)})),c&&c()}function i(){return t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null}return f.jsx(Q2.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:i},children:e.children})}function J2(){const e=A.useContext(Q2);if(e===void 0)throw new Error("useAppState must be used within an AppStateProvider");return e}function W0(){return J2()}function eT({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,fullWidth:c,...u}){const d=tn.useTheme(),{getCurrentDialog:p}=W0(),{source:g,resource:v,isRequired:y}=u,{getFieldState:b,formState:x}=rn.useFormContext(),{error:w}=b(g,x),T=p();return f.jsxs(S.Stack,{spacing:1,sx:{"& .MuiFormHelperText-root":{color:w?d.palette.error.main:d.palette.text.secondary,"& span":{display:"none"}},width:c?"100%":"auto",...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:!!w,sx:{borderBottom:a?`1px solid ${d.palette.divider}`:"none",pb:a?1:0,mt:a?1:0,pt:1},children:f.jsx(_.FieldTitle,{label:e,source:g,resource:T||v,isRequired:y})}),A.isValidElement(t)?A.cloneElement(t,{...t.props,...u,label:n==="legend"?e:!1}):t,n==="label"&&r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:!!w,children:r}):null]})}const Qee=ce(_.ArrayInput,{slot:"root"})(({theme:e})=>({"& .MuiStack-root > label":{marginTop:e.spacing(2)},"& .MuiInputLabel-shrink":{paddingBottom:0},marginTop:"0 !important","& .RaSimpleFormIterator-line > .RaSimpleFormIterator-form":{paddingBottom:e.spacing(.5),"& > div":{width:"100%"}}}));function Jee({label:e,addLabel:t,source:n,helperText:r,divider:o=!0,...i}){return f.jsx(eT,{label:e,addLabel:t,source:n,helperText:r,divider:o,fullWidth:i==null?void 0:i.fullWidth,children:f.jsx(Qee,{source:n,label:!1,...i})})}function ete({canEdit:e=!0,canDelete:t=!0,canClone:n=!1}){return!e&&!t&&!n?null:f.jsxs(Qo,{children:[e?f.jsx(_.EditButton,{}):null,t?f.jsx(Nl,{}):null,n?f.jsx(_.CloneButton,{}):null]})}const XC=ce("div",{overridesResolver:(e,t)=>t.root})({display:"inline-block"}),tte=ce("ul")({display:"inline-block"});function nte(e){var p;const{className:t,emptyText:n,source:r,title:o,...i}=e,a=Z.useRecordContext(e),c=Ke.get(a,r),u=Z.useTranslate();if(!c)return n?f.jsx(S.Typography,{component:"span",variant:"body2",className:t,...i,children:n?u(n,{_:n}):null}):f.jsx(XC,{className:t,...i});if(Array.isArray(c))return f.jsx(tte,{className:t,...i,children:c.map((g,v)=>{var b;const y=o instanceof String?(b=Ke.get(g,o))==null?void 0:b.toString():o;return f.jsx("li",{children:y},v)})});const d=o instanceof String?(p=Ke.get(a,o))==null?void 0:p.toString():o;return f.jsx(XC,{className:t,...i,children:d})}function tT({entityId:e,property:t,disabled:n,showUser:r=!1,userResource:o="entities/user",resource:i,...a}){const[c,u]=A.useState(null),d=_.useRecordContext(a),p=_.useDataProvider(),g=_.useResourceContext(),v=_.useNotify(),y=A.useCallback(async w=>{w.preventDefault(),w.stopPropagation(),v("ra.notification.download",{type:"info"});const T=Ke.get(d,a==null?void 0:a.source),j=(i||g).replace("entities/",""),E=e||(d==null?void 0:d.id),P=await p.getFile(`/attachments/${j}/${E}/${t||(a==null?void 0:a.source)}/${(T==null?void 0:T.id)||(d==null?void 0:d.id)}`),O=document.createElement("a");O.href=P,O.download=Ke.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source)),O.click()},[p,d,e,g,i,t,a==null?void 0:a.source,a==null?void 0:a.title,v]),b=A.useMemo(()=>({...d,[a==null?void 0:a.source]:(d==null?void 0:d.src)||Ke.get(d,a==null?void 0:a.source),[a==null?void 0:a.title]:(d==null?void 0:d.title)||Ke.get(d,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),[d,a==null?void 0:a.source,a==null?void 0:a.title]),x=_.useTranslate();return A.useEffect(()=>{!d||!(d!=null&&d.userId)||r===!1||p.getOne(o,{id:d==null?void 0:d.userId}).then(({data:w})=>u(w)).catch(()=>u(null))},[d,p,o,r]),f.jsx(nte,{...a,disabled:n,record:b,onClick:y,title:f.jsxs(S.Box,{sx:{cursor:"pointer"},children:[f.jsx(S.Typography,{variant:"subtitle1",children:Ke.get(b,(a==null?void 0:a.title)||(a==null?void 0:a.source))}),f.jsxs(S.Typography,{variant:"caption",color:"secondary",children:[Ke.get(b,"sizeDescription"),r&&c?" | ":null,r&&c?x("ra.attachment.info",{user:c==null?void 0:c.name,created:Rr(b==null?void 0:b.createdAt).format("DD/MM/YYYY HH:mm")}):null]})]})})}const rte=ce(_.ImageField,{slot:"root"})(()=>({}));function nT(e){const t=`_${e==null?void 0:e.source}`;return f.jsx(rte,{...e,source:t})}function rT({width:e=150,height:t=150,circle:n=!1,justify:r="flex-start",record:o,sx:i,...a}){const c=A.useMemo(()=>({width:typeof e=="number"?`${e}px !important`:`${e} !important`,height:typeof t=="number"?`${t}px !important`:`${t} !important`,borderRadius:n?"50%":1.5,...i}),[e,t,n,i]),u=_.useRecordContext(),d=o||u;return f.jsx(nT,{sx:p=>({margin:0,display:"flex",justifyContent:r,"& img":{margin:"0px !important",border:`1px solid ${p.palette.divider}`,objectFit:"cover !important",...c,minWidth:c.width,minHeight:c.height}}),...a,record:d})}var ote={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wn,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],o=n%100;return"["+n+(r[(o-20)%10]||r[o]||r[0])+"]"}}})})(ote);var ite={exports:{}};(function(e,t){(function(n,r){e.exports=r(V2)})(wn,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var o=r(n),i={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return o.default.locale(i,null,!0),i})})(ite);var oT={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wn,function(){return function(n,r,o){n=n||{};var i=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(d,p,g,v){return i.fromToBase(d,p,g,v)}o.en.relativeTime=a,i.fromToBase=function(d,p,g,v,y){for(var b,x,w,T=g.$locale().relativeTime||a,j=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=j.length,P=0;P<E;P+=1){var O=j[P];O.d&&(b=v?o(d).diff(g,O.d,!0):g.diff(d,O.d,!0));var k=(n.rounding||Math.round)(Math.abs(b));if(w=b>0,k<=O.r||!O.r){k<=1&&P>0&&(O=j[P-1]);var F=T[O.l];y&&(k=y(""+k)),x=typeof F=="string"?F.replace("%d",k):F(k,p,O.l,w);break}}if(p)return x;var B=w?T.future:T.past;return typeof B=="function"?B(x):B.replace("%s",x)},i.to=function(d,p){return c(d,p,this,!0)},i.from=function(d,p){return c(d,p,this)};var u=function(d){return d.$u?o.utc():o()};i.toNow=function(d){return this.to(u(this),d)},i.fromNow=function(d){return this.from(u(this),d)}}})})(oT);var ste=oT.exports;const ate=Yr(ste);Rr.extend(ate);function iT(e){const t=_.useRecordContext(e),[n]=_.useLocaleState(),r=A.useMemo(()=>Rr(Ke.get(t,e==null?void 0:e.source)).locale(n).fromNow(),[t,e==null?void 0:e.source,n]);return f.jsxs(f.Fragment,{children:[f.jsx(_.DateField,{record:t,source:e.source,showTime:!0}),f.jsx("br",{}),f.jsx(S.Typography,{variant:"caption",color:"textSecondary",children:r})]})}const lte=ce(_.DateField,{slot:"Root"})(()=>({}));function cte({variant:e="body1",...t}){return f.jsx(lte,{...t,variant:e})}const ute=ce(_.EmailField,{slot:"Root"})(()=>({}));function dte({variant:e="body1",...t}){return f.jsx(ute,{...t,variant:e})}const fte=ce(_.FileField,{slot:"root"})(()=>({}));function sT({...e}){const t=_.useRecordContext(e),n=A.useCallback(r=>{r.preventDefault(),r.stopPropagation();const o=Ke.get(t,`_${e==null?void 0:e.source}`,Ke.get(t,e==null?void 0:e.source)),i=Ke.get(t,(e==null?void 0:e.title)||(e==null?void 0:e.source))||(e==null?void 0:e.title),a=document.createElement("a");a.href=o,a.download=i,a.click()},[e==null?void 0:e.source,t,e==null?void 0:e.title]);return f.jsx(fte,{...e,record:t,onClick:n})}function pte({variant:e="body1",...t}){return f.jsx(_.FunctionField,{...t,variant:e})}const hte=ce(_.TextField,{slot:"Root"})(()=>({}));function aT({variant:e="body1",...t}){return f.jsx(hte,{...t,variant:e})}function gte(e){const t=S.useTheme(),n=Z.useLocales(),{source:r=""}=e,i=Z.useRecordContext(e)[r],a=!cd(i,n),c=Mr(e,{flex:1}),[u]=Z.useLocaleState(),d=A.useMemo(()=>a?f.jsx(We.FlagFilled,{style:{color:t.palette.warning.main}}):f.jsx(We.FlagOutlined,{}),[a,t.palette.warning.main]),p=A.useMemo(()=>f.jsx(S.Stack,{children:ee.map(n,(g,v)=>f.jsx(S.Typography,{children:`${g.locale.toUpperCase()}: ${(i??{})[g.locale]??""}`},v))}),[i,n]);return f.jsx(Xd,{title:p,arrow:!1,children:f.jsxs(S.Stack,{alignItems:"center",direction:"row",gap:1,children:[d,f.jsx(aT,{...e,source:`${r}.${u}`,sx:c})]})})}const mte=ce("div")(({theme:e,fullWidth:t})=>({borderBottom:`1px solid ${e.palette.divider}`,paddingTop:e.spacing(1),paddingBottom:e.spacing(1),marginBottom:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:t?"100%":"auto",[e.breakpoints.down("sm")]:{whiteSpace:"normal",overflow:"visible",textOverflow:"inherit"}}));function vte({source:e,defaultValue:t=" ",...n}){const r=_.useRecordContext(n),o=Ke.get(r,e,t);return f.jsx(S.Typography,{...n,dangerouslySetInnerHTML:{__html:o&&o!==null?o:t}})}function yte({title:e,children:t}){return t==null?null:typeof e=="string"||e===!0?f.jsx(S.Tooltip,{title:e,placement:"top",children:t}):t}function bte({label:e,source:t,defaultValue:n=" ",children:r=f.jsx(vte,{source:"",defaultValue:void 0,record:void 0}),tooltip:o,...i}){const a=A.Children.only(r),{getCurrentDialog:c}=J2(),u=_.useRecordContext(i),d=_.useResourceContext(i),p=c(),g=A.useMemo(()=>o===!1?!1:typeof o=="function"?o(u):typeof o=="string"?Ke.get(u,o,o):o,[u,o]),v=Mr(i,{width:i!=null&&i.fullWidth?"100%":"auto"});return f.jsx(yte,{title:g,children:f.jsxs(f.Fragment,{children:[f.jsx(S.InputLabel,{sx:{pt:1},children:f.jsx(_.FieldTitle,{label:e,source:t,resource:p||d})}),f.jsx(mte,{...i,children:A.isValidElement(a)?A.cloneElement(a,{...a.props,source:t,record:u,defaultValue:n,resource:p||d,sx:v}):null})]})})}function xte({children:e=null,className:t=""}){return f.jsx("div",{className:t,children:e})}const Cte=kl(xte,{slot:"root"})(({theme:e,bulkActionButtons:t})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,"&>div:first-of-type":{alignItems:"center","& form":{padding:e.spacing(2.5)},"& .MuiToolbar-root":{alignItems:"center",padding:"0 !important",marginTop:e.spacing(1),[e.breakpoints.up("sm")]:{marginLeft:e.spacing(2),marginRight:e.spacing(2),width:`calc(100% - ${e.spacing(4)})`},[e.breakpoints.down("md")]:{marginTop:0,display:"contents"}}},"& .RaDatagrid-root":{overflowX:"auto",paddingTop:t===!1?0:48,[e.breakpoints.down("sm")]:{width:"calc(100vw - 26px)"},"& .RaBulkActionsToolbar-toolbar":{borderRadius:0,"& > .RaBulkActionsToolbar-title":{alignItems:"center"},[e.breakpoints.down("sm")]:{paddingLeft:e.spacing(3)}},"& .RaDatagrid-table":{borderBottom:`1px solid ${e.palette.divider}`}},"& .MuiTablePagination-toolbar":{marginTop:"0 !important",marginBottom:"0 !important"},"& .RaBulkActionsToolbar-collapsed.RaBulkActionsToolbar-toolbar":{minHeight:0}}));function lT(e){return f.jsx(Cte,{...e,children:f.jsx(_.ReferenceManyField,{pagination:f.jsx(_.Pagination,{}),...e})})}function wte({source:e,...t}){const n=_.useRecordContext(t),r=Ke.get(n,e,0),o=r/1024,i=o/1024,a=i/1024,c=a>1?`${a.toFixed(2)} GB`:i>1?`${i.toFixed(2)} MB`:o>1?`${o.toFixed(2)} KB`:`${r.toFixed(2)} B`;return f.jsx(S.Typography,{component:"span",variant:"body1",...t,children:c})}function gn({label:e,children:t,display:n="label",helperText:r,sx:o,addLabel:i,divider:a=!1,...c}){const u=gt(),{getCurrentDialog:d}=W0(),{source:p,resource:g,isRequired:v,chip:y}=c,{fieldState:{invalid:b}}=_.useInput(c),x=d();return f.jsxs(S.Stack,{spacing:1,sx:{width:c!=null&&c.fullWidth?"100%":"auto","& .MuiFormHelperText-root":{pb:0,color:b?u.palette.error.main:u.palette.text.secondary,"& span":{display:"none"}},...o},children:[n==="label"&&e!==!1&&i!==!1&&f.jsx(S.InputLabel,{error:b===!0,sx:{borderBottom:a?`1px solid ${u.palette.divider}`:"none",pt:.5,pb:a?1:0,mt:a?1:0},children:f.jsx(_.FieldTitle,{label:e,source:p,resource:x||g,isRequired:v})}),A.isValidElement(t)?A.cloneElement(t,{...t.props,...c,chip:y&&typeof y=="function"?A.createElement(y):y,label:n==="legend"?e:!1}):t,r?f.jsx(S.FormHelperText,{sx:{pl:1.8,pb:2,marginTop:"0 !important"},error:b===!0,children:r}):null]})}function Ste(e){return e?{"& .RaFileInput-removeButton > .RaFileInputPreview-removeButton":{display:"none",visiblity:"hidden"},"& .RaFileInput-dropZone":{display:"none",visiblity:"hidden"}}:{}}const Ate=ce(_.FileInput,{slot:"root"})(({disabled:e,theme:t})=>({"& .previews":{},"& .previews>div":{marginTop:t.spacing(1),padding:t.spacing(1.5),border:`1px solid ${t.palette.divider}`,borderRadius:t.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:t.palette.action.hover},"& .MuiLink-root":{fontSize:t.typography.body1.fontSize}},...Ste(e)}));function Ete({children:e=f.jsx(tT,{title:"name",source:"path"}),multiple:t=!1,disabled:n=!1,type:r="attachment",...o}){const i=_.useRecordContext(o),a=o==null?void 0:o.source,c=i==null?void 0:i.id;return _.useInput({source:`__${r}__${o==null?void 0:o.source}`,defaultValue:o==null?void 0:o.source}),f.jsx(gn,{...o,disabled:n,children:f.jsx(Ate,{type:r,multiple:t,disabled:n,children:A.cloneElement(e,{entityId:c,property:a,...e.props})})})}const Tte=ce(_.AutocompleteArrayInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"},"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall:has(.MuiChip-root)":{paddingBottom:"4px"},"& .MuiAutocomplete-tag":{margin:"0px 4px 4px 0px"}}));function Ite({size:e="small",...t}){return f.jsx(gn,{...t,children:f.jsx(Tte,{size:e})})}const Ote=ce(_.AutocompleteInput,{name:"StyledAutocompleteInput",root:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiAutocomplete-inputRoot":{padding:"0px 9px"}}));function Pte({size:e="small",...t}){const{perPage:n,...r}=t;return f.jsx(gn,{...r,children:f.jsx(Ote,{size:e})})}const jte=ce(_.BooleanInput,{slot:"Root"})(()=>({marginTop:"0 !important"}));function Rte({...e}){const t=tn.useTheme();return f.jsx(gn,{...e,children:f.jsx(jte,{sx:{"& .MuiFormControlLabel-root":{marginLeft:"0 !important",marginRight:"0 !important"},"& .MuiSwitch-root":{margin:"0 !important",marginTop:e.display==="legend"?0:`${t.spacing(1)} !important`}}})})}const Mte=4,kte=ce(_.DateInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function Fte(e){const[t,n]=A.useState(""),r=A.useCallback(o=>{const i=o.target.value;Rr(i).year().toString().length>Mte?o.target.value=t:n(i)},[t]);return f.jsx(gn,{...e,children:f.jsx(kte,{...e,onInput:r})})}const Dte=ce(_.DateTimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function _te(e){return f.jsx(gn,{...e,children:f.jsx(Dte,{})})}const Lte=ce(_.FileInput,{slot:"root"})(({theme:e})=>({"& .previews":{},"& .previews>div":{marginTop:e.spacing(1),padding:e.spacing(1.5),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,"& button":{float:"right",placeItems:"flex-end",verticalAlign:"middle"},"&:hover":{backgroundColor:e.palette.action.hover},"& .MuiLink-root":{fontSize:e.typography.body1.fontSize}}}));function Bte({children:e=f.jsx(sT,{source:"",title:""}),title:t,...n}){const r=rn.useWatch({name:n.source}),o=_.useRecordContext(n),{source:i}=n,a=A.useMemo(()=>{if(r&&(r!=null&&r.title))return r==null?void 0:r.title;const c=Ke.get(o,i);if(c){const u=c.split("__");return u.length>0?u[u.length-1]:c}return c},[o,i,r]);return f.jsx(gn,{...n,children:f.jsx(Lte,{children:A.cloneElement(e,{...e.props,title:t||i,source:i,record:{...o,[i]:(r==null?void 0:r.title)||Ke.get(o,i),[`_${i}`]:(r==null?void 0:r.src)||Ke.get(o,`_${i}`),[t||i]:a}})})})}function Nte({children:e=f.jsx(rT,{}),title:t,multiple:n=!1,...r}){const o=rn.useWatch({name:r.source}),i=_.useRecordContext(r),{source:a}=r;return _.useInput({source:`__image__${r==null?void 0:r.source}`,defaultValue:r==null?void 0:r.source}),f.jsx(gn,{...r,multiple:n,children:f.jsx(_.ImageInput,{accept:"image/*",children:A.cloneElement(e,{...e.props,title:t,source:a,record:{...i,[a]:(o==null?void 0:o.title)||Ke.get(i,a),[`_${a}`]:(o==null?void 0:o.src)||Ke.get(i,`_${a}`)}})})})}function mr(e){return f.jsx(gn,{...e,children:f.jsx(_.TextInput,{})})}const $te={vertical:"bottom",horizontal:"right"},Vte={vertical:"top",horizontal:"right"};function Wte({requiredAtLeastOneLocale:e,requiredLocale:t,validate:n,required:r,...o}){const{source:i}=o,a=Z.useLocales(),c=A.useCallback((k="ra.validation.required",F="ra.validation.required_locale")=>B=>{if(e&&!t&&!N2(B,a))return k;if(t&&(!ee.has(B,t)||ee.isEmpty(ee.get(B,t))))return{message:F,args:{locale:t}};if(!e&&r&&!cd(B,a))return k},[e,t,a,r]),u=A.useMemo(()=>Z.composeValidators(n,c()),[n,c]),{fieldState:d}=Z.useInput({...o,validate:u}),{error:p}=d,g=rn.useWatch({name:i}),v=!cd(g,a),[y]=Z.useLocaleState(),[b,x]=A.useState(y),[w,T]=A.useState(null),j=!!w,E=A.useCallback(k=>T(j?null:k.currentTarget),[j,T]),P=A.useCallback(()=>T(null),[T]),O=A.useMemo(()=>ee.map(a,(k,F)=>f.jsx(S.MenuItem,{onClick:()=>{x(k.locale),P()},children:f.jsx(S.ListItemText,{primary:`${k.locale.toUpperCase()}: ${(g??{})[k.locale]??""}`})},F)),[a,x,P,g]);return f.jsx(gn,{...o,validate:u,helperText:p!=null&&p.message?f.jsx(Z.ValidationError,{error:p==null?void 0:p.message}):o==null?void 0:o.helperText,children:f.jsx(f.Fragment,{children:f.jsxs(S.Box,{flex:1,children:[ee.map(a,(k,F)=>f.jsx(mr,{...o,source:`${i}.${k.locale}`,sx:{width:"100%",display:k.locale===b?"inline-flex":"none"},label:!1,helperText:!1,required:!1,InputProps:{endAdornment:f.jsx(S.Chip,{label:f.jsx(S.Typography,{variant:"button",children:b}),size:"small",onClick:E,color:v?"warning":void 0})}},F)),f.jsx(S.Menu,{anchorEl:w,open:j,anchorOrigin:$te,transformOrigin:Vte,onClose:P,children:O})]})})})}const zte=ce(_.NumberInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function Ute(e){return f.jsx(gn,{...e,children:f.jsx(zte,{})})}const Hte=ce(_.RadioButtonGroupInput,{slot:"root"})(()=>({marginTop:"0 !important","& .MuiFormControlLabel-root":{marginLeft:-8}}));function Gte(e){return f.jsx(gn,{...e,children:f.jsx(Hte,{})})}function qte({source:e,minWidth:t=300,children:n}){const r=_.useResourceContext(),o=_.useRecordContext(),[i,a]=A.useState(Ke.get(o,e,"")),[c,u]=A.useState(!1),d=A.useCallback(b=>a(b.target.value),[]),p=_.useDataProvider(),g=A.useCallback(b=>{b.key==="Enter"&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,o,e]),v=A.useCallback(()=>{Ke.get(o,e)!==i&&(u(!0),p.update(r,{id:o.id,data:{...o,[e]:i,_changed:e},previousData:o}).then(()=>u(!1)))},[i,p,r,e,o]),y=A.useCallback(b=>{u(!0),p.update(r,{id:o.id,data:{...o,[e]:b,_changed:e},previousData:o}).then(()=>u(!1))},[p,r,e,o]);return A.useEffect(()=>a(Ke.get(o,e)),[o,e]),n?A.cloneElement(n,{...n.props,source:e,value:i,onChange:y}):f.jsx(S.TextField,{value:i,disabled:c,onChange:d,onKeyPress:g,onBlur:v,style:{minWidth:t,width:"100%"},multiline:!0,InputProps:{"arial-label":"naked"},size:"small"})}function Yte({children:e,...t}){const n=A.Children.only(e);return f.jsx(_.ReferenceArrayInput,{...t,children:A.cloneElement(n,{...t,source:n.props.source||t.source})})}function Kte({children:e,...t}){const n=A.Children.only(e);return f.jsx(_.ReferenceInput,{...t,children:A.cloneElement(n,{...t,source:n.props.source||t.source})})}function Xte({reference:e,target:t,children:n,filters:r,actions:o,...i}){return f.jsx(_.ResourceContextProvider,{value:e,children:f.jsx(lT,{perPage:5,pagination:f.jsx(_.Pagination,{}),...i,reference:e,target:t,children:f.jsxs(f.Fragment,{children:[f.jsx(_.ListToolbar,{filters:r,actions:o}),n]})})})}const Zte=ce(_.SearchInput,{slot:"root"})(()=>({}));function Qte(e){return f.jsx(Zte,{...e})}const Jte=ce(_.SelectArrayInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"},"& .MuiFormLabel-root.MuiInputLabel-root":{marginTop:"-3px"},"& .MuiInputLabel-root.MuiInputLabel-shrink":{marginTop:0},"& .MuiOutlinedInput-input:has(.MuiChip-root)":{paddingTop:"4px",paddingBottom:"6px",paddingLeft:"6px"}}));function ene({optionText:e="name",optionValue:t="id",...n}){return f.jsx(gn,{...n,children:f.jsx(Jte,{optionText:e,optionValue:t,options:{autoWidth:!1}})})}const tne=ce(_.SelectInput,{slot:"Root"})(({label:e})=>({"& legend":{width:e===!1||e===null?0:"auto"}}));function nne(e){return f.jsx(gn,{...e,children:f.jsx(tne,{})})}function rne({multiline:e=!1,...t}){var u,d;const n=_.useTranslate(),r=_.maxLength(t==null?void 0:t.maxLength,"app.input.max_length_error"),o=(d=(u=rn.useController({name:t==null?void 0:t.source}))==null?void 0:u.field)==null?void 0:d.value;let i=t.helperText,a=t.validate;a?Array.isArray(a)&&a.indexOf(r)===-1&&a.push(r):a=[r];const c=n("app.input.max_length_info",{count:(o==null?void 0:o.length)||0,max:t==null?void 0:t.maxLength});return t!=null&&t.maxLength&&(i=i&&i.length>0?`${c} - ${n(i)}`:c),f.jsx(mr,{...t,validate:a,helperText:i,multiline:e,inputProps:{maxLength:t==null?void 0:t.maxLength}})}function one(e){if(!e)return"";const t=W2(e);return t?t.format("HH:mm"):""}function ine(e){return e}const sne=ce(_.TimeInput,{slot:"root"})(({label:e})=>({"& legend":{width:e===!1?0:"auto"}}));function ane({parse:e=ine,format:t=one,...n}){return f.jsx(gn,{...n,children:f.jsx(sne,{parse:e,format:t,...n})})}function z0({onSuccess:e,firstAccess:t}){const{spacing:n}=Sn(),[r,o]=A.useState(!1),i=Z.useAuthProvider(),a=Z.useTranslate(),c=Z.useNotify(),u=Mi.useQueryClient(),d=A.useCallback(p=>{const{oldPassword:g,newPassword:v}=p;o(!0),i==null||i.changePassword(g,v).then(()=>{c("ra.auth.password_changed"),u.invalidateQueries(["auth","getIdentity"]),e()}).catch(y=>{c((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>o(!1))},[i,e,c,u]);return f.jsx(Z.ResourceContextProvider,{value:"user/change-password",children:f.jsx(Z.EditContextProvider,{value:{record:{},resource:"user/change-password",save:d},children:f.jsx(V0,{onSubmit:d,toolbar:f.jsx(ni,{children:f.jsx(_.SaveButton,{disabled:r})}),children:f.jsxs(S.Grid,{container:!0,spacing:n,children:[t===!0&&f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Alert,{severity:"warning",children:[f.jsx(S.AlertTitle,{children:a("ra.auth.first_access.change_password")}),a("ra.auth.first_access.change_password_helper")]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(mr,{source:"oldPassword",type:"password",validate:Z.required()})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsx(mr,{source:"newPassword",type:"password",validate:Z.required()})})]})})})})}const cT=A.createContext({});function lne(e){const{useDefaults:t=!1,queryOptions:n={}}=e,r=_.useResourceContext(),o=_.useDataProvider(),{search:i}=_i.useLocation(),a=`${r}/new`,c=A.useCallback(()=>{if(!t||!ee.isFunction(o.get))return Promise.resolve({});const v={};return new URLSearchParams(i??"").forEach((y,b)=>{v[b]=y}),o.get(a,v).then(y=>y.data).then(y=>{const{responseCode:b,value:x}=y;return b==="ok"?x:Promise.reject(y)})},[t,i,o,a]),u=A.useMemo(()=>ee.chain(n).extend({queryKey:[r,i],queryFn:c}).value(),[r,i,c,n]),{data:d,isLoading:p}=Mi.useQuery(u),g=ee.omit(e,["useDefaults"]);return p?f.jsx(S.Stack,{alignItems:"center",justifyContent:"center",flex:1,p:2,children:f.jsx(S.CircularProgress,{})}):f.jsx(cT.Provider,{value:d??{},children:f.jsx(_.Create,{...g,children:e.children})})}const cne=ce(lne,{slot:"root"})(({theme:e})=>({"& .RaCreate-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaCreate-main":{marginTop:0},"& .RaCreate-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaCreate-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaCreate-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function une(){return A.useContext(cT)}const dne=ce(_.Edit,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-card":{[e.breakpoints.down("sm")]:{marginBottom:e.spacing(6)}},"& .RaEdi-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaToolbar-mobileToolbar":{paddingLeft:`${e.spacing(2.5)} !important`,paddingRight:`${e.spacing(2.5)} !important`,paddingTop:"0 !important"},"& .RaEdit-main":{marginTop:0},"& .RaEdit-main>.MuiPaper-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaEdit-main:has(.LongFormView)>.MuiPaper-root:first-of-type":{overflow:"visible"},"& .RaEdit-main:has(.tabbed-form) .MuiTableContainer-root":{width:"inherit"}}));function fne(e){return f.jsx(dne,{...e})}const pne=ce(S.CardHeader)(({theme:e})=>({marginTop:e.spacing(2.5),marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0})),hne=ce(S.Divider)(({theme:e})=>({marginLeft:`-${e.spacing(2.5)}`,marginRight:`-${e.spacing(2.5)}`,marginBottom:e.spacing(2),width:`calc(100% + ${e.spacing(5)})`}));function gne({title:e,divider:t=!0,variant:n="h5"}){const r=_.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(pne,{title:r(e,{_:e}),titleTypographyProps:{variant:n}}),t?f.jsx(hne,{}):null]})}function bg(e){return e.id??e.label}function uT(e,t){const n=`^${e}.`.replaceAll(".","\\."),r=new RegExp(n,"g");return t.match(r)!==null}function mne(e){return ee.map(e,"id")}function fd(e){const t=e.match(new RegExp("[^.]+","g"));return t===null?0:t.length}function dT(e,t){const n=e!==void 0?fd(e):0;return ee.chain(t).filter(o=>e!==void 0?uT(e,o.id):!0).filter(o=>fd(o.id)===n+1).value()}function vne(e,t){var i;const n=ee.clone(e),{type:r,payload:o}=t;switch(r){case"setFormRootPath":return ee.extend(n,{formRootPath:o});case"setSyncWithLocation":return ee.extend(n,{syncWithLocation:o});case"setErrorCount":return ee.extend(n,{errorCount:o});case"setActiveItem":return ee.includes(mne(e.items),o)?ee.extend(n,{activeItem:o}):n;case"addItem":{const{id:a}=o;return ee.extend(n,{items:ee.chain(n.items).clone().reject(c=>c.id===a).concat([o]).orderBy(c=>c.index).value()})}case"removeItem":{const a=ee.isString(o)?o:o.id,c=ee.chain(n.items).clone().reject(u=>u.id===a).value();return ee.extend(n,{items:c}),n.activeItem===a&&ee.extend(n,{activeItem:((i=ee.first(c))==null?void 0:i.id)??void 0}),n}default:return n}}const yne={syncWithLocation:!0,errorCount:!0,items:[],activeItem:void 0},fT=A.createContext(void 0);function pT(e){const t=!!(e.syncWithLocation??!0),n=!!(e.errorCount??!0),{rootMatchString:r}=e,{pathname:o}=_i.useLocation(),[i,a]=A.useReducer(vne,ee.cloneDeep(yne)),{formRootPath:c,items:u}=i,d=A.useMemo(()=>({state:i,dispatch:a}),[i,a]);return A.useEffect(()=>{const p=["entities/:resource/create/*",":resource/create/*","entities/:resource/:id/show/*",":resource/:id/show/*","entities/:resource/:id/*",":resource/:id/*"];r!==void 0&&p.push(r);const g=ee.chain(p).map(y=>_i.matchPath(y,o)).reject(y=>y===null).first().value(),v=g==null?void 0:g.pathnameBase;v!==void 0&&v!==c&&a({type:"setFormRootPath",payload:v})},[o,c,r]),A.useEffect(()=>{a({type:"setSyncWithLocation",payload:!!t})},[t,a]),A.useEffect(()=>{a({type:"setErrorCount",payload:!!n})},[n,a]),A.useEffect(()=>{var p;if(t&&c!==void 0){let g=o.replace(c,"").replace(new RegExp(/^\/?/),"");ee.isEmpty(g)&&(g=((p=ee.chain(u).filter(v=>dT(v.id,u).length===0).orderBy([v=>fd(v.id),v=>v.index]).first().value())==null?void 0:p.id)??void 0),a({type:"setActiveItem",payload:g})}},[a,c,o,u,t]),f.jsx(fT.Provider,{value:d,children:e.children})}function hT(){const e=A.useContext(fT);if(e===void 0)throw new Error("[LongForm] useFormContext: context undefined. Please provide a valid Context using LongForm.Provider");return e}function $l(){return hT().state}function U0(){return hT().dispatch}function gT(){return $l().formRootPath}function mT(){return $l().activeItem}function vT(){return $l().items}function yT(){return $l().syncWithLocation}function bT(){return $l().errorCount}function xT(){const e=U0();return A.useCallback(n=>{e({type:"setActiveItem",payload:n})},[e])}function CT(){const e=U0();return A.useCallback(n=>{e({type:"addItem",payload:n})},[e])}function wT(){const e=U0();return A.useCallback(n=>{e({type:"removeItem",payload:n})},[e])}const bne=ce(S.Grid,{name:"LongFormView",slot:"Root"})(({theme:e})=>({"& .MuiToolbar-root.RaToolbar-desktopToolbar":{marginLeft:`-${e.spacing(3)}`,marginRight:`-${e.spacing(3)}`,marginBottom:`-${e.spacing(2)}`,paddingTop:e.spacing(2.5),paddingBottom:e.spacing(2.5),[e.breakpoints.down("sm")]:{width:"auto !important",marginRight:0}},"& .RaToolbar-mobileToolbar":{paddingTop:`${e.spacing(2.5)} !important`,paddingLeft:"0 !important",paddingRight:"0 !important",paddingBottom:"0 !important"},"& form > .MuiToolbar-root":{margin:0,marginRight:`-${e.spacing(.5)}`,[e.breakpoints.down("sm")]:{marginRight:e.spacing(.5)}}}));function ST(e){const{spacing:t}=Sn(),{spacing:n=t}=e,r=ee.omit(e,["spacing"]);return f.jsx(_.Form,{...r,className:"LongFormView",children:f.jsx(bne,{container:!0,spacing:n*2,children:e.children})})}function AT(e){const{disposition:t={xl:9,lg:9,md:8,sm:8,xs:12}}=e,n=ee.omit(e,["disposition"]);return f.jsx(S.Grid,{...n,item:!0,...t,children:e.children})}function ET(e){const t=mT();return t===void 0?!1:e===t||uT(e,t)}function TT(e){const t=vT();return A.useMemo(()=>dT(e,t),[t,e])}function xne(){const e=gT(),{search:t}=_i.useLocation(),n=_i.useNavigate();return A.useCallback(o=>{n(`${e}/${o}${t}`)},[e,n,t])}function IT(){const e=TT();return f.jsx(S.Card,{variant:"outlined",children:f.jsx(S.List,{sx:{"& .MuiListItemButton-root.Mui-selected":{borderColor:"palette.primary.main",borderRightStyle:"solid",borderRightWidth:2},"& .MuiListItemAvatar-root":{minWidth:24}},children:ee.map(e,(t,n)=>f.jsx(H0,{...t},n))})})}function H0(e){const t=Z.useTranslate()??ee.identity,n=OT(e),{selected:r,label:o,icon:i,onClick:a,badge:c,items:u,isGroup:d,level:p,errors:g=0}=n,{spacing:v}=Sn(),[y,b]=A.useState(r),x=A.useCallback(j=>{b(!y),a(j)},[a,y]),w=i!==void 0,T=ee.omit(e,["label","icon","selected","badge"]);return A.useEffect(()=>{r&&!y&&b(r)},[r,y,b]),f.jsxs(f.Fragment,{children:[f.jsx(S.ListItem,{...T,disablePadding:!0,children:f.jsxs(S.ListItemButton,{selected:r?!d:null,onClick:x,sx:{pl:v*p},children:[w?f.jsx(S.ListItemIcon,{children:i}):null,f.jsx(S.ListItemText,{inset:!w,primary:g===0?t(o):f.jsx(S.Badge,{variant:"dot",color:"error",sx:{"& > .MuiBadge-badge":{transform:"scale(1) translate(125%, 0)"}},children:t(o)})}),c?f.jsx(S.ListItemAvatar,{children:f.jsx(Vu,{type:"filled",size:"xs",color:c.color??"default",children:c.content})}):null,d?y?f.jsx(nn.ExpandLess,{}):f.jsx(nn.ExpandMore,{}):null]})}),d?f.jsx(S.Collapse,{in:y,timeout:"auto",children:f.jsx(S.List,{children:ee.map(u,(j,E)=>f.jsx(H0,{...j},E))})}):null]})}function OT(e){const{id:t}=e,n=ET(t),r=fd(t),o=xne(),i=yT(),a=xT(),c=TT(t),u=!ee.isEmpty(c),d=A.useCallback(g=>{u||(i?o(e.id):a(e.id)),ee.isFunction(e.onClick)&&e.onClick(g)},[a,o,e,i,u]);return A.useMemo(()=>({...e,selected:n,onClick:d,items:c,isGroup:u,level:r}),[e,n,d,c,u,r])}var Cne=e=>{let t=e;for(;t=t.parentElement;){const n=getComputedStyle(t,null).getPropertyValue("overflow-y");if(t===document.body)return window;if(n==="auto"||n==="scroll"||n==="overlay")return t}return window},PT=e=>e.firstChild?e.firstChild.offsetParent===e:!0,wne=(e,t)=>{let n=e,r=0;PT(t)||(r+=e.offsetTop-t.offsetTop,t=e.offsetParent,r+=-e.offsetTop);do r+=n.offsetTop,n=n.offsetParent;while(n&&n!==t);return r},Sne=e=>{let t=e.parentElement;for(;t&&getComputedStyle(t,null).getPropertyValue("display")==="contents";)t=t.parentElement;return t||window},hl=null;typeof CSS<"u"&&CSS.supports&&(CSS.supports("position","sticky")?hl="sticky":CSS.supports("position","-webkit-sticky")&&(hl="-webkit-sticky"));var pd=!1;try{const e=Object.defineProperty({},"passive",{get(){pd={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch{}var yh=e=>{const{el:t,onChange:n,unsubs:r,measure:o}=e;if(t===window){const i=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),a=o(i()),c=()=>{Object.assign(a,o(i())),n()};return window.addEventListener("resize",c,pd),r.push(()=>window.removeEventListener("resize",c)),a}else{const i=o(t.getBoundingClientRect()),a=()=>{Object.assign(i,o(t.getBoundingClientRect())),n()},c=new ResizeObserver(a);return c.observe(t),r.push(()=>c.disconnect()),i}},Ane=e=>{const t=getComputedStyle(e,null),n=parseInt(t.getPropertyValue("padding-top"),10),r=parseInt(t.getPropertyValue("padding-bottom"),10);return{top:n,bottom:r}},Ene=(e,t,n)=>{const{bottom:r,offsetBottom:o,offsetTop:i}=n,a=Cne(e);let c=!1;const u=()=>{c||requestAnimationFrame(()=>{const F=g();F!==E&&P(F),c=!1}),c=!0};let d=a===window?window.scrollY:a.scrollTop;const p=F=>{const{offsetTop:B,height:H}=y,{naturalTop:q}=w,{height:U}=T;return F+B+H>=q+U+j+o},g=()=>{const{height:F}=y,{height:B}=T;return B+i+o<=F?3:p(d)?1:2},v=a!==window&&PT(a),y=yh({el:a,onChange:u,unsubs:t,measure:({height:F,top:B})=>({height:F,offsetTop:v?B:0})}),b=Sne(e),x=b===window?{top:0,bottom:0}:Ane(b),w=yh({el:b,onChange:u,unsubs:t,measure:({height:F})=>({height:F-x.top-x.bottom,naturalTop:b===window?0:wne(b,a)+x.top+y.offsetTop})}),T=yh({el:e,onChange:u,unsubs:t,measure:({height:F})=>({height:F})});let j=0,E=g();const P=F=>{const B=E;if(E=F,B===2&&(j=-1),F===3){e.style.position=hl,r?e.style.bottom=`${o}px`:e.style.top=`${i}px`;return}const{height:H,offsetTop:q}=y,{height:U,naturalTop:ne}=w,{height:te}=T;if(F===2)if(e.style.position="relative",j=B===0?Math.max(0,q+d-ne+i):Math.max(0,q+d+H-(ne+te+o)),r){const Y=Math.max(0,U-te-j);e.style.bottom=`${Y}px`}else e.style.top=`${j}px`;else e.style.position=hl,F===1?r?e.style.bottom=`${o}px`:e.style.top=`${H-te-o}px`:r?e.style.bottom=`${H-te-o}px`:e.style.top=`${i}px`};P(E);const O=F=>{if(F===d)return;const B=F-d;if(d=F,E===3)return;const{offsetTop:H,height:q}=y,{naturalTop:U,height:ne}=w,{height:te}=T;if(B>0)if(E===0){if(F+H+i>U){const Y=Math.max(0,H+d-U+i);F+H+q<=U+te+Y+o?P(2):P(1)}}else E===2&&p(F)&&P(1);else if(E===1){if(H+F+q<U+ne+o){const Y=Math.max(0,H+d+q-(U+te+o));H+F+i>=U+Y?P(2):P(0)}}else E===2&&H+F+i<U+j&&P(0)},k=a===window?()=>O(window.scrollY):()=>O(a.scrollTop);a.addEventListener("scroll",k,pd),a.addEventListener("mousewheel",k,pd),t.push(()=>a.removeEventListener("scroll",k),()=>a.removeEventListener("mousewheel",k))},Tne=({offsetTop:e=0,offsetBottom:t=0,bottom:n=!1}={})=>{const[r,o]=A.useState(null);return A.useEffect(()=>{if(!r||!hl)return;const i=[];return Ene(r,i,{offsetBottom:t,offsetTop:e,bottom:n}),()=>{i.forEach(a=>a())}},[r,t,e,n]),o},Ine=e=>{const{offsetTop:t,offsetBottom:n,bottom:r,children:o,className:i,style:a}=e,c=Tne({offsetTop:t,offsetBottom:n,bottom:r});return f.jsx("div",{className:i,style:a,ref:c,children:o})},One=Ine,jT=(e=>(e.TOP="top",e.BOTTOM="bottom",e))(jT||{});function RT(e){const{sticky:t=!0,disposition:n={xl:3,lg:3,md:4,sm:4,xs:12},spacing:r=2}=e,o=ee.omit(e,["sticky","disposition","spacing"]),i=t?One:S.Box,a=A.useMemo(()=>t?{offsetTop:74,offsetBottom:r*2}:{},[t,r]);return f.jsx(S.Grid,{...o,item:!0,...n,children:f.jsx(i,{...a,children:f.jsx(S.Stack,{spacing:r,children:e.children})})})}function MT(e){return f.jsx(f.Fragment,{children:e.children})}function kT(e){const{children:t}=e;return A.useMemo(()=>{const r={top:[],bottom:[]};return A.Children.forEach(t,o=>{if(A.isValidElement(o)&&(o==null?void 0:o.type)===MT){const{position:i}=o.props;switch(i){case"top":r.top.push(o);break;case"bottom":r.bottom.push(o);break}}}),r},[t])}function FT(e){const{errors:t}=rn.useFormState(),n=bT(),{label:r,icon:o,badge:i,index:a=0,children:c}=e,u=bg(e),d=CT(),p=wT(),g=ET(u),v=[];n&&(e.sources!==void 0?v.push(...e.sources):uf(c,b=>{var x;((x=b==null?void 0:b.props)==null?void 0:x.source)!==void 0&&v.push(b.props.source)}));const y=ee.chain(v).uniq().map(b=>ee.get(t,b)).reject(b=>b===void 0).value().length;return A.useEffect(()=>{d({id:u,index:a,label:r,icon:o,badge:i,errors:y})},[d,p,r,o,u,i,a,y]),A.useEffect(()=>()=>{p(u)},[u,p]),f.jsx(S.Box,{display:g?"unset":"none",children:e.children})}function DT(e){const t=G0(e),n=bg(e);return f.jsx(FT,{...e,id:n,children:A.Children.map(t,r=>{const o=bg(r.props);return A.cloneElement(r,{id:`${n}.${o}`})})})}function _T(e){return f.jsx(FT,{...e})}function G0(e){const{children:t}=e;return A.useMemo(()=>ee.chain(A.Children.toArray(t)).filter(r=>A.isValidElement(r)&&((r==null?void 0:r.type)===_T||(r==null?void 0:r.type)===DT)).map((r,o)=>A.cloneElement(r,{index:o})).value(),[t])}function Pne(e){const{tabsDisposition:t,contentDisposition:n,spacing:r=2}=e,o=ee.pick(e,["syncWithLocation","errorCount"]),i=ee.omit(e,["tabsDisposition","contentDisposition","syncWithLocation"]),{top:a,bottom:c}=kT(e),u=G0(e);return f.jsx(pT,{...o,children:f.jsxs(ST,{...i,spacing:r,children:[f.jsxs(RT,{disposition:t,spacing:r,children:[a,f.jsx(IT,{}),c]}),f.jsx(AT,{disposition:n,children:u})]})})}const Ft=Pne;Ft.BaseForm=ST;Ft.Content=AT;Ft.Provider=pT;Ft.useItems=vT;Ft.useSyncWithLocation=yT;Ft.useErrorCount=bT;Ft.useFormRootPath=gT;Ft.useActiveItem=mT;Ft.useSetActiveItem=xT;Ft.useAddItem=CT;Ft.useRemoveItem=wT;Ft.Sidebar=RT;Ft.SidebarSection=MT;Ft.SidebarSectionPosition=jT;Ft.useSidebarChildren=kT;Ft.NavMenu=IT;Ft.NavMenuItem=H0;Ft.useNavMenuItem=OT;Ft.Tab=_T;Ft.Group=DT;Ft.useBaseItemChildren=G0;const jne=ce(_.Show,{slot:"root"})(({theme:e})=>({"&>.MuiToolbar-root:first-of-type":{backgroundColor:e.palette.background.default},"& .RaShow-card, & > div > div > form":{backgroundColor:e.palette.background.default},"& .RaShow-main>.MuiPaper-root:first-of-type":{overflow:"visible"}}));function Rne(e){return f.jsx(jne,{...e})}const Mne=ce(_.SimpleFormIterator,{root:"root"})(({theme:e})=>({"& .RaSimpleFormIterator-line":{paddingTop:e.spacing(1),paddingBottom:e.spacing(.5)},"& .RaSimpleFormIterator-action":{display:"flex",flexDirection:"row",alignItems:"center",mb:1.5},"& section":{width:"100%","& label":{position:"relative",overflow:"visible",transform:"none",marginLeft:0}}}));function kne(e){return f.jsx(Mne,{...e})}const Fne=kl(_.TabbedForm,{slot:"Root"})(({theme:e})=>({"& .MuiGrid-root.MuiGrid-container":{paddingBottom:0},[e.breakpoints.down("sm")]:{paddingBottom:0,"& .MuiTableContainer-root":{paddingBottom:e.spacing(1)}}}));function Dne({children:e}){return f.jsx(f.Fragment,{children:e})}function q0(e){const{title:t,modal:n,content:r,subheader:o,secondary:i=f.jsx(Qo,{children:f.jsx(Nl,{})}),sx:a,noPadding:c,toolbar:u=f.jsx(ni,{children:f.jsx(_.SaveButton,{type:"button"})}),...d}=e,p=L0(t),g=S.useTheme();return f.jsx(Mn,{title:p,modal:n,content:r,subheader:o,secondary:i,sx:{...a,"& .MuiTabs-root":{m:2.5,mb:0},"& .tabbed-form > .MuiDivider-root":{ml:2.5,mr:2.5},"& .MuiToolbar-root.RaToolbar-desktopToolbar":{paddingTop:n?g.spacing(2.5):0},"& .MuiToolbar-root":{padding:g.spacing(2.5),borderTop:n?`1px solid ${g.palette.divider}`:void 0}},border:!n,divider:!0,children:f.jsx(Fne,{toolbar:u,component:c?Dne:void 0,...d})})}function _ne({children:e,...t}){return f.jsx(_.TabbedForm.Tab,{...t,children:f.jsx(S.Box,{sx:{width:"100%",p:2.5},children:e})})}q0.Tab=_.TabbedForm.Tab;q0.TabStack=_ne;function Y0(e){const{label:t,disableAdd:n,onClick:r,inset:o}=e,i=S.useTheme(),a=i.palette.mode==="dark"?i.palette.grey.A400:i.palette.grey.A800,c=i.palette.mode==="light"?"#000000":"#FFFFFF";return f.jsxs(S.Stack,{justifyContent:"space-between",alignItems:"center",flexDirection:"row",sx:o?{p:2.5}:{pt:2},children:[t!==!1&&f.jsx(S.Typography,{children:t}),!n&&(A.isValidElement(e==null?void 0:e.customButton)?A.cloneElement(e==null?void 0:e.customButton,{onClick:r}):f.jsx(S.IconButton,{color:"secondary",sx:{border:`1px solid ${a}`},onClick:r,children:f.jsx(We.PlusCircleOutlined,{style:{color:c}})}))]})}const K0=A.createContext(void 0);function LT(){return A.useContext(K0)}function hd(e){const{children:t}=e,{item:n,index:r}=LT(),[o,i]=A.useState(!1),{update:a}=_.useArrayInput(),c=_.useTranslate(),u=A.useCallback(d=>(i(!1),a(r,d),Promise.resolve()),[r,a]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{color:"primary",onClick:()=>i(!0),sx:{justifyContent:"flex-start"},children:c("ra.action.edit")}),f.jsx(S.Dialog,{open:o,onClose:()=>i(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(_.EditContextProvider,{value:{record:n,save:u},children:t})})]})}function BT({source:e,children:t}){const n=A.Children.only(t),{getValues:r}=rn.useFormContext(),o=_.useRecordContext({record:r()});return A.isValidElement(n)?A.cloneElement(n,{source:e,record:o}):null}function X0(e){const{label:t,disableAdd:n,inset:r,source:o,template:i}=e,[a,c]=A.useState(!1),{append:u}=_.useArrayInput(),d=A.useCallback(()=>{c(g=>!g)},[c]),p=A.useCallback(g=>(c(!1),u(g),Promise.resolve()),[c,u]);return f.jsxs(f.Fragment,{children:[A.cloneElement(f.jsx(Y0,{}),{label:t,source:o,disableAdd:n,template:i,onClick:d,inset:r}),f.jsx(S.Dialog,{open:a,onClose:d,maxWidth:"xs",children:f.jsx(Z.CreateContextProvider,{value:{save:p},children:e.children})})]})}const Z0=A.createContext(void 0);function NT(){return A.useContext(Z0)}const $T=D.forwardRef((e,t)=>{const{children:n,disabled:r,disableRemove:o=!1,index:i,member:a,resource:c,record:u}=e,d=_.useTranslate(),[p,g]=D.useState(!1),{total:v,remove:y}=NT(),b=D.useCallback(()=>{g(!1),y(i)},[i,y]),x=A.useMemo(()=>({index:i,total:v,item:u,remove:()=>y(i)}),[i,v,y,u]),w=A.useMemo(()=>A.Children.map(n,T=>A.isValidElement(T)&&(T==null?void 0:T.type)===hd&&D.isValidElement(T)?T:null),[n]);return f.jsxs(K0.Provider,{value:x,children:[A.Children.map(n,(T,j)=>{if(T.type===hd||!A.isValidElement(T))return null;const{source:E,...P}=T.props;return f.jsx(S.TableCell,{children:A.cloneElement(T,{source:E?`${a}.${E}`:a,index:E?void 0:j,resource:c,disabled:r,...P,label:""})})}),!o&&f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsxs(Qo,{horizontal:!0,children:[f.jsx(S.Button,{onClick:()=>g(!0),color:"error",sx:{justifyContent:"flex-start"},children:d("ra.action.delete")}),w]})})}),o&&w?f.jsx(S.TableCell,{children:f.jsx(S.Stack,{direction:"row",spacing:1,justifyContent:"center",alignItems:"center",children:f.jsx(Qo,{horizontal:!0,children:w})})}):null,n.length>0&&f.jsx(_.Confirm,{isOpen:p,title:d("ra.action.remove_item"),content:d("ra.message.remove_item"),onConfirm:b,onClose:()=>g(!1)})]})});function Lne(e){var Q,$;const{children:t,resource:n,source:r,label:o,disableAdd:i=!1,disableRemove:a=!1,enableClearAll:c=!1,className:u,empty:d,template:p={},addButton:g=f.jsx(Y0,{}),inset:v,sx:y}=e,[b,x]=A.useState(!1),{fields:w,remove:T,replace:j,append:E}=_.useArrayInput(e),{resetField:P}=rn.useFormContext(),O=gt(),k=Z.useTranslate(),F=A.useRef(p||{}),B=Z.useTranslateLabel(),H=A.useCallback(oe=>{T(oe)},[T]);if(w.length>0){const{...oe}=w[0];F.current=oe;for(const W in F.current)F.current[W]=null}const q=A.useCallback((oe=void 0)=>{let W=oe;oe==null&&(W=F.current,A.Children.count(t)===1&&D.isValidElement(A.Children.only(t))&&!A.Children.only(t).props.source&&A.Children.map(t,ue=>D.isValidElement(ue)&&ue.type!==Z.FormDataConsumer).some(Boolean)?W="":(W=W||{},A.Children.forEach(t,ue=>{D.isValidElement(ue)&&ue.type!==Z.FormDataConsumer&&ue.props.source&&(W[ue.props.source]=ue.props.defaultValue??null)})));const J={...W,...p};E(J),P(`${r}.${w.length}`,{defaultValue:W})},[E,t,P,r,w.length,p]);function U(oe){return W=>{q(),oe&&oe(W)}}const ne=A.useCallback(()=>{j([]),x(!1)},[j]),te=A.useMemo(()=>({total:w.length,remove:H,source:r}),[w.length,H,r]),Y=O.palette.mode==="dark"?O.palette.grey.A400:O.palette.grey.A800,X=w.length>0&&c,N=v===!0?{borderRadius:0,borderBottom:`1px solid ${O.palette.divider}`}:{mt:2,border:`1px solid ${Y}`,boxShadow:O.customShadows.z0};return w?f.jsx(Z0.Provider,{value:te,children:f.jsxs("div",{className:u,children:[D.cloneElement(g,{label:o,source:r,disableAdd:i,template:p,onClick:(g==null?void 0:g.type)!==X0?U(($=(Q=e==null?void 0:e.addButton)==null?void 0:Q.props)==null?void 0:$.onClick):void 0,inset:v}),f.jsx(S.TableContainer,{component:S.Paper,sx:{...N,boxShadow:O.customShadows.z0,...y},children:f.jsxs(S.Table,{size:"small",children:[f.jsx(S.TableHead,{sx:v===!0?{}:{borderTop:0,borderBottom:`1px solid ${Y}`},children:f.jsxs(S.TableRow,{children:[A.Children.map(t,(oe,W)=>{if(oe.type===hd||!D.isValidElement(oe))return null;const J=f.jsx(S.Typography,{display:"flex",variant:"subtitle1",color:"text.primary",textTransform:"none",children:B({...oe.props,resource:n})});return f.jsx(S.TableCell,{children:oe.props.title?f.jsx(Xd,{title:oe.props.title,arrow:!0,children:J}):J},W)}),!a&&X?f.jsx(S.TableCell,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx(Qo,{horizontal:!0,children:f.jsx(S.Typography,{color:"error",onClick:()=>x(!0),children:k("ra.action.delete")})})},"actions"):f.jsx(S.TableCell,{},"empty_actions")]})}),f.jsxs(S.TableBody,{children:[w.length===0&&f.jsx(S.TableRow,{sx:{"&:last-child td, &:last-child th":{border:0}},children:f.jsx(S.TableCell,{colSpan:4+(a?0:1),align:"center",children:d||f.jsx(S.Typography,{variant:"body1",color:"text.secondary",children:"-"})})}),w.length>0&&w.map((oe,W)=>f.jsx(S.TableRow,{sx:{borderBottom:0},children:f.jsx($T,{disableRemove:a,index:W,member:`${r}.${W}`,onRemoveField:H,record:w&&w[W]||{},resource:n,source:r,children:t})},oe.id))]})]})}),w.length>0&&f.jsx(_.Confirm,{isOpen:b,title:k("ra.action.clear_array_input"),content:k("ra.message.clear_array_input"),onConfirm:ne,onClose:()=>x(!1)})]})}):null}const Bne=ce(Lne,{slot:"Root"})(({theme:e})=>({"& > div.MuiPaper-root":{overflowX:"auto",[e.breakpoints.down("sm")]:{width:`calc(100vw - ${e.spacing(8.25)})`}},[e.breakpoints.down("sm")]:{"& .MuiTableRow-root:last-child":{borderBottom:0}}})),df=Bne;df.CreateButton=X0;df.EditButton=hd;df.Field=BT;const VT=A.createContext(void 0);function ff(){const e=A.useContext(VT);if(!e)throw new Error("useWizardFormContext must be used within a WizardFormProvider");return e}function Nne({value:e,children:t}){return f.jsx(VT.Provider,{value:e,children:t})}function $ne({cancelButton:e,...t}){const{hasNextStep:n,hasPreviousStep:r,goToNextStep:o,goToPreviousStep:i}=ff(),a=Z.useTranslate(),{handleSubmit:c}=rn.useFormContext(),u=A.useCallback(()=>{o()},[o]);return f.jsxs(ni,{...t,children:[f.jsx(S.Box,{sx:{"& .MuiButtonBase-root":{ml:0}},children:e?A.cloneElement(e):null}),f.jsx(S.Box,{sx:{flex:"1 1 auto"}}),r()&&f.jsx(S.Button,{variant:"text",color:"primary",onClick:i,children:a("ra.action.back")}),n()?f.jsx(S.Button,{variant:"contained",color:"primary",onClick:c(u),children:a("ra.action.next")}):f.jsx(_.SaveButton,{})]})}const Vne=S.styled(S.Stepper,{shouldForwardProp:e=>e!=="isHorizontal"})(({theme:e,isHorizontal:t})=>({paddingBottom:e.spacing(2),display:"flex",justifyContent:t?"space-between":"flex-start",".MuiStep-root":{flex:t?1:"none",maxWidth:t?"none":"100%",display:"flex",justifyContent:t?"center":"flex-start"},".MuiStepConnector-line.MuiStepConnector-lineVertical":{minHeight:12},".MuiStepConnector-vertical":{marginLeft:14.5},".MuiStepConnector-horizontal":{marginLeft:-10}})),Wne=S.styled(S.Box)(({theme:e,ownerState:t})=>({backgroundColor:t.error?e.palette.error.main:t.completed||t.active?e.palette.primary.main:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[400],zIndex:1,color:e.palette.common.white,width:30,height:30,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center"}));function zne({completed:e,active:t,error:n,icon:r,className:o}){return f.jsx(Wne,{ownerState:{completed:e,active:t,error:n},className:o,children:n?"!":r})}function Une({isHorizontal:e,setCurrentStep:t,stepFields:n}){const{currentStep:r,steps:o}=ff(),{errors:i}=rn.useFormState();function a(c){c<=r&&t(c)}return f.jsx(Vne,{activeStep:r,orientation:e?"horizontal":"vertical",isHorizontal:e,sx:{p:3,mt:1},children:o.map((c,u)=>{const d=n[u].some(v=>ee.get(i,v)),{label:p,icon:g}=c.props;return f.jsx(S.Step,{children:f.jsx(S.StepLabel,{StepIconComponent:zne,error:d,icon:g,onClick:()=>a(u),style:{cursor:u<=r?"pointer":"default"},children:e?null:p})},u)})})}function Hne({title:e,subheader:t,secondary:n,toolbar:r,progress:o,isSmall:i,modal:a,sx:c,setCurrentStep:u}){const{currentStep:d,steps:p}=ff(),g=_.useTranslate(),v=S.useTheme(),y=i||a,b=A.useMemo(()=>r?A.Children.toArray(r.props.children).find(w=>{var T;return A.isValidElement(w)&&w.type===S.Button&&((T=w.props)==null?void 0:T.children)===g("ra.action.cancel")}):null,[r,g]),x=p.map(w=>{const T=[],{sources:j}=w.props;return j!==void 0?T.push(...j):uf(w,E=>{var P;((P=E==null?void 0:E.props)==null?void 0:P.source)!==void 0&&T.push(E.props.source)}),T});return f.jsxs(S.Grid,{container:!0,spacing:2,sx:c,children:[f.jsx(S.Grid,{item:!0,xl:a?12:2,lg:a?12:3,md:a?12:3,sm:a?12:4,xs:12,children:o||f.jsx(Une,{isHorizontal:y,setCurrentStep:u,stepFields:x})}),a?f.jsx(S.Divider,{sx:{width:"100%"}}):null,f.jsx(S.Grid,{item:!0,xl:a?12:10,lg:a?12:9,md:a?12:9,sm:a?12:8,xs:12,sx:{paddingTop:a?"0 !important":null},children:f.jsxs(Mn,{title:e||p[d].props.label,subheader:t,secondary:n,border:!a,divider:!0,children:[f.jsx(S.Box,{children:p[d]}),f.jsx(S.Box,{sx:{"& .MuiToolbar-root":{paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:v.spacing(2)}},children:r&&!b?r:f.jsx($ne,{cancelButton:b})})]})})]})}const Gne=S.styled(_.Form,{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({[e.breakpoints.down("sm")]:t?{}:{paddingBottom:`${e.spacing(2.5)}`}}));function WT({children:e,toolbar:t,progress:n,title:r,subheader:o=null,secondary:i=null,sx:a,modal:c=!1,...u}){const[d,p]=A.useState(0),g=A.Children.toArray(e),v=S.useMediaQuery(j=>j.breakpoints.down("sm"));function y(){return d<g.length-1}function b(){return d>0}function x(){p(j=>Math.min(j+1,g.length-1))}function w(){p(j=>Math.max(j-1,0))}const T={currentStep:d,steps:g,hasNextStep:y,hasPreviousStep:b,goToNextStep:x,goToPreviousStep:w};return f.jsx(Nne,{value:T,children:f.jsx(Gne,{...u,modal:c,children:f.jsx(Hne,{title:r,subheader:o,secondary:i,modal:c,sx:a,toolbar:t,progress:n,isSmall:v,setCurrentStep:p})})})}function qne({children:e}){return f.jsx(f.Fragment,{children:e})}WT.Step=qne;function Yne(e,t){const n=ee.clone(e),{type:r,payload:o}=t;switch(r){case"updateMedia":{const i=ee.chain(n.media).clone().extend(o).value();return ee.extend(n,{media:i})}case"updateDrawer":{const i=ee.chain(n.drawer).clone().extend(o).value();return ee.extend(n,{drawer:i})}case"updateLogo":{const i=ee.chain(n.logo).clone().extend(o).value();return ee.extend(n,{logo:i})}case"updateNotifications":{const i=ee.chain(n.notifications).clone().extend(o).value();return ee.extend(n,{notifications:i})}case"updateTheme":{const i=ee.chain(n.theme).clone().extend(o).value();return ee.extend(n,{theme:i})}default:return n}}const Kne={drawer:{open:!0,width:260,handleDrawerToggle:()=>{}},media:{downMd:!1,downLg:!1,downXl:!1,horizontal:!1},logo:{},notifications:{enable:!0,resource:"entities/notification"},theme:{iconColor:"grey.300",iconColorOpen:"grey.100"}},zT=A.createContext(void 0);function UT(e){var q;const t=Z.useAuthProvider(),n=Z.useGetIdentity(),r=S.useTheme(),o=S.useMediaQuery(r.breakpoints.down("md")),i=S.useMediaQuery(r.breakpoints.down("lg")),a=S.useMediaQuery(r.breakpoints.down("xl")),{miniDrawer:c,isHorizontalLayout:u,themeDirection:d,drawerWidth:p}=N0(),g=u(d)&&!i,{drawerOpen:v,openDrawer:y}=sf(),b=A.useCallback(()=>{y(!v)},[v,y]),[x,w]=A.useState(!1),[T,j]=A.useReducer(Yne,ee.chain(Kne).clone().merge({drawer:{open:!c||v}}).value()),E=A.useCallback(()=>w(!1),[]),P=A.useMemo(()=>({state:T,dispatch:j}),[T,j]),{logoIcon:O,logoMain:k,enableNotification:F,notification:B}=e,H=_.useLoading();return A.useEffect(()=>{j({type:"updateMedia",payload:{downMd:o,downLg:i,downXl:a,horizontal:g}})},[o,i,a,g]),A.useEffect(()=>{j({type:"updateDrawer",payload:{open:v,width:p,handleDrawerToggle:b}})},[v,p,b]),A.useEffect(()=>{c||y(!a)},[a,c]),A.useEffect(()=>{j({type:"updateLogo",payload:{main:k,icon:O}})},[O,k]),A.useEffect(()=>{j({type:"updateNotifications",payload:{enable:F,resource:B??"entities/notification"}})},[F,B]),A.useEffect(()=>{j({type:"updateTheme",payload:{iconColorOpen:r.palette.mode==="dark"?"grey.200":"grey.300",iconColor:r.palette.mode==="dark"?"background.default":"grey.100"}})},[r.palette.mode]),A.useEffect(()=>{if(!H){if(!t.isImpersonating){console.warn("authProvider does not contain a method called isImpersonating",t);return}t==null||t.isImpersonating().then(U=>{var ne;w(!U&&((ne=n==null?void 0:n.data)==null?void 0:ne.needToChangePassword)===!0)})}},[(q=n==null?void 0:n.data)==null?void 0:q.needToChangePassword,t,H]),f.jsxs(zT.Provider,{value:P,children:[f.jsx(S.Dialog,{open:x,maxWidth:"xs",fullWidth:!0,children:f.jsx(z0,{onSuccess:E,firstAccess:!0})}),e.children]})}function HT(e){return A.forwardRef((t,n)=>{const{logoIcon:r,logoMain:o,enableNotification:i,notification:a}=t;return f.jsx(UT,{logoIcon:r,logoMain:o,enableNotification:i,notification:a,children:f.jsx(e,{ref:n,...t})})})}function Q0(){const e=A.useContext(zT);if(e===void 0)throw new Error("[Layout] useLayoutContext: context undefined. Please provide a valid LayoutContext using LayoutProvider");return e}function Xne(){return Q0().dispatch}function oa(){return Q0().state}function Qn(){return oa().media}function Gi(){return oa().drawer}function GT(){return oa().logo}function pf(){return oa().notifications}function Zne(){return oa().theme}function qT(e){const{width:t}=Gi(),{horizontal:n}=Qn(),{container:r}=Sn(),[o,i]=A.useState(null);function a(u,d){i(d)}const c=gt();return f.jsx(aZ,{onError:a,fallbackRender:({error:u,resetErrorBoundary:d})=>f.jsx(I0,{error:u,errorComponent:e.error,errorInfo:o,resetErrorBoundary:d}),children:f.jsx(A.Suspense,{fallback:f.jsx(XE,{}),children:f.jsxs(S.Box,{component:"main",sx:{width:`calc(100% - ${t}px)`,flexGrow:1,p:{xs:0,sm:2,lg:1},pt:{lg:2}},children:[f.jsx(S.Toolbar,{sx:{mt:n?8:"inherit"}})," ",f.jsx(S.Container,{maxWidth:r?"xl":!1,sx:{...r&&{px:{xs:0,sm:2}},position:"relative",minHeight:"calc(100vh - 110px)",display:"flex",flexDirection:"column",[c.breakpoints.down("sm")]:{px:"12px"}},children:e.children})]})})})}const YT=ce(S.Box,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({...e.mixins.toolbar,display:"flex",alignItems:"center",justifyContent:t?"flex-start":"center",paddingLeft:e.spacing(t?3:0)}));function KT({isIcon:e,sx:t,to:n,logoIcon:r,logoMain:o}){const{appDefaultPath:i}=Sn();return f.jsx(S.ButtonBase,{disableRipple:!0,component:ut.Link,to:n||i,sx:t,children:e?r:o})}function XT(e){const t=S.useTheme(),{horizontal:n}=Qn(),{open:r}=Gi(),{icon:o,main:i}=GT(),a=Mr(e,{minHeight:n?"unset":"60px",width:n?{xs:"100%",lg:"424px"}:"inherit",paddingTop:n?{xs:"10px",lg:"0"}:"8px",paddingBottom:n?{xs:"18px",lg:"0"}:"8px",paddingLeft:n?{xs:"24px",lg:"0"}:r?"24px":0});return f.jsx(YT,{theme:t,open:r,sx:a,children:f.jsx(KT,{to:"/",isIcon:!r,sx:{width:r?"auto":35,height:35},logoMain:i,logoIcon:o})})}function ZC(e,t){return{width:t,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden",boxShadow:e.palette.mode==="dark"?e.customShadows.z1:"none"}}function QC(e){return{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:e.spacing(7.5),borderRight:"none",boxShadow:e.customShadows.z1}}const Qne=ce(S.Drawer,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Sn();return{width:n,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...ZC(e,n),"& .MuiDrawer-paper":ZC(e,n)},...!t&&{...QC(e),"& .MuiDrawer-paper":QC(e)}}});var Ae={},xg={exports:{}};(function(e,t){(function(n,r){var o="1.0.39",i="",a="?",c="function",u="undefined",d="object",p="string",g="major",v="model",y="name",b="type",x="vendor",w="version",T="architecture",j="console",E="mobile",P="tablet",O="smarttv",k="wearable",F="embedded",B=500,H="Amazon",q="Apple",U="ASUS",ne="BlackBerry",te="Browser",Y="Chrome",X="Edge",N="Firefox",Q="Google",$="Huawei",oe="LG",W="Microsoft",J="Motorola",ue="Opera",he="Samsung",de="Sharp",pe="Sony",ge="Xiaomi",we="Zebra",ye="Facebook",ve="Chromium OS",Ce="Mac OS",Te=" Browser",fe=function(ke,Fe){var Ie={};for(var xe in ke)Fe[xe]&&Fe[xe].length%2===0?Ie[xe]=Fe[xe].concat(ke[xe]):Ie[xe]=ke[xe];return Ie},Ge=function(ke){for(var Fe={},Ie=0;Ie<ke.length;Ie++)Fe[ke[Ie].toUpperCase()]=ke[Ie];return Fe},me=function(ke,Fe){return typeof ke===p?Qe(Fe).indexOf(Qe(ke))!==-1:!1},Qe=function(ke){return ke.toLowerCase()},an=function(ke){return typeof ke===p?ke.replace(/[^\d\.]/g,i).split(".")[0]:r},Et=function(ke,Fe){if(typeof ke===p)return ke=ke.replace(/^\s\s*/,i),typeof Fe===u?ke:ke.substring(0,B)},mt=function(ke,Fe){for(var Ie=0,xe,ft,Vt,$e,Oe,Zt;Ie<Fe.length&&!Oe;){var er=Fe[Ie],Ar=Fe[Ie+1];for(xe=ft=0;xe<er.length&&!Oe&&er[xe];)if(Oe=er[xe++].exec(ke),Oe)for(Vt=0;Vt<Ar.length;Vt++)Zt=Oe[++ft],$e=Ar[Vt],typeof $e===d&&$e.length>0?$e.length===2?typeof $e[1]==c?this[$e[0]]=$e[1].call(this,Zt):this[$e[0]]=$e[1]:$e.length===3?typeof $e[1]===c&&!($e[1].exec&&$e[1].test)?this[$e[0]]=Zt?$e[1].call(this,Zt,$e[2]):r:this[$e[0]]=Zt?Zt.replace($e[1],$e[2]):r:$e.length===4&&(this[$e[0]]=Zt?$e[3].call(this,Zt.replace($e[1],$e[2])):r):this[$e]=Zt||r;Ie+=2}},Bn=function(ke,Fe){for(var Ie in Fe)if(typeof Fe[Ie]===d&&Fe[Ie].length>0){for(var xe=0;xe<Fe[Ie].length;xe++)if(me(Fe[Ie][xe],ke))return Ie===a?r:Ie}else if(me(Fe[Ie],ke))return Ie===a?r:Ie;return Fe.hasOwnProperty("*")?Fe["*"]:ke},Tt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},vt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Kt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,w],[/opios[\/ ]+([\w\.]+)/i],[w,[y,ue+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[y,ue+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[y,ue]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[y,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[y,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[y,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+te],w],[/\bfocus\/([\w\.]+)/i],[w,[y,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[y,ue+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[y,ue+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[y,"MIUI "+te]],[/fxios\/([-\w\.]+)/i],[w,[y,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[y,"360"+Te]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+Te],w],[/samsungbrowser\/([\w\.]+)/i],[w,[y,he+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[y,/_/g," "],w],[/metasr[\/ ]?([\d\.]+)/i],[w,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[y,w],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,ye],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[y,Y+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,Y+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[y,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[w,Bn,Tt]],[/(webkit|khtml)\/([\w\.]+)/i],[y,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],w],[/(wolvic)\/([\w\.]+)/i],[y,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[y,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[y,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,Qe]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,i,Qe]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,Qe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[v,[x,he],[b,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[v,[x,he],[b,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[v,[x,q],[b,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[v,[x,q],[b,P]],[/(macintosh);/i],[v,[x,q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[v,[x,de],[b,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[v,[x,$],[b,P]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[v,[x,$],[b,E]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[v,/_/g," "],[x,ge],[b,E]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[v,/_/g," "],[x,ge],[b,P]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[v,[x,"OPPO"],[b,E]],[/\b(opd2\d{3}a?) bui/i],[v,[x,"OPPO"],[b,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[v,[x,"Vivo"],[b,E]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[v,[x,"Realme"],[b,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[v,[x,J],[b,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[v,[x,J],[b,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[v,[x,oe],[b,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[v,[x,oe],[b,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[v,[x,"Lenovo"],[b,P]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[v,/_/g," "],[x,"Nokia"],[b,E]],[/(pixel c)\b/i],[v,[x,Q],[b,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[v,[x,Q],[b,E]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[v,[x,pe],[b,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[v,"Xperia Tablet"],[x,pe],[b,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[v,[x,"OnePlus"],[b,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[v,[x,H],[b,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[v,/(.+)/g,"Fire Phone $1"],[x,H],[b,E]],[/(playbook);[-\w\),; ]+(rim)/i],[v,x,[b,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[v,[x,ne],[b,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[v,[x,U],[b,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[v,[x,U],[b,E]],[/(nexus 9)/i],[v,[x,"HTC"],[b,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[v,/_/g," "],[b,E]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[v,[x,"TCL"],[b,P]],[/(itel) ((\w+))/i],[[x,Qe],v,[b,Bn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[v,[x,"Acer"],[b,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[v,[x,"Meizu"],[b,E]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[v,[x,"Ulefone"],[b,E]],[/droid.+; (a(?:015|06[35]|142p?))/i],[v,[x,"Nothing"],[b,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[x,v,[b,E]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[x,v,[b,P]],[/(surface duo)/i],[v,[x,W],[b,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[v,[x,"Fairphone"],[b,E]],[/(u304aa)/i],[v,[x,"AT&T"],[b,E]],[/\bsie-(\w*)/i],[v,[x,"Siemens"],[b,E]],[/\b(rct\w+) b/i],[v,[x,"RCA"],[b,P]],[/\b(venue[\d ]{2,7}) b/i],[v,[x,"Dell"],[b,P]],[/\b(q(?:mv|ta)\w+) b/i],[v,[x,"Verizon"],[b,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[v,[x,"Barnes & Noble"],[b,P]],[/\b(tm\d{3}\w+) b/i],[v,[x,"NuVision"],[b,P]],[/\b(k88) b/i],[v,[x,"ZTE"],[b,P]],[/\b(nx\d{3}j) b/i],[v,[x,"ZTE"],[b,E]],[/\b(gen\d{3}) b.+49h/i],[v,[x,"Swiss"],[b,E]],[/\b(zur\d{3}) b/i],[v,[x,"Swiss"],[b,P]],[/\b((zeki)?tb.*\b) b/i],[v,[x,"Zeki"],[b,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[x,"Dragon Touch"],v,[b,P]],[/\b(ns-?\w{0,9}) b/i],[v,[x,"Insignia"],[b,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[v,[x,"NextBook"],[b,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[x,"Voice"],v,[b,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[x,"LvTel"],v,[b,E]],[/\b(ph-1) /i],[v,[x,"Essential"],[b,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[v,[x,"Envizen"],[b,P]],[/\b(trio[-\w\. ]+) b/i],[v,[x,"MachSpeed"],[b,P]],[/\btu_(1491) b/i],[v,[x,"Rotor"],[b,P]],[/(shield[\w ]+) b/i],[v,[x,"Nvidia"],[b,P]],[/(sprint) (\w+)/i],[x,v,[b,E]],[/(kin\.[onetw]{3})/i],[[v,/\./g," "],[x,W],[b,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[v,[x,we],[b,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[v,[x,we],[b,E]],[/smart-tv.+(samsung)/i],[x,[b,O]],[/hbbtv.+maple;(\d+)/i],[[v,/^/,"SmartTV"],[x,he],[b,O]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,oe],[b,O]],[/(apple) ?tv/i],[x,[v,q+" TV"],[b,O]],[/crkey/i],[[v,Y+"cast"],[x,Q],[b,O]],[/droid.+aft(\w+)( bui|\))/i],[v,[x,H],[b,O]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[v,[x,de],[b,O]],[/(bravia[\w ]+)( bui|\))/i],[v,[x,pe],[b,O]],[/(mitv-\w{5}) bui/i],[v,[x,ge],[b,O]],[/Hbbtv.*(technisat) (.*);/i],[x,v,[b,O]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,Et],[v,Et],[b,O]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,O]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[x,v,[b,j]],[/droid.+; (shield) bui/i],[v,[x,"Nvidia"],[b,j]],[/(playstation [345portablevi]+)/i],[v,[x,pe],[b,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[v,[x,W],[b,j]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[v,[x,he],[b,k]],[/((pebble))app/i],[x,v,[b,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[v,[x,q],[b,k]],[/droid.+; (glass) \d/i],[v,[x,Q],[b,k]],[/droid.+; (wt63?0{2,3})\)/i],[v,[x,we],[b,k]],[/(quest( \d| pro)?)/i],[v,[x,ye],[b,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[b,F]],[/(aeobc)\b/i],[v,[x,H],[b,F]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[v,[b,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[v,[b,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,E]],[/(android[-\w\. ]{0,9});.+buil/i],[v,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[y,X+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,w],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[y,[w,Bn,vt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Bn,vt],[y,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ce],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,y],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[y,w],[/\(bb(10);/i],[w,[y,ne]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[y,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[y,Y+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,ve],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,w],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,w]]},yt=function(ke,Fe){if(typeof ke===d&&(Fe=ke,ke=r),!(this instanceof yt))return new yt(ke,Fe).getResult();var Ie=typeof n!==u&&n.navigator?n.navigator:r,xe=ke||(Ie&&Ie.userAgent?Ie.userAgent:i),ft=Ie&&Ie.userAgentData?Ie.userAgentData:r,Vt=Fe?fe(Kt,Fe):Kt,$e=Ie&&Ie.userAgent==xe;return this.getBrowser=function(){var Oe={};return Oe[y]=r,Oe[w]=r,mt.call(Oe,xe,Vt.browser),Oe[g]=an(Oe[w]),$e&&Ie&&Ie.brave&&typeof Ie.brave.isBrave==c&&(Oe[y]="Brave"),Oe},this.getCPU=function(){var Oe={};return Oe[T]=r,mt.call(Oe,xe,Vt.cpu),Oe},this.getDevice=function(){var Oe={};return Oe[x]=r,Oe[v]=r,Oe[b]=r,mt.call(Oe,xe,Vt.device),$e&&!Oe[b]&&ft&&ft.mobile&&(Oe[b]=E),$e&&Oe[v]=="Macintosh"&&Ie&&typeof Ie.standalone!==u&&Ie.maxTouchPoints&&Ie.maxTouchPoints>2&&(Oe[v]="iPad",Oe[b]=P),Oe},this.getEngine=function(){var Oe={};return Oe[y]=r,Oe[w]=r,mt.call(Oe,xe,Vt.engine),Oe},this.getOS=function(){var Oe={};return Oe[y]=r,Oe[w]=r,mt.call(Oe,xe,Vt.os),$e&&!Oe[y]&&ft&&ft.platform&&ft.platform!="Unknown"&&(Oe[y]=ft.platform.replace(/chrome os/i,ve).replace(/macos/i,Ce)),Oe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return xe},this.setUA=function(Oe){return xe=typeof Oe===p&&Oe.length>B?Et(Oe,B):Oe,this},this.setUA(xe),this};yt.VERSION=o,yt.BROWSER=Ge([y,w,g]),yt.CPU=Ge([T]),yt.DEVICE=Ge([v,x,b,j,E,O,P,k,F]),yt.ENGINE=yt.OS=Ge([y,w]),e.exports&&(t=e.exports=yt),t.UAParser=yt;var $t=typeof n!==u&&(n.jQuery||n.Zepto);if($t&&!$t.ua){var It=new yt;$t.ua=It.getResult(),$t.ua.get=function(){return It.getUA()},$t.ua.set=function(ke){It.setUA(ke);var Fe=It.getResult();for(var Ie in Fe)$t.ua[Ie]=Fe[Ie]}}})(typeof window=="object"?window:wn)})(xg,xg.exports);var Jne=xg.exports;Object.defineProperty(Ae,"__esModule",{value:!0});function ere(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var hn=A,ht=ere(hn),ZT=Jne,ri=new ZT,mn=ri.getBrowser(),tre=ri.getCPU(),Jn=ri.getDevice(),J0=ri.getEngine(),oi=ri.getOS(),Vl=ri.getUA(),QT=function(t){return ri.setUA(t)},Wl=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new ZT(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},JT=Object.freeze({ClientUAInstance:ri,browser:mn,cpu:tre,device:Jn,engine:J0,os:oi,ua:Vl,setUa:QT,parseUserAgent:Wl});function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){sre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qa=function(t){return typeof t}:Qa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function rre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ore(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ire(e,t,n){return t&&ore(e.prototype,t),e}function sre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cg(){return Cg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cg.apply(this,arguments)}function are(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sg(e,t)}function wg(e){return wg=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wg(e)}function Sg(e,t){return Sg=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Sg(e,t)}function lre(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Sr(e,t){if(e==null)return{};var n=lre(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Su(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cre(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Su(e)}function ure(e,t){return dre(e)||fre(e,t)||pre(e,t)||hre()}function dre(e){if(Array.isArray(e))return e}function fre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,c=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw c}}return r}}function pre(e,t){if(e){if(typeof e=="string")return ew(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ew(e,t)}}function ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
225
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pn={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Ln={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ia={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},gre={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},mre=function(t){switch(t){case pn.Mobile:return{isMobile:!0};case pn.Tablet:return{isTablet:!0};case pn.SmartTv:return{isSmartTV:!0};case pn.Console:return{isConsole:!0};case pn.Wearable:return{isWearable:!0};case pn.Browser:return{isBrowser:!0};case pn.Embedded:return{isEmbedded:!0};default:return gre}},vre=function(t){return QT(t)},De=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},ev=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},tv=function(t){var n=ev();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},yre=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:De(n.major),browserFullVersion:De(n.version),browserName:De(n.name),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}},tw=function(t,n,r,o){return nre({},t,{vendor:De(n.vendor),model:De(n.model),os:De(r.name),osVersion:De(r.version),ua:De(o)})},bre=function(t,n,r,o){return{isSmartTV:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},xre=function(t,n,r,o){return{isConsole:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},Cre=function(t,n,r,o){return{isWearable:t,engineName:De(n.name),engineVersion:De(n.version),osName:De(r.name),osVersion:De(r.version),userAgent:De(o)}},wre=function(t,n,r,o,i){return{isEmbedded:t,vendor:De(n.vendor),model:De(n.model),engineName:De(r.name),engineVersion:De(r.version),osName:De(o.name),osVersion:De(o.version),userAgent:De(i)}};function Sre(e){var t=e?Wl(e):JT,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,c=mre(n.type),u=c.isBrowser,d=c.isMobile,p=c.isTablet,g=c.isSmartTV,v=c.isConsole,y=c.isWearable,b=c.isEmbedded;if(u)return yre(u,r,o,i,a);if(g)return bre(g,o,i,a);if(v)return xre(v,o,i,a);if(d||p)return tw(c,n,i,a);if(y)return Cre(y,o,i,a);if(b)return wre(b,n,o,i,a)}var eI=function(t){var n=t.type;return n===pn.Mobile},tI=function(t){var n=t.type;return n===pn.Tablet},nI=function(t){var n=t.type;return n===pn.Mobile||n===pn.Tablet},rI=function(t){var n=t.type;return n===pn.SmartTv},gd=function(t){var n=t.type;return n===pn.Browser},oI=function(t){var n=t.type;return n===pn.Wearable},iI=function(t){var n=t.type;return n===pn.Console},sI=function(t){var n=t.type;return n===pn.Embedded},aI=function(t){var n=t.vendor;return De(n)},lI=function(t){var n=t.model;return De(n)},cI=function(t){var n=t.type;return De(n,"browser")},uI=function(t){var n=t.name;return n===ia.Android},dI=function(t){var n=t.name;return n===ia.Windows},fI=function(t){var n=t.name;return n===ia.MAC_OS},pI=function(t){var n=t.name;return n===ia.WindowsPhone},hI=function(t){var n=t.name;return n===ia.IOS},gI=function(t){var n=t.version;return De(n)},mI=function(t){var n=t.name;return De(n)},vI=function(t){var n=t.name;return n===Ln.Chrome},yI=function(t){var n=t.name;return n===Ln.Firefox},bI=function(t){var n=t.name;return n===Ln.Chromium},md=function(t){var n=t.name;return n===Ln.Edge},xI=function(t){var n=t.name;return n===Ln.Yandex},CI=function(t){var n=t.name;return n===Ln.Safari||n===Ln.MobileSafari},wI=function(t){var n=t.name;return n===Ln.MobileSafari},SI=function(t){var n=t.name;return n===Ln.Opera},AI=function(t){var n=t.name;return n===Ln.InternetExplorer||n===Ln.Ie},EI=function(t){var n=t.name;return n===Ln.MIUI},TI=function(t){var n=t.name;return n===Ln.SamsungBrowser},II=function(t){var n=t.version;return De(n)},OI=function(t){var n=t.major;return De(n)},PI=function(t){var n=t.name;return De(n)},jI=function(t){var n=t.name;return De(n)},RI=function(t){var n=t.version;return De(n)},MI=function(){var t=ev(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Fs=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},kI=function(){var t=ev();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Nr=function(){return tv("iPad")},FI=function(){return tv("iPhone")},DI=function(){return tv("iPod")},_I=function(t){return De(t)};function LI(e){var t=e||JT,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:rI(n),isConsole:iI(n),isWearable:oI(n),isEmbedded:sI(n),isMobileSafari:wI(r)||Nr(),isChromium:bI(r),isMobile:nI(n)||Nr(),isMobileOnly:eI(n),isTablet:tI(n)||Nr(),isBrowser:gd(n),isDesktop:gd(n),isAndroid:uI(o),isWinPhone:pI(o),isIOS:hI(o)||Nr(),isChrome:vI(r),isFirefox:yI(r),isSafari:CI(r),isOpera:SI(r),isIE:AI(r),osVersion:gI(o),osName:mI(o),fullBrowserVersion:II(r),browserVersion:OI(r),browserName:PI(r),mobileVendor:aI(n),mobileModel:lI(n),engineName:jI(i),engineVersion:RI(i),getUA:_I(a),isEdge:md(r)||Fs(a),isYandex:xI(r),deviceType:cI(n),isIOS13:kI(),isIPad13:Nr(),isIPhone13:FI(),isIPod13:DI(),isElectron:MI(),isEdgeChromium:Fs(a),isLegacyEdge:md(r)&&!Fs(a),isWindows:dI(o),isMacOs:fI(o),isMIUI:EI(r),isSamsungBrowser:TI(r)}}var BI=rI(Jn),NI=iI(Jn),$I=oI(Jn),Are=sI(Jn),Ere=wI(mn)||Nr(),Tre=bI(mn),hf=nI(Jn)||Nr(),VI=eI(Jn),WI=tI(Jn)||Nr(),zI=gd(Jn),Ire=gd(Jn),UI=uI(oi),HI=pI(oi),GI=hI(oi)||Nr(),Ore=vI(mn),Pre=yI(mn),jre=CI(mn),Rre=SI(mn),qI=AI(mn),Mre=gI(oi),kre=mI(oi),Fre=II(mn),Dre=OI(mn),_re=PI(mn),Lre=aI(Jn),Bre=lI(Jn),Nre=jI(J0),$re=RI(J0),Vre=_I(Vl),Wre=md(mn)||Fs(Vl),zre=xI(mn),Ure=cI(Jn),Hre=kI(),Gre=Nr(),qre=FI(),Yre=DI(),Kre=MI(),Xre=Fs(Vl),Zre=md(mn)&&!Fs(Vl),Qre=dI(oi),Jre=fI(oi),eoe=EI(mn),toe=TI(mn),noe=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=Wl(t),r=n.device,o=n.browser,i=n.os,a=n.engine,c=n.ua;return LI({device:r,browser:o,os:i,engine:a,ua:c})},roe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return UI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},ooe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return zI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},ioe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return qI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},soe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return GI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},aoe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return hf?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},loe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return WI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},coe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return HI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},uoe=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=Sr(t,["renderWithFragment","children","viewClassName","style"]);return VI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},doe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return BI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},foe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return NI?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},poe=function(t){var n=t.renderWithFragment,r=t.children,o=Sr(t,["renderWithFragment","children"]);return $I?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",o,r):null},hoe=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=Sr(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?ht.createElement(hn.Fragment,null,r):ht.createElement("div",i,r):null};function goe(e){return function(t){are(n,t);function n(r){var o;return rre(this,n),o=cre(this,wg(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(Su(o)),o.onOrientationChange=o.onOrientationChange.bind(Su(o)),o.onPageLoad=o.onPageLoad.bind(Su(o)),o.state={isLandscape:!1,isPortrait:!1},o}return ire(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":Qa(window))!==void 0&&hf&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ht.createElement(e,Cg({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ht.Component)}function moe(){var e=hn.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=ure(e,2),n=t[0],r=t[1],o=hn.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return hn.useEffect(function(){return(typeof window>"u"?"undefined":Qa(window))!==void 0&&hf&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function YI(e){var t=e||window.navigator.userAgent;return Wl(t)}function voe(e){var t=e||window.navigator.userAgent,n=YI(t),r=LI(n);return[r,n]}Ae.AndroidView=roe;Ae.BrowserTypes=Ln;var yoe=Ae.BrowserView=ooe;Ae.ConsoleView=foe;Ae.CustomView=hoe;Ae.IEView=ioe;Ae.IOSView=soe;Ae.MobileOnlyView=uoe;var boe=Ae.MobileView=aoe;Ae.OsTypes=ia;Ae.SmartTVView=doe;Ae.TabletView=loe;Ae.WearableView=poe;Ae.WinPhoneView=coe;Ae.browserName=_re;Ae.browserVersion=Dre;Ae.deviceDetect=Sre;Ae.deviceType=Ure;Ae.engineName=Nre;Ae.engineVersion=$re;Ae.fullBrowserVersion=Fre;Ae.getSelectorsByUserAgent=noe;Ae.getUA=Vre;Ae.isAndroid=UI;Ae.isBrowser=zI;Ae.isChrome=Ore;Ae.isChromium=Tre;Ae.isConsole=NI;Ae.isDesktop=Ire;Ae.isEdge=Wre;Ae.isEdgeChromium=Xre;Ae.isElectron=Kre;Ae.isEmbedded=Are;Ae.isFirefox=Pre;Ae.isIE=qI;Ae.isIOS=GI;Ae.isIOS13=Hre;Ae.isIPad13=Gre;Ae.isIPhone13=qre;Ae.isIPod13=Yre;Ae.isLegacyEdge=Zre;Ae.isMIUI=eoe;Ae.isMacOs=Jre;Ae.isMobile=hf;Ae.isMobileOnly=VI;Ae.isMobileSafari=Ere;Ae.isOpera=Rre;Ae.isSafari=jre;Ae.isSamsungBrowser=toe;Ae.isSmartTV=BI;Ae.isTablet=WI;Ae.isWearable=$I;Ae.isWinPhone=HI;Ae.isWindows=Qre;Ae.isYandex=zre;Ae.mobileModel=Bre;Ae.mobileVendor=Lre;Ae.osName=kre;Ae.osVersion=Mre;Ae.parseUserAgent=Wl;Ae.setUserAgent=vre;Ae.useDeviceData=YI;Ae.useDeviceSelectors=voe;Ae.useMobileOrientation=moe;Ae.withOrientationChange=goe;var xoe=typeof global=="object"&&global&&global.Object===Object&&global,Coe=typeof self=="object"&&self&&self.Object===Object&&self,KI=xoe||Coe||Function("return this")(),vd=KI.Symbol,XI=Object.prototype,woe=XI.hasOwnProperty,Soe=XI.toString,_a=vd?vd.toStringTag:void 0;function Aoe(e){var t=woe.call(e,_a),n=e[_a];try{e[_a]=void 0;var r=!0}catch{}var o=Soe.call(e);return r&&(t?e[_a]=n:delete e[_a]),o}var Eoe=Object.prototype,Toe=Eoe.toString;function Ioe(e){return Toe.call(e)}var Ooe="[object Null]",Poe="[object Undefined]",nw=vd?vd.toStringTag:void 0;function joe(e){return e==null?e===void 0?Poe:Ooe:nw&&nw in Object(e)?Aoe(e):Ioe(e)}function Roe(e){return e!=null&&typeof e=="object"}var Moe="[object Symbol]";function koe(e){return typeof e=="symbol"||Roe(e)&&joe(e)==Moe}var Foe=/\s/;function Doe(e){for(var t=e.length;t--&&Foe.test(e.charAt(t)););return t}var _oe=/^\s+/;function Loe(e){return e&&e.slice(0,Doe(e)+1).replace(_oe,"")}function yd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rw=NaN,Boe=/^[-+]0x[0-9a-f]+$/i,Noe=/^0b[01]+$/i,$oe=/^0o[0-7]+$/i,Voe=parseInt;function ow(e){if(typeof e=="number")return e;if(koe(e))return rw;if(yd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Loe(e);var n=Noe.test(e);return n||$oe.test(e)?Voe(e.slice(2),n?2:8):Boe.test(e)?rw:+e}var bh=function(){return KI.Date.now()},Woe="Expected a function",zoe=Math.max,Uoe=Math.min;function Au(e,t,n){var r,o,i,a,c,u,d=0,p=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(Woe);t=ow(t)||0,yd(n)&&(p=!!n.leading,g="maxWait"in n,i=g?zoe(ow(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function y(k){var F=r,B=o;return r=o=void 0,d=k,a=e.apply(B,F),a}function b(k){return d=k,c=setTimeout(T,t),p?y(k):a}function x(k){var F=k-u,B=k-d,H=t-F;return g?Uoe(H,i-B):H}function w(k){var F=k-u,B=k-d;return u===void 0||F>=t||F<0||g&&B>=i}function T(){var k=bh();if(w(k))return j(k);c=setTimeout(T,x(k))}function j(k){return c=void 0,v&&r?y(k):(r=o=void 0,a)}function E(){c!==void 0&&clearTimeout(c),d=0,r=u=o=c=void 0}function P(){return c===void 0?a:j(bh())}function O(){var k=bh(),F=w(k);if(r=arguments,o=this,u=k,F){if(c===void 0)return b(u);if(g)return clearTimeout(c),c=setTimeout(T,t),y(u)}return c===void 0&&(c=setTimeout(T,t)),a}return O.cancel=E,O.flush=P,O}var Hoe="Expected a function";function Goe(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Hoe);return yd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Au(e,t,{leading:r,maxWait:t,trailing:o})}var js=function(){return js=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},js.apply(this,arguments)};function ZI(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function QI(e){return!e||!e.ownerDocument?document:e.ownerDocument}var JI=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var a=i[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=o.value}}return r},t);return n};function eO(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function tO(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function nO(e){return".".concat(e.split(" ").join("."))}var nv=!!(typeof window<"u"&&window.document&&window.document.createElement),qoe=Object.freeze({__proto__:null,addClasses:eO,canUseDOM:nv,classNamesToQuery:nO,getElementDocument:QI,getElementWindow:ZI,getOptions:JI,removeClasses:tO}),xs=null,iw=null;nv&&window.addEventListener("resize",function(){iw!==window.devicePixelRatio&&(iw=window.devicePixelRatio,xs=null)});function sw(){if(xs===null){if(typeof document>"u")return xs=0,xs;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),xs=n}return xs}var Lo=ZI,xh=QI,Yoe=JI,Bo=eO,No=tO,Pn=nO,iu=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=Lo(r.el);r.scrollXTicking||(o.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(o.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Bo(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){No(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Bo(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){No(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(o){r.mouseX=o.clientX,r.mouseY=o.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var i,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(i||a)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(i&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(o,"x"):r.onTrackClick(o,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(o,"y"):r.onTrackClick(o,"y"))))}},this.drag=function(o){var i,a,c,u,d,p,g,v,y,b,x;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,T=r.axis[r.draggedAxis].track,j=(a=(i=T.rect)===null||i===void 0?void 0:i[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,E=r.axis[r.draggedAxis].scrollbar,P=(u=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,O=parseInt((p=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&p!==void 0?p:"0px",10);o.preventDefault(),o.stopPropagation(),r.draggedAxis==="y"?w=o.pageY:w=o.pageX;var k=w-((v=(g=T.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;k=r.draggedAxis==="x"&&r.isRtl?((b=(y=T.rect)===null||y===void 0?void 0:y[r.axis[r.draggedAxis].sizeAttr])!==null&&b!==void 0?b:0)-E.size-k:k;var F=k/(j-E.size),B=F*(P-O);r.draggedAxis==="x"&&r.isRtl&&(B=!((x=e.getRtlHelpers())===null||x===void 0)&&x.isScrollingToNegative?-B:B),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=B}},this.onEndDrag=function(o){r.isDragging=!1;var i=xh(r.el),a=Lo(r.el);o.preventDefault(),o.stopPropagation(),No(r.el,r.classNames.dragging),r.onStopScrolling(),i.removeEventListener("mousemove",r.drag,!0),i.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){i.removeEventListener("click",r.preventClick,!0),i.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=js(js({},e.defaultOptions),n),this.classNames=js(js({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Goe(this._onMouseMove,64),this.onWindowResize=Au(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Au(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Au(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:sw()}catch{return sw()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=xh(t),o=Lo(t);return{top:n.top+(o.pageYOffset||r.documentElement.scrollTop),left:n.left+(o.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){nv&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Pn(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Pn(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Pn(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Pn(this.classNames.offset)),this.maskEl=this.el.querySelector(Pn(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Pn(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Pn(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Pn(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Pn(this.classNames.track)).concat(Pn(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Pn(this.classNames.track)).concat(Pn(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Pn(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Pn(this.classNames.scrollbar)))||null,this.options.autoHide||(Bo(this.axis.x.scrollbar.el,this.classNames.visible),Bo(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Lo(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,i=r.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){o&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Lo(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||n>0,i=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=o?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>i-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],i=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,a=i/o,c;return c=Math.max(~~(a*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,o;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?d:-d);var p=d/(a-u),g=~~((c-i.size)*p);g=t==="x"&&this.isRtl?-g+(c-i.size):g,i.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Bo(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(No(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Bo(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Bo(n.scrollbar.el,this.classNames.hover):No(n.scrollbar.el,this.classNames.hover)):(No(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),No(this.axis[t].track.el,this.classNames.hover),No(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var o=xh(this.el),i=Lo(this.el),a=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Bo(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,o,i,a,c;n===void 0&&(n="y");var u=this.axis[n];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Lo(this.el);this.axis[n].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var p=this.axis[n].scrollbar,g=(i=(o=p.rect)===null||o===void 0?void 0:o[this.axis[n].offsetAttr])!==null&&i!==void 0?i:0,v=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),y=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],b=n==="y"?this.mouseY-g:this.mouseX-g,x=b<0?-1:1,w=x===-1?y-v:y+v,T=40,j=function(){r.contentWrapperEl&&(x===-1?y>w&&(y-=T,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)):y<w&&(y+=T,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=y,d.requestAnimationFrame(j)))};j()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Lo(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return r.call(o,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Yoe,e.helpers=qoe,e}(),Gn=function(){return Gn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gn.apply(this,arguments)};function Koe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var rO=D.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,o=r===void 0?{}:r,i=Koe(e,["children","scrollableNodeProps"]),a=D.useRef(),c=D.useRef(),u=D.useRef(),d={},p={};Object.keys(i).forEach(function(y){Object.prototype.hasOwnProperty.call(iu.defaultOptions,y)?d[y]=i[y]:p[y]=i[y]});var g=Gn(Gn({},iu.defaultOptions.classNames),d.classNames),v=Gn(Gn({},o),{className:"".concat(g.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||iu.defaultOptions.ariaLabel});return D.useEffect(function(){var y;return c.current=v.ref?v.ref.current:c.current,a.current&&(y=new iu(a.current,Gn(Gn(Gn({},d),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(y):t&&(t.current=y)),function(){y==null||y.unMount(),y=null,typeof t=="function"&&t(null)}},[]),D.createElement("div",Gn({"data-simplebar":"init",ref:a},p),D.createElement("div",{className:g.wrapper},D.createElement("div",{className:g.heightAutoObserverWrapperEl},D.createElement("div",{className:g.heightAutoObserverEl})),D.createElement("div",{className:g.mask},D.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Gn(Gn({},v),{ref:c}),contentNodeRef:u,contentNodeProps:{className:g.contentEl,ref:u}}):D.createElement("div",Gn({},v),D.createElement("div",{className:g.contentEl},n)))),D.createElement("div",{className:g.placeholder})),D.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},D.createElement("div",{className:g.scrollbar})),D.createElement("div",{className:"".concat(g.track," simplebar-vertical")},D.createElement("div",{className:g.scrollbar})))});rO.displayName="SimpleBar";const Xoe=ce(yoe)({flexGrow:1,height:"100%",overflow:"hidden"}),Zoe=ce(rO)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:Je(e.palette.grey[500],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-track.simplebar-vertical":{width:10},"& .simplebar-track.simplebar-horizontal .simplebar-scrollbar":{height:6},"& .simplebar-mask":{zIndex:"inherit"}}));function oO({children:e,sx:t,...n}){return f.jsxs(f.Fragment,{children:[f.jsx(Xoe,{children:f.jsx(Zoe,{timeout:500,clickOnTrack:!1,sx:t,...n,children:e})}),f.jsx(boe,{children:f.jsx(S.Box,{sx:{overflowX:"auto",...t},...n,children:e})})]})}function iO(e){const t=S.useTheme(),n=Mr(e,{flexShrink:{md:0},zIndex:1200}),{downLg:r}=Qn(),{open:o,handleDrawerToggle:i,width:a}=Gi(),c=r?S.Drawer:Qne,u=document.body,d=A.useMemo(()=>r?{container:u,variant:"temporary",onClose:i,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",lg:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:a,borderRight:`1px solid ${t.palette.divider}`,backgroundImage:"none",boxShadow:"inherit",overflow:"auto"}}}:{variant:"permanent"},[r,u,i,a,t.palette.divider]);return f.jsx(S.Box,{component:"nav",sx:n,"aria-label":"mailbox folders",children:f.jsxs(c,{...d,open:o,children:[f.jsx(XT,{}),f.jsx(oO,{sx:{"& .simplebar-content":{display:"flex",flexDirection:"column"}},children:e.children})]})})}function rv(e){const{name:t,version:n,copy:r="© Applica Software Guru for"}=e;return f.jsx(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",flexGrow:1,height:"auto",sx:{pt:1},children:f.jsxs(S.Typography,{variant:"caption",children:[f.jsx("span",{dangerouslySetInnerHTML:{__html:r||""}})," ",t," - ",n]})})}const sO=ce(S.AppBar,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>{const{drawerWidth:n}=Sn();return{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...!t&&{width:`calc(100% - ${e.spacing(7.5)})`},...t&&{marginLeft:n,width:`calc(100% - ${n}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}}}),aO=A.forwardRef(function(t,n){const r=Mr(t,{color:"text.primary"},{defaults:!0});return f.jsx(S.Button,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),Qoe=A.forwardRef(function(t,n){const r=Mr(t,{color:"text.primary"},{defaults:!0});return f.jsx(Hd,{ref:n,...t,color:"secondary",variant:"text",sx:r})}),sa=A.forwardRef(function(t,n){const r=Mr(t,{color:"text.primary",borderStyle:"none",padding:1,fontSize:"1.5rem",width:36,height:36},{defaults:!0});return f.jsx(S.ToggleButton,{ref:n,...t,color:"secondary",sx:r})});function lO({onClick:e=void 0}){const{open:t,anchorEl:n,handleClose:r,handleToggle:o}=ra(),[i,a]=Z.useLocaleState(),c=Z.useLocales();if(c.length===0)return null;function u(d){if(e){e(d,r);return}a(d),r()}return f.jsxs(f.Fragment,{children:[f.jsx(aO,{value:"locale",onClick:o,sx:{minWidth:"auto"},children:f.jsxs(S.Stack,{direction:"row",spacing:.5,children:[f.jsx(S.Typography,{variant:"body1",children:i.toUpperCase()}),t?f.jsx(We.CaretUpOutlined,{}):f.jsx(We.CaretDownOutlined,{})]})}),f.jsx(S.Menu,{id:"menu-appbar",anchorEl:n,keepMounted:!0,open:t,onClose:r,children:c.map((d,p)=>f.jsx(S.MenuItem,{onClick:()=>u(d.locale),children:d.name},p))})]})}const Joe={ml:{xs:0,lg:-2}};function cO(){const{open:e,handleDrawerToggle:t}=Gi();return f.jsx(sa,{value:"drawer","aria-label":"open drawer",sx:Joe,onChange:t,selected:e,children:e?f.jsx(We.MenuFoldOutlined,{}):f.jsx(We.MenuUnfoldOutlined,{})})}function uO(e){const t=A.useRef(),n=S.useTheme(),{downLg:r,horizontal:o}=Qn(),{open:i,width:a}=Gi(),c=r?S.AppBar:sO,d={position:"fixed",color:"inherit",elevation:0,sx:Mr(e,{borderBottom:`1px solid ${n.palette.divider}`,zIndex:1200,width:o?"100%":i?`calc(100% - ${a}px)`:{xs:"100%",lg:"calc(100% - 60px)"}})};return r||ee.extend(d,{open:i}),f.jsx(c,{ref:t,...d,children:f.jsxs(S.Toolbar,{sx:{"& > *":{marginX:n.spacing(.325)}},children:[!o&&f.jsx(cO,{}),e.children]})})}function eie(e){const t=S.useTheme(),{notification:n,onClick:r,selected:o,divider:i}=e,{resource:a}=pf(),c=Z.useNotify(),u=Z.useRedirect(),[d]=Z.useUpdate(a,{id:n==null?void 0:n.id,data:{...n,readed:Rr().toISOString()}},{onSuccess:()=>{n!=null&&n.resource?n!=null&&n.resource.startsWith("/")?(u(n==null?void 0:n.resource),r()):(r(),document.location.href=n==null?void 0:n.resource):r()},onFailure:()=>{c("resources.notifications.messages.readed.error","warning")}}),p=A.useCallback(()=>d(),[d]),[g]=Z.useLocaleState(),v=A.useMemo(()=>Rr(n.created).locale(g).fromNow(),[n,g]);return f.jsx(S.ListItem,{disablePadding:!0,divider:i,children:f.jsxs(S.ListItemButton,{selected:o,onClick:p,children:[f.jsx(S.ListItemAvatar,{children:f.jsx(S.Avatar,{sx:{color:"primary.main",bgcolor:"primary.lighter"},children:f.jsx(We.MessageOutlined,{})})}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",wordBreak:"break-word",width:"90%"},primary:n.title,secondary:n.content}),f.jsx(S.Box,{flexGrow:1,flexShrink:1,minWidth:t.spacing(2)}),f.jsx(S.ListItemText,{sx:{overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},primary:v,primaryTypographyProps:{variant:"caption"}})]})})}const tie={width:36,height:36,fontSize:"1rem"},nie={mt:"6px",ml:1,top:"auto",right:"auto",alignSelf:"flex-start",transform:"none"};function dO(){const{enable:e}=pf();return e?f.jsx(rie,{}):null}function rie(){const e=Z.useTranslate(),t=S.useTheme(),n=Z.useRefresh(),r=Z.useNotify(),{downMd:o}=Qn(),{resource:i}=pf(),[a,c]=A.useState([]),{data:u,isLoading:d}=Z.useGetList(i,{pagination:{page:1,perPage:25},sort:{field:"created",order:"DESC"},filter:{readed:!1}}),p=a.filter(j=>j.readed===null).length,{open:g,anchorEl:v,handleClose:y,handleToggle:b}=ra();A.useEffect(()=>{!d&&u&&c(u??[])},[u,d]);const x=a.filter(j=>!j.readed).map(j=>j.id),[w]=Z.useUpdateMany(i,{ids:x,data:{readed:Rr().toISOString()}},{onSuccess:()=>{n(),r("resources.notifications.messages.readed.done")},onError:()=>r("ra.notification.readed_error")}),T=A.useCallback(()=>{w()},[w]);return f.jsxs(f.Fragment,{children:[f.jsx(sa,{value:"notifications",selected:g,onChange:b,children:f.jsx(S.Badge,{badgeContent:p,color:"primary",children:f.jsx(We.BellOutlined,{})})}),f.jsx(S.Popper,{placement:o?"bottom":"bottom-end",open:g,anchorEl:v,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:j})=>f.jsx(Zo,{type:"grow",position:o?"top":"top-right",in:g,...j,children:f.jsx(S.Paper,{sx:{marginTop:1,boxShadow:t.customShadows.z1,width:"100%",minWidth:285,maxWidth:420,[t.breakpoints.down("md")]:{maxWidth:285}},children:f.jsx(S.ClickAwayListener,{onClickAway:y,children:f.jsxs(Mn,{title:e("ra.notification.title"),elevation:0,border:!1,content:!1,secondary:f.jsx(f.Fragment,{children:p>0&&f.jsx(S.Tooltip,{title:e("ra.notification.mark-as-read"),onClick:T,children:f.jsx(Hd,{color:"success",size:"small",children:f.jsx(We.CheckCircleOutlined,{style:{fontSize:"1.15rem"}})})})}),children:[f.jsx(S.List,{component:"nav",sx:{p:0,"& .MuiListItemButton-root":{py:.5,"&.Mui-selected":{bgcolor:"grey.50",color:"text.primary"},"& .MuiAvatar-root":tie,"& .MuiListItemSecondaryAction-root":{...nie,position:"relative"}},maxHeight:"calc(100vh - 240px)",overflow:"auto"},children:a.map((E,P)=>f.jsx(eie,{selected:p>0,notification:E,onClick:y,divider:P<a.length-1},E.id))}),f.jsx(S.ListItemButton,{sx:{textAlign:"center",py:"12px !important"},to:`/${i}`,LinkComponent:ut.Link,onClick:y,children:f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"primary",children:e("ra.notification.view_all")})})}),f.jsx(S.Divider,{})]})})})})})]})}function fO(){const[e,t]=A.useState(!1),n=A.useCallback(()=>t(!1),[t]),r=A.useCallback(()=>t(!0),[t]),o=Z.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{onClick:r,children:[f.jsx(S.ListItemIcon,{children:f.jsx(nn.Key,{})}),f.jsx(S.ListItemText,{primary:o("ra.auth.change_password")})]}),f.jsx(S.Dialog,{open:e,onClose:()=>t(!1),maxWidth:"xs",fullWidth:!0,children:f.jsx(z0,{onSuccess:n})})]})}function pO(){const e=Z.useLogout(),t=Z.useTranslate();return f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:e,children:[f.jsx(S.ListItemIcon,{children:f.jsx(nn.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:t("ra.auth.logout")})]})})}function hO(){const e=Z.useTranslate(),t=Z.useAuthProvider(),n=A.useCallback(()=>t.stopImpersonate().then(()=>document.location.href="/"),[t]),[r,o]=A.useState(!1);return A.useEffect(()=>{if(!t.isImpersonating){console.warn("The authProvider does not support the isImpersonating feature",t);return}t.isImpersonating().then(i=>o(i))},[t,o]),r?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{onClick:n,children:[f.jsx(S.ListItemIcon,{children:f.jsx(nn.LogoutOutlined,{})}),f.jsx(S.ListItemText,{primary:e("ra.auth.stop_impersonate")})]})}):null}function gO(e){var x;const{roles:t}=e,n=S.useTheme(),r=Z.useDataProvider(),{identity:o}=Z.useGetIdentity(),i=o!==void 0&&o.image&&o.image!==null&&o.image!=="",[a,c]=A.useState(null),{open:u,anchorEl:d,handleToggle:p,handleClose:g}=ra(),v=Z.useLogout(),y=A.useCallback(()=>{v()},[v]);A.useEffect(()=>{i&&r.getFile("/profile/me/image").then(w=>c(w))},[r,i]);const b=A.useMemo(()=>{var w;return A.isValidElement(t)?t:t?f.jsx(f.Fragment,{children:t}):(w=o==null?void 0:o.roles)==null?void 0:w.map(T=>T.name.replace("ROLE_","")).join(",")},[t,o]);return f.jsxs(f.Fragment,{children:[f.jsx(sa,{sx:{p:.25,width:"auto"},onClick:p,value:"profile",selected:u,children:f.jsxs(S.Stack,{direction:"row",spacing:2,alignItems:"center",sx:{p:.5},children:[f.jsx(Vu,{alt:(x=o==null?void 0:o.name)==null?void 0:x.toUpperCase(),src:a,size:"xs"}),f.jsx(S.Typography,{variant:"subtitle1",children:o==null?void 0:o.name})]})}),f.jsx(Ym,{placement:"bottom-end",open:u,anchorEl:d,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:w})=>f.jsx(Zo,{type:"grow",position:"top-right",in:u,...w,children:f.jsx(S.Paper,{sx:{boxShadow:n.customShadows.z1,width:290,minWidth:240,maxWidth:290,[n.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:g,children:f.jsxs(Mn,{elevation:0,border:!1,content:!1,children:[f.jsx(S.CardContent,{sx:{px:2.5,pt:3},children:f.jsxs(S.Grid,{container:!0,justifyContent:"space-between",alignItems:"center",children:[f.jsx(S.Grid,{item:!0,children:f.jsxs(S.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[f.jsx(Vu,{alt:"profile user",src:a,sx:{width:32,height:32}}),f.jsxs(S.Stack,{children:[f.jsx(S.Typography,{variant:"h6",children:o==null?void 0:o.name}),f.jsx(S.Typography,{variant:"body2",color:"textSecondary",children:b})]})]})}),f.jsx(S.Grid,{item:!0,children:f.jsx(S.Tooltip,{title:"Logout",children:f.jsx(Hd,{size:"large",sx:{color:"text.primary"},onClick:y,children:f.jsx(We.LogoutOutlined,{})})})})]})}),f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.List,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32}},children:[f.jsx(fO,{}),f.jsx(pO,{}),f.jsx(hO,{})]})})})]})})})})})]})}function mO(e){const t=gt(),{downMd:n}=Qn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=ra();return n?f.jsxs(f.Fragment,{children:[f.jsx(sa,{value:"drawer","aria-label":"open more menu","aria-controls":r?"menu-list-grow":void 0,"aria-haspopup":"true",onClick:i,selected:r,children:f.jsx(We.MoreOutlined,{})}),f.jsx(S.Popper,{placement:"bottom-end",open:r,anchorEl:o,role:void 0,transition:!0,disablePortal:!0,style:{width:"100%"},popperOptions:{modifiers:[{name:"offset",options:{offset:[0,9]}}]},children:({TransitionProps:c})=>f.jsx(Zo,{type:"fade",in:r,...c,children:f.jsx(S.Paper,{sx:{boxShadow:t.customShadows.z1},children:f.jsx(S.ClickAwayListener,{onClickAway:a,children:f.jsx(S.AppBar,{color:"inherit",children:f.jsx(S.Toolbar,{children:e.children})})})})})})]}):f.jsx(f.Fragment,{children:e.children})}function vO(e){return f.jsx(S.Box,{...e,flex:1})}function yO(e){const t=S.useTheme(),n=S.useScrollTrigger({disableHysteresis:!0,threshold:0}),{container:r}=Sn();return t.shadows[4]=t.customShadows.z1,f.jsx(S.AppBar,{elevation:n?4:0,sx:{top:60,bgcolor:t.palette.background.paper,width:"100%",height:62,justifyContent:"center",borderTop:`1px solid ${t.palette.divider}`,borderBottom:`1px solid ${t.palette.divider}`,zIndex:1098,color:t.palette.grey[500]},children:f.jsx(S.Container,{maxWidth:r?"xl":!1,children:f.jsx(S.Box,{sx:{display:"flex",alignItems:"center"},children:e.children})})})}function bO(e){const{horizontal:t}=Qn();return t?f.jsx(yO,{children:e.children}):f.jsx(iO,{children:e.children})}function Ja({item:e,level:t}){const n=gt(),{horizontal:r,downLg:o}=Qn(),{drawerOpen:i,openItem:a,activeItem:c,openDrawer:u}=pl();let d="_self";e.target&&(d="_blank");const p=(e==null?void 0:e.external)!==!1?{component:A.forwardRef((T,j)=>f.jsx(ut.Link,{...T,to:e.url,target:d,ref:j}))}:{component:"a",href:e.url,target:d},g=e.icon,v=e.icon?f.jsx(g,{style:{fontSize:i?"1rem":"1.25rem"}}):!1,y=a.findIndex(T=>T===e.id)>-1,{pathname:b}=ut.useLocation();A.useEffect(()=>{b.endsWith(e.url)&&c([e.id])},[b]);const x=n.palette.mode==="dark"?"grey.400":"text.primary",w=n.palette.mode==="dark"&&i?"text.primary":"primary.main";return f.jsx(f.Fragment,{children:r?f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,...i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{bgcolor:"transparent",color:w,"&:hover":{color:w,bgcolor:"transparent"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:36,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:v}):null,!v&&f.jsx(S.ListItemIcon,{sx:{color:y?"primary.main":"secondary.main",...!i&&{borderRadius:1.5,alignItems:"center",justifyContent:"flex-start","&:hover":{bgcolor:"transparent"}},...!i&&y&&{bgcolor:"transparent","&:hover":{bgcolor:"transparent"}}},children:f.jsx(Nm,{size:4,color:y?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:"inherit",children:e.title})}),(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]}):f.jsxs(S.ListItemButton,{...p,disabled:e.disabled,selected:y,sx:{zIndex:1201,pl:i?`${t*28}px`:1.5,py:!i&&t===1?1.25:1,...i&&{"&:hover":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter",borderRight:`2px solid ${n.palette.primary.main}`,color:w,"&:hover":{color:w,bgcolor:n.palette.mode==="dark"?"divider":"primary.lighter"}}},...!i&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},...o&&{onClick:()=>u(!1)},children:[v?f.jsx(S.ListItemIcon,{sx:{minWidth:28,color:y?w:x,...!i&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:n.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!i&&y&&{bgcolor:n.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:n.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:v}):null,i||!i&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",sx:{color:y?w:x},children:e.title})}):null,(i||!i&&t!==1)&&e.chip?f.jsx(S.Chip,{color:e.chip.color,variant:e.chip.variant,size:e.chip.size,label:e.chip.label,avatar:e.chip.avatar?f.jsx(S.Avatar,{children:e.chip.avatar}):null}):null]})})}const aw=ce(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:38,left:-5,width:10,height:10,backgroundColor:e.palette.background.paper,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderLeft:`1px solid ${e.palette.grey.A800}`,borderBottom:`1px solid ${e.palette.grey.A800}`}}));function el({menu:e,level:t,parentId:n,setSelectedItems:r,selectedItems:o,setSelectedLevel:i,selectedLevel:a}){var $;const c=gt(),{activeItem:u}=pl(),{horizontal:d}=Qn(),{drawerOpen:p}=pl(),g=ut.useNavigate(),[v,y]=A.useState(!1),[b,x]=A.useState(null),[w,T]=A.useState(null);function j(oe){T(null),i(t),p?(y(!v),x(b?null:e.id),r(b?"":e.id),e.url&&g(`${e.url}`)):T(oe==null?void 0:oe.currentTarget)}function E(){p||e.url&&g(`${e.url}`)}function P(oe){T(oe==null?void 0:oe.currentTarget)}function O(){y(!1),x(null),T(null)}A.useMemo(()=>{b===o?t===1&&y(!0):t===a&&(y(!1),x(null))},[o,t,b,a]);const{pathname:k}=ut.useLocation(),F=!!w;function B(oe,W){oe.forEach(J=>{J.url===k&&(y(!0),x(W))})}A.useEffect(()=>{y(!1),x(null),F&&T(null),e.children&&e.children.forEach(oe=>{var W;(W=oe.children)!=null&&W.length&&B(oe.children,e.id),oe.url===k&&(x(e.id),y(!0)),k.includes(oe.url)&&(x(e.id),y(!0))})},[k,e.children]),A.useEffect(()=>{e.url===k&&b!==e.id&&(u([e.id]),x(e.id),T(null),y(!0))},[k,e,b,u]);const H=($=e.children)==null?void 0:$.map(oe=>{switch(oe.type){case"collapse":return f.jsx(el,{setSelectedItems:r,setSelectedLevel:i,selectedLevel:a,selectedItems:o,menu:oe,level:t+1,parentId:n},oe.id);case"item":return f.jsx(Ja,{item:oe,level:t+1},oe.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Collapse or Item"},oe.id)}}),q=b===e.id,U=t===1?f.jsx(We.BorderOutlined,{style:{fontSize:"1rem"}}):!1,ne=e.icon,te=e.icon?f.jsx(ne,{style:{fontSize:p?"1rem":"1.25rem"}}):U,Y=c.palette.mode==="dark"?"grey.400":"text.primary",X=c.palette.mode==="dark"&&p?c.palette.text.primary:c.palette.primary.main,N=F?`collapse-pop-${e.id}`:void 0,Q={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"};return f.jsx(f.Fragment,{children:d?f.jsx(f.Fragment,{children:f.jsxs(S.ListItemButton,{id:`boundary-${N}`,disableRipple:!0,selected:q,onMouseEnter:P,onMouseLeave:O,onClick:P,"aria-describedby":N,sx:{"&.Mui-selected":{bgcolor:"transparent"}},children:[f.jsxs(S.Box,{onClick:E,sx:Q,children:[te?f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,color:c.palette.secondary.dark},children:te}):null,!te&&t!==1&&f.jsx(S.ListItemIcon,{sx:{my:"auto",minWidth:e.icon?36:18,bgcolor:"transparent","&:hover":{bgcolor:"transparent"}},children:f.jsx(Nm,{size:4,color:q?"primary":"secondary"})}),f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"body1",color:"inherit",sx:{my:"auto"},children:e.title})}),F?f.jsx(We.RightOutlined,{}):f.jsx(We.DownOutlined,{})]}),w?f.jsx(aw,{id:N,open:F,anchorEl:w,placement:"right-start",style:{zIndex:2001},modifiers:[{name:"offset",options:{offset:[-10,0]}}],children:({TransitionProps:oe})=>f.jsx(Zo,{in:F,...oe,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,py:.5,boxShadow:c.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:H})})})})}):null]})}):f.jsxs(f.Fragment,{children:[f.jsxs(S.ListItemButton,{disableRipple:!0,selected:b===e.id,...!p&&{onMouseEnter:j,onMouseLeave:O},onClick:j,sx:{pl:p?`${t*28}px`:1.5,py:!p&&t===1?1.25:1,...p&&{"&:hover":{bgcolor:c.palette.mode==="dark"?"divider":"primary.lighter"},"&.Mui-selected":{bgcolor:"transparent",color:X,"&:hover":{color:X,bgcolor:c.palette.mode==="dark"?"divider":"transparent"}}},...!p&&{"&:hover":{bgcolor:"transparent"},"&.Mui-selected":{"&:hover":{bgcolor:"transparent"},bgcolor:"transparent"}}},children:[te?f.jsx(S.ListItemIcon,{onClick:E,sx:{minWidth:28,color:b===e.id?"primary.main":Y,...!p&&{borderRadius:1.5,width:36,height:36,alignItems:"center",justifyContent:"center","&:hover":{bgcolor:c.palette.mode==="dark"?"secondary.light":"secondary.lighter"}},...!p&&b===e.id&&{bgcolor:c.palette.mode==="dark"?"primary.900":"primary.lighter","&:hover":{bgcolor:c.palette.mode==="dark"?"primary.darker":"primary.lighter"}}},children:te}):null,p||!p&&t!==1?f.jsx(S.ListItemText,{primary:f.jsx(S.Typography,{variant:"h6",color:b===e.id?"primary":Y,children:e.title}),secondary:e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null}):null,p||!p&&t!==1?F||v?f.jsx(We.UpOutlined,{style:{fontSize:"0.625rem",marginLeft:1,color:c.palette.primary.main}}):f.jsx(We.DownOutlined,{style:{fontSize:"0.625rem",marginLeft:1}}):null,!p&&f.jsx(aw,{open:F,anchorEl:w,placement:"right-start",style:{zIndex:2001},popperOptions:{modifiers:[{name:"offset",options:{offset:[-12,1]}}]},children:({TransitionProps:oe})=>f.jsx(Zo,{in:F,...oe,children:f.jsx(S.Paper,{sx:{overflow:"hidden",mt:1.5,boxShadow:c.customShadows.z1,backgroundImage:"none",border:`1px solid ${c.palette.divider}`},children:f.jsx(S.ClickAwayListener,{onClickAway:O,children:f.jsx(S.Box,{children:H})})})})})]}),p?f.jsx(S.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:f.jsx(S.List,{sx:{p:0},children:H})}):null]})})}const oie=ce(S.Popper)(({theme:e})=>({overflow:"visible",zIndex:1202,minWidth:180,"&:before":{content:'""',display:"block",position:"absolute",top:5,left:32,width:12,height:12,transform:"translateY(-50%) rotate(45deg)",zIndex:120,borderWidth:"6px",borderStyle:"solid",borderColor:`${e.palette.background.paper} transparent transparent ${e.palette.background.paper}`}}));function xO({item:e,lastItem:t,remItems:n,lastItemId:r,setSelectedItems:o,selectedItems:i,setSelectedLevel:a,selectedLevel:c}){var N,Q;const u=gt(),d=_.useTranslate(),{pathname:p}={pathname:""},{horizontal:g,downLg:v}=Qn(),y=pl(),{drawerOpen:b,selectedID:x,activeID:w}=y,[T,j]=A.useState(null),[E,P]=A.useState(e),O=!!T;A.useEffect(()=>{if(t)if(e.id===r){const $={...e},oe=n.map(W=>W.elements);$.children=oe.flat(1),P($)}else P(e)},[e,t,v]);function k($,oe){$.forEach(W=>{var J;(J=W.children)!=null&&J.length&&k(W.children,E.id),W.url===p&&w(oe)})}function F($){($.children?$.children:[]).forEach(W=>{var J;(J=W.children)!=null&&J.length&&k(W.children,E.id),W.url===p&&w(E.id)})}A.useEffect(()=>{F(E),O&&j(null)},[p,E]);function B($){O||j($==null?void 0:$.currentTarget)}function H(){j(null)}const q=E==null?void 0:E.icon,U=E!=null&&E.icon?f.jsx(q,{style:{fontSize:20,stroke:"1.5",color:x===E.id?u.palette.primary.main:u.palette.secondary.dark}}):null,ne=(N=e.children)==null?void 0:N.map($=>{switch($.type){case"collapse":return f.jsx(el,{menu:$,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i,level:1,parentId:E.id},$.id);case"item":return f.jsx(Ja,{item:$,level:1},$.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},$.id)}}),te=n.map(($,oe)=>{var W;return f.jsxs(A.Fragment,{children:[$.title?f.jsx(S.Typography,{variant:"caption",sx:{pl:2},children:$.title}):null,(W=$==null?void 0:$.elements)==null?void 0:W.map(J=>{switch(J.type){case"collapse":return f.jsx(el,{menu:J,level:1,parentId:E.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},J.id);case"item":return f.jsx(Ja,{item:J,level:1},J.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},J.id)}})]},oe)}),Y=(Q=E.children)==null?void 0:Q.map($=>{switch($.type){case"collapse":return f.jsx(el,{menu:$,level:1,parentId:E.id,setSelectedItems:o,setSelectedLevel:a,selectedLevel:c,selectedItems:i},$.id);case"item":return f.jsx(Ja,{item:$,level:1},$.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Menu Items Error"},$.id)}}),X=O?`group-pop-${e.id}`:void 0;return f.jsx(f.Fragment,{children:g?f.jsx(S.List,{children:f.jsxs(S.ListItemButton,{selected:x===E.id,sx:{p:1,my:.5,mr:1,display:"flex",alignItems:"center",backgroundColor:"inherit","&.Mui-selected":{bgcolor:"transparent"}},onMouseEnter:B,onClick:B,onMouseLeave:H,"aria-describedby":X,children:[U?f.jsx(S.ListItemIcon,{sx:{minWidth:28},children:E.id===r?f.jsx(We.DownOutlined,{style:{fontSize:20,stroke:"1.5"}}):U}):null,f.jsx(S.ListItemText,{sx:{mr:1},primary:f.jsx(S.Typography,{variant:"body1",color:x===E.id?u.palette.primary.main:u.palette.secondary.dark,children:E.id===r?d("ra.actions.more"):E.title})}),O?f.jsx(We.DownOutlined,{style:{fontSize:16,stroke:"1.5"}}):f.jsx(We.RightOutlined,{style:{fontSize:16,stroke:"1.5"}}),T?f.jsx(oie,{id:X,open:O,anchorEl:T,placement:"bottom-start",style:{zIndex:2001},children:({TransitionProps:$})=>f.jsx(Zo,{in:O,...$,children:f.jsx(S.Paper,{sx:{mt:.5,py:1.25,boxShadow:u.shadows[8],backgroundImage:"none"},children:f.jsx(S.ClickAwayListener,{onClickAway:H,children:f.jsx(S.Box,{sx:{maxHeight:"calc(100vh - 170px)",overflowY:"auto","&::-webkit-scrollbar":{opacity:0,width:4,"&:hover":{opacity:.7}},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:u.palette.divider,borderRadius:4}},children:E.id!==r?Y:te})})})})}):null]})}):f.jsx(S.List,{subheader:e.title&&b?f.jsxs(S.Box,{sx:{pl:3,mb:1.5},children:[f.jsx(S.Typography,{variant:"subtitle2",color:u.palette.mode==="dark"?"textSecondary":"text.secondary",children:e.title}),e.caption?f.jsx(S.Typography,{variant:"caption",color:"secondary",children:e.caption}):null]}):null,sx:{mt:b&&e.title?1.5:0,py:0,zIndex:0},children:ne})})}function CO(e){const{horizontal:t}=Qn(),{open:n}=Gi(),r=Mr(e,{pt:n?t?0:2:0,"& > ul:first-of-type":{mt:0},display:t?{xs:"block",lg:"flex"}:"block"});return f.jsx(S.Box,{sx:r,children:e.children})}function wO(e){const{horizontal:t}=Qn(),{menu:n,isLoading:r}=O0(),[o,i]=A.useState(""),[a,c]=A.useState(0),{horizontalMaxItems:u}=Sn(),d=t?u:void 0;let p=r?0:(n??[]).length-1,g=[],v;return!r&&d&&d<(n??[]).length&&(v=(n??[])[d-1].id,p=d-1,g=(n??[]).slice(d-1,(n??[]).length).map(y=>({title:y.title,elements:y.children,icon:y.icon}))),f.jsx(CO,{...e,children:!r&&ee.map((n??[]).slice(0,p+1),y=>{const{type:b}=y;switch(b){case"group":return f.jsx(xO,{item:y,setSelectedItems:i,setSelectedLevel:c,selectedLevel:a,selectedItems:o,lastItem:d,remItems:g,lastItemId:v},y.id);default:return f.jsx(S.Typography,{variant:"h6",color:"error",align:"center",children:"Fix - Navigation Group"},y.id)}})})}function iie({open:e,anchorEl:t,handleClose:n,theme:r,mode:o,toggleThemeMode:i}){const a=Z.useTranslate();return f.jsx(Ym,{placement:"bottom-end",open:e,anchorEl:t,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:c})=>f.jsx(Zo,{type:"grow",position:"top-right",in:e,...c,children:f.jsx(S.Paper,{sx:{boxShadow:r.customShadows.z1,minWidth:200,[r.breakpoints.down("md")]:{maxWidth:250},marginTop:1},children:f.jsx(S.ClickAwayListener,{onClickAway:n,children:f.jsx(Mn,{elevation:0,border:!1,content:!1,children:f.jsxs(S.List,{children:[f.jsxs(S.ListItemButton,{selected:o==="light",onClick:()=>i("light"),children:[f.jsx(We.SunOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.light")})]}),f.jsxs(S.ListItemButton,{selected:o==="dark",onClick:()=>i("dark"),children:[f.jsx(We.MoonOutlined,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,children:a("ra.preferences.theme.dark")})]}),f.jsxs(S.ListItemButton,{selected:o==="auto",onClick:()=>i("auto"),children:[f.jsx(nn.Brightness6,{}),f.jsx(S.Typography,{variant:"subtitle1",ml:1,textTransform:"none",children:a("ra.preferences.theme.auto")})]})]})})})})})})}function SO(){const e=S.useTheme(),{mode:t,setMode:n}=Sn(),{open:r,anchorEl:o,handleToggle:i,handleClose:a}=ra(),c=A.useCallback(d=>{n(d)},[n]),u=A.useCallback(()=>{switch(t){case"light":return f.jsx(We.SunOutlined,{});case"dark":return f.jsx(We.MoonOutlined,{});default:return f.jsx(nn.Brightness6,{})}},[t]);return f.jsxs(sa,{value:"theme-mode","aria-label":"toggle mode",onClick:i,selected:!1,children:[f.jsx(u,{}),r?f.jsx(iie,{open:r,anchorEl:o,handleClose:a,theme:e,mode:t,toggleThemeMode:c}):null]})}const AO=A.forwardRef((e,t)=>{const n=Mr(e,{display:"flex",width:"100%"});return f.jsx(S.Box,{ref:t,...e,sx:n,children:e.children})});function ov({source:e="paper"}){const{mode:t}=Sn(),n=S.useTheme();return A.useEffect(()=>{var o;const r=ee.get(n.palette.background,e);(o=document.querySelector('meta[name="theme-color"]'))==null||o.setAttribute("content",r)},[t,n,e]),null}const EO=HT(function(t){const{name:n,version:r,enableThemeToggler:o,enableNotification:i,enableLocaleSwitcher:a}=t,{isLoading:c,navigation:u,breadcrumbs:d}=S2();return f.jsxs(AO,{children:[f.jsxs(uO,{children:[f.jsx(vO,{}),a?f.jsx(lO,{}):null,o?f.jsx(SO,{}):null,f.jsx(ov,{}),f.jsx(_E,{}),i?f.jsx(dO,{}):null,f.jsx(mO,{children:f.jsx(gO,{})})]}),f.jsx(bO,{children:f.jsx(wO,{})}),f.jsxs(qT,{error:t.error,children:[!c&&f.jsx(NA,{titleBottom:!0,mode:"breadcrumbs",navigation:u,breadcrumbs:d,card:!1,divider:!1,icon:!0,icons:!0}),t.children,f.jsx(ut.Outlet,{}),f.jsx(rv,{name:n,version:r,copy:t==null?void 0:t.copy})]})]})});function sie(e){const{sx:t}=e;return f.jsx(S.Box,{sx:{...t,flex:"1 1 auto",backgroundColor:"background.paper",overflowY:"auto"},children:e.children})}const aie=444;function lie(e){const{sx:t,anchor:n="right",variant:r="temporary",open:o=!1,onClose:i}=e,a=S.useTheme(),u=S.useMediaQuery(a.breakpoints.down("sm"))?"bottom":n,d=A.useCallback(()=>{Ke.isFunction(i)&&i()},[i]),p={backgroundImage:"none",boxShadow:"-10px 4px 42px 0px rgba(0, 0, 0, 0.25)",width:{sm:"30%"},maxWidth:{sm:aie},[a.breakpoints.down("sm")]:{width:"100% !important",maxWidth:"100% !important"}};return f.jsx(S.Drawer,{...e,anchor:u,onClose:d,open:o,PaperProps:{sx:{...p,...t}},variant:r,children:e.children})}function cie(e){return f.jsxs(S.Box,{children:[f.jsx(S.Divider,{}),f.jsx(S.Box,{bgcolor:"background.paper",px:2,py:2.5,children:e.children})]})}function uie(e){const{sx:t}=e;return f.jsxs(S.Box,{children:[f.jsx(S.Stack,{alignItems:"center",bgcolor:"background.paper",direction:"row",px:2.5,py:2,spacing:2,minHeight:"64px",sx:t,children:e.children}),f.jsx(S.Divider,{sx:{opacity:.6}})]})}function die(e){const{primary:t,secondary:n}=e;return f.jsxs(S.Box,{display:"inline-flex",flexGrow:1,flexShrink:1,flexDirection:"column",children:[t?f.jsx(S.Typography,{variant:"h5",children:t}):null,n?f.jsx(S.Typography,{variant:"h6",children:n}):null]})}function fie(e){return f.jsx(S.Box,{display:"inline-flex",flexGrow:0,flexShrink:0,children:e.children})}const hr=lie;hr.Content=sie;hr.Footer=cie;hr.Header=uie;hr.HeaderText=die;hr.HeaderAction=fie;function TO(e){const t=S.useMediaQuery(n=>n.breakpoints.down("sm"));return f.jsx(hie,{disableGutters:!0,variant:t?"regular":"dense",...gie(e)})}TO.propTypes={children:m.node,className:m.string};const pie="RaTopToolbar",hie=S.styled(S.Toolbar,{name:pie,overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:e.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingInline:e.spacing(2),[e.breakpoints.down("md")]:{flex:"0 1 100%"},[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,justifyContent:"space-between",alignItems:"center"}}));function gie({hasCreate:e,...t}){return t}const mie=ce("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}}));function IO(){return f.jsx(mie,{children:f.jsx(S.LinearProgress,{color:"primary"})})}function vie(e){return t=>f.jsx(A.Suspense,{fallback:f.jsx(IO,{}),children:f.jsx(e,{...t})})}function iv({title:e}){return f.jsxs(S.Stack,{direction:"row",children:[f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(S.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]})}const yie=ce(_.Notification,{})(({theme:e})=>({zIndex:2e3,"& *":{fontSize:e.typography.body1.fontSize}}));function OO(e){return f.jsx(yie,{...e})}var gl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(gl||{});const PO=vo().required(),jO=vo().oneOf(Object.values(gl));function bie(e){var T;const t=Mi.useQueryClient(),[n,r]=A.useState(!1),[o,i]=A.useState(()=>()=>Promise.resolve()),a=Z.useGetIdentity(),c=(T=a==null?void 0:a.data)==null?void 0:T.email,u=Z.useDataProvider(),d=A.useCallback(()=>c?u.get("onboarding").then(j=>{var E;return(E=j==null?void 0:j.data)==null?void 0:E.value}):Promise.reject(),[u,c]),{data:p,isLoading:g,isError:v}=Mi.useQuery({queryKey:["GET","onboarding",c],queryFn:d,staleTime:24*60*60*1e3,retry:c!==void 0}),[y,b]=A.useState(()=>()=>Promise.resolve()),w=Mi.useMutation({mutationFn:y}).mutateAsync;return A.useEffect(()=>{function j(){const E=ee.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",E).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}b(()=>j)},[u,p,e,t,c]),A.useEffect(()=>{r(ee.isNil((p??{})[e]))},[p,e,r]),A.useEffect(()=>{i(()=>()=>w())},[w]),{loading:g,error:v,onboardingRequired:n,acknowledgeOnboarding:o}}function xie(e){const[t,n]=_0("onboarding",{}),[r,o]=A.useState(!1),[i,a]=A.useState(()=>()=>Promise.resolve());return A.useEffect(()=>{o(ee.isNil((t??{})[e]))},[t,e,o]),A.useEffect(()=>{a(()=>()=>(n(c=>ee.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:i}}function Cie(){return{onboardingRequired:!1,acknowledgeOnboarding:A.useRef(()=>Promise.resolve()).current}}function RO(e,t){F0({mode:jO,topic:PO}).validateSync({mode:e,topic:t});const n=bie(t),r=xie(t),o=Cie();switch(e){case gl.USER:return n.loading?o:n.error?r:ee.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case gl.BROWSER:return r;default:return o}}var Ds=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Ds||{});function wie(e,t){var o;const n=ee.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:i}=t;return ee.extend(n,{show:i})}case"REGISTER_TIP":{const{payload:i}=t,{id:a}=i,c=ee.chain(n.tips).clone().reject(p=>p.id===a).value(),u=ee.find(n.tips,{id:a}),d=ee.chain(u??{}).clone().extend(i).value();return c.push(d),ee.extend(n,{tips:ee.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:i}=t,a=ee.isString(i)?i:i.id,c=ee.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ee.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:i}=t,a=ee.isString(i)?i:i.id,c=ee.chain(n.tips).reject(v=>v.id===a).value(),u=ee.find(n.tips,{id:a});if(ee.isNil(u))return n;const d=ee.chain(u).clone().extend({dismissed:!0}).value();c.push(d);const p=((o=ee.chain(c).reject(v=>v.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(d==null?void 0:d.completeOnboarding)&&ee.chain(c).reject(v=>v.step<p).reject(v=>v.dismissed??!1).isEmpty().value()&&e.onComplete(),ee.extend(n,{tips:ee.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:i}=t;return ee.extend(n,{onComplete:i})}case"RESTART":{const i=ee.chain(n.tips).clone().map(a=>ee.omit(a,"dismissed")).value();return ee.extend(n,{tips:i,currentStep:0})}default:return n}}const sv=A.createContext(void 0);function Sie(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=RO(t,n),[i,a]=A.useReducer(wie,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=A.useMemo(()=>({state:i,dispatch:a}),[i,a]);return A.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),A.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(sv.Provider,{value:c,children:e.children})}function MO(){const e=A.useContext(sv);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function Aie(){return MO().state}function kO(){return MO().dispatch}function FO(e){F0({id:vo().required(),step:F2().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:i,currentStep:a}=Aie(),c=ee.find(i,{id:t}),{dismissed:u}=c??{},d=kO(),p=A.useCallback(()=>{d({type:Ds.DISMISS_TIP,payload:t})},[d,t]);return A.useEffect(()=>{(ee.isNil(c)||n!==(c==null?void 0:c.step))&&d({type:Ds.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c,d]),A.useEffect(()=>()=>{d({type:Ds.UNREGISTER_TIP,payload:t})},[t,d]),{tip:ee.chain(c??e).clone().extend({open:o&&!ee.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function Eie(){const e=kO();return A.useCallback(()=>{e({type:Ds.RESTART})},[e])}function Tie(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:i,dismiss:a}=FO({id:t,step:n,completeOnboarding:o}),{open:c}=i,u=ee.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(Xd,{...u,arrow:!0,open:c,title:f.jsxs(S.Stack,{gap:1,children:[f.jsx(S.Typography,{children:r}),f.jsx(S.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const Iie=S.styled(Tie)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${S.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${S.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${S.tooltipClasses.arrow}`]:{color:r.main}}}),av=A.memo(e=>{const{page:t,rowsPerPage:n,count:r,onPageChange:o,size:i="small",className:a,...c}=e,u=Z.useTranslate(),d=Math.ceil(r/n)||1;if(d===1)return f.jsx(lw,{className:a});function p(g,v,y){return g==="page"?y?u("ra.navigation.current_page",{page:v,_:`page ${v}`}):u("ra.navigation.page",{page:v,_:`Go to page ${v}`}):u(`ra.navigation.${g}`,{_:`Go to ${g} page`})}return f.jsx(lw,{className:a,children:f.jsx(S.Pagination,{size:i,count:d,page:t+1,onChange:(g,v)=>o(g,v-1),...Pie(c),getItemAriaLabel:p})})});av.propTypes={count:m.number.isRequired,onPageChange:m.func.isRequired,page:m.number.isRequired,rowsPerPage:m.number.isRequired,color:m.oneOf(["primary","secondary","standard"]),size:m.oneOf(["small","medium","large"])};const Oie="RaPaginationActions",lw=ce("div",{name:Oie,overridesResolver:e=>e.root})(()=>({flexShrink:0,ml:4}));function Pie({nextIconButtonProps:e,backIconButtonProps:t,slotProps:n,...r}){return r}const lv=A.memo(e=>{const{rowsPerPageOptions:t=jie,actions:n,limit:r=null,...o}=e,{isLoading:i,hasNextPage:a,page:c,perPage:u,total:d,setPage:p,setPerPage:g}=Z.useListPaginationContext(e),v=Z.useTranslate(),y=S.useMediaQuery(B=>B.breakpoints.down("md")),[b,x]=A.useState(c-1),{hasCreate:w}=Z.useResourceDefinition(e),T=A.useMemo(()=>d!=null?Math.ceil(d/u):void 0,[u,d]),j=A.useCallback(Ke.debounce(B=>{p(B+1)},500),[p]),E=A.useCallback((B,H)=>{var ne,te;if(!B)return;if(B.preventDefault(),H<0||T!==void 0&&H>T-1)throw new Error(v("ra.navigation.page_out_of_boundaries",{page:H+1}));const q=(((ne=B.target.dataset)==null?void 0:ne.testid)||((te=B.target.classList)==null?void 0:te.value))??"",U=q.includes("MuiPaginationItem-previousNext")||q.includes("NavigateBeforeIcon")||q.includes("NavigateNextIcon")||q.includes("KeyboardArrowLeftIcon")||q.includes("KeyboardArrowRightIcon");x(H),U?j(H):p(H+1)},[j,p,v,T]),P=A.useCallback(B=>{g(Number(B.target.value))},[g]),O=A.useCallback(({from:B,to:H,count:q})=>q===-1&&a?v("ra.navigation.partial_page_range_info",{offsetBegin:B,offsetEnd:H,_:"%{from}-%{to} of more than %{to}"}):v("ra.navigation.page_range_info",{offsetBegin:B,offsetEnd:H,total:q===-1?H:q,_:"%{from}-%{to} of %{count === -1 ? to : count}"}),[v,a]),k=A.useCallback(B=>v(`ra.navigation.${B}`,{_:`Go to ${B} page`}),[v]);if(i)return f.jsx(S.Toolbar,{variant:"dense"});if(d===0||c<1||T!==void 0&&c>T)return r!=null&&process.env.NODE_ENV==="development"&&console.warn("The Pagination limit prop is deprecated. Empty state should be handled by the component displaying data (Datagrid, SimpleList)."),null;if(y)return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:E,rowsPerPageOptions:Rie,component:"span",labelDisplayedRows:O,sx:{justifyContent:w?"flex-start":"flex-end",display:w?"flex":"block"},...Z.sanitizeListRestProps(o)});const F=n||(!i&&d!=null?av:void 0);return f.jsx(S.TablePagination,{count:d??-1,rowsPerPage:u,page:b,onPageChange:E,onRowsPerPageChange:P,ActionsComponent:F,nextIconButtonProps:{disabled:!a},component:"span",labelRowsPerPage:v("ra.navigation.page_rows_per_page"),labelDisplayedRows:O,getItemAriaLabel:k,rowsPerPageOptions:t,...Z.sanitizeListRestProps(o)})});lv.propTypes={actions:Z.ComponentPropType,limit:m.element,rowsPerPageOptions:m.arrayOf(m.oneOfType([m.number,m.shape({label:m.string.isRequired,value:m.number.isRequired})]))};const jie=[5,10,25,50],Rie=[];function DO({children:e}){const t=ut.useLocation(),{pathname:n}=t;return A.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),f.jsx(f.Fragment,{children:e})}const Mie=ce("div")({width:"100%",overflowX:"auto",display:"block"});function kie({shadow:e,children:t,...n}){return f.jsx(Mn,{content:!1,border:!1,shadow:e,boxShadow:!0,...n,children:t})}function _O({title:e}){return f.jsx(S.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substring(0,1).toUpperCase()})}function Fie({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:i,component:a,leftIcon:c,rightIcon:u,button:d,buttonProps:p,...g}){const{getCurrentDialog:v}=W0(),y=Z.useResourceContext(g),b=v(),x=Z.useRecordContext(),w=r||x,T=Ke.get(w,e||"");return f.jsxs(S.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:j=>({pt:1,pb:1,borderBottom:`1px solid ${j.palette.divider}`,...o&&{mb:2},...i&&{mt:2}}),children:[f.jsxs(S.Stack,{direction:"row",alignItems:"start",children:[c?A.isValidElement(c)?A.cloneElement(c,{style:su}):A.createElement(c,{style:su}):null,f.jsx(Z.FieldTitle,{label:t,source:e,resource:b||y})]}),f.jsxs(S.Stack,{direction:"row",alignItems:"center",children:[a?A.isValidElement(a)?A.cloneElement(a,{record:w,resource:y,value:T}):A.createElement(a,{source:e,record:w,resource:y,value:T}):f.jsx(S.Typography,{variant:n,children:T}),u?A.isValidElement(u)?A.cloneElement(u,{style:su}):A.createElement(u,{style:su}):null,d?f.jsx(S.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:d}):null]})]})}const su={width:"1.5rem",alignSelf:"center"};function LO(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:i,resource:a,selectedIds:c=[],onUnselectItems:u}=Z.useListContext(e),d=Z.useTranslate(),p=A.useCallback(()=>{u()},[u]);return f.jsx(Die,{className:r,children:f.jsxs(S.Toolbar,{"data-test":"bulk-actions-toolbar",className:Be(Pr.toolbar,{[Pr.collapsed]:c.length===0}),...Z.sanitizeListRestProps(o),children:[f.jsxs("div",{className:Pr.title,children:[f.jsx(S.IconButton,{className:Pr.icon,"aria-label":d("ra.action.unselect"),title:d("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(nn.Close,{fontSize:"small"})}),f.jsx(S.Typography,{color:"inherit",variant:"subtitle1",children:d(t,{_:t,smart_count:c.length})})]}),f.jsx(_.TopToolbar,{className:Pr.topToolbar,children:A.Children.map(n,g=>A.isValidElement(g)?A.cloneElement(g,{filterValues:i,resource:a,selectedIds:c}):null)})]})})}const Ti="RaBulkActionsToolbar",Pr={toolbar:`${Ti}-toolbar`,topToolbar:`${Ti}-topToolbar`,buttons:`${Ti}-buttons`,collapsed:`${Ti}-collapsed`,title:`${Ti}-title`,icon:`${Ti}-icon`},Die=ce("div",{name:Ti,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${Pr.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Yh(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${Pr.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${Pr.buttons}`]:{},[`& .${Pr.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${Pr.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${Pr.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),Ch={p:0,m:0},cw={p:2,m:0,borderRadius:0,width:"100%"};function _ie(e){const{children:t}=e,[n,r]=D.useState(null);function o(b){r(b.currentTarget)}function i(){r(null)}const a=S.useMediaQuery(b=>b.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:d=[],onUnselectItems:p}=_.useListContext(e),g=!!n&&d!==void 0&&d.length>0,v=g?"simple-popover":void 0,y=D.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(S.Fade,{in:d!==void 0&&d.length>0,children:f.jsxs(S.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(S.Fab,{color:"primary","aria-label":"manage",onClick:o,children:d==null?void 0:d.length}),f.jsx(S.Popover,{id:v,open:g,anchorEl:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(S.List,{sx:Ch,children:[f.jsx(S.ListItem,{sx:Ch,children:f.jsx(_.Button,{onClick:y,sx:cw,label:"ra.action.unselect",startIcon:f.jsx(pg,{}),children:f.jsx(pg,{})})}),D.Children.map(t,b=>{var x;return f.jsx(S.ListItem,{sx:Ch,children:D.isValidElement(b)?D.cloneElement(b,{filterValues:c,resource:u,selectedIds:d,sx:cw,...(x=b.props)!=null&&x.popover?{closePopover:i}:{}}):null})})]})})]})})}const BO=A.createContext({});BO.displayName="DatagridContext";function Lie({children:e,value:t}){return f.jsx(BO.Provider,{value:t,children:e})}const Bie=S.styled("div")(({theme:e})=>({padding:e.spacing(2),display:"flex",justifyContent:"center",gap:e.spacing(2)})),tl="ApplicaEmpty",Di={message:`${tl}-message`,icon:`${tl}-icon`,toolbar:`${tl}-toolbar`},Nie=S.styled("span",{name:tl,slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,height:"calc(100vh - 200px)",[`& .${Di.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${Di.icon}`]:{fontSize:"9em",marginTop:"16px",marginBottom:"16px"},[`& .${Di.toolbar}`]:{textAlign:"center"}}));function gf({actions:e,className:t,hasCreate:n,icon:r=f.jsx(We.DropboxOutlined,{className:Di.icon}),title:o,subtitle:i,sx:a,...c}){const{hasCreate:u}=Z.useResourceDefinition(c),d=n??u,p=Z.useResourceContext(c),g=Z.useTranslate(),v=Z.useGetResourceLabel(),y=g(`resources.${p}.forcedCaseName`,{smart_count:0,_:v(p,0)}),b=g("ra.page.empty",{name:y}),x=g("ra.page.invite");return f.jsxs(Nie,{className:Be(`${tl}-root`,t),sx:a,children:[f.jsxs(S.Box,{className:Di.message,children:[r,f.jsx(S.Typography,{variant:"h4",paragraph:!0,children:o||g(`resources.${p}.empty`,{_:b})}),i||(d?f.jsx(S.Typography,{variant:"body1",children:g(`resources.${p}.invite`,{_:x})}):null)]}),f.jsx(Bie,{className:Di.toolbar,children:e||(d?f.jsx(X2,{disableFloatingButton:!0}):null)})]})}const uw=f.jsx(_.BulkDeleteButton,{}),NO=D.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?_.PureDatagridBody:_.DatagridBody,header:o=_.DatagridHeader,children:i,className:a,empty:c,expand:u,bulkActionsToolbar:d=!1,bulkActionButtons:p=uw,hover:g,isRowSelectable:v,isRowExpandable:y,resource:b,rowClick:x,rowSx:w,rowStyle:T,size:j="small",sx:E,expandSingle:P=!1,...O}=e,k=Z.useTranslate(),{sort:F,data:B,isLoading:H,onSelect:q,onToggleItem:U,selectedIds:ne,setSort:te,total:Y}=Z.useListContext(e),X=!!p,N=A.useMemo(()=>({isRowExpandable:y,expandSingle:P}),[y,P]),Q=A.useRef(null);A.useEffect(()=>{(!ne||ne.length===0)&&(Q.current=null)},[JSON.stringify(ne)]);const $=A.useCallback((W,J)=>{const ue=B.map(de=>de.id),he=ue.indexOf(Q.current);if(Q.current=J.target.checked?W:null,J.shiftKey&&he!==-1){const de=ue.indexOf(W),pe=ue.slice(Math.min(he,de),Math.max(he,de)+1),ge=J.target.checked?XQ(ne,pe):dJ(ne,pe);q(v?ge.filter(we=>v(B.find(ye=>ye.id===we))):ge)}else U(W)},[B,v,q,U,ne]),oe=f.jsx(gf,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:k("ra.navigation.no_results")})});return H===!0?f.jsx(_.DatagridLoading,{className:a,expand:u,hasBulkActions:X,nbChildren:D.Children.count(i),size:j}):B==null||B.length===0||Y===0?c||oe:f.jsx(Lie,{value:N,children:f.jsxs(_.DatagridRoot,{sx:E,className:Be(_.DatagridClasses.root,a),children:[d!=null&&A.isValidElement(d)?A.cloneElement(d,{selectedIds:ne,total:Y}):p!==!1?f.jsx(LO,{children:A.isValidElement(p)?p:uw}):null,f.jsx("div",{className:_.DatagridClasses.tableWrapper,children:f.jsxs(S.Table,{ref:t,className:_.DatagridClasses.table,size:j,...Vie(O),children:[dw(o,{children:i,sort:F,data:B,hasExpand:!!u,hasBulkActions:X,isRowSelectable:v,onSelect:q,resource:b,selectedIds:ne,setSort:te},i),dw(r,{expand:u,rowClick:x,data:B,hasBulkActions:X,hover:g,onToggleItem:$,resource:b,rowSx:w,rowStyle:T,selectedIds:ne,isRowSelectable:v},i)]})})]})})});function dw(e,t,n){return A.isValidElement(e)?A.cloneElement(e,t,n):A.createElement(e,t,n)}const $ie=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"];function Vie(e){return Object.keys(Z.sanitizeListRestProps(e)).filter(t=>!$ie.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{})}NO.displayName="Datagrid";const Wie=ce(NO,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function zie(e){return f.jsx(Wie,{...e})}const cv=A.createContext({hasFilterSidebar:!1});function $O(){var e;return((e=A.useContext(cv))==null?void 0:e.hasFilterSidebar)??!1}function uv({source:e,value:t}){const n=A.useContext(_.FilterContext),r=_.useResourceContext(),o=A.useMemo(()=>n.find(u=>{var d;return A.isValidElement(u)&&((d=u.props)==null?void 0:d.source)===e}),[n,e]),i=A.useMemo(()=>A.isValidElement(o)?o.props:{},[o]);if(!(i!=null&&i.chip))throw new Error(`No chip component found for filter source "${e}". Ensure your filter components define a 'chip' prop.`);const a={...i,record:{[e]:t},value:t,resource:r};return A.isValidElement(i.chip)?A.cloneElement(i.chip,a):Ke.isFunction(i.chip)?A.createElement(i.chip,a):null}function Uie(e){const{value:t,source:n,lastItem:r}=e,o=uv({source:n,value:t});return f.jsxs(S.Stack,{children:[f.jsx(S.ListItem,{alignItems:"flex-start",sx:{pl:0},children:f.jsx(S.ListItemText,{primary:o,sx:{my:0}})}),r===n?null:f.jsx(S.Divider,{})]})}function Hie(){const{filterValues:e}=Z.useListContext(),t=Z.useTranslate();return f.jsxs(S.Stack,{mt:4,width:"100%",children:[f.jsx(S.Typography,{variant:"h6",fontWeight:"bold",color:"secondary",children:t("ra.title.selected_filters")}),f.jsx(S.List,{sx:{bgcolor:"background.paper",pt:0},children:e?Object.entries(e).map(([n,r])=>{const o=Object.entries(e).pop(),i=o?o[0]:"";return f.jsx(Uie,{lastItem:i,value:r,source:n},n)}):null})]})}function Gie(e){const{onClose:t,addQuery:n}=e,r=Z.useTranslate(),{handleSubmit:o}=rn.useFormContext(),i=A.useCallback(a=>{n(a.queryName)},[n]);return f.jsxs(S.Toolbar,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{variant:"contained",onClick:o(i),children:r("ra.action.save")})]})}function VO(e){const{open:t,onClose:n}=e,{filterValues:r,sort:o,perPage:i,displayedFilters:a,resource:c}=Z.useListContext(),[u,d]=h2(c),p=Z.useTranslate(),g=A.useCallback(y=>{const b={label:y.trim(),value:{filter:r,sort:o,perPage:i,displayedFilters:a}},x=g2(u);d(x.concat(b)),n()},[r,o,i,a,u,d,n]),v=A.useCallback(()=>y=>{if(u.some(b=>b.label===(y==null?void 0:y.trim())))return"ra.validation.already_exists"},[u]);return f.jsx(S.Dialog,{open:t,onClose:n,maxWidth:"xs",fullWidth:!0,children:f.jsxs(V0,{toolbar:f.jsx(Gie,{addQuery:g,onClose:n}),title:p("ra.title.save_favorite_filter"),modal:!0,children:[f.jsx(mr,{fullWidth:!0,source:"queryName",label:p("ra.input.query_name"),placeholder:p("ra.input.query_name_placeholder"),validate:[Z.required(),v()]}),f.jsx(Hie,{})]})})}function WO(){const[e,t]=A.useState(!1),n=Z.useTranslate(),r=A.useCallback(()=>{t(!1)},[]),o=A.useCallback(()=>{t(!0)},[]);return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{sx:{height:"36px"},variant:"contained",onClick:o,children:n("ra.action.save_filter")}),f.jsx(VO,{open:e,onClose:r})]})}function qie(e){const{onDelete:t,value:n,source:r}=e,o=uv({source:r,value:n});return o&&f.jsx(S.Chip,{label:o,variant:"combined",color:"primary",sx:{height:"36px","& .MuiChip-deleteIcon":{fontSize:"1rem !important",mr:1}},deleteIcon:f.jsx(nn.Close,{}),onDelete:t})}function Yie(){const{filterValues:e,setFilters:t}=Z.useListContext(),n=S.useTheme(),r=S.useMediaQuery(n.breakpoints.down("sm")),o=Z.useTranslate(),i=A.useCallback(()=>{t({})},[t]),a=A.useCallback(u=>{const d={...e};delete d[u],t(d)},[e,t]),c=A.useCallback(()=>f.jsxs(S.Stack,{flexDirection:"row",gap:2,children:[f.jsx(WO,{}),f.jsx(S.Button,{variant:"outlined",onClick:i,children:o("ra.action.reset_filters")})]}),[i,o]);return f.jsxs(S.Stack,{gap:2,flexDirection:r?"column":"row",children:[f.jsxs(S.Stack,{flexDirection:"row",flexWrap:r?"nowrap":"wrap",gap:2,py:.5,overflow:"auto",width:r?window.innerWidth-58:"auto",children:[Object.entries(e).map(([u,d])=>f.jsx(qie,{source:u,value:d,onDelete:()=>a(u)},u)),r?null:f.jsx(c,{})]}),r?f.jsx(c,{}):null]})}function Ag(){const{filterValues:e}=Z.useListContext(),t=S.useTheme(),n=S.useMediaQuery(t.breakpoints.down("sm")),r=Z.useTranslate();return e&&!Ke.isEmpty(e)?f.jsxs(S.Stack,{flexDirection:n?"column":"row",alignItems:"baseline",gap:2,m:n?2:0,children:[f.jsx(S.Typography,{variant:"h6",color:"secondary",whiteSpace:"nowrap",children:r("ra.title.active_filters")}),f.jsx(Yie,{})]}):null}function zO({open:e,onClose:t,filterToRemove:n}){var b;const r=Z.useTranslate(),{resource:o,filterValues:i,sort:a,perPage:c,displayedFilters:u}=Z.useListContext(),d=((b=n==null?void 0:n.value)==null?void 0:b.filter)||i,p=(n==null?void 0:n.label)??"",[g,v]=_.useSavedQueries(o);function y(){const x={filter:d,sort:a,perPage:c,displayedFilters:u},w=_.extractValidSavedQueries(g),T=w.findIndex(j=>dl(j.value,x));v([...w.slice(0,T),...w.slice(T+1)]),t()}return f.jsxs(S.Dialog,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[f.jsx(S.DialogTitle,{id:"alert-dialog-title",children:r("ra.saved_queries.remove_dialog_title",{label:p,_:"Remove saved query?"})}),f.jsx(S.DialogContent,{children:f.jsx(S.DialogContentText,{children:r("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"})})}),f.jsxs(S.DialogActions,{children:[f.jsx(S.Button,{onClick:t,children:r("ra.action.cancel")}),f.jsx(S.Button,{onClick:y,color:"primary",autoFocus:!0,children:r("ra.action.confirm")})]})]})}function Kie(e){const{query:t}=e,[n,r]=A.useState(!1),o=A.useCallback(()=>{r(a=>!a)},[]),i=Z.useTranslate();return f.jsxs(f.Fragment,{children:[f.jsx(S.Button,{size:"small",color:"primary",onClick:o,children:i("ra.action.delete")}),f.jsx(zO,{open:n,onClose:o,filterToRemove:t})]})}function UO(e){const{closeSidebar:t}=e,{resource:n,setFilters:r,setSort:o,setPage:i,setPerPage:a}=Z.useListContext(),[c,u]=A.useState(!1),d=gt(),[p]=h2(n),g=g2(p),v=Z.useTranslate(),y=A.useCallback(()=>{u(x=>!x)},[]),b=A.useCallback(x=>{const{value:w}=x;r(w.filter),o({field:w.sort.field,order:w.sort.order}),i(1),a(w.perPage),t()},[r,o,i,a,t]);return p&&p.length>0?f.jsx(S.Box,{sx:{mt:"-1px",mb:2,"& .MuiAccordion-root":{borderColor:d.palette.divider,"& .Mui-expanded:last-of-type":{marginBottom:"inherit"},"& .MuiAccordionSummary-root":{bgcolor:"transparent",flexDirection:"row"},"& .MuiAccordionSummary-content":{justifyContent:"space-between",marginLeft:0},"& .MuiAccordionDetails-root":{borderColor:d.palette.divider},"& .MuiAccordionSummary-expandIconWrapper":{color:d.palette.text.primary,"&.Mui-expanded":{transform:"rotate(180deg)"}}}},children:f.jsxs(S.Accordion,{expanded:c,onChange:y,children:[f.jsx(S.AccordionSummary,{sx:{px:"20px"},expandIcon:f.jsx(qE,{fontSize:"small"}),children:f.jsxs(S.Typography,{variant:"h5",fontWeight:"bold",children:[v("ra.action.saved_filters")," (",g.length,")"]})}),g==null?void 0:g.map((x,w)=>f.jsxs(S.AccordionDetails,{sx:{display:"flex",justifyContent:"space-between",px:"20px",alignItems:"center"},children:[f.jsx(S.Typography,{variant:"body1",children:x.label}),f.jsxs(S.Stack,{flexDirection:"row",alignItems:"center",children:[f.jsx(Kie,{query:x}),f.jsx(S.Button,{size:"small",color:"primary",onClick:()=>b({value:x.value}),children:v("ra.action.apply")})]})]},w))]})}):f.jsx(S.Box,{height:16})}function Xie(e){const{form:t,filters:n}=e,r=Z.useResourceContext();return f.jsx(_.FilterContext.Provider,{value:Array.isArray(n)?n:[n],children:f.jsx(rn.FormProvider,{...t,children:f.jsx(S.Box,{px:"20px",children:n?(Array.isArray(n)?n:[n]).map((o,i)=>{const a={...o.props,display:"label"};return A.isValidElement(o)?f.jsx(S.Box,{mb:1,children:A.cloneElement(o,{...a,resource:r})},i):null}):null})})})}function Eu(e){const{filters:t}=e,[n,r]=A.useState(!1),{setSidebarOpen:o,sidebarOpen:i}=dv(),{filterValues:a,setFilters:c}=Z.useListContext(),u=Z.useTranslate(),d=rn.useForm({defaultValues:a}),{handleSubmit:p,getValues:g,reset:v,watch:y}=d,b=y(),x=A.useMemo(()=>{const O={};return t&&(Array.isArray(t)?t:[t]).forEach(k=>{O[k.props.source]=(a==null?void 0:a[k.props.source])??""}),O},[t,a]);A.useEffect(()=>{const O=_.getFilterFormValues(g(),a),k=g();Ke.isEqual(O,k)||v(O)},[JSON.stringify(a),a,g,v]);const w=A.useCallback(()=>{Ke.isFunction(o)&&o(!1)},[o]),T=A.useCallback(O=>{c(O),w()},[c,w]),j=A.useCallback(()=>{v({}),c({})},[v,c]),E=A.useCallback(()=>{r(O=>!O),j(),setTimeout(()=>{r(!1)},1e3)},[j]),P=A.useMemo(()=>{const O=g();return Ke.isEmpty(x)||Ke.isEqual(O,x)},[x,g,b]);return f.jsxs(hr,{sx:{height:"100%"},open:i,onClose:w,children:[f.jsxs(hr.Header,{children:[f.jsx(hr.HeaderText,{primary:u("ra.action.add_filter")}),f.jsx(hr.HeaderAction,{children:f.jsx(eE,{variant:"text",loading:n,loadingPosition:"start",startIcon:f.jsx(We.ReloadOutlined,{}),onClick:E,children:u("ra.action.reset_filters")})})]}),f.jsxs(hr.Content,{children:[f.jsx(UO,{closeSidebar:w}),f.jsx(Xie,{form:d,filters:t})]}),f.jsx(hr.Footer,{children:f.jsxs(S.Stack,{direction:"row",spacing:2,children:[f.jsx(S.Button,{fullWidth:!0,onClick:()=>{v({}),w()},children:u("ra.action.close")}),f.jsx(S.Button,{fullWidth:!0,disabled:P,variant:"contained",color:"primary",onClick:p(T),children:u("ra.action.apply_filters")})]})})]})}function Zie(){const{setSidebarOpen:e}=dv(),t=A.useContext(_.FilterContext),n=$O(),r=_.useTranslate(),o=S.useTheme(),i=S.useMediaQuery(o.breakpoints.down("sm"));if(!n)throw new Error("The <FilterSidebarButton> component requires the <List aside={<FilterSidebar />}> prop to be set");if(t===void 0)throw new Error("The <FilterSidebarButton> component requires the <List filters> prop to be set");const a=A.useCallback(()=>{Ke.isFunction(e)&&e(!0)},[e]);return i?f.jsxs(S.Button,{className:"add-filter",onClick:a,children:[f.jsx(nn.FilterList,{sx:{fontSize:"1rem",mr:.5}}),f.jsx(S.Typography,{variant:"h6",children:r("ra.action.add_filter")})]}):f.jsx(Hi,{label:"ra.action.add_filter",onClick:a,children:f.jsx(nn.FilterList,{})})}function HO(e){const{filters:t,actions:n,className:r,hasFilterSidebar:o,...i}=e,a=gt(),c=S.useMediaQuery(a.breakpoints.down("sm")),u=n?A.cloneElement(n,{...i,...n.props}):null,{filterValues:d}=Z.useListContext();return Array.isArray(t)?f.jsx(cv.Provider,{value:{hasFilterSidebar:o},children:f.jsx(_.FilterContext.Provider,{value:t,children:c&&o?f.jsxs("div",{children:[u,Ke.isEmpty(d)?null:f.jsxs("div",{children:[f.jsx(S.Divider,{}),f.jsx(Ag,{})]})]}):f.jsxs(fw,{className:r,children:[o?f.jsx(Ag,{}):f.jsx(_.FilterForm,{}),f.jsx("span",{}),u]})})}):f.jsxs(fw,{className:r,children:[t?A.cloneElement(t,{...i,context:"form"}):null,f.jsx("span",{}),n?A.cloneElement(n,{...i,filters:t,...n.props}):null]})}HO.propTypes={filters:m.oneOfType([m.element,m.arrayOf(m.element)]),actions:m.oneOfType([m.bool,m.element]),exporter:m.oneOfType([m.func,m.bool])};const Qie="RaListToolbar",fw=ce("div",{name:Qie,overridesResolver:e=>e.root})(({theme:e})=>({display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%",[e.breakpoints.down("sm")]:{backgroundColor:e.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"}})),GO=A.memo(HO),Jie=f.jsx(_.ListActions,{}),ese=f.jsx(_.Pagination,{}),tse=f.jsx(gf,{}),nse=S.Card;function rse(e){const{actions:t=Jie,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:i,hasCreate:a,pagination:c=ese,children:u,className:d,component:p=nse,title:g,empty:v=tse,...y}=e,{defaultTitle:b,data:x,error:w,isLoading:T,filterValues:j,resource:E}=Z.useListContext(e),P=gt(),O=D.isValidElement(n)&&(n==null?void 0:n.type)!==Eu,k=D.isValidElement(n)&&(n==null?void 0:n.type)===Eu;if(!u||!x&&T&&i)return null;function F(X){return f.jsxs("div",{className:$r.main,style:{border:O?"1px solid":"none",borderRadius:O?4:0,borderColor:O?P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800:"transparent",backgroundColor:O?P.palette.background.paper:"transparent"},children:[r||t?f.jsx(GO,{className:$r.actions,filters:r,actions:t,hasCreate:a,hasFilterSidebar:k}):null,!w&&f.jsx(p,{className:$r.content,sx:X?{background:"transparent"}:{},children:o&&u&&D.isValidElement(u)?A.cloneElement(u,{bulkActionButtons:o}):u}),w?f.jsx(I0,{error:w,resetErrorBoundary:null}):c!==!1&&c]})}function B(){return v!==!1&&A.cloneElement(v,{className:$r.noResults,hasCreate:a})}const H=!T&&(x==null?void 0:x.length)===0,q=!T&&(x==null?void 0:x.length)===0&&!Object.keys(j).length&&v!==!1,U=D.isValidElement(n),ne=U&&(n==null?void 0:n.type)===Eu,te=T||q||U&&!ne?D.Fragment:Mn,Y=!T&&!q&&(!n||ne)?{content:!1}:void 0;return f.jsxs(ise,{className:Be("list-page",d),...y,sx:H?{"& .MuiPaper-root":{backgroundColor:"transparent",border:"none"},"& .RaList-actions":{border:"1px solid",borderRadius:`${P.shape.borderRadius}px`,borderColor:P.palette.mode==="dark"?P.palette.divider:P.palette.grey.A800,backgroundColor:P.palette.background.paper}}:{},children:[f.jsx(_.Title,{title:g,defaultTitle:b,preferenceKey:`${E}.list.title`}),f.jsx(te,{...Y,children:T?f.jsx(S.CircularProgress,{sx:{position:"absolute",top:"50%",left:"50%",marginTop:"-20px",marginLeft:"-20px"}}):q?B():F(H)}),O?f.jsx(ose,{aside:n}):null,k?D.cloneElement(n,{filters:r}):null]})}function ose({aside:e}){var r;const t=((r=e==null?void 0:e.props)==null?void 0:r.order)??-1,n=gt();return f.jsx(S.Card,{className:$r.asideCard,sx:{order:t,mr:t===-1?2:0,ml:t!==-1?2:0,width:200,border:"1px solid",borderRadius:1,borderColor:n.palette.mode==="dark"?n.palette.divider:n.palette.grey.A800,backgroundColor:n.palette.background.paper,backgroundImage:"none"},children:f.jsx(S.CardContent,{sx:{pt:1},children:A.cloneElement(e,{})})})}const Cs="RaList",$r={main:`${Cs}-main`,content:`${Cs}-content`,actions:`${Cs}-actions`,noResults:`${Cs}-noResults`,asideCard:`${Cs}-asideCard`},ise=ce("div",{name:Cs,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex","& >.MuiPaper-root":{flex:1},[`& .${$r.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${$r.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${$r.actions}`]:{},[`& .${$r.noResults}`]:{alignContent:"center"},[`& .${$r.asideCard}`]:{[e.breakpoints.down("md")]:{display:"none"},[`& .${_.SavedQueriesListClasses.floatingIcon}`]:{fontSize:"1.125rem"},[`& .${_.SavedQueriesListClasses.floatingTooltip}`]:{top:"-1.2em"},"& form":{marginTop:e.spacing(2)}}})),qO=A.createContext({sidebarOpen:!1,setSidebarOpen:()=>{}});function YO(e){const[t,n]=A.useState(!1);return f.jsx(qO.Provider,{value:{sidebarOpen:t,setSidebarOpen:n},children:e.children})}function dv(){return A.useContext(qO)}function sse({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=ase,filterDefaultValues:i,perPage:a=10,queryOptions:c,resource:u,sort:d,storeKey:p,...g}){return f.jsx(Z.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:i,perPage:a,queryOptions:c,resource:u,sort:d,storeKey:p,children:f.jsx(YO,{children:f.jsx(rse,{...g})})})}const ase={},lse=kl(sse,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),[e.breakpoints.down("sm")]:{flexDirection:"row"},"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiInputLabel-root":{paddingTop:0},"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}},"& .ApplicaEmpty-root":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"calc(100vh - 260px)"}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function cse(e){return f.jsx(lse,{...e,pagination:f.jsx(lv,{})})}function use(){const e=_.useRefresh(),t=_.useNotify(),n=_.useResourceContext(),r=_.useUnselectAll(n),{selectedIds:o,data:i}=_.useListContext(),a=_.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)),[u,{isLoading:d}]=_.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Rr().toISOString()},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=A.useCallback(()=>{u()},[u]);return f.jsx(_.Button,{label:"ra.notification.mark_as_readed",disabled:d||(a==null?void 0:a.readed)!==null,onClick:p,children:f.jsx(nn.Email,{})})}function dse(){const e=_.useRefresh(),t=_.useNotify(),n=_.useResourceContext(),r=_.useUnselectAll(n),{selectedIds:o,data:i}=_.useListContext(),a=_.useRecordContext(),c=o.map(g=>i.find(v=>v.id===g)).concat([a]),[u,{isLoading:d}]=_.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=A.useCallback(()=>{u()},[u]);return f.jsx(_.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:d||a&&!(a!=null&&a.readed),onClick:p,children:f.jsx(nn.Drafts,{})})}function fse(e){const t=_.useRecordContext(e),n=_.useResourceContext(e),r=_.useRedirect(),o=_.useNotify(),i=_.useTranslate(),[a]=_.useLocaleState(),c=A.useMemo(()=>t!=null&&t.readed?Rr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=_.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Rr().toISOString()}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),d=A.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:d,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(S.Typography,{variant:"subtitle1",children:f.jsxs(S.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(S.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c?f.jsx(S.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:i("ra.notification.readed",{readed:c})}):null]})}function pse({...e}){const t=S.useTheme(),{mode:n,colorize:r,density:o}=A.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?S.darken:S.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]);function i(a){return{backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)}}return f.jsxs(_.Datagrid,{...e,rowSx:i,children:[f.jsx(fse,{source:"notification",sortable:!1}),f.jsx(iT,{source:"created"}),f.jsxs(Qo,{children:[f.jsx(use,{}),f.jsx(dse,{})]})]})}function hse({empty:e,...t}){const n=_.useTranslate(),r=f.jsx(gf,{sx:{"& .ApplicaEmpty-icon":{fontSize:"7em"}},title:f.jsx(S.Typography,{variant:"subtitle1",style:{color:"inherit"},gutterBottom:!0,children:n("ra.navigation.no_results")})});return f.jsx(_.SimpleList,{...t,empty:e||r})}function gse({children:e}){const t=gt();return f.jsx(Mn,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,border:!1,boxShadow:!0,shadow:t.customShadows.z1,children:f.jsx(S.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})}function mf({version:e,name:t,copy:n,children:r,logo:o,background:i=Zd,footer:a=!0}){return f.jsxs(S.Box,{children:[f.jsx(ov,{source:"default"}),A.isValidElement(i)?i:A.createElement(i),f.jsxs(S.Grid,{container:!0,direction:"column",justifyContent:"flex-end",children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(iv,{title:t})}),f.jsxs(S.Grid,{item:!0,xs:12,children:[f.jsx(S.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(S.Grid,{item:!0,children:f.jsx(gse,{children:r})})}),a?f.jsx(S.Grid,{item:!0,sx:{pb:1,position:"absolute",bottom:0,ml:2},children:f.jsx(rv,{name:t,copy:n,version:e})}):null]})]})]})}function mse({name:e,copy:t,logo:n,version:r,background:o}){const i=Z.useTranslate(),a=Z.useAuthProvider(),c=Z.useNotify(),u=ut.useNavigate(),{token:d}=ut.useParams();return A.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(d).then(()=>{c("ra.auth.activate_success",{type:"info"}),ee.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),ee.delay(()=>u("/login"),1e3)})},[d,a,c,u]),f.jsx(mf,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:i("ra.auth.activate")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})}function KO(){const e=A.useCallback(()=>location.reload(),[]);return f.jsx(S.Container,{children:f.jsxs(S.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{alt:"Error",src:oE,style:{width:"100%",maxWidth:450}}),f.jsx(S.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(S.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(S.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}function XO({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:i=!1,redirectTo:a,background:c=f.jsx(Zd,{})}){const[u,d]=Z.useSafeSetState(!1),p=Z.useLogin(),g=Z.useTranslate(),v=Z.useNotify(),y=Z.useCheckAuth(),b=ut.useNavigate();A.useEffect(()=>{y({},!1).then(()=>{b("/")}).catch(()=>{})},[y,b]);function x(w){d(!0),p(w,a).then(()=>{d(!1)}).catch(T=>{d(!1),v(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"error",messageArgs:{_:typeof T=="string"?T:T&&T.message?T.message:void 0}})})}return f.jsx(mf,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:"Login"}),i?f.jsx(S.Typography,{component:ut.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:g("ra.auth.register")}):null]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(Z.Form,{onSubmit:x,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(mr,{autoFocus:!0,source:"username",label:g("ra.auth.username"),autoComplete:"username",validate:Z.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(mr,{source:"password",label:g("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Z.required(),placeholder:g("ra.auth.password_placeholder"),fullWidth:!0})})]}),o?f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(S.Link,{variant:"h6",component:ut.Link,to:"/recover",color:"text.primary",children:g("ra.auth.forgot_password")})})}):null,f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(S.CircularProgress,{size:19,thickness:3}):g("ra.auth.sign_in")})})]})})]})})}function vse({name:e,copy:t,logo:n,version:r,background:o}){const[i,a]=A.useState(!1),c=Z.useTranslate(),u=Z.useRedirect(),d=Z.useNotify(),p=Z.useAuthProvider();function g({email:v}){a(!0),p.recover(v).then(y=>{const b=`ra.auth.recover_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d((y==null?void 0:y.message)||(y==null?void 0:y.toString()),{type:"error"})}).finally(()=>a(!1))}return f.jsx(mf,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(_.Form,{onSubmit:g,children:[f.jsx(S.Grid,{container:!0,children:f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"email",validate:[Z.required(),Z.email()]})})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(S.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})}function yse({name:e,copy:t,version:n,logo:r,background:o}){const[i,a]=A.useState(!1),c=Z.useTranslate(),u=Z.useRedirect(),d=Z.useNotify(),p=Z.useAuthProvider();function g(v){a(!0),p.register(v).then(y=>{const b=`ra.auth.register_${y.responseCode}`,x=y.responseCode==="ok"?"info":"error";d(b,{type:x}),u("/login")}).catch(y=>{d(y,{type:"error"})}).finally(()=>a(!1))}return f.jsx(mf,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(S.Grid,{container:!0,spacing:3,children:[f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(S.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(S.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(S.Typography,{component:ut.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(S.Grid,{item:!0,xs:12,children:f.jsxs(_.Form,{onSubmit:g,children:[f.jsxs(S.Grid,{container:!0,children:[f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"name",label:c("ra.register.name"),validate:Z.required()})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"email",type:"email",validate:[Z.required(),Z.email()]})}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(mr,{source:"password",type:"password",validate:Z.required()})})]}),f.jsx(S.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(S.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?f.jsx(S.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})}function bse(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function xse(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Cse(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(We.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function yi({color:e,theme:t}){const n=sn(t,e),{lighter:r,light:o,main:i}=n;return{borderColor:Je(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:i}}}function wse(e){const t=yi({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":yi({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":yi({color:"secondary",theme:e}),"&.MuiAlert-borderError":yi({color:"error",theme:e}),"&.MuiAlert-borderSuccess":yi({color:"success",theme:e}),"&.MuiAlert-borderInfo":yi({color:"info",theme:e}),"&.MuiAlert-borderWarning":yi({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function Sse(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Ase(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function bi({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function Ese(e){const t=bi({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":bi({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":bi({color:"secondary",theme:e}),"&.MuiBadge-colorError":bi({color:"error",theme:e}),"&.MuiBadge-colorInfo":bi({color:"info",theme:e}),"&.MuiBadge-colorSuccess":bi({color:"success",theme:e}),"&.MuiBadge-colorWarning":bi({color:"warning",theme:e})}}}}}function et({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,main:i,dark:a,contrastText:c}=r,u=`${t}Button`,d=Xs(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${Je(i,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Je(i,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:i,boxShadow:d,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:i,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:i,borderColor:i,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function Tse(e){const t=et({variant:"dashed",color:"primary",theme:e}),n=et({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":et({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":et({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":et({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":et({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":et({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":et({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":et({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":et({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":et({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":et({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":et({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":et({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:et({variant:"contained",color:"primary",theme:e}),containedSecondary:et({variant:"contained",color:"secondary",theme:e}),containedError:et({variant:"contained",color:"error",theme:e}),containedSuccess:et({variant:"contained",color:"success",theme:e}),containedInfo:et({variant:"contained",color:"info",theme:e}),containedWarning:et({variant:"contained",color:"warning",theme:e}),outlinedPrimary:et({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:et({variant:"outlined",color:"secondary",theme:e}),outlinedError:et({variant:"outlined",color:"error",theme:e}),outlinedSuccess:et({variant:"outlined",color:"success",theme:e}),outlinedInfo:et({variant:"outlined",color:"info",theme:e}),outlinedWarning:et({variant:"outlined",color:"warning",theme:e}),textPrimary:et({variant:"text",color:"primary",theme:e}),textSecondary:et({variant:"text",color:"secondary",theme:e}),textError:et({variant:"text",color:"error",theme:e}),textSuccess:et({variant:"text",color:"success",theme:e}),textInfo:et({variant:"text",color:"info",theme:e}),textWarning:et({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Ise(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Ose(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function Pse(){return{MuiCard:{styleOverrides:{root:{boxShadow:"none"}}}}}function jse(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function hs({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:i}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function Rse(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function wh(e){const t=Rse(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function Mse(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(We.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(We.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...wh("small")},"&.size-medium":{...wh("medium")},"&.size-large":{...wh("large")}},colorPrimary:hs({color:"primary",theme:e}),colorSecondary:hs({color:"secondary",theme:e}),colorSuccess:hs({color:"success",theme:e}),colorWarning:hs({color:"warning",theme:e}),colorInfo:hs({color:"info",theme:e}),colorError:hs({color:"error",theme:e})}}}}function gs({color:e,theme:t}){const n=sn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Hn({color:e,theme:t}){const n=sn(t,e),{light:r,lighter:o,main:i}=n;return{color:i,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:i,"&:hover":{color:r}}}}function kse(e){const t=Hn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":gs({color:"primary",theme:e}),"&.MuiChip-colorSecondary":gs({color:"secondary",theme:e}),"&.MuiChip-colorError":gs({color:"error",theme:e}),"&.MuiChip-colorInfo":gs({color:"info",theme:e}),"&.MuiChip-colorSuccess":gs({color:"success",theme:e}),"&.MuiChip-colorWarning":gs({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Hn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Hn({color:"secondary",theme:e}),"&.MuiChip-lightError":Hn({color:"error",theme:e}),"&.MuiChip-lightInfo":Hn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Hn({color:"success",theme:e}),"&.MuiChip-lightWarning":Hn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Hn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Hn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Hn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Hn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Hn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Hn({color:"warning",theme:e})}}}}}function Fse(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:Je("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function Dse(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function _se(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function ms({color:e,theme:t}){const n=sn(t,e),{main:r,dark:o,contrastText:i}=n,a=`${e}Button`,c=Xs(t,a);return{color:i,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${Je(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${Je(r,.9)}`}}}function Lse(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":ms({color:"primary",theme:e}),"&.MuiFab-secondary":ms({color:"secondary",theme:e}),"&.Mui-error":ms({color:"error",theme:e}),"&.MuiFab-success":ms({color:"success",theme:e}),"&.MuiFab-info":ms({color:"info",theme:e}),"&.MuiFab-warning":ms({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function Bse(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function Nse(e){return{MuiInputBase:{styleOverrides:{}}}}function $se(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1.3em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function Vse(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function Wse(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function zse(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function Use(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function Hse(e){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function Gse(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function xi({variant:e,theme:t}){const n=sn(t,e),{light:r}=n,o=Xs(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function qse(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{...xi({variant:"primary",theme:e}),"&.Mui-error":{...xi({variant:"error",theme:e})}},inputSizeSmall:{padding:"9px 8px 9px 12px"},inputMultiline:{padding:0},colorSecondary:xi({variant:"secondary",theme:e}),colorError:xi({variant:"error",theme:e}),colorWarning:xi({variant:"warning",theme:e}),colorInfo:xi({variant:"info",theme:e}),colorSuccess:xi({variant:"success",theme:e})}}}}function Yse(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function At({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,light:i,dark:a,main:c,contrastText:u}=r,d={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:i},...d};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:i},...d};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...d}}}function Kse(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":At({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":At({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":At({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":At({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":At({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":At({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":At({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":At({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":At({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":At({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":At({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":At({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":At({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":At({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":At({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":At({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":At({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":At({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":At({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":At({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":At({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":At({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":At({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":At({variant:"outlined",color:"warning",theme:e})}}}}}}function Xse(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function vs({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:i}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${i}`,outlineOffset:-4}}}function Zse(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function Sh(e){const t=Zse(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function Qse(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(S.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(S.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...Sh("small")},"&.size-medium":{...Sh("medium")},"&.size-large":{...Sh("large")}},colorPrimary:vs({color:"primary",theme:e}),colorSecondary:vs({color:"secondary",theme:e}),colorSuccess:vs({color:"success",theme:e}),colorWarning:vs({color:"warning",theme:e}),colorInfo:vs({color:"info",theme:e}),colorError:vs({color:"error",theme:e})}}}}function ys({color:e,theme:t}){const n=sn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function Jse(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":ys({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":ys({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":ys({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":ys({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":ys({color:"info",theme:e}),"&.MuiSlider-thumbColorError":ys({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function eae(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function Ah(e,t){const n=eae(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function tae(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...Ah(e,"medium")},sizeLarge:{...Ah(e,"large")},sizeSmall:{...Ah(e,"small")}}}}}function nae(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function rae(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function oae(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function iae(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function sae(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function aae(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function lae(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function cae(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function uae(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function dae(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function fae(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function pae(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function hae(e){return Ke.merge(bse(e),xse(e),Cse(e),wse(e),Sse(),Ase(e),Ese(e),Tse(e),Ise(),Ose(),Pse(),jse(),Mse(e),kse(e),Fse(e),Dse(e),_se(),Lse(e),Bse(e),Nse(),$se(e),Vse(),Wse(),zse(e),Use(e),Hse(),Gse(),qse(e),Yse(),Kse(e),Xse(e),Qse(e),Jse(e),tae(e),nae(e),rae(e),oae(e),iae(e),sae(e),aae(),lae(),cae(),uae(e),dae(e),fae(),pae())}function gae(e){const{blue:t,red:n,gold:r,cyan:o,green:i,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:u},grey:c}}function mae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],d=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(i=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],d=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function vae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function yae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function bae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function xae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Cae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function wae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Sae(e,t){const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let i=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],d=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(i=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],d=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:i[0],100:i[1],200:i[2],light:i[3],400:i[4],main:i[5],dark:i[6],700:i[7],darker:i[8],900:i[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:d[0],light:d[1],main:d[2],dark:d[3],darker:d[4],contrastText:o},grey:r}}function Aae(e,t,n){switch(t){case"theme1":return mae(e,n);case"theme2":return vae(e,n);case"theme3":return yae(e,n);case"theme4":return bae(e,n);case"theme5":return xae(e,n);case"theme6":return Cae(e,n);case"theme7":return wae(e,n);case"theme8":return Sae(e,n);default:return gae(e)}}var Eg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Eg.primary=Eg[5];var Tg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tg.primary=Tg[5];var Ig=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ig.primary=Ig[5];var Og=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Og.primary=Og[5];var Pg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Pg.primary=Pg[5];var jg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];jg.primary=jg[5];var Rg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rg.primary=Rg[5];var Mg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Mg.primary=Mg[5];var kg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];kg.primary=kg[5];var Fg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Fg.primary=Fg[5];var Dg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Dg.primary=Dg[5];var _g=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_g.primary=_g[5];var Lg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lg.primary=Lg[5];var Eae={red:Eg,volcano:Tg,orange:Ig,gold:Og,yellow:Pg,lime:jg,green:Rg,cyan:Mg,blue:kg,geekblue:Fg,purple:Dg,magenta:_g,grey:Lg},Bg=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Bg.primary=Bg[5];var Ng=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Ng.primary=Ng[5];var $g=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];$g.primary=$g[5];var Vg=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Vg.primary=Vg[5];var Wg=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Wg.primary=Wg[5];var zg=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];zg.primary=zg[5];var Ug=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Ug.primary=Ug[5];var Hg=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Hg.primary=Hg[5];var Gg=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Gg.primary=Gg[5];var qg=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];qg.primary=qg[5];var Yg=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Yg.primary=Yg[5];var Kg=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Kg.primary=Kg[5];var Xg=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Xg.primary=Xg[5];var Tae={red:Bg,volcano:Ng,orange:$g,gold:Vg,yellow:Wg,lime:zg,green:Ug,cyan:Hg,blue:Gg,geekblue:qg,purple:Yg,magenta:Kg,grey:Xg};function Iae(e,t){const n=e==="dark"?Tae:Eae;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],i=["#121212","#d3d8db"]),n.grey=[...r,...o,...i];const a=Aae(n,t,e);return Pm({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?Je(a.grey[900],.87):a.grey[700],secondary:e==="dark"?Je(a.grey[900],.45):a.grey[500],disabled:e==="dark"?Je(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?Je(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})}function Oae(e){return{button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z0:"none",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${Je(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Je(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Je(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Je(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Je(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Je(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Je(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Je(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Je(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Je(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Je(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Je(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Je(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Je(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Je(e.palette.grey[500],.2)}`}}function Pae(e){return{htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}}}function fv({themeOverrides:e,children:t}){const n=Sn(),{themeDirection:r,mode:o,presetColor:i,fontFamily:a}=n,c=H2(),u=A.useMemo(()=>o==="auto"?c:o,[o,c]),d=A.useMemo(()=>Iae(u,i),[u,i]),p=A.useMemo(()=>Pae(a),[a]),g=A.useMemo(()=>Oae(d),[d]),v=A.useMemo(()=>ee.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:d.palette,customShadows:g,typography:p,components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:d.spacing(2.6875),height:d.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(d):e),[r,d,p,g,e]),y=Pm(v),b=ee.cloneDeep(y.components??{});return y.components=ee.merge(hae(y),b),f.jsx(S.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(DA,{theme:y,children:[f.jsx(S.CssBaseline,{enableColorScheme:!0}),t]})})}function jae({children:e,theme:t,...n}){return f.jsx(_.CoreAdminContext,{...n,children:f.jsx(fv,{themeOverrides:t,children:f.jsx(DO,{children:e})})})}function ZO(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:i,disableTelemetry:a,history:c,i18nProvider:u,layout:d,loading:p,loginPage:g,authCallbackPage:v,menu:y,notification:b,queryClient:x,requireAuth:w,store:T=_.localStorageStore(),ready:j,theme:E,title:P="React Admin"}=e;return f.jsx(jae,{authProvider:t,dataProvider:i,i18nProvider:u,store:T,history:c,queryClient:x,theme:E,children:f.jsx(_.AdminUI,{layout:d,dashboard:o,disableTelemetry:a,menu:y,catchAll:n,title:P,loading:p,loginPage:g,authCallbackPage:v,notification:b,requireAuth:w,ready:j,children:r})})}class QO{constructor({catch:t,display:n,log:r,error:o}){Ta(this,"catch");Ta(this,"display");Ta(this,"log");Ta(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}var ml,vl,_s;class Rae{constructor(t){lo(this,ml);lo(this,vl);lo(this,_s,new Set);const{apiUrl:n}=t??{};if(!ee.isString(n)||ee.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");Do(this,vl,n),Do(this,ml,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:i}=t,a=`${n}${r}${o}${i}`;On(this,_s).has(a)||(On(this,_s).add(a),fetch(`${On(this,vl)}/ui/error-log`,{method:"PUT",headers:On(this,ml),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(u=>{console.warn("Unable to send error to server",u),On(this,_s).delete(a)}))}}ml=new WeakMap,vl=new WeakMap,_s=new WeakMap;function Mae({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=i=>new QO({catch:i!=null,display:!1,log:i!=null,error:i}),...o}){const i=D.useMemo(()=>o.errorHandler?o.errorHandler:new Rae({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=D.useCallback(function(u,...d){var g;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(g=u==null?void 0:u.toString())==null?void 0:g.replace(/%s/g,()=>d.shift()));return p.isCatched()||(p.logError()&&(u instanceof ErrorEvent?i.handle(u):i.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)),!1},[r,i,a]);return D.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c,a]),!0}var yl,bl,Ri;class kae{constructor(t){lo(this,yl);lo(this,bl);lo(this,Ri,[]);const{apiUrl:n}=t??{};if(!ee.isString(n)||ee.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");Do(this,bl,n),Do(this,yl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ee.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ee.isString(n)||ee.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ee.isString(r)||ee.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ee.some(On(this,Ri),o=>ee.isEqual(o,{code:n,lang:r}))){On(this,Ri).push({code:n,lang:r}),fetch(`${On(this,bl)}/i18n/message`,{method:"put",headers:On(this,yl),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),Do(this,Ri,ee.reject(On(this,Ri),i=>ee.isEqual(i,{code:n,lang:r})))});return}}}yl=new WeakMap,bl=new WeakMap,Ri=new WeakMap;function JO(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,i=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new kae({apiUrl:t});function u(){return fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(g=>g.json()).catch(()=>Promise.resolve(i))}function d(){return fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(g=>g.json()).then(g=>g.reduce((v,y)=>({...v,[y.lang]:{...v[y.lang]||{},[y.code]:y.text}}),{}))}function p(g,v,y){return r||console.error(`Warning: Missing translation for key: "${g}"`),o&&(ee.isString(g)?g.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${g}`):c.handleMessage({code:g,lang:y}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),g}return Promise.all([u(),d()]).then(g=>{const[v,y]=g;function b(x){return ee.get(y,x,{})}return pw(b,n,v,{allowMissing:r||o,onMissingKey:p})})}function Fae(e){const{defaultLocale:t,path:n}=e,r=[{locale:t,name:t}],o=new Headers({Accept:"application/json","Content-Type":"application/json"});function i(){return fetch(`${n}/languages.json`,{headers:o,method:"get"}).then(c=>c.json()).catch(()=>Promise.resolve(r))}function a(){return fetch(`${n}/messages.json`,{headers:o,method:"get"}).then(c=>c.json()).then(c=>c.reduce((u,d)=>({...u,[d.lang]:{...u[d.lang]||{},[d.code]:d.text}}),{}))}return Promise.all([i(),a()]).then(c=>{const[u,d]=c;function p(g){return ee.get(d,g,{})}return pw(p,t,u,{allowMissing:!0})})}function Dae({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})}){const[r,o]=A.useState({loading:!0,languages:null});return A.useEffect(()=>{const i=new Headers;i.append("Accept","application/json"),i.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:i}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r}function eP(e){const[t,n]=A.useState(),r=U2(e);return A.useEffect(()=>{if(e.customProvider!==void 0){e.customProvider.then(n);return}JO(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r,e==null?void 0:e.customProvider]),t}const _ae=new Mi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function Lae({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:i,logoIcon:a,loginPage:c=f.jsx(XO,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(Zd,{})}),menu:u,name:d,copy:p,version:g="0.0.0",dataProvider:v,authProvider:y,i18nProvider:b,errorHandler:x,error:w,enableNotification:T=!1,enableRegistration:j=!1,enablePasswordRecover:E=!1,enableThemeToggler:P=!1,enableLocaleSwitcher:O=!1,queryClient:k=_ae,background:F,notificationAPI:B="entities/notification",...H}){Mae({apiUrl:n,errorHandler:x,catcherFn:te=>{const Y=te==null?void 0:te.toString(),N=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some($=>Y==null?void 0:Y.includes($));return new QO({catch:N,display:!N,log:!N&&o===!0,error:Y})}});const q=A.useMemo(()=>A.isValidElement(c)?A.cloneElement(c,{name:d,copy:p,logo:i,version:g,background:F,enableRegistration:j,enablePasswordRecover:E}):c,[c,d,g,p,F,i,j,E]),U=A.useMemo(()=>te=>{const Y=d?f.jsx(iv,{title:d}):i,X=d?f.jsx(_O,{title:d}):a;return f.jsx(EO,{...te,name:d,copy:p,version:g,logoMain:Y,logoIcon:X,notification:B,enableThemeToggler:P,enableNotification:T,enableLocaleSwitcher:O,error:w})},[i,a,d,p,g,w,B,T,P,O]),ne=eP({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o,customProvider:b});return ne===void 0?f.jsx(f.Fragment,{}):ne.error?f.jsx(yg,{initialConfig:t,children:f.jsx(fv,{themeOverrides:e,children:f.jsx(KO,{})})}):f.jsx(Zee,{children:f.jsx(w2,{menu:u,children:f.jsx(yg,{initialConfig:t,children:f.jsx(ZO,{theme:e,layout:U,notification:OO,queryClient:k,dataProvider:v,authProvider:y,i18nProvider:ne,loginPage:q,...H})})})})}Object.defineProperty(exports,"ArrayField",{enumerable:!0,get:()=>_.ArrayField});Object.defineProperty(exports,"ArrayInputContext",{enumerable:!0,get:()=>_.ArrayInputContext});Object.defineProperty(exports,"BooleanField",{enumerable:!0,get:()=>_.BooleanField});Object.defineProperty(exports,"ChipField",{enumerable:!0,get:()=>_.ChipField});Object.defineProperty(exports,"Confirm",{enumerable:!0,get:()=>_.Confirm});Object.defineProperty(exports,"CreateContextProvider",{enumerable:!0,get:()=>_.CreateContextProvider});Object.defineProperty(exports,"CustomRoutes",{enumerable:!0,get:()=>_.CustomRoutes});Object.defineProperty(exports,"DeleteWithUndoButton",{enumerable:!0,get:()=>_.DeleteWithUndoButton});Object.defineProperty(exports,"EditButton",{enumerable:!0,get:()=>_.EditButton});Object.defineProperty(exports,"EditContextProvider",{enumerable:!0,get:()=>_.EditContextProvider});Object.defineProperty(exports,"FieldTitle",{enumerable:!0,get:()=>_.FieldTitle});Object.defineProperty(exports,"FilterButton",{enumerable:!0,get:()=>_.FilterButton});Object.defineProperty(exports,"FilterList",{enumerable:!0,get:()=>_.FilterList});Object.defineProperty(exports,"FilterListItem",{enumerable:!0,get:()=>_.FilterListItem});Object.defineProperty(exports,"FilterLiveSearch",{enumerable:!0,get:()=>_.FilterLiveSearch});Object.defineProperty(exports,"Form",{enumerable:!0,get:()=>_.Form});Object.defineProperty(exports,"FormDataConsumer",{enumerable:!0,get:()=>_.FormDataConsumer});Object.defineProperty(exports,"HttpError",{enumerable:!0,get:()=>_.HttpError});Object.defineProperty(exports,"I18nContextProvider",{enumerable:!0,get:()=>_.I18nContextProvider});Object.defineProperty(exports,"ListBase",{enumerable:!0,get:()=>_.ListBase});Object.defineProperty(exports,"LoadingIndicator",{enumerable:!0,get:()=>_.LoadingIndicator});Object.defineProperty(exports,"RaSimpleFormIterator",{enumerable:!0,get:()=>_.SimpleFormIterator});Object.defineProperty(exports,"RecordContextProvider",{enumerable:!0,get:()=>_.RecordContextProvider});Object.defineProperty(exports,"ReferenceArrayField",{enumerable:!0,get:()=>_.ReferenceArrayField});Object.defineProperty(exports,"ReferenceField",{enumerable:!0,get:()=>_.ReferenceField});Object.defineProperty(exports,"Resource",{enumerable:!0,get:()=>_.Resource});Object.defineProperty(exports,"ResourceContextProvider",{enumerable:!0,get:()=>_.ResourceContextProvider});Object.defineProperty(exports,"SaveButton",{enumerable:!0,get:()=>_.SaveButton});Object.defineProperty(exports,"SavedQueriesList",{enumerable:!0,get:()=>_.SavedQueriesList});Object.defineProperty(exports,"SimpleFormIteratorContext",{enumerable:!0,get:()=>_.SimpleFormIteratorContext});Object.defineProperty(exports,"SimpleShowLayout",{enumerable:!0,get:()=>_.SimpleShowLayout});Object.defineProperty(exports,"SingleFieldList",{enumerable:!0,get:()=>_.SingleFieldList});Object.defineProperty(exports,"TabbedFormTabs",{enumerable:!0,get:()=>_.TabbedFormTabs});Object.defineProperty(exports,"UrlField",{enumerable:!0,get:()=>_.UrlField});Object.defineProperty(exports,"ValidationError",{enumerable:!0,get:()=>_.ValidationError});Object.defineProperty(exports,"WithListContext",{enumerable:!0,get:()=>_.WithListContext});Object.defineProperty(exports,"choices",{enumerable:!0,get:()=>_.choices});Object.defineProperty(exports,"email",{enumerable:!0,get:()=>_.email});Object.defineProperty(exports,"maxLength",{enumerable:!0,get:()=>_.maxLength});Object.defineProperty(exports,"maxValue",{enumerable:!0,get:()=>_.maxValue});Object.defineProperty(exports,"minLength",{enumerable:!0,get:()=>_.minLength});Object.defineProperty(exports,"minValue",{enumerable:!0,get:()=>_.minValue});Object.defineProperty(exports,"number",{enumerable:!0,get:()=>_.number});Object.defineProperty(exports,"regex",{enumerable:!0,get:()=>_.regex});Object.defineProperty(exports,"required",{enumerable:!0,get:()=>_.required});Object.defineProperty(exports,"useArrayInput",{enumerable:!0,get:()=>_.useArrayInput});Object.defineProperty(exports,"useAuthProvider",{enumerable:!0,get:()=>_.useAuthProvider});Object.defineProperty(exports,"useCheckAuth",{enumerable:!0,get:()=>_.useCheckAuth});Object.defineProperty(exports,"useChoices",{enumerable:!0,get:()=>_.useChoices});Object.defineProperty(exports,"useChoicesContext",{enumerable:!0,get:()=>_.useChoicesContext});Object.defineProperty(exports,"useCreate",{enumerable:!0,get:()=>_.useCreate});Object.defineProperty(exports,"useCreateContext",{enumerable:!0,get:()=>_.useCreateContext});Object.defineProperty(exports,"useCreateController",{enumerable:!0,get:()=>_.useCreateController});Object.defineProperty(exports,"useCreateSuggestionContext",{enumerable:!0,get:()=>_.useCreateSuggestionContext});Object.defineProperty(exports,"useDataProvider",{enumerable:!0,get:()=>_.useDataProvider});Object.defineProperty(exports,"useDeleteMany",{enumerable:!0,get:()=>_.useDeleteMany});Object.defineProperty(exports,"useEditContext",{enumerable:!0,get:()=>_.useEditContext});Object.defineProperty(exports,"useEditController",{enumerable:!0,get:()=>_.useEditController});Object.defineProperty(exports,"useGetIdentity",{enumerable:!0,get:()=>_.useGetIdentity});Object.defineProperty(exports,"useGetList",{enumerable:!0,get:()=>_.useGetList});Object.defineProperty(exports,"useGetMany",{enumerable:!0,get:()=>_.useGetMany});Object.defineProperty(exports,"useGetManyReference",{enumerable:!0,get:()=>_.useGetManyReference});Object.defineProperty(exports,"useGetOne",{enumerable:!0,get:()=>_.useGetOne});Object.defineProperty(exports,"useInput",{enumerable:!0,get:()=>_.useInput});Object.defineProperty(exports,"useListContext",{enumerable:!0,get:()=>_.useListContext});Object.defineProperty(exports,"useListController",{enumerable:!0,get:()=>_.useListController});Object.defineProperty(exports,"useLocaleState",{enumerable:!0,get:()=>_.useLocaleState});Object.defineProperty(exports,"useLocales",{enumerable:!0,get:()=>_.useLocales});Object.defineProperty(exports,"useLogin",{enumerable:!0,get:()=>_.useLogin});Object.defineProperty(exports,"useLogout",{enumerable:!0,get:()=>_.useLogout});Object.defineProperty(exports,"useNotify",{enumerable:!0,get:()=>_.useNotify});Object.defineProperty(exports,"usePermissions",{enumerable:!0,get:()=>_.usePermissions});Object.defineProperty(exports,"useRecordContext",{enumerable:!0,get:()=>_.useRecordContext});Object.defineProperty(exports,"useReferenceArrayFieldController",{enumerable:!0,get:()=>_.useReferenceArrayFieldController});Object.defineProperty(exports,"useRefresh",{enumerable:!0,get:()=>_.useRefresh});Object.defineProperty(exports,"useRemoveFromStore",{enumerable:!0,get:()=>_.useRemoveFromStore});Object.defineProperty(exports,"useResetStore",{enumerable:!0,get:()=>_.useResetStore});Object.defineProperty(exports,"useResourceContext",{enumerable:!0,get:()=>_.useResourceContext});Object.defineProperty(exports,"useResourceDefinition",{enumerable:!0,get:()=>_.useResourceDefinition});Object.defineProperty(exports,"useResourceDefinitions",{enumerable:!0,get:()=>_.useResourceDefinitions});Object.defineProperty(exports,"useSafeSetState",{enumerable:!0,get:()=>_.useSafeSetState});Object.defineProperty(exports,"useShowContext",{enumerable:!0,get:()=>_.useShowContext});Object.defineProperty(exports,"useShowController",{enumerable:!0,get:()=>_.useShowController});Object.defineProperty(exports,"useSimpleFormIterator",{enumerable:!0,get:()=>_.useSimpleFormIterator});Object.defineProperty(exports,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>_.useSimpleFormIteratorItem});Object.defineProperty(exports,"useStore",{enumerable:!0,get:()=>_.useStore});Object.defineProperty(exports,"useStoreContext",{enumerable:!0,get:()=>_.useStoreContext});Object.defineProperty(exports,"useTranslate",{enumerable:!0,get:()=>_.useTranslate});Object.defineProperty(exports,"useTranslateLabel",{enumerable:!0,get:()=>_.useTranslateLabel});Object.defineProperty(exports,"useUnselect",{enumerable:!0,get:()=>_.useUnselect});Object.defineProperty(exports,"useUnselectAll",{enumerable:!0,get:()=>_.useUnselectAll});Object.defineProperty(exports,"useUpdate",{enumerable:!0,get:()=>_.useUpdate});Object.defineProperty(exports,"useUpdateMany",{enumerable:!0,get:()=>_.useUpdateMany});Object.defineProperty(exports,"withLifecycleCallbacks",{enumerable:!0,get:()=>_.withLifecycleCallbacks});exports.ActionsField=ete;exports.ActionsMenu=Qo;exports.ActivatePage=mse;exports.ActiveFiltersChips=Ag;exports.AddTableRow=Y0;exports.Admin=ZO;exports.AnimateButton=AD;exports.AppBarStyled=sO;exports.ApplicaAdmin=Lae;exports.ArrayInput=Jee;exports.AttachmentField=tT;exports.AttachmentInput=Ete;exports.AuthBackground=Zd;exports.AutocompleteArrayInput=Ite;exports.AutocompleteInput=Pte;exports.Avatar=Vu;exports.BooleanInput=Rte;exports.Breadcrumbs=NA;exports.BulkActionsToolbar=LO;exports.BulkDeleteWithConfirmButton=Y2;exports.BulkFloatingActionsToolbar=_ie;exports.Button=Hi;exports.CardForm=q2;exports.ChangePasswordButton=fO;exports.ChangePasswordForm=z0;exports.CircularWithLabel=O$;exports.CircularWithPath=P$;exports.CoverField=rT;exports.Create=cne;exports.CreateButton=X2;exports.CreateButtonClasses=dd;exports.CreateInDialogButton=Hee;exports.Datagrid=zie;exports.DateAgoField=iT;exports.DateField=cte;exports.DateInput=Fte;exports.DateTimeInput=_te;exports.DeleteWithConfirmButton=Nl;exports.Dot=Nm;exports.Drawer=iO;exports.DrawerHeader=XT;exports.DrawerHeaderStyled=YT;exports.DrawerToggle=cO;exports.Edit=fne;exports.EditInDialogButton=Yee;exports.EmailField=dte;exports.Empty=gf;exports.EmptyClasses=Di;exports.Error=I0;exports.Field=BT;exports.FileField=sT;exports.FileInput=Bte;exports.FilterSidebar=Eu;exports.FilterSidebarButton=Zie;exports.FilterSidebarContext=cv;exports.Footer=rv;exports.FormHeader=gne;exports.FunctionField=pte;exports.GenericErrorPage=KO;exports.Header=uO;exports.HeaderButton=aO;exports.HeaderIconButton=Qoe;exports.HeaderNotification=dO;exports.HeaderProfile=gO;exports.HeaderSpacer=vO;exports.HeaderToggleButton=sa;exports.HorizontalBar=yO;exports.IconButton=Hd;exports.ImageField=nT;exports.ImageInput=Nte;exports.ImpersonateUserButton=Kee;exports.LabeledArrayInput=eT;exports.LabeledInput=gn;exports.Layout=EO;exports.LayoutContent=qT;exports.LayoutProvider=UT;exports.LayoutWrapper=AO;exports.LinearWithIcon=j$;exports.LinearWithLabel=R$;exports.List=cse;exports.ListItem=Fie;exports.ListToolbar=GO;exports.ListViewProvider=YO;exports.Loadable=vie;exports.Loader=IO;exports.LoadingButton=eE;exports.LocalStorage=B2;exports.LocaleButton=lO;exports.LocalizedTextField=gte;exports.LocalizedTextInput=Wte;exports.LoginPage=XO;exports.Logo=KT;exports.LogoutButton=pO;exports.LongForm=Ft;exports.MainCard=Mn;exports.MainIcon=iv;exports.MenuConfigProvider=w2;exports.MenuPopover=rE;exports.NavCollapse=el;exports.NavGroup=xO;exports.NavItem=Ja;exports.NavList=CO;exports.NavMenu=bO;exports.Navigation=wO;exports.Notification=OO;exports.NotificationList=pse;exports.NumberInput=Ute;exports.OnboardingActionType=Ds;exports.OnboardingContext=sv;exports.OnboardingModes=gl;exports.OnboardingProvider=Sie;exports.OnboardingTip=Iie;exports.Pagination=lv;exports.PaginationActions=av;exports.PopupTransition=I$;exports.RadioButtonGroupInput=Gte;exports.ReadonlyField=bte;exports.RecordInput=qte;exports.RecoverPage=vse;exports.ReferenceArrayInput=Yte;exports.ReferenceInput=Kte;exports.ReferenceManyField=lT;exports.ReferenceManyInput=Xte;exports.RegisterPage=yse;exports.RemoveSavedQueryDialog=zO;exports.ResponsiveSection=mO;exports.SaveFiltersButton=WO;exports.SaveFiltersDialog=VO;exports.SavedFiltersList=UO;exports.ScrollTop=DO;exports.ScrollX=Mie;exports.SearchInput=Qte;exports.SelectArrayInput=ene;exports.SelectInput=nne;exports.ShadowBox=kie;exports.Show=Rne;exports.Sidebar=hr;exports.SimpleBar=oO;exports.SimpleForm=V0;exports.SimpleFormIterator=kne;exports.SimpleList=hse;exports.SizeField=wte;exports.SmallIcon=_O;exports.SmartTextInput=rne;exports.StopImpersonateButton=hO;exports.StyledArrow=tE;exports.TabbedForm=q0;exports.TableCreateButton=X0;exports.TableFormIterator=df;exports.TableFormIteratorContext=Z0;exports.TableFormIteratorItem=$T;exports.TableFormIteratorItemContext=K0;exports.TextField=aT;exports.TextInput=mr;exports.ThemeColor=ov;exports.ThemeContext=B0;exports.ThemeCustomizationProvider=fv;exports.ThemeProvider=yg;exports.ThemeToggler=SO;exports.TimeInput=ane;exports.Toolbar=ni;exports.Tooltip=Xd;exports.TopToolbar=TO;exports.Transitions=Zo;exports.WizardForm=WT;exports.createI18nProvider=JO;exports.createJsonI18nProvider=Fae;exports.getLocalizedValue=D0;exports.getPosition=nE;exports.getThemeColor=sn;exports.getThemeShadow=Xs;exports.localizedValueHasAllLocales=cd;exports.localizedValueHasAtLeastOneLocale=N2;exports.onboardingModesSchema=jO;exports.onboardingTopicSchema=PO;exports.parseTime=W2;exports.useBreadcrumbs=S2;exports.useGetChipValue=uv;exports.useGetLocalizedValue=xee;exports.useI18nLanguages=Dae;exports.useI18nProvider=eP;exports.useIsEnabledSidebarFilter=$O;exports.useLayoutContext=Q0;exports.useLayoutDispatch=Xne;exports.useLayoutDrawerState=Gi;exports.useLayoutLogoState=GT;exports.useLayoutMediaState=Qn;exports.useLayoutNotificationsState=pf;exports.useLayoutState=oa;exports.useLayoutThemeState=Zne;exports.useListViewContext=dv;exports.useLocalStorage=_0;exports.useLocalizedValue=bee;exports.useMemoizedObject=U2;exports.useMenu=O0;exports.useMenuConfig=pl;exports.useMenuContext=sf;exports.useOnboardingDataProvider=RO;exports.useOnboardingTip=FO;exports.usePopoverState=ra;exports.useRefDimensions=Cee;exports.useResourceDefaultValues=une;exports.useResourceTitle=L0;exports.useRestartOnboarding=Eie;exports.useSx=Mr;exports.useSystemTheme=H2;exports.useTableFormIterator=NT;exports.useTableFormIteratorItem=LT;exports.useThemeConfig=Sn;exports.useThemeContext=N0;exports.useWizardFormContext=ff;exports.uuid=wJ;exports.walkChildren=uf;exports.withLayoutProvider=HT;
|
|
226
226
|
//# sourceMappingURL=react-admin.cjs.js.map
|