@zydon/common 1.0.27 → 1.0.28
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/ThemeProvider/overrides/Button.d.ts +1 -0
- package/dist/components/ThemeProvider/overrides/Button.d.ts.map +1 -1
- package/dist/{features-0c4addca.js → features-9ef7c9f9.js} +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useCopyToClipboard.d.ts +9 -0
- package/dist/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/{index-fd078379.js → index-d3d64aa6.js} +101 -87
- package/dist/index.js +27 -26
- package/dist/index.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(z,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-hook-form"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-hook-form","react-router-dom"],g):(z=typeof globalThis<"u"?globalThis:z||self,g(z.common={},z.React,z.material,z.react,z.xDatePickersPro,z.xDataGridPremium,z.require$$1,z.emStyled,z.reactHookForm,z.reactRouterDom))})(this,function(z,g,P,Nl,co,Xn,Rd,m2,yt,Fr){"use strict";function v2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=v2(g),Bd={duration:2,ease:[.43,.13,.23,.96]},y2={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Bd}},b2=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},Pe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},$e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},fo=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:Pe},exit:{opacity:0,transition:$e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}}}},x2=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:Pe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:Pe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:Pe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:Pe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:Pe({durationIn:r,easeIn:i})}}}},w2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}}}},C2=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}}}},S2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}}}},E2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...Pe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},T2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:Pe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}}}},_2=e=>({hover:{scale:e||1.1}}),Ea=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},O2=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},k2=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},M2=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=o=>`linear-gradient(${o}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}};var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zl={exports:{}},po={};/**
|
|
1
|
+
(function(N,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@mui/material"),require("@emotion/react"),require("@mui/x-date-pickers-pro"),require("@mui/x-data-grid-premium"),require("react-dom"),require("@emotion/styled"),require("react-hook-form"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/react","@mui/x-date-pickers-pro","@mui/x-data-grid-premium","react-dom","@emotion/styled","react-hook-form","react-router-dom"],g):(N=typeof globalThis<"u"?globalThis:N||self,g(N.common={},N.React,N.material,N.react,N.xDatePickersPro,N.xDataGridPremium,N.require$$1,N.emStyled,N.reactHookForm,N.reactRouterDom))})(this,function(N,g,P,Nl,co,Xn,Rd,m2,yt,Fr){"use strict";function v2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=v2(g),Bd={duration:2,ease:[.43,.13,.23,.96]},y2={animate:{fillOpacity:[0,0,1],pathLength:[1,.4,0],transition:Bd}},b2=e=>{const t=(e==null?void 0:e.duration)||.32,r=(e==null?void 0:e.ease)||[.43,.13,.23,.96];return{duration:t,ease:r}},Pe=e=>{const t=(e==null?void 0:e.durationIn)||.64,r=(e==null?void 0:e.easeIn)||[.43,.13,.23,.96];return{duration:t,ease:r}},$e=e=>{const t=(e==null?void 0:e.durationOut)||.48,r=(e==null?void 0:e.easeOut)||[.43,.13,.23,.96];return{duration:t,ease:r}},fo=e=>{const t=(e==null?void 0:e.distance)||120,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0},animate:{opacity:1,transition:Pe},exit:{opacity:0,transition:$e}},inUp:{initial:{y:t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t,opacity:0},animate:{y:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t,opacity:0},animate:{x:0,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,opacity:0,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{opacity:1},animate:{opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{opacity:1,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0,opacity:1},animate:{y:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0,opacity:1},animate:{y:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0,opacity:1},animate:{x:-t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0,opacity:1},animate:{x:t,opacity:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,opacity:1,transition:$e({durationOut:n,easeOut:o})}}}},x2=e=>{const t=(e==null?void 0:e.distance)||720,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{in:{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,transition:$e({durationOut:n,easeOut:o})}},inUp:{initial:{scale:0,opacity:0,translateY:t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{scale:0,opacity:0,translateY:-t},animate:{scale:1,opacity:1,translateY:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateY:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{scale:0,opacity:0,translateX:-t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{scale:0,opacity:0,translateX:t},animate:{scale:1,opacity:1,translateX:0,transition:Pe({durationIn:r,easeIn:i})},exit:{scale:0,opacity:0,translateX:t,transition:$e({durationOut:n,easeOut:o})}},out:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,transition:Pe({durationIn:r,easeIn:i})}},outUp:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:-t,transition:Pe({durationIn:r,easeIn:i})}},outDown:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateY:t,transition:Pe({durationIn:r,easeIn:i})}},outLeft:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:-t,transition:Pe({durationIn:r,easeIn:i})}},outRight:{initial:{scale:1,opacity:1},animate:{scale:0,opacity:0,translateX:t,transition:Pe({durationIn:r,easeIn:i})}}}},w2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{rotateX:-180,opacity:0},animate:{rotateX:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateX:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{rotateY:-180,opacity:0},animate:{rotateY:0,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{rotateY:-180,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{rotateX:0,opacity:1},animate:{rotateX:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outY:{initial:{rotateY:0,opacity:1},animate:{rotateY:70,opacity:0,transition:$e({durationOut:r,easeOut:i})}}}},C2=e=>{const t=(e==null?void 0:e.distance)||160,r=e==null?void 0:e.durationIn,n=e==null?void 0:e.durationOut,i=e==null?void 0:e.easeIn,o=e==null?void 0:e.easeOut;return{inUp:{initial:{y:t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:t,transition:$e({durationOut:n,easeOut:o})}},inDown:{initial:{y:-t},animate:{y:0,transition:Pe({durationIn:r,easeIn:i})},exit:{y:-t,transition:$e({durationOut:n,easeOut:o})}},inLeft:{initial:{x:-t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:-t,transition:$e({durationOut:n,easeOut:o})}},inRight:{initial:{x:t},animate:{x:0,transition:Pe({durationIn:r,easeIn:i})},exit:{x:t,transition:$e({durationOut:n,easeOut:o})}},outUp:{initial:{y:0},animate:{y:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outDown:{initial:{y:0},animate:{y:t,transition:Pe({durationIn:r,easeIn:i})},exit:{y:0,transition:$e({durationOut:n,easeOut:o})}},outLeft:{initial:{x:0},animate:{x:-t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}},outRight:{initial:{x:0},animate:{x:t,transition:Pe({durationIn:r,easeIn:i})},exit:{x:0,transition:$e({durationOut:n,easeOut:o})}}}},S2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{inX:{initial:{scaleX:0,opacity:0},animate:{scaleX:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleX:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},inY:{initial:{scaleY:0,opacity:0},animate:{scaleY:1,opacity:1,transition:Pe({durationIn:t,easeIn:n})},exit:{scaleY:0,opacity:0,transition:$e({durationOut:r,easeOut:i})}},outX:{initial:{scaleX:1,opacity:1},animate:{scaleX:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}},outY:{initial:{scaleY:1,opacity:1},animate:{scaleY:0,opacity:0,transition:Pe({durationIn:t,easeIn:n})}}}},E2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...Pe({durationIn:t,easeIn:n})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:Pe({durationIn:t,easeIn:n})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:$e({durationOut:r,easeOut:i})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}},T2=e=>{const t=e==null?void 0:e.durationIn,r=e==null?void 0:e.durationOut,n=e==null?void 0:e.easeIn,i=e==null?void 0:e.easeOut;return{in:{initial:{opacity:0,rotate:-360},animate:{opacity:1,rotate:0,transition:Pe({durationIn:t,easeIn:n})},exit:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}},out:{initial:{opacity:1,rotate:0},animate:{opacity:0,rotate:-360,transition:$e({durationOut:r,easeOut:i})}}}},_2=e=>({hover:{scale:e||1.1}}),Ea=e=>{const t=(e==null?void 0:e.staggerIn)||.05,r=(e==null?void 0:e.staggerIn)||.05,n=(e==null?void 0:e.staggerIn)||.05;return{animate:{transition:{staggerChildren:t,delayChildren:r}},exit:{transition:{staggerChildren:n,staggerDirection:-1}}}},O2=e=>{const t=(e==null?void 0:e.colors)||["#19dcea","#b22cff"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear";return{animate:{background:t,transition:{duration:r,ease:n}}}},k2=e=>{const t=(e==null?void 0:e.duration)||5,r=(e==null?void 0:e.ease)||"easeOut";return{top:{animate:{scale:[1,1.25],y:[0,-15],transformOrigin:["50% 16%","top"],transition:{duration:t,ease:r}}},right:{animate:{scale:[1,1.25],x:[0,20],y:[0,-15],transformOrigin:["84% 50%","right"],transition:{duration:t,ease:r}}},bottom:{animate:{scale:[1,1.25],y:[0,15],transformOrigin:["50% 84%","bottom"],transition:{duration:t,ease:r}}},left:{animate:{scale:[1,1.25],x:[0,-20],y:[0,15],transformOrigin:["16% 50%","left"],transition:{duration:t,ease:r}}}}},M2=e=>{const t=(e==null?void 0:e.colors)||["#ee7752","#e73c7e","#23a6d5","#23d5ab"],r=(e==null?void 0:e.duration)||5,n=(e==null?void 0:e.ease)||"linear",i=o=>`linear-gradient(${o}deg, ${t})`;return{top:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 99%","center 1%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},right:{animate:{backgroundPosition:["1% center","99% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}},bottom:{animate:{backgroundImage:[i(0),i(0)],backgroundPosition:["center 1%","center 99%"],backgroundSize:["100% 600%","100% 600%"],transition:{duration:r,ease:n}}},left:{animate:{backgroundPosition:["99% center","1% center"],backgroundImage:[i(270),i(270)],backgroundSize:["600% 100%","600% 100%"],transition:{duration:r,ease:n}}}}};var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zl={exports:{}},po={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
`+ge+S}}var Q=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function R(S,V){if(!S||Q)return"";{var J=ne.get(S);if(J!==void 0)return J}var Te;Q=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var it;it=ue.current,ue.current=null,H();try{if(V){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(Qr){Te=Qr}Reflect.construct(S,[],ze)}else{try{ze.call()}catch(Qr){Te=Qr}S.call(ze.prototype)}}else{try{throw Error()}catch(Qr){Te=Qr}S()}}catch(Qr){if(Qr&&Te&&typeof Qr.stack=="string"){for(var Fe=Qr.stack.split(`
|
|
19
19
|
`),Wt=Te.stack.split(`
|
|
20
20
|
`),Ot=Fe.length-1,Pt=Wt.length-1;Ot>=1&&Pt>=0&&Fe[Ot]!==Wt[Pt];)Pt--;for(;Ot>=1&&Pt>=0;Ot--,Pt--)if(Fe[Ot]!==Wt[Pt]){if(Ot!==1||Pt!==1)do if(Ot--,Pt--,Pt<0||Fe[Ot]!==Wt[Pt]){var hr=`
|
|
21
|
-
`+Fe[Ot].replace(" at new "," at ");return S.displayName&&hr.includes("<anonymous>")&&(hr=hr.replace("<anonymous>",S.displayName)),typeof S=="function"&&ne.set(S,hr),hr}while(Ot>=1&&Pt>=0);break}}}finally{Q=!1,ue.current=it,fe(),Error.prepareStackTrace=qe}var uo=S?S.displayName||S.name:"",g2=uo?Z(uo):"";return typeof S=="function"&&ne.set(S,g2),g2}function Be(S,V,J){return R(S,!1)}function le(S){var V=S.prototype;return!!(V&&V.isReactComponent)}function ht(S,V,J){if(S==null)return"";if(typeof S=="function")return R(S,le(S));if(typeof S=="string")return Z(S);switch(S){case l:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return Be(S.render);case f:return ht(S.type,V,J);case d:{var Te=S,qe=Te._payload,it=Te._init;try{return ht(it(qe),V,J)}catch{}}}return""}var Zt=Object.prototype.hasOwnProperty,Vt={},Kr=x.ReactDebugCurrentFrame;function wr(S){if(S){var V=S._owner,J=ht(S.type,S._source,V?V.type:null);Kr.setExtraStackFrame(J)}else Kr.setExtraStackFrame(null)}function Cr(S,V,J,Te,qe){{var it=Function.call.bind(Zt);for(var ze in S)if(it(S,ze)){var Fe=void 0;try{if(typeof S[ze]!="function"){var Wt=Error((Te||"React class")+": "+J+" type `"+ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Wt.name="Invariant Violation",Wt}Fe=S[ze](V,ze,Te,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Fe=Ot}Fe&&!(Fe instanceof Error)&&(wr(qe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",J,ze,typeof Fe),wr(null)),Fe instanceof Error&&!(Fe.message in Vt)&&(Vt[Fe.message]=!0,wr(qe),b("Failed %s type: %s",J,Fe.message),wr(null))}}}var Ca=Array.isArray;function bn(S){return Ca(S)}function qn(S){{var V=typeof Symbol=="function"&&Symbol.toStringTag,J=V&&S[Symbol.toStringTag]||S.constructor.name||"Object";return J}}function K(S){try{return ve(S),!1}catch{return!0}}function ve(S){return""+S}function ct(S){if(K(S))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qn(S)),ve(S)}var I=x.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},B,
|
|
21
|
+
`+Fe[Ot].replace(" at new "," at ");return S.displayName&&hr.includes("<anonymous>")&&(hr=hr.replace("<anonymous>",S.displayName)),typeof S=="function"&&ne.set(S,hr),hr}while(Ot>=1&&Pt>=0);break}}}finally{Q=!1,ue.current=it,fe(),Error.prepareStackTrace=qe}var uo=S?S.displayName||S.name:"",g2=uo?Z(uo):"";return typeof S=="function"&&ne.set(S,g2),g2}function Be(S,V,J){return R(S,!1)}function le(S){var V=S.prototype;return!!(V&&V.isReactComponent)}function ht(S,V,J){if(S==null)return"";if(typeof S=="function")return R(S,le(S));if(typeof S=="string")return Z(S);switch(S){case l:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case u:return Be(S.render);case f:return ht(S.type,V,J);case d:{var Te=S,qe=Te._payload,it=Te._init;try{return ht(it(qe),V,J)}catch{}}}return""}var Zt=Object.prototype.hasOwnProperty,Vt={},Kr=x.ReactDebugCurrentFrame;function wr(S){if(S){var V=S._owner,J=ht(S.type,S._source,V?V.type:null);Kr.setExtraStackFrame(J)}else Kr.setExtraStackFrame(null)}function Cr(S,V,J,Te,qe){{var it=Function.call.bind(Zt);for(var ze in S)if(it(S,ze)){var Fe=void 0;try{if(typeof S[ze]!="function"){var Wt=Error((Te||"React class")+": "+J+" type `"+ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Wt.name="Invariant Violation",Wt}Fe=S[ze](V,ze,Te,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Fe=Ot}Fe&&!(Fe instanceof Error)&&(wr(qe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",J,ze,typeof Fe),wr(null)),Fe instanceof Error&&!(Fe.message in Vt)&&(Vt[Fe.message]=!0,wr(qe),b("Failed %s type: %s",J,Fe.message),wr(null))}}}var Ca=Array.isArray;function bn(S){return Ca(S)}function qn(S){{var V=typeof Symbol=="function"&&Symbol.toStringTag,J=V&&S[Symbol.toStringTag]||S.constructor.name||"Object";return J}}function K(S){try{return ve(S),!1}catch{return!0}}function ve(S){return""+S}function ct(S){if(K(S))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qn(S)),ve(S)}var I=x.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},B,z,Ce;Ce={};function ke(S){if(Zt.call(S,"ref")){var V=Object.getOwnPropertyDescriptor(S,"ref").get;if(V&&V.isReactWarning)return!1}return S.ref!==void 0}function Ne(S){if(Zt.call(S,"key")){var V=Object.getOwnPropertyDescriptor(S,"key").get;if(V&&V.isReactWarning)return!1}return S.key!==void 0}function A(S,V){if(typeof S.ref=="string"&&I.current&&V&&I.current.stateNode!==V){var J=se(I.current.type);Ce[J]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(I.current.type),S.ref),Ce[J]=!0)}}function F(S,V){{var J=function(){B||(B=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};J.isReactWarning=!0,Object.defineProperty(S,"key",{get:J,configurable:!0})}}function ce(S,V){{var J=function(){z||(z=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};J.isReactWarning=!0,Object.defineProperty(S,"ref",{get:J,configurable:!0})}}var oe=function(S,V,J,Te,qe,it,ze){var Fe={$$typeof:t,type:S,key:V,ref:J,props:ze,_owner:it};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function ie(S,V,J,Te,qe){{var it,ze={},Fe=null,Wt=null;J!==void 0&&(ct(J),Fe=""+J),Ne(V)&&(ct(V.key),Fe=""+V.key),ke(V)&&(Wt=V.ref,A(V,qe));for(it in V)Zt.call(V,it)&&!M.hasOwnProperty(it)&&(ze[it]=V[it]);if(S&&S.defaultProps){var Ot=S.defaultProps;for(it in Ot)ze[it]===void 0&&(ze[it]=Ot[it])}if(Fe||Wt){var Pt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Fe&&F(ze,Pt),Wt&&ce(ze,Pt)}return oe(S,Fe,Wt,qe,Te,I.current,ze)}}var Me=x.ReactCurrentOwner,st=x.ReactDebugCurrentFrame;function et(S){if(S){var V=S._owner,J=ht(S.type,S._source,V?V.type:null);st.setExtraStackFrame(J)}else st.setExtraStackFrame(null)}var tt;tt=!1;function _t(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function vt(){{if(Me.current){var S=se(Me.current.type);if(S)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+S+"`."}return""}}function Ft(S){{if(S!==void 0){var V=S.fileName.replace(/^.*[\\\/]/,""),J=S.lineNumber;return`
|
|
24
24
|
|
|
25
25
|
Check your code at `+V+":"+J+"."}return""}}var Xr={};function Zr(S){{var V=vt();if(!V){var J=typeof S=="string"?S:S.displayName||S.name;J&&(V=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+J+">.")}return V}}function Kn(S,V){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var J=Zr(V);if(Xr[J])return;Xr[J]=!0;var Te="";S&&S._owner&&S._owner!==Me.current&&(Te=" It was passed a child from "+se(S._owner.type)+"."),et(S),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,Te),et(null)}}function Sa(S,V){{if(typeof S!="object")return;if(bn(S))for(var J=0;J<S.length;J++){var Te=S[J];_t(Te)&&Kn(Te,V)}else if(_t(S))S._store&&(S._store.validated=!0);else if(S){var qe=v(S);if(typeof qe=="function"&&qe!==S.entries)for(var it=qe.call(S),ze;!(ze=it.next()).done;)_t(ze.value)&&Kn(ze.value,V)}}}function Bl(S){{var V=S.type;if(V==null||typeof V=="string")return;var J;if(typeof V=="function")J=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===u||V.$$typeof===f))J=V.propTypes;else return;if(J){var Te=se(V);Cr(J,S.props,"prop",Te,S)}else if(V.PropTypes!==void 0&&!tt){tt=!0;var qe=se(V);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xX(S){{for(var V=Object.keys(S.props),J=0;J<V.length;J++){var Te=V[J];if(Te!=="children"&&Te!=="key"){et(S),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),et(null);break}}S.ref!==null&&(et(S),b("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}function p2(S,V,J,Te,qe,it){{var ze=L(S);if(!ze){var Fe="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Fe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Wt=Ft(qe);Wt?Fe+=Wt:Fe+=vt();var Ot;S===null?Ot="null":bn(S)?Ot="array":S!==void 0&&S.$$typeof===t?(Ot="<"+(se(S.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof S,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Fe)}var Pt=ie(S,V,J,qe,it);if(Pt==null)return Pt;if(ze){var hr=V.children;if(hr!==void 0)if(Te)if(bn(hr)){for(var uo=0;uo<hr.length;uo++)Sa(hr[uo],S);Object.freeze&&Object.freeze(hr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Sa(hr,S)}return S===n?xX(Pt):Bl(Pt),Pt}}function wX(S,V,J){return p2(S,V,J,!0)}function CX(S,V,J){return p2(S,V,J,!1)}var SX=CX,EX=wX;go.Fragment=n,go.jsx=SX,go.jsxs=EX}()),go}process.env.NODE_ENV==="production"?zl.exports=P2():zl.exports=A2();var y=zl.exports;const Vd=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ta=g.createContext({}),_a=g.createContext(null),Oa=typeof document<"u",Vl=Oa?g.useLayoutEffect:g.useEffect,Wl=g.createContext({strict:!1});function D2(e,t,r,n){const{visualElement:i}=g.useContext(Ta),o=g.useContext(Wl),a=g.useContext(_a),s=g.useContext(Vd).reducedMotion,u=g.useRef();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;g.useInsertionEffect(()=>{l&&l.update(r,a)});const c=g.useRef(!!window.HandoffAppearAnimations);return Vl(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),g.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Zn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $2(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Zn(r)&&(r.current=n))},[t])}function mo(e){return typeof e=="string"||Array.isArray(e)}function ka(e){return typeof e=="object"&&typeof e.start=="function"}const Hl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ul=["initial",...Hl];function Ma(e){return ka(e.animate)||Ul.some(t=>mo(e[t]))}function Wd(e){return!!(Ma(e)||e.variants)}function I2(e,t){if(Ma(e)){const{initial:r,animate:n}=e;return{initial:r===!1||mo(r)?r:void 0,animate:mo(n)?n:void 0}}return e.inherit!==!1?t:{}}function F2(e){const{initial:t,animate:r}=I2(e,g.useContext(Ta));return g.useMemo(()=>({initial:t,animate:r}),[Hd(t),Hd(r)])}function Hd(e){return Array.isArray(e)?e.join(" "):e}const Ud={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"]},vo={};for(const e in Ud)vo[e]={isEnabled:t=>Ud[e].some(r=>!!t[r])};function Yl(e){for(const t in e)vo[t]={...vo[t],...e[t]}}const Gl=g.createContext({}),Yd=g.createContext({}),j2=Symbol.for("motionComponentSymbol");function L2({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&Yl(e);function o(s,u){let l;const c={...g.useContext(Vd),...s,layoutId:R2(s)},{isStatic:f}=c,d=F2(s),h=n(s,f);if(!f&&Oa){d.visualElement=D2(i,h,c,t);const m=g.useContext(Yd),p=g.useContext(Wl).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,m))}return xe.createElement(Ta.Provider,{value:d},l&&d.visualElement?xe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,$2(h,d.visualElement,u),h,f,d.visualElement))}const a=g.forwardRef(o);return a[j2]=i,a}function R2({layoutId:e}){const t=g.useContext(Gl).id;return t&&e!==void 0?t+"-"+e:e}function B2(e){function t(n,i={}){return L2(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const N2=["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 ql(e){return typeof e!="string"||e.includes("-")?!1:!!(N2.indexOf(e)>-1||/[A-Z]/.test(e))}const Pa={};function z2(e){Object.assign(Pa,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(yo);function Gd(e,{layout:t,layoutId:r}){return wn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Pa[e]||e==="opacity")}const Ht=e=>!!(e&&e.getVelocity),V2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=yo.length;function H2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<W2;a++){const s=yo[a];if(e[s]!==void 0){const u=V2[s]||s;o+=`${u}(${e[s]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const qd=e=>t=>typeof t=="string"&&t.startsWith(e),Kd=qd("--"),Kl=qd("var(--"),U2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Y2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jr=(e,t,r)=>Math.min(Math.max(r,e),t),Cn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bo={...Cn,transform:e=>Jr(0,1,e)},Aa={...Cn,default:1},xo=e=>Math.round(e*1e5)/1e5,Da=/(-)?([\d]*\.?[\d])+/g,Xd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wo(e){return typeof e=="string"}const Co=e=>({test:t=>wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),en=Co("deg"),Sr=Co("%"),we=Co("px"),q2=Co("vh"),K2=Co("vw"),Zd={...Sr,parse:e=>Sr.parse(e)/100,transform:e=>Sr.transform(e*100)},Qd={...Cn,transform:Math.round},Jd={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,size:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:Aa,scaleX:Aa,scaleY:Aa,scaleZ:Aa,skew:en,skewX:en,skewY:en,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:bo,originX:Zd,originY:Zd,originZ:we,zIndex:Qd,fillOpacity:bo,strokeOpacity:bo,numOctaves:Qd};function Xl(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(Kd(f)){o[f]=d;continue}const h=Jd[f],m=Y2(d,h);if(wn.has(f)){if(u=!0,a[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=m):i[f]=m}if(t.transform||(u||n?i.transform=H2(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Zl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(const n in t)!Ht(t[n])&&!Gd(n,r)&&(e[n]=t[n])}function X2({transformTemplate:e},t,r){return g.useMemo(()=>{const n=Zl();return Xl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Z2(e,t,r){const n=e.style||{},i={};return eh(i,n,e),Object.assign(i,X2(e,t,r)),e.transformValues?e.transformValues(i):i}function Q2(e,t,r){const n={},i=Z2(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const J2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $a(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||J2.has(e)}let th=e=>!$a(e);function ex(e){e&&(th=t=>t.startsWith("on")?!$a(t):e(t))}try{ex(require("@emotion/is-prop-valid").default)}catch{}function tx(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(th(i)||r===!0&&$a(i)||!t&&!$a(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function rh(e,t,r){return typeof e=="string"?e:we.transform(t+r*e)}function rx(e,t,r){const n=rh(t,e.x,e.width),i=rh(r,e.y,e.height);return`${n} ${i}`}const nx={offset:"stroke-dashoffset",array:"stroke-dasharray"},ix={offset:"strokeDashoffset",array:"strokeDasharray"};function ox(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?nx:ix;e[o.offset]=we.transform(-n);const a=we.transform(t),s=we.transform(r);e[o.array]=`${a} ${s}`}function Ql(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Xl(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rx(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&ox(h,a,s,u,!1)}const nh=()=>({...Zl(),attrs:{}}),Jl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ax(e,t,r,n){const i=g.useMemo(()=>{const o=nh();return Ql(o,t,{enableHardwareAcceleration:!1},Jl(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};eh(o,e.style,e),i.style={...o,...i.style}}return i}function sx(e=!1){return(r,n,i,{latestValues:o},a)=>{const u=(ql(r)?ax:Q2)(n,o,a,r),c={...tx(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=g.useMemo(()=>Ht(f)?f.get():f,[f]);return g.createElement(r,{...c,children:d})}}const eu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ih(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const oh=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 ah(e,t,r,n){ih(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(oh.has(i)?i:eu(i),t.attrs[i])}function tu(e,t){const{style:r}=e,n={};for(const i in r)(Ht(r[i])||t.style&&Ht(t.style[i])||Gd(i,e))&&(n[i]=r[i]);return n}function sh(e,t){const r=tu(e,t);for(const n in e)if(Ht(e[n])||Ht(t[n])){const i=yo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function ru(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function lh(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ia=e=>Array.isArray(e),lx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ux=e=>Ia(e)?e[e.length-1]||0:e;function Fa(e){const t=Ht(e)?e.get():e;return lx(t)?t.toValue():t}function cx({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:fx(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const uh=e=>(t,r)=>{const n=g.useContext(Ta),i=g.useContext(_a),o=()=>cx(e,t,n,i);return r?o():lh(o)};function fx(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=Fa(o[d]);let{initial:a,animate:s}=e;const u=Ma(e),l=Wd(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ka(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=ru(e,h);if(!m)return;const{transitionEnd:p,transition:v,...x}=m;for(const b in x){let C=x[b];if(Array.isArray(C)){const E=c?C.length-1:0;C=C[E]}C!==null&&(i[b]=C)}for(const b in p)i[b]=p[b]}),i}const bt=e=>e;class ch{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 r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function dx(e){let t=new ch,r=new ch,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&a.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const ja=["prepare","read","update","preRender","render","postRender"],hx=40;function px(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=ja.reduce((f,d)=>(f[d]=dx(()=>r=!0),f),{}),a=f=>o[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,hx),1),i.timestamp=f,i.isProcessing=!0,ja.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:ja.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,v=!1)=>(r||u(),h.schedule(m,p,v)),f},{}),cancel:f=>ja.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:ot,cancel:jr,state:Dt,steps:nu}=px(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),gx={useVisualState:uh({scrapeMotionValuesFromProps:sh,createRenderState:nh,onMount:(e,t,{renderState:r,latestValues:n})=>{ot.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ot.render(()=>{Ql(r,n,{enableHardwareAcceleration:!1},Jl(t.tagName),e.transformTemplate),ah(t,r)})}})},mx={useVisualState:uh({scrapeMotionValuesFromProps:tu,createRenderState:Zl})};function vx(e,{forwardMotionProps:t=!1},r,n){return{...ql(e)?gx:mx,preloadedFeatures:r,useRender:sx(t),createVisualElement:n,Component:e}}function Lr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function La(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const yx=e=>t=>fh(t)&&e(t,La(t));function Rr(e,t,r,n){return Lr(e,t,yx(r),n)}const bx=(e,t)=>r=>t(e(r)),tn=(...e)=>e.reduce(bx);function dh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const hh=dh("dragHorizontal"),ph=dh("dragVertical");function gh(e){let t=!1;if(e==="y")t=ph();else if(e==="x")t=hh();else{const r=hh(),n=ph();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function mh(){const e=gh(!0);return e?(e(),!1):!0}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vh(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||mh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ot.update(()=>s[n](o,a))};return Rr(e.current,r,i,{passive:!e.getProps()[n]})}class xx extends rn{mount(){this.unmount=tn(vh(this.node,!0),vh(this.node,!1))}unmount(){}}class wx extends rn{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=tn(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yh=(e,t)=>t?e===t?!0:yh(e,t.parentElement):!1;function iu(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,La(r))}class Cx extends rn{constructor(){super(...arguments),this.removeStartListeners=bt,this.removeEndListeners=bt,this.removeAccessibleListeners=bt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=Rr(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();ot.update(()=>{yh(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),a=Rr(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tn(o,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||iu("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&ot.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",a),iu("down",(s,u)=>{this.startPress(s,u)})},r=Lr(this.node.current,"keydown",t),n=()=>{this.isPressing&&iu("cancel",(o,a)=>this.cancelPress(o,a))},i=Lr(this.node.current,"blur",n);this.removeAccessibleListeners=tn(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ot.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ot.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Rr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ou=new WeakMap,au=new WeakMap,Sx=e=>{const t=ou.get(e.target);t&&t(e)},Ex=e=>{e.forEach(Sx)};function Tx({root:e,...t}){const r=e||document;au.has(r)||au.set(r,{});const n=au.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ex,{root:e,...t})),n[i]}function _x(e,t,r){const n=Tx(t);return ou.set(e,r),n.observe(e),()=>{ou.delete(e),n.unobserve(e)}}const Ox={some:0,all:1};class kx extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Ox[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return _x(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Mx(t,r))&&this.startObserver()}unmount(){}}function Mx({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Px={inView:{Feature:kx},tap:{Feature:Cx},focus:{Feature:wx},hover:{Feature:xx}};function bh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Ax(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Dx(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ra(e,t,r){const n=e.getProps();return ru(n,t,r!==void 0?r:n.custom,Ax(e),Dx(e))}const $x="data-"+eu("framerAppearId");let So=bt,pr=bt;process.env.NODE_ENV!=="production"&&(So=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},pr=(e,t)=>{if(!e)throw new Error(t)});const nn=e=>e*1e3,Br=e=>e/1e3,Ix={current:!1},xh=e=>Array.isArray(e)&&typeof e[0]=="number";function wh(e){return!!(!e||typeof e=="string"&&Ch[e]||xh(e)||Array.isArray(e)&&e.every(wh))}const Eo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ch={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Eo([0,.65,.55,1]),circOut:Eo([.55,0,1,.45]),backIn:Eo([.31,.01,.66,-.59]),backOut:Eo([.33,1.53,.69,.99])};function Sh(e){if(e)return xh(e)?Eo(e):Array.isArray(e)?e.map(Sh):Ch[e]}function Fx(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=Sh(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function jx(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Eh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Lx=1e-7,Rx=12;function Bx(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=Eh(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Lx&&++s<Rx);return a}function To(e,t,r,n){if(e===t&&r===n)return bt;const i=o=>Bx(o,0,1,e,r);return o=>o===0||o===1?o:Eh(i(o),t,n)}const Nx=To(.42,0,1,1),zx=To(0,0,.58,1),Th=To(.42,0,.58,1),Vx=e=>Array.isArray(e)&&typeof e[0]!="number",_h=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Oh=e=>t=>1-e(1-t),kh=e=>1-Math.sin(Math.acos(e)),su=Oh(kh),Wx=_h(su),Mh=To(.33,1.53,.69,.99),lu=Oh(Mh),Hx=_h(lu),Ph={linear:bt,easeIn:Nx,easeInOut:Th,easeOut:zx,circIn:kh,circInOut:Wx,circOut:su,backIn:lu,backInOut:Hx,backOut:Mh,anticipate:e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1)))},Ah=e=>{if(Array.isArray(e)){pr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return To(t,r,n,i)}else if(typeof e=="string")return pr(Ph[e]!==void 0,`Invalid easing type '${e}'`),Ph[e];return e},uu=(e,t)=>r=>!!(wo(r)&&G2.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Dh=(e,t,r)=>n=>{if(!wo(n))return n;const[i,o,a,s]=n.match(Da);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ux=e=>Jr(0,255,e),cu={...Cn,transform:e=>Math.round(Ux(e))},Sn={test:uu("rgb","red"),parse:Dh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+cu.transform(e)+", "+cu.transform(t)+", "+cu.transform(r)+", "+xo(bo.transform(n))+")"};function Yx(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const fu={test:uu("#"),parse:Yx,transform:Sn.transform},Qn={test:uu("hsl","hue"),parse:Dh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Sr.transform(xo(t))+", "+Sr.transform(xo(r))+", "+xo(bo.transform(n))+")"},zt={test:e=>Sn.test(e)||fu.test(e)||Qn.test(e),parse:e=>Sn.test(e)?Sn.parse(e):Qn.test(e)?Qn.parse(e):fu.parse(e),transform:e=>wo(e)?e:e.hasOwnProperty("red")?Sn.transform(e):Qn.transform(e)},pt=(e,t,r)=>-r*e+r*t+e;function du(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Gx({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=du(u,s,e+1/3),o=du(u,s,e),a=du(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const hu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},qx=[fu,Sn,Qn],Kx=e=>qx.find(t=>t.test(e));function $h(e){const t=Kx(e);pr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Qn&&(r=Gx(r)),r}const Ih=(e,t)=>{const r=$h(e),n=$h(t),i={...r};return o=>(i.red=hu(r.red,n.red,o),i.green=hu(r.green,n.green,o),i.blue=hu(r.blue,n.blue,o),i.alpha=pt(r.alpha,n.alpha,o),Sn.transform(i))};function Xx(e){var t,r;return isNaN(e)&&wo(e)&&(((t=e.match(Da))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Xd))===null||r===void 0?void 0:r.length)||0)>0}const Fh={regex:U2,countKey:"Vars",token:"${v}",parse:bt},jh={regex:Xd,countKey:"Colors",token:"${c}",parse:zt.parse},Lh={regex:Da,countKey:"Numbers",token:"${n}",parse:Cn.parse};function pu(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Ba(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&pu(r,Fh),pu(r,jh),pu(r,Lh),r}function Rh(e){return Ba(e).values}function Bh(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Ba(e),o=t.length;return a=>{let s=i;for(let u=0;u<o;u++)u<n?s=s.replace(Fh.token,a[u]):u<n+r?s=s.replace(jh.token,zt.transform(a[u])):s=s.replace(Lh.token,xo(a[u]));return s}}const Zx=e=>typeof e=="number"?0:e;function Qx(e){const t=Rh(e);return Bh(e)(t.map(Zx))}const on={test:Xx,parse:Rh,createTransformer:Bh,getAnimatableNone:Qx},Nh=(e,t)=>r=>`${r>0?t:e}`;function zh(e,t){return typeof e=="number"?r=>pt(e,t,r):zt.test(e)?Ih(e,t):e.startsWith("var(")?Nh(e,t):Wh(e,t)}const Vh=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>zh(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Jx=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=zh(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},Wh=(e,t)=>{const r=on.createTransformer(t),n=Ba(e),i=Ba(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?tn(Vh(n.values,i.values),r):(So(!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.`),Nh(e,t))},_o=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Hh=(e,t)=>r=>pt(e,t,r);function ew(e){return typeof e=="number"?Hh:typeof e=="string"?zt.test(e)?Ih:Wh:Array.isArray(e)?Vh:typeof e=="object"?Jx:Hh}function tw(e,t,r){const n=[],i=r||ew(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||bt:t;s=tn(u,s)}n.push(s)}return n}function Uh(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;if(pr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tw(t,n,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=_o(e[c],e[c+1],l);return a[c](f)};return r?l=>u(Jr(e[0],e[o-1],l)):u}function rw(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=_o(0,t,n);e.push(pt(r,1,i))}}function nw(e){const t=[0];return rw(t,e.length-1),t}function iw(e,t){return e.map(r=>r*t)}function ow(e,t){return e.map(()=>t||Th).splice(0,e.length-1)}function Na({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Vx(n)?n.map(Ah):Ah(n),o={done:!1,value:t[0]},a=iw(r&&r.length===t.length?r:nw(t),e),s=Uh(a,t,{ease:Array.isArray(i)?i:ow(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}function Yh(e,t){return t?e*(1e3/t):0}const aw=5;function Gh(e,t,r){const n=Math.max(t-aw,0);return Yh(r-e(n),t-n)}const gu=.001,sw=.01,qh=10,lw=.05,uw=1;function cw({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;So(e<=nn(qh),"Spring duration must be 10 seconds or less");let a=1-t;a=Jr(lw,uw,a),e=Jr(sw,qh,Br(e)),a<1?(i=l=>{const c=l*a,f=c*e,d=c-r,h=mu(l,a),m=Math.exp(-f);return gu-d/h*m},o=l=>{const f=l*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-f),p=mu(Math.pow(l,2),a);return(-i(l)+gu>0?-1:1)*((d-h)*m)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-gu+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=dw(i,o,s);if(e=nn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const fw=12;function dw(e,t,r){let n=r;for(let i=1;i<fw;i++)n=n-e(n)/t(n);return n}function mu(e,t){return e*Math.sqrt(1-t*t)}const hw=["duration","bounce"],pw=["stiffness","damping","mass"];function Kh(e,t){return t.some(r=>e[r]!==void 0)}function gw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Kh(e,pw)&&Kh(e,hw)){const r=cw(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Xh({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=gw(n),h=c?-Br(c):0,m=u/(2*Math.sqrt(s*l)),p=o-i,v=Br(Math.sqrt(s/l)),x=Math.abs(p)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(m<1){const C=mu(v,m);b=E=>{const w=Math.exp(-m*v*E);return o-w*((h+m*v*p)/C*Math.sin(C*E)+p*Math.cos(C*E))}}else if(m===1)b=C=>o-Math.exp(-v*C)*(p+(h+v*p)*C);else{const C=v*Math.sqrt(m*m-1);b=E=>{const w=Math.exp(-m*v*E),_=Math.min(C*E,300);return o-w*((h+m*v*p)*Math.sinh(_)+C*p*Math.cosh(_))/C}}return{calculatedDuration:d&&f||null,next:C=>{const E=b(C);if(d)a.done=C>=f;else{let w=h;C!==0&&(m<1?w=Gh(b,C,E):w=0);const _=Math.abs(w)<=r,O=Math.abs(o-E)<=t;a.done=_&&O}return a.value=a.done?o:E,a}}}function Zh({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&k<s||u!==void 0&&k>u,m=k=>s===void 0?u:u===void 0||Math.abs(s-k)<Math.abs(u-k)?s:u;let p=r*t;const v=f+p,x=a===void 0?v:a(v);x!==v&&(p=x-f);const b=k=>-p*Math.exp(-k/n),C=k=>x+b(k),E=k=>{const D=b(k),L=C(k);d.done=Math.abs(D)<=l,d.value=d.done?x:L};let w,_;const O=k=>{h(d.value)&&(w=k,_=Xh({keyframes:[d.value,m(d.value)],velocity:Gh(C,k,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return O(0),{calculatedDuration:null,next:k=>{let D=!1;return!_&&w===void 0&&(D=!0,E(k),O(k)),w!==void 0&&k>w?_.next(k-w):(!D&&E(k),d)}}}const mw=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ot.update(t,!0),stop:()=>jr(t),now:()=>Dt.isProcessing?Dt.timestamp:performance.now()}},Qh=2e4;function Jh(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Qh;)t+=r,n=e.next(t);return t>=Qh?1/0:t}const vw={decay:Zh,inertia:Zh,tween:Na,keyframes:Na,spring:Xh};function za({autoplay:e=!0,delay:t=0,driver:r=mw,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,m=!1,p,v;const x=()=>{v=new Promise(j=>{p=j})};x();let b;const C=vw[i]||Na;let E;C!==Na&&typeof n[0]!="number"&&(E=Uh([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let _;s==="mirror"&&(_=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let O="idle",k=null,D=null,L=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Jh(w));const{calculatedDuration:re}=w;let pe=1/0,se=1/0;re!==null&&(pe=re+a,se=pe*(o+1)-a);let q=0;const G=j=>{if(D===null)return;h>0&&(D=Math.min(D,j)),h<0&&(D=Math.min(j-se/h,D)),k!==null?q=k:q=Math.round(j-D)*h;const X=q-t*(h>=0?1:-1),ee=h>=0?X<0:X>se;q=Math.max(X,0),O==="finished"&&k===null&&(q=se);let H=q,fe=w;if(o){const Q=q/pe;let ne=Math.floor(Q),be=Q%1;!be&&Q>=1&&(be=1),be===1&&ne--,ne=Math.min(ne,o+1);const R=!!(ne%2);R&&(s==="reverse"?(be=1-be,a&&(be-=a/pe)):s==="mirror"&&(fe=_));let Be=Jr(0,1,be);q>se&&(Be=s==="reverse"&&R?1:0),H=Be*pe}const ue=ee?{done:!1,value:n[0]}:fe.next(H);E&&(ue.value=E(ue.value));let{done:ge}=ue;!ee&&re!==null&&(ge=h>=0?q>=se:q<=0);const Z=k===null&&(O==="finished"||O==="running"&&ge);return f&&f(ue.value),Z&&Ie(),ue},me=()=>{b&&b.stop(),b=void 0},Ee=()=>{O="idle",me(),p(),x(),D=L=null},Ie=()=>{O="finished",c&&c(),me(),p()},Oe=()=>{if(m)return;b||(b=r(G));const j=b.now();u&&u(),k!==null?D=j-k:(!D||O==="finished")&&(D=j),O==="finished"&&x(),L=D,k=null,O="running",b.start()};e&&Oe();const $={then(j,X){return v.then(j,X)},get time(){return Br(q)},set time(j){j=nn(j),q=j,k!==null||!b||h===0?k=j:D=b.now()-j/h},get duration(){const j=w.calculatedDuration===null?Jh(w):w.calculatedDuration;return Br(j)},get speed(){return h},set speed(j){j===h||!b||(h=j,$.time=Br(q))},get state(){return O},play:Oe,pause:()=>{O="paused",k=q},stop:()=>{m=!0,O!=="idle"&&(O="idle",l&&l(),Ee())},cancel:()=>{L!==null&&G(L),Ee()},complete:()=>{O="finished"},sample:j=>(D=0,G(j))};return $}function yw(e){let t;return()=>(t===void 0&&(t=e()),t)}const bw=yw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xw=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Va=10,ww=2e4,Cw=(e,t)=>t.type==="spring"||e==="backgroundColor"||!wh(t.ease);function Sw(e,t,{onUpdate:r,onComplete:n,...i}){if(!(bw()&&xw.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,s,u;const l=()=>{u=new Promise(b=>{s=b})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(Cw(t,i)){const b=za({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const E=[];let w=0;for(;!C.done&&w<ww;)C=b.sample(w),E.push(C.value),w+=Va;h=void 0,c=E,f=w-Va,d="linear"}const m=Fx(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(m.startTime=Dt.isProcessing?Dt.timestamp:performance.now());const p=()=>m.cancel(),v=()=>{ot.update(p),s(),l()};return m.onfinish=()=>{e.set(jx(c,i)),n&&n(),v()},{then(b,C){return u.then(b,C)},attachTimeline(b){return m.timeline=b,m.onfinish=null,bt},get time(){return Br(m.currentTime||0)},set time(b){m.currentTime=nn(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return Br(f)},play:()=>{a||(m.play(),jr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const C=za({...i,autoplay:!1});e.setWithVelocity(C.sample(b-Va).value,C.sample(b).value,Va)}v()},complete:()=>m.finish(),cancel:v}}function Ew({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:bt,pause:bt,stop:bt,then:o=>(o(),Promise.resolve()),cancel:bt,complete:bt});return t?za({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Tw={type:"spring",stiffness:500,damping:25,restSpeed:10},_w=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ow={type:"keyframes",duration:.8},kw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mw=(e,{keyframes:t})=>t.length>2?Ow:wn.has(e)?e.startsWith("scale")?_w(t[1]):Tw:kw,vu=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(on.test(t)||t==="0")&&!t.startsWith("url(")),Pw=new Set(["brightness","contrast","saturate","opacity"]);function Aw(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Da)||[];if(!n)return e;const i=r.replace(n,"");let o=Pw.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Dw=/([a-z-]*)\(.*?\)/g,yu={...on,getAnimatableNone:e=>{const t=e.match(Dw);return t?t.map(Aw).join(" "):e}},$w={...Jd,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:yu,WebkitFilter:yu},bu=e=>$w[e];function ep(e,t){let r=bu(e);return r!==yu&&(r=on),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tp=e=>/^0[^.\s]+$/.test(e);function Iw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tp(e)}function Fw(e,t,r,n){const i=vu(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?a:o[l-1]),Iw(o[l])&&u.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(s=o[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];o[c]=ep(t,s)}return o}function jw({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function rp(e,t){return e[t]||e.default||e}const xu=(e,t,r,n={})=>i=>{const o=rp(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-nn(a);const u=Fw(t,e,r,o),l=u[0],c=u[u.length-1],f=vu(e,l),d=vu(e,c);So(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(jw(o)||(h={...h,...Mw(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!f||!d||Ix.current||o.type===!1)return Ew(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Sw(t,e,h);if(m)return m}return za(h)};function Wa(e){return!!(Ht(e)&&e.add)}const np=e=>/^\-?\d*\.?\d+$/.test(e);function wu(e,t){e.indexOf(t)===-1&&e.push(t)}function Cu(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Su{constructor(){this.subscriptions=[]}add(t){return wu(this.subscriptions,t),()=>Cu(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ip=new Set;function Eu(e,t,r){e||ip.has(t)||(console.warn(t),r&&console.warn(r),ip.add(t))}const Lw=e=>!isNaN(parseFloat(e));class Rw{constructor(t,r={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:a}=Dt;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,ot.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ot.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==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=Lw(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Eu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Su);const n=this.events[t].add(r);return t==="change"?()=>{n(),ot.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}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?Yh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Jn(e,t){return new Rw(e,t)}const op=e=>t=>t.test(e),ap=[Cn,we,Sr,en,K2,q2,{test:e=>e==="auto",parse:e=>e}],Oo=e=>ap.find(op(e)),Bw=[...ap,zt,on],Nw=e=>Bw.find(op(e));function zw(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jn(r))}function Vw(e,t){const r=Ra(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=ux(o[a]);zw(e,a,s)}}function Ww(e,t,r){var n,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const u=o[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(np(c)||tp(c))?c=parseFloat(c):!Nw(c)&&on.test(l)&&(c=ep(u,l)),e.addValue(u,Jn(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function Hw(e,t){return t?(t[e]||t.default||t).from:void 0}function Uw(e,t,r){const n={};for(const i in e){const o=Hw(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function Yw({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function sp(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(o=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&Yw(c,f))continue;const m={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const v=e.getProps()[$x];v&&(m.elapsed=window.HandoffAppearAnimations(v,f,d,ot),m.syncStart=!0)}d.start(xu(f,d,h,e.shouldReduceMotion&&wn.has(f)?{type:!1}:m));const p=d.animation;Wa(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return a&&Promise.all(l).then(()=>{a&&Vw(e,a)}),l}function Tu(e,t,r={}){const n=Ra(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(sp(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Gw(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function Gw(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(qw).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(Tu(l,t,{...o,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function qw(e,t){return e.sortNodePosition(t)}function Kw(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>Tu(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Tu(e,t,r);else{const i=typeof t=="function"?Ra(e,t,r.custom):t;n=Promise.all(sp(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Xw=[...Hl].reverse(),Zw=Hl.length;function Qw(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Kw(e,r,n)))}function Jw(e){let t=Qw(e);const r=t5();let n=!0;const i=(u,l)=>{const c=Ra(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function o(u){t=u(e)}function a(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let m={},p=1/0;for(let x=0;x<Zw;x++){const b=Xw[x],C=r[b],E=c[b]!==void 0?c[b]:f[b],w=mo(E),_=b===l?C.isActive:null;_===!1&&(p=x);let O=E===f[b]&&E!==c[b]&&w;if(O&&n&&e.manuallyAnimateOnMount&&(O=!1),C.protectedKeys={...m},!C.isActive&&_===null||!E&&!C.prevProp||ka(E)||typeof E=="boolean")continue;const k=e5(C.prevProp,E);let D=k||b===l&&C.isActive&&!O&&w||x>p&&w;const L=Array.isArray(E)?E:[E];let re=L.reduce(i,{});_===!1&&(re={});const{prevResolvedValues:pe={}}=C,se={...pe,...re},q=G=>{D=!0,h.delete(G),C.needsAnimating[G]=!0};for(const G in se){const me=re[G],Ee=pe[G];m.hasOwnProperty(G)||(me!==Ee?Ia(me)&&Ia(Ee)?!bh(me,Ee)||k?q(G):C.protectedKeys[G]=!0:me!==void 0?q(G):h.add(G):me!==void 0&&h.has(G)?q(G):C.protectedKeys[G]=!0)}C.prevProp=E,C.prevResolvedValues=re,C.isActive&&(m={...m,...re}),n&&e.blockInitialAnimation&&(D=!1),D&&!O&&d.push(...L.map(G=>({animation:G,options:{type:b,...u}})))}if(h.size){const x={};h.forEach(b=>{const C=e.getBaseTarget(b);C!==void 0&&(x[b]=C)}),d.push({animation:x})}let v=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),r[u].isActive=l;const d=a(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function e5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bh(t,e):!1}function En(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t5(){return{animate:En(!0),whileInView:En(),whileHover:En(),whileTap:En(),whileDrag:En(),whileFocus:En(),exit:En()}}class r5 extends rn{constructor(t){super(t),t.animationState||(t.animationState=Jw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ka(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let n5=0;class i5 extends rn{constructor(){super(...arguments),this.id=n5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const o5={animation:{Feature:r5},exit:{Feature:i5}},lp=(e,t)=>Math.abs(e-t);function a5(e,t){const r=lp(e.x,t.x),n=lp(e.y,t.y);return Math.sqrt(r**2+n**2)}class up{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Ou(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=a5(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=Dt;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=_u(c,this.transformPagePoint),ot.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Ou(l.type==="pointercancel"?this.lastMoveEventInfo:_u(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!fh(t))return;this.handlers=r,this.transformPagePoint=n;const i=La(t),o=_u(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=Dt;this.history=[{...a,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,Ou(o,this.history)),this.removeListeners=tn(Rr(window,"pointermove",this.handlePointerMove),Rr(window,"pointerup",this.handlePointerUp),Rr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jr(this.updatePoint)}}function _u(e,t){return t?{point:t(e.point)}:e}function cp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ou({point:e},t){return{point:e,delta:cp(e,fp(t)),offset:cp(e,s5(t)),velocity:l5(t,.1)}}function s5(e){return e[0]}function fp(e){return e[e.length-1]}function l5(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=fp(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>nn(t)));)r--;if(!n)return{x:0,y:0};const o=Br(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Qt(e){return e.max-e.min}function ku(e,t=0,r=.01){return Math.abs(e-t)<=r}function dp(e,t,r,n=.5){e.origin=n,e.originPoint=pt(t.min,t.max,e.origin),e.scale=Qt(r)/Qt(t),(ku(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=pt(r.min,r.max,e.origin)-e.originPoint,(ku(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ko(e,t,r,n){dp(e.x,t.x,r.x,n?n.originX:void 0),dp(e.y,t.y,r.y,n?n.originY:void 0)}function hp(e,t,r){e.min=r.min+t.min,e.max=e.min+Qt(t)}function u5(e,t,r){hp(e.x,t.x,r.x),hp(e.y,t.y,r.y)}function pp(e,t,r){e.min=t.min-r.min,e.max=e.min+Qt(t)}function Mo(e,t,r){pp(e.x,t.x,r.x),pp(e.y,t.y,r.y)}function c5(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?pt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?pt(r,e,n.max):Math.min(e,r)),e}function gp(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function f5(e,{top:t,left:r,bottom:n,right:i}){return{x:gp(e.x,r,i),y:gp(e.y,t,n)}}function mp(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function d5(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function h5(e,t){let r=.5;const n=Qt(e),i=Qt(t);return i>n?r=_o(t.min,t.max-n,e.min):n>i&&(r=_o(e.min,e.max-i,t.min)),Jr(0,1,r)}function p5(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Mu=.35;function g5(e=Mu){return e===!1?e=0:e===!0&&(e=Mu),{x:vp(e,"left","right"),y:vp(e,"top","bottom")}}function vp(e,t,r){return{min:yp(e,t),max:yp(e,r)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:bp(),y:bp()}),xp=()=>({min:0,max:0}),kt=()=>({x:xp(),y:xp()});function Er(e){return[e("x"),e("y")]}function wp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function m5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v5(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Pu(e){return e===void 0||e===1}function Au({scale:e,scaleX:t,scaleY:r}){return!Pu(e)||!Pu(t)||!Pu(r)}function Tn(e){return Au(e)||Cp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cp(e){return Sp(e.x)||Sp(e.y)}function Sp(e){return e&&e!=="0%"}function Ha(e,t,r){const n=e-r,i=t*n;return r+i}function Ep(e,t,r,n,i){return i!==void 0&&(e=Ha(e,i,n)),Ha(e,r,n)+t}function Du(e,t=0,r=1,n,i){e.min=Ep(e.min,t,r,n,i),e.max=Ep(e.max,t,r,n,i)}function Tp(e,{x:t,y:r}){Du(e.x,t.translate,t.scale,t.originPoint),Du(e.y,r.translate,r.scale,r.originPoint)}function y5(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=r[s],a=o.projectionDelta;const u=o.instance;u&&u.style&&u.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ti(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Tp(e,a)),n&&Tn(o.latestValues)&&ti(e,o.latestValues))}t.x=_p(t.x),t.y=_p(t.y)}function _p(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function an(e,t){e.min=e.min+t,e.max=e.max+t}function Op(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=pt(e.min,e.max,o);Du(e,t[r],t[n],a,t.scale)}const b5=["x","scaleX","originX"],x5=["y","scaleY","originY"];function ti(e,t){Op(e.x,t,b5),Op(e.y,t,x5)}function kp(e,t){return wp(v5(e.getBoundingClientRect(),t))}function w5(e,t,r){const n=kp(e,r),{scroll:i}=t;return i&&(an(n.x,i.offset.x),an(n.y,i.offset.y)),n}const C5=new WeakMap;class S5{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=kt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(La(u,"page").point)},o=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gh(c),!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),Er(m=>{let p=this.getAxisMotionValue(m).get()||0;if(Sr.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[m];x&&(p=Qt(x)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&ot.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=l;if(f&&this.currentDirection===null){this.currentDirection=E5(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,m),this.updateAxis("y",l.point,m),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new up(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ot.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Ua(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=c5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=f5(n.layoutBox,t):this.constraints=!1,this.elastic=g5(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Er(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=p5(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Zn(t))return!1;const n=t.current;pr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=w5(n,i.root,this.visualElement.getTransformPagePoint());let a=d5(i.layout.layoutBox,o);if(r){const s=r(m5(a));this.hasMutatedConstraints=!!s,s&&(a=wp(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=Er(c=>{if(!Ua(c,r,this.currentDirection))return;let f=u&&u[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(xu(t,n,0,r))}stopAnimation(){Er(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Er(r=>{const{drag:n}=this.getProps();if(!Ua(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[r];o.set(t[r]-pt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Zn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Er(a=>{const s=this.getAxisMotionValue(a);if(s){const u=s.get();i[a]=h5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Er(a=>{if(!Ua(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(pt(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;C5.set(this.visualElement,this);const t=this.visualElement.current,r=Rr(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Zn(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const a=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Er(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mu,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ua(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function E5(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class T5 extends rn{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new S5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mp=e=>(t,r)=>{e&&ot.update(()=>e(t,r))};class _5 extends rn{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new up(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Mp(t),onStart:Mp(r),onMove:n,onEnd:(o,a)=>{delete this.session,i&&ot.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Rr(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 O5(){const e=g.useContext(_a);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=g.useId();return g.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const r=Pp(e,t.target.x),n=Pp(e,t.target.y);return`${r}% ${n}%`}},k5={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=on.parse(e);if(i.length>5)return n;const o=on.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=pt(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}};class M5 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;z2(P5),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||ot.postRender(()=>{const s=a.getStack();(!s||!s.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:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ap(e){const[t,r]=O5(),n=g.useContext(Gl);return g.createElement(M5,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(Yd),isPresent:t,safeToRemove:r})}const P5={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:k5},Dp=["TopLeft","TopRight","BottomLeft","BottomRight"],A5=Dp.length,$p=e=>typeof e=="string"?parseFloat(e):e,Ip=e=>typeof e=="number"||we.test(e);function D5(e,t,r,n,i,o){i?(e.opacity=pt(0,r.opacity!==void 0?r.opacity:1,$5(n)),e.opacityExit=pt(t.opacity!==void 0?t.opacity:1,0,I5(n))):o&&(e.opacity=pt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<A5;a++){const s=`border${Dp[a]}Radius`;let u=Fp(t,s),l=Fp(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ip(u)===Ip(l)?(e[s]=Math.max(pt($p(u),$p(l),n),0),(Sr.test(l)||Sr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=pt(t.rotate||0,r.rotate||0,n))}function Fp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $5=jp(0,.5,su),I5=jp(.5,.95,bt);function jp(e,t,r){return n=>n<e?0:n>t?1:r(_o(e,t,n))}function Lp(e,t){e.min=t.min,e.max=t.max}function ur(e,t){Lp(e.x,t.x),Lp(e.y,t.y)}function Rp(e,t,r,n,i){return e-=t,e=Ha(e,1/r,n),i!==void 0&&(e=Ha(e,1/i,n)),e}function F5(e,t=0,r=1,n=.5,i,o=e,a=e){if(Sr.test(t)&&(t=parseFloat(t),t=pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=pt(o.min,o.max,n);e===o&&(s-=t),e.min=Rp(e.min,t,r,s,i),e.max=Rp(e.max,t,r,s,i)}function Bp(e,t,[r,n,i],o,a){F5(e,t[r],t[n],t[i],t.scale,o,a)}const j5=["x","scaleX","originX"],L5=["y","scaleY","originY"];function Np(e,t,r,n){Bp(e.x,t,j5,r?r.x:void 0,n?n.x:void 0),Bp(e.y,t,L5,r?r.y:void 0,n?n.y:void 0)}function zp(e){return e.translate===0&&e.scale===1}function Vp(e){return zp(e.x)&&zp(e.y)}function R5(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 Wp(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 Hp(e){return Qt(e.x)/Qt(e.y)}class B5{constructor(){this.members=[]}add(t){wu(this.members,t),t.scheduleRender()}remove(t){if(Cu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Up(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const N5=(e,t)=>e.depth-t.depth;class z5{constructor(){this.children=[],this.isDirty=!1}add(t){wu(this.children,t),this.isDirty=!0}remove(t){Cu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(N5),this.isDirty=!1,this.children.forEach(t)}}function V5(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(jr(n),e(o-t))};return ot.read(n,!0),()=>jr(n)}function W5(e){window.MotionDebug&&window.MotionDebug.record(e)}function H5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U5(e,t,r){const n=Ht(e)?e:Jn(e);return n.start(xu("",n,t,r)),n.animation}const Yp=["","X","Y","Z"],Gp=1e3;let Y5=0;const _n={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=Y5++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{_n.totalNodes=_n.resolvedTargetDeltas=_n.recalculatedProjection=0,this.nodes.forEach(K5),this.nodes.forEach(e3),this.nodes.forEach(t3),this.nodes.forEach(X5),W5(_n)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new z5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Su),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=H5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=V5(d,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(Xp))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||a3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),b=!this.targetLayout||!Wp(this.targetLayout,m)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const E={...rp(p,"layout"),onPlay:v,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else d||Xp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,jr(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(r3),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 c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kp);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(J5),this.nodes.forEach(G5),this.nodes.forEach(q5),this.clearAllSnapshots();const s=performance.now();Dt.delta=Jr(0,1e3/60,s-Dt.timestamp),Dt.timestamp=s,Dt.isProcessing=!0,nu.update.process(Dt),nu.preRender.process(Dt),nu.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Z5),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){ot.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ot.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=kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Vp(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||Tn(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),s3(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kt();const s=a.measureViewportBox(),{scroll:u}=this.root;return u&&(an(s.x,u.offset.x),an(s.y,u.offset.y)),s}removeElementScroll(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){ur(s,a);const{scroll:d}=this.root;d&&(an(s.x,-d.offset.x),an(s.y,-d.offset.y))}an(s.x,c.offset.x),an(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const u=kt();ur(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ti(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Tn(c.latestValues)&&ti(u,c.latestValues)}return Tn(this.latestValues)&&ti(u,this.latestValues),u}removeTransform(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Tn(l.latestValues))continue;Au(l.latestValues)&&l.updateSnapshot();const c=kt(),f=l.measurePageBox();ur(c,f),Np(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return Tn(this.latestValues)&&Np(s,this.latestValues),s}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!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Dt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ur(this.target,this.layout.layoutBox),Tp(this.target,this.targetDelta)):ur(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.target,h.target),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_n.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Au(this.parent.latestValues)||Cp(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 s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;ur(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;y5(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=ei(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei());const p=this.projectionTransform;ko(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Up(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),_n.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=ei();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=kt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(o3));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const w=E/1e3;Zp(f.x,a.x,w),Zp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i3(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&R5(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=kt()),ur(C,this.relativeTarget)),p&&(this.animationValues=c,D5(c,l,this.latestValues,w,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},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&&(jr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ot.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=U5(0,Gp,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},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(Gp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&r0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||kt();const f=Qt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const d=Qt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+d}ur(s,u),ti(s,c),ko(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new B5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(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:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<Yp.length;c++){const f="rotate"+Yp[c];u[f]&&(l[f]=u[f],a.setStaticValue(f,0))}a.render();for(const c in l)a.setStaticValue(c,l[c]);a.scheduleRender()}getProjectionStyles(a={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Fa(a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Fa(a.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=Up(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Pa){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=Pa[p],b=l.transform==="none"?d[p]:v(d[p],f);if(x){const C=x.length;for(let E=0;E<C;E++)l[x[E]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=f===this?Fa(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Kp),this.root.sharedNodes.clear()}}}function G5(e){e.updateLayout()}function q5(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(d);d.min=n[f].min,d.max=d.min+h}):r0(o,r.layoutBox,n)&&Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=ei();ko(s,n,r.layoutBox);const u=ei();a?ko(u,e.applyTransform(i,!0),r.measuredBox):ko(u,n,r.layoutBox);const l=!Vp(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=kt();Mo(m,r.layoutBox,d.layoutBox);const p=kt();Mo(p,n,h.layoutBox),Wp(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function K5(e){_n.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 X5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Z5(e){e.clearSnapshot()}function Kp(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function J5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e3(e){e.resolveTargetDelta()}function t3(e){e.calcProjection()}function r3(e){e.resetRotation()}function n3(e){e.removeLeadSnapshot()}function Zp(e,t,r){e.translate=pt(t.translate,0,r),e.scale=pt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Qp(e,t,r,n){e.min=pt(t.min,r.min,n),e.max=pt(t.max,r.max,n)}function i3(e,t,r,n){Qp(e.x,t.x,r.x,n),Qp(e.y,t.y,r.y,n)}function o3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a3={duration:.45,ease:[.4,0,.1,1]},Jp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),e0=Jp("applewebkit/")&&!Jp("chrome/")?Math.round:bt;function t0(e){e.min=e0(e.min),e.max=e0(e.max)}function s3(e){t0(e.x),t0(e.y)}function r0(e,t,r){return e==="position"||e==="preserve-aspect"&&!ku(Hp(t),Hp(r),.2)}const l3=qp({attachResizeListener:(e,t)=>Lr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$u={current:void 0},n0=qp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$u.current){const e=new l3({});e.mount(window),e.setOptions({layoutScroll:!0}),$u.current=e}return $u.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),u3={pan:{Feature:_5},drag:{Feature:T5,ProjectionNode:n0,MeasureLayout:Ap}},c3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f3(e){const t=c3.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const d3=4;function Iu(e,t,r=1){pr(r<=d3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=f3(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return np(a)?parseFloat(a):a}else return Kl(i)?Iu(i,t,r+1):i}function h3(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!Kl(o))return;const a=Iu(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!Kl(o))continue;const a=Iu(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const p3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),i0=e=>p3.has(e),g3=e=>Object.keys(e).some(i0),Ga=e=>e===Cn||e===we,o0=(e,t)=>parseFloat(e.split(", ")[t]),a0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return o0(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?o0(o[1],e):0}},m3=new Set(["x","y","z"]),v3=yo.filter(e=>!m3.has(e));function y3(e){const t=[];return v3.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ri={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:a0(4,13),y:a0(5,14)};ri.translateX=ri.x,ri.translateY=ri.y;const b3=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=ri[l](n,o)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=ri[l](u,o)}),e},x3=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(i0);let o=[],a=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Oo(c);const d=t[u];let h;if(Ia(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=Oo(c);for(let v=p;v<m&&d[v]!==null;v++)h?pr(Oo(d[v])===h,"All keyframes must be of the same type"):(h=Oo(d[v]),pr(h===f||Ga(f)&&Ga(h),"Keyframes must be of the same dimension as the current value"))}else h=Oo(d);if(f!==h)if(Ga(f)&&Ga(h)){const m=l.get();typeof m=="string"&&l.set(parseFloat(m)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===we&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(a||(o=y3(e),a=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=b3(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Oa&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function w3(e,t,r,n){return g3(t)?x3(e,t,r,n):{target:t,transitionEnd:n}}const C3=(e,t,r,n)=>{const i=h3(e,t,n);return t=i.target,n=i.transitionEnd,w3(e,t,r,n)},Fu={current:null},s0={current:!1};function S3(){if(s0.current=!0,!!Oa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fu.current=e.matches;e.addListener(t),t()}else Fu.current=!1}function E3(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(Ht(o))e.addValue(i,o),Wa(n)&&n.add(i),process.env.NODE_ENV==="development"&&Eu(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(Ht(a))e.addValue(i,Jn(o,{owner:e})),Wa(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Jn(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const l0=new WeakMap,u0=Object.keys(vo),T3=u0.length,c0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_3=Ul.length;class O3{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},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=()=>ot.render(this.render,!1,!0);const{latestValues:s,renderState:u}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Ma(r),this.isVariantNode=Wd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&Ht(d)&&(d.set(s[f],!1),Wa(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,l0.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((r,n)=>this.bindToMotionValue(n,r)),s0.current||S3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fu.current,process.env.NODE_ENV!=="production"&&Eu(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(){l0.delete(this.current),this.projection&&this.projection.unmount(),jr(this.notifyUpdate),jr(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,r){const n=wn.has(t),i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ot.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let a,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?So(!1,u):pr(!1,u)}for(let u=0;u<T3;u++){const l=u0[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=vo[l];d&&(a=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&Zn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<c0.length;n++){const i=c0[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=E3(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 n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<_3;n++){const i=Ul[n],o=this.props[i];(mo(o)||o===!1)&&(r[i]=o)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=ru(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ht(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Su),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class f0 extends O3{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let a=Uw(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){Ww(this,n,a);const s=C3(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function k3(e){return window.getComputedStyle(e)}class M3 extends f0{readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}else{const n=k3(t),i=(Kd(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return kp(t,r)}build(t,r,n,i){Xl(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return tu(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){ih(t,r,n,i)}}class P3 extends f0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}return r=oh.has(r)?r:eu(r),t.getAttribute(r)}measureInstanceViewportBox(){return kt()}scrapeMotionValuesFromProps(t,r){return sh(t,r)}build(t,r,n,i){Ql(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){ah(t,r,n,i)}mount(t){this.isSVGTag=Jl(t.tagName),super.mount(t)}}const A3=(e,t)=>ql(e)?new P3(t,{enableHardwareAcceleration:!1}):new M3(t,{enableHardwareAcceleration:!0}),D3={layout:{ProjectionNode:n0,MeasureLayout:Ap}},gr=B2(vx);function d0(){const e=g.useRef(!1);return Vl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $3(){const e=d0(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>ot.postRender(n),[n]),t]}class I3 extends xe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function F3({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:u}=i.current;if(t||!n.current||!o||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
27
|
+
Check the top-level render call using <`+J+">.")}return V}}function Kn(S,V){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var J=Zr(V);if(Xr[J])return;Xr[J]=!0;var Te="";S&&S._owner&&S._owner!==Me.current&&(Te=" It was passed a child from "+se(S._owner.type)+"."),et(S),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,Te),et(null)}}function Sa(S,V){{if(typeof S!="object")return;if(bn(S))for(var J=0;J<S.length;J++){var Te=S[J];_t(Te)&&Kn(Te,V)}else if(_t(S))S._store&&(S._store.validated=!0);else if(S){var qe=v(S);if(typeof qe=="function"&&qe!==S.entries)for(var it=qe.call(S),ze;!(ze=it.next()).done;)_t(ze.value)&&Kn(ze.value,V)}}}function Bl(S){{var V=S.type;if(V==null||typeof V=="string")return;var J;if(typeof V=="function")J=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===u||V.$$typeof===f))J=V.propTypes;else return;if(J){var Te=se(V);Cr(J,S.props,"prop",Te,S)}else if(V.PropTypes!==void 0&&!tt){tt=!0;var qe=se(V);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wX(S){{for(var V=Object.keys(S.props),J=0;J<V.length;J++){var Te=V[J];if(Te!=="children"&&Te!=="key"){et(S),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),et(null);break}}S.ref!==null&&(et(S),b("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}function p2(S,V,J,Te,qe,it){{var ze=L(S);if(!ze){var Fe="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Fe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Wt=Ft(qe);Wt?Fe+=Wt:Fe+=vt();var Ot;S===null?Ot="null":bn(S)?Ot="array":S!==void 0&&S.$$typeof===t?(Ot="<"+(se(S.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Ot=typeof S,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ot,Fe)}var Pt=ie(S,V,J,qe,it);if(Pt==null)return Pt;if(ze){var hr=V.children;if(hr!==void 0)if(Te)if(bn(hr)){for(var uo=0;uo<hr.length;uo++)Sa(hr[uo],S);Object.freeze&&Object.freeze(hr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Sa(hr,S)}return S===n?wX(Pt):Bl(Pt),Pt}}function CX(S,V,J){return p2(S,V,J,!0)}function SX(S,V,J){return p2(S,V,J,!1)}var EX=SX,TX=CX;go.Fragment=n,go.jsx=EX,go.jsxs=TX}()),go}process.env.NODE_ENV==="production"?zl.exports=P2():zl.exports=A2();var y=zl.exports;const Vd=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ta=g.createContext({}),_a=g.createContext(null),Oa=typeof document<"u",Vl=Oa?g.useLayoutEffect:g.useEffect,Wl=g.createContext({strict:!1});function D2(e,t,r,n){const{visualElement:i}=g.useContext(Ta),o=g.useContext(Wl),a=g.useContext(_a),s=g.useContext(Vd).reducedMotion,u=g.useRef();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;g.useInsertionEffect(()=>{l&&l.update(r,a)});const c=g.useRef(!!window.HandoffAppearAnimations);return Vl(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),g.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Zn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $2(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Zn(r)&&(r.current=n))},[t])}function mo(e){return typeof e=="string"||Array.isArray(e)}function ka(e){return typeof e=="object"&&typeof e.start=="function"}const Hl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ul=["initial",...Hl];function Ma(e){return ka(e.animate)||Ul.some(t=>mo(e[t]))}function Wd(e){return!!(Ma(e)||e.variants)}function I2(e,t){if(Ma(e)){const{initial:r,animate:n}=e;return{initial:r===!1||mo(r)?r:void 0,animate:mo(n)?n:void 0}}return e.inherit!==!1?t:{}}function F2(e){const{initial:t,animate:r}=I2(e,g.useContext(Ta));return g.useMemo(()=>({initial:t,animate:r}),[Hd(t),Hd(r)])}function Hd(e){return Array.isArray(e)?e.join(" "):e}const Ud={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"]},vo={};for(const e in Ud)vo[e]={isEnabled:t=>Ud[e].some(r=>!!t[r])};function Yl(e){for(const t in e)vo[t]={...vo[t],...e[t]}}const Gl=g.createContext({}),Yd=g.createContext({}),j2=Symbol.for("motionComponentSymbol");function L2({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&Yl(e);function o(s,u){let l;const c={...g.useContext(Vd),...s,layoutId:R2(s)},{isStatic:f}=c,d=F2(s),h=n(s,f);if(!f&&Oa){d.visualElement=D2(i,h,c,t);const m=g.useContext(Yd),p=g.useContext(Wl).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,m))}return xe.createElement(Ta.Provider,{value:d},l&&d.visualElement?xe.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,$2(h,d.visualElement,u),h,f,d.visualElement))}const a=g.forwardRef(o);return a[j2]=i,a}function R2({layoutId:e}){const t=g.useContext(Gl).id;return t&&e!==void 0?t+"-"+e:e}function B2(e){function t(n,i={}){return L2(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const N2=["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 ql(e){return typeof e!="string"||e.includes("-")?!1:!!(N2.indexOf(e)>-1||/[A-Z]/.test(e))}const Pa={};function z2(e){Object.assign(Pa,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(yo);function Gd(e,{layout:t,layoutId:r}){return wn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Pa[e]||e==="opacity")}const Ht=e=>!!(e&&e.getVelocity),V2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=yo.length;function H2(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a<W2;a++){const s=yo[a];if(e[s]!==void 0){const u=V2[s]||s;o+=`${u}(${e[s]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}const qd=e=>t=>typeof t=="string"&&t.startsWith(e),Kd=qd("--"),Kl=qd("var(--"),U2=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Y2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jr=(e,t,r)=>Math.min(Math.max(r,e),t),Cn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bo={...Cn,transform:e=>Jr(0,1,e)},Aa={...Cn,default:1},xo=e=>Math.round(e*1e5)/1e5,Da=/(-)?([\d]*\.?[\d])+/g,Xd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G2=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function wo(e){return typeof e=="string"}const Co=e=>({test:t=>wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),en=Co("deg"),Sr=Co("%"),we=Co("px"),q2=Co("vh"),K2=Co("vw"),Zd={...Sr,parse:e=>Sr.parse(e)/100,transform:e=>Sr.transform(e*100)},Qd={...Cn,transform:Math.round},Jd={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,size:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,rotate:en,rotateX:en,rotateY:en,rotateZ:en,scale:Aa,scaleX:Aa,scaleY:Aa,scaleZ:Aa,skew:en,skewX:en,skewY:en,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:bo,originX:Zd,originY:Zd,originZ:we,zIndex:Qd,fillOpacity:bo,strokeOpacity:bo,numOctaves:Qd};function Xl(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(Kd(f)){o[f]=d;continue}const h=Jd[f],m=Y2(d,h);if(wn.has(f)){if(u=!0,a[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=m):i[f]=m}if(t.transform||(u||n?i.transform=H2(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Zl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(const n in t)!Ht(t[n])&&!Gd(n,r)&&(e[n]=t[n])}function X2({transformTemplate:e},t,r){return g.useMemo(()=>{const n=Zl();return Xl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Z2(e,t,r){const n=e.style||{},i={};return eh(i,n,e),Object.assign(i,X2(e,t,r)),e.transformValues?e.transformValues(i):i}function Q2(e,t,r){const n={},i=Z2(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const J2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function $a(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||J2.has(e)}let th=e=>!$a(e);function ex(e){e&&(th=t=>t.startsWith("on")?!$a(t):e(t))}try{ex(require("@emotion/is-prop-valid").default)}catch{}function tx(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(th(i)||r===!0&&$a(i)||!t&&!$a(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function rh(e,t,r){return typeof e=="string"?e:we.transform(t+r*e)}function rx(e,t,r){const n=rh(t,e.x,e.width),i=rh(r,e.y,e.height);return`${n} ${i}`}const nx={offset:"stroke-dashoffset",array:"stroke-dasharray"},ix={offset:"strokeDashoffset",array:"strokeDasharray"};function ox(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?nx:ix;e[o.offset]=we.transform(-n);const a=we.transform(t),s=we.transform(r);e[o.array]=`${a} ${s}`}function Ql(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Xl(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=rx(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&ox(h,a,s,u,!1)}const nh=()=>({...Zl(),attrs:{}}),Jl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ax(e,t,r,n){const i=g.useMemo(()=>{const o=nh();return Ql(o,t,{enableHardwareAcceleration:!1},Jl(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};eh(o,e.style,e),i.style={...o,...i.style}}return i}function sx(e=!1){return(r,n,i,{latestValues:o},a)=>{const u=(ql(r)?ax:Q2)(n,o,a,r),c={...tx(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=g.useMemo(()=>Ht(f)?f.get():f,[f]);return g.createElement(r,{...c,children:d})}}const eu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ih(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const oh=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 ah(e,t,r,n){ih(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(oh.has(i)?i:eu(i),t.attrs[i])}function tu(e,t){const{style:r}=e,n={};for(const i in r)(Ht(r[i])||t.style&&Ht(t.style[i])||Gd(i,e))&&(n[i]=r[i]);return n}function sh(e,t){const r=tu(e,t);for(const n in e)if(Ht(e[n])||Ht(t[n])){const i=yo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function ru(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function lh(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ia=e=>Array.isArray(e),lx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ux=e=>Ia(e)?e[e.length-1]||0:e;function Fa(e){const t=Ht(e)?e.get():e;return lx(t)?t.toValue():t}function cx({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:fx(n,i,o,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const uh=e=>(t,r)=>{const n=g.useContext(Ta),i=g.useContext(_a),o=()=>cx(e,t,n,i);return r?o():lh(o)};function fx(e,t,r,n){const i={},o=n(e,{});for(const d in o)i[d]=Fa(o[d]);let{initial:a,animate:s}=e;const u=Ma(e),l=Wd(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!ka(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=ru(e,h);if(!m)return;const{transitionEnd:p,transition:v,...x}=m;for(const b in x){let C=x[b];if(Array.isArray(C)){const E=c?C.length-1:0;C=C[E]}C!==null&&(i[b]=C)}for(const b in p)i[b]=p[b]}),i}const bt=e=>e;class ch{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 r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function dx(e){let t=new ch,r=new ch,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&a.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l<n;l++){const c=t.order[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const ja=["prepare","read","update","preRender","render","postRender"],hx=40;function px(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=ja.reduce((f,d)=>(f[d]=dx(()=>r=!0),f),{}),a=f=>o[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,hx),1),i.timestamp=f,i.isProcessing=!0,ja.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:ja.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,v=!1)=>(r||u(),h.schedule(m,p,v)),f},{}),cancel:f=>ja.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:ot,cancel:jr,state:Dt,steps:nu}=px(typeof requestAnimationFrame<"u"?requestAnimationFrame:bt,!0),gx={useVisualState:uh({scrapeMotionValuesFromProps:sh,createRenderState:nh,onMount:(e,t,{renderState:r,latestValues:n})=>{ot.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),ot.render(()=>{Ql(r,n,{enableHardwareAcceleration:!1},Jl(t.tagName),e.transformTemplate),ah(t,r)})}})},mx={useVisualState:uh({scrapeMotionValuesFromProps:tu,createRenderState:Zl})};function vx(e,{forwardMotionProps:t=!1},r,n){return{...ql(e)?gx:mx,preloadedFeatures:r,useRender:sx(t),createVisualElement:n,Component:e}}function Lr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const fh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function La(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const yx=e=>t=>fh(t)&&e(t,La(t));function Rr(e,t,r,n){return Lr(e,t,yx(r),n)}const bx=(e,t)=>r=>t(e(r)),tn=(...e)=>e.reduce(bx);function dh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const hh=dh("dragHorizontal"),ph=dh("dragVertical");function gh(e){let t=!1;if(e==="y")t=ph();else if(e==="x")t=hh();else{const r=hh(),n=ph();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function mh(){const e=gh(!0);return e?(e(),!1):!0}class rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vh(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.type==="touch"||mh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ot.update(()=>s[n](o,a))};return Rr(e.current,r,i,{passive:!e.getProps()[n]})}class xx extends rn{mount(){this.unmount=tn(vh(this.node,!0),vh(this.node,!1))}unmount(){}}class wx extends rn{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=tn(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yh=(e,t)=>t?e===t?!0:yh(e,t.parentElement):!1;function iu(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,La(r))}class Cx extends rn{constructor(){super(...arguments),this.removeStartListeners=bt,this.removeEndListeners=bt,this.removeAccessibleListeners=bt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),o=Rr(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();ot.update(()=>{yh(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),a=Rr(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tn(o,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||iu("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&ot.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",a),iu("down",(s,u)=>{this.startPress(s,u)})},r=Lr(this.node.current,"keydown",t),n=()=>{this.isPressing&&iu("cancel",(o,a)=>this.cancelPress(o,a))},i=Lr(this.node.current,"blur",n);this.removeAccessibleListeners=tn(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ot.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ot.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Rr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ou=new WeakMap,au=new WeakMap,Sx=e=>{const t=ou.get(e.target);t&&t(e)},Ex=e=>{e.forEach(Sx)};function Tx({root:e,...t}){const r=e||document;au.has(r)||au.set(r,{});const n=au.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ex,{root:e,...t})),n[i]}function _x(e,t,r){const n=Tx(t);return ou.set(e,r),n.observe(e),()=>{ou.delete(e),n.unobserve(e)}}const Ox={some:0,all:1};class kx extends rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:o}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Ox[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return _x(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Mx(t,r))&&this.startObserver()}unmount(){}}function Mx({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const Px={inView:{Feature:kx},tap:{Feature:Cx},focus:{Feature:wx},hover:{Feature:xx}};function bh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Ax(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function Dx(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ra(e,t,r){const n=e.getProps();return ru(n,t,r!==void 0?r:n.custom,Ax(e),Dx(e))}const $x="data-"+eu("framerAppearId");let So=bt,pr=bt;process.env.NODE_ENV!=="production"&&(So=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},pr=(e,t)=>{if(!e)throw new Error(t)});const nn=e=>e*1e3,Br=e=>e/1e3,Ix={current:!1},xh=e=>Array.isArray(e)&&typeof e[0]=="number";function wh(e){return!!(!e||typeof e=="string"&&Ch[e]||xh(e)||Array.isArray(e)&&e.every(wh))}const Eo=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ch={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Eo([0,.65,.55,1]),circOut:Eo([.55,0,1,.45]),backIn:Eo([.31,.01,.66,-.59]),backOut:Eo([.33,1.53,.69,.99])};function Sh(e){if(e)return xh(e)?Eo(e):Array.isArray(e)?e.map(Sh):Ch[e]}function Fx(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=Sh(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function jx(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Eh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Lx=1e-7,Rx=12;function Bx(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=Eh(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Lx&&++s<Rx);return a}function To(e,t,r,n){if(e===t&&r===n)return bt;const i=o=>Bx(o,0,1,e,r);return o=>o===0||o===1?o:Eh(i(o),t,n)}const Nx=To(.42,0,1,1),zx=To(0,0,.58,1),Th=To(.42,0,.58,1),Vx=e=>Array.isArray(e)&&typeof e[0]!="number",_h=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Oh=e=>t=>1-e(1-t),kh=e=>1-Math.sin(Math.acos(e)),su=Oh(kh),Wx=_h(su),Mh=To(.33,1.53,.69,.99),lu=Oh(Mh),Hx=_h(lu),Ph={linear:bt,easeIn:Nx,easeInOut:Th,easeOut:zx,circIn:kh,circInOut:Wx,circOut:su,backIn:lu,backInOut:Hx,backOut:Mh,anticipate:e=>(e*=2)<1?.5*lu(e):.5*(2-Math.pow(2,-10*(e-1)))},Ah=e=>{if(Array.isArray(e)){pr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return To(t,r,n,i)}else if(typeof e=="string")return pr(Ph[e]!==void 0,`Invalid easing type '${e}'`),Ph[e];return e},uu=(e,t)=>r=>!!(wo(r)&&G2.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Dh=(e,t,r)=>n=>{if(!wo(n))return n;const[i,o,a,s]=n.match(Da);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ux=e=>Jr(0,255,e),cu={...Cn,transform:e=>Math.round(Ux(e))},Sn={test:uu("rgb","red"),parse:Dh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+cu.transform(e)+", "+cu.transform(t)+", "+cu.transform(r)+", "+xo(bo.transform(n))+")"};function Yx(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const fu={test:uu("#"),parse:Yx,transform:Sn.transform},Qn={test:uu("hsl","hue"),parse:Dh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Sr.transform(xo(t))+", "+Sr.transform(xo(r))+", "+xo(bo.transform(n))+")"},zt={test:e=>Sn.test(e)||fu.test(e)||Qn.test(e),parse:e=>Sn.test(e)?Sn.parse(e):Qn.test(e)?Qn.parse(e):fu.parse(e),transform:e=>wo(e)?e:e.hasOwnProperty("red")?Sn.transform(e):Qn.transform(e)},pt=(e,t,r)=>-r*e+r*t+e;function du(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Gx({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=du(u,s,e+1/3),o=du(u,s,e),a=du(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const hu=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},qx=[fu,Sn,Qn],Kx=e=>qx.find(t=>t.test(e));function $h(e){const t=Kx(e);pr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Qn&&(r=Gx(r)),r}const Ih=(e,t)=>{const r=$h(e),n=$h(t),i={...r};return o=>(i.red=hu(r.red,n.red,o),i.green=hu(r.green,n.green,o),i.blue=hu(r.blue,n.blue,o),i.alpha=pt(r.alpha,n.alpha,o),Sn.transform(i))};function Xx(e){var t,r;return isNaN(e)&&wo(e)&&(((t=e.match(Da))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Xd))===null||r===void 0?void 0:r.length)||0)>0}const Fh={regex:U2,countKey:"Vars",token:"${v}",parse:bt},jh={regex:Xd,countKey:"Colors",token:"${c}",parse:zt.parse},Lh={regex:Da,countKey:"Numbers",token:"${n}",parse:Cn.parse};function pu(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function Ba(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&pu(r,Fh),pu(r,jh),pu(r,Lh),r}function Rh(e){return Ba(e).values}function Bh(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Ba(e),o=t.length;return a=>{let s=i;for(let u=0;u<o;u++)u<n?s=s.replace(Fh.token,a[u]):u<n+r?s=s.replace(jh.token,zt.transform(a[u])):s=s.replace(Lh.token,xo(a[u]));return s}}const Zx=e=>typeof e=="number"?0:e;function Qx(e){const t=Rh(e);return Bh(e)(t.map(Zx))}const on={test:Xx,parse:Rh,createTransformer:Bh,getAnimatableNone:Qx},Nh=(e,t)=>r=>`${r>0?t:e}`;function zh(e,t){return typeof e=="number"?r=>pt(e,t,r):zt.test(e)?Ih(e,t):e.startsWith("var(")?Nh(e,t):Wh(e,t)}const Vh=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>zh(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Jx=(e,t)=>{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=zh(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}},Wh=(e,t)=>{const r=on.createTransformer(t),n=Ba(e),i=Ba(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?tn(Vh(n.values,i.values),r):(So(!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.`),Nh(e,t))},_o=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Hh=(e,t)=>r=>pt(e,t,r);function ew(e){return typeof e=="number"?Hh:typeof e=="string"?zt.test(e)?Ih:Wh:Array.isArray(e)?Vh:typeof e=="object"?Jx:Hh}function tw(e,t,r){const n=[],i=r||ew(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||bt:t;s=tn(u,s)}n.push(s)}return n}function Uh(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;if(pr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=tw(t,n,i),s=a.length,u=l=>{let c=0;if(s>1)for(;c<e.length-2&&!(l<e[c+1]);c++);const f=_o(e[c],e[c+1],l);return a[c](f)};return r?l=>u(Jr(e[0],e[o-1],l)):u}function rw(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=_o(0,t,n);e.push(pt(r,1,i))}}function nw(e){const t=[0];return rw(t,e.length-1),t}function iw(e,t){return e.map(r=>r*t)}function ow(e,t){return e.map(()=>t||Th).splice(0,e.length-1)}function Na({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Vx(n)?n.map(Ah):Ah(n),o={done:!1,value:t[0]},a=iw(r&&r.length===t.length?r:nw(t),e),s=Uh(a,t,{ease:Array.isArray(i)?i:ow(t,i)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}function Yh(e,t){return t?e*(1e3/t):0}const aw=5;function Gh(e,t,r){const n=Math.max(t-aw,0);return Yh(r-e(n),t-n)}const gu=.001,sw=.01,qh=10,lw=.05,uw=1;function cw({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;So(e<=nn(qh),"Spring duration must be 10 seconds or less");let a=1-t;a=Jr(lw,uw,a),e=Jr(sw,qh,Br(e)),a<1?(i=l=>{const c=l*a,f=c*e,d=c-r,h=mu(l,a),m=Math.exp(-f);return gu-d/h*m},o=l=>{const f=l*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-f),p=mu(Math.pow(l,2),a);return(-i(l)+gu>0?-1:1)*((d-h)*m)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-gu+c*f},o=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=dw(i,o,s);if(e=nn(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const fw=12;function dw(e,t,r){let n=r;for(let i=1;i<fw;i++)n=n-e(n)/t(n);return n}function mu(e,t){return e*Math.sqrt(1-t*t)}const hw=["duration","bounce"],pw=["stiffness","damping","mass"];function Kh(e,t){return t.some(r=>e[r]!==void 0)}function gw(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Kh(e,pw)&&Kh(e,hw)){const r=cw(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Xh({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=gw(n),h=c?-Br(c):0,m=u/(2*Math.sqrt(s*l)),p=o-i,v=Br(Math.sqrt(s/l)),x=Math.abs(p)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(m<1){const C=mu(v,m);b=E=>{const w=Math.exp(-m*v*E);return o-w*((h+m*v*p)/C*Math.sin(C*E)+p*Math.cos(C*E))}}else if(m===1)b=C=>o-Math.exp(-v*C)*(p+(h+v*p)*C);else{const C=v*Math.sqrt(m*m-1);b=E=>{const w=Math.exp(-m*v*E),_=Math.min(C*E,300);return o-w*((h+m*v*p)*Math.sinh(_)+C*p*Math.cosh(_))/C}}return{calculatedDuration:d&&f||null,next:C=>{const E=b(C);if(d)a.done=C>=f;else{let w=h;C!==0&&(m<1?w=Gh(b,C,E):w=0);const _=Math.abs(w)<=r,O=Math.abs(o-E)<=t;a.done=_&&O}return a.value=a.done?o:E,a}}}function Zh({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&k<s||u!==void 0&&k>u,m=k=>s===void 0?u:u===void 0||Math.abs(s-k)<Math.abs(u-k)?s:u;let p=r*t;const v=f+p,x=a===void 0?v:a(v);x!==v&&(p=x-f);const b=k=>-p*Math.exp(-k/n),C=k=>x+b(k),E=k=>{const D=b(k),L=C(k);d.done=Math.abs(D)<=l,d.value=d.done?x:L};let w,_;const O=k=>{h(d.value)&&(w=k,_=Xh({keyframes:[d.value,m(d.value)],velocity:Gh(C,k,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return O(0),{calculatedDuration:null,next:k=>{let D=!1;return!_&&w===void 0&&(D=!0,E(k),O(k)),w!==void 0&&k>w?_.next(k-w):(!D&&E(k),d)}}}const mw=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ot.update(t,!0),stop:()=>jr(t),now:()=>Dt.isProcessing?Dt.timestamp:performance.now()}},Qh=2e4;function Jh(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Qh;)t+=r,n=e.next(t);return t>=Qh?1/0:t}const vw={decay:Zh,inertia:Zh,tween:Na,keyframes:Na,spring:Xh};function za({autoplay:e=!0,delay:t=0,driver:r=mw,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,m=!1,p,v;const x=()=>{v=new Promise(j=>{p=j})};x();let b;const C=vw[i]||Na;let E;C!==Na&&typeof n[0]!="number"&&(E=Uh([0,100],n,{clamp:!1}),n=[0,100]);const w=C({...d,keyframes:n});let _;s==="mirror"&&(_=C({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let O="idle",k=null,D=null,L=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Jh(w));const{calculatedDuration:re}=w;let pe=1/0,se=1/0;re!==null&&(pe=re+a,se=pe*(o+1)-a);let q=0;const G=j=>{if(D===null)return;h>0&&(D=Math.min(D,j)),h<0&&(D=Math.min(j-se/h,D)),k!==null?q=k:q=Math.round(j-D)*h;const X=q-t*(h>=0?1:-1),ee=h>=0?X<0:X>se;q=Math.max(X,0),O==="finished"&&k===null&&(q=se);let H=q,fe=w;if(o){const Q=q/pe;let ne=Math.floor(Q),be=Q%1;!be&&Q>=1&&(be=1),be===1&&ne--,ne=Math.min(ne,o+1);const R=!!(ne%2);R&&(s==="reverse"?(be=1-be,a&&(be-=a/pe)):s==="mirror"&&(fe=_));let Be=Jr(0,1,be);q>se&&(Be=s==="reverse"&&R?1:0),H=Be*pe}const ue=ee?{done:!1,value:n[0]}:fe.next(H);E&&(ue.value=E(ue.value));let{done:ge}=ue;!ee&&re!==null&&(ge=h>=0?q>=se:q<=0);const Z=k===null&&(O==="finished"||O==="running"&&ge);return f&&f(ue.value),Z&&Ie(),ue},me=()=>{b&&b.stop(),b=void 0},Ee=()=>{O="idle",me(),p(),x(),D=L=null},Ie=()=>{O="finished",c&&c(),me(),p()},Oe=()=>{if(m)return;b||(b=r(G));const j=b.now();u&&u(),k!==null?D=j-k:(!D||O==="finished")&&(D=j),O==="finished"&&x(),L=D,k=null,O="running",b.start()};e&&Oe();const $={then(j,X){return v.then(j,X)},get time(){return Br(q)},set time(j){j=nn(j),q=j,k!==null||!b||h===0?k=j:D=b.now()-j/h},get duration(){const j=w.calculatedDuration===null?Jh(w):w.calculatedDuration;return Br(j)},get speed(){return h},set speed(j){j===h||!b||(h=j,$.time=Br(q))},get state(){return O},play:Oe,pause:()=>{O="paused",k=q},stop:()=>{m=!0,O!=="idle"&&(O="idle",l&&l(),Ee())},cancel:()=>{L!==null&&G(L),Ee()},complete:()=>{O="finished"},sample:j=>(D=0,G(j))};return $}function yw(e){let t;return()=>(t===void 0&&(t=e()),t)}const bw=yw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xw=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Va=10,ww=2e4,Cw=(e,t)=>t.type==="spring"||e==="backgroundColor"||!wh(t.ease);function Sw(e,t,{onUpdate:r,onComplete:n,...i}){if(!(bw()&&xw.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,s,u;const l=()=>{u=new Promise(b=>{s=b})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(Cw(t,i)){const b=za({...i,repeat:0,delay:0});let C={done:!1,value:c[0]};const E=[];let w=0;for(;!C.done&&w<ww;)C=b.sample(w),E.push(C.value),w+=Va;h=void 0,c=E,f=w-Va,d="linear"}const m=Fx(e.owner.current,t,c,{...i,duration:f,ease:d,times:h});i.syncStart&&(m.startTime=Dt.isProcessing?Dt.timestamp:performance.now());const p=()=>m.cancel(),v=()=>{ot.update(p),s(),l()};return m.onfinish=()=>{e.set(jx(c,i)),n&&n(),v()},{then(b,C){return u.then(b,C)},attachTimeline(b){return m.timeline=b,m.onfinish=null,bt},get time(){return Br(m.currentTime||0)},set time(b){m.currentTime=nn(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return Br(f)},play:()=>{a||(m.play(),jr(p))},pause:()=>m.pause(),stop:()=>{if(a=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const C=za({...i,autoplay:!1});e.setWithVelocity(C.sample(b-Va).value,C.sample(b).value,Va)}v()},complete:()=>m.finish(),cancel:v}}function Ew({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:bt,pause:bt,stop:bt,then:o=>(o(),Promise.resolve()),cancel:bt,complete:bt});return t?za({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Tw={type:"spring",stiffness:500,damping:25,restSpeed:10},_w=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ow={type:"keyframes",duration:.8},kw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mw=(e,{keyframes:t})=>t.length>2?Ow:wn.has(e)?e.startsWith("scale")?_w(t[1]):Tw:kw,vu=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(on.test(t)||t==="0")&&!t.startsWith("url(")),Pw=new Set(["brightness","contrast","saturate","opacity"]);function Aw(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Da)||[];if(!n)return e;const i=r.replace(n,"");let o=Pw.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Dw=/([a-z-]*)\(.*?\)/g,yu={...on,getAnimatableNone:e=>{const t=e.match(Dw);return t?t.map(Aw).join(" "):e}},$w={...Jd,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:yu,WebkitFilter:yu},bu=e=>$w[e];function ep(e,t){let r=bu(e);return r!==yu&&(r=on),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const tp=e=>/^0[^.\s]+$/.test(e);function Iw(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||tp(e)}function Fw(e,t,r,n){const i=vu(t,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;l<o.length;l++)o[l]===null&&(o[l]=l===0?a:o[l-1]),Iw(o[l])&&u.push(l),typeof o[l]=="string"&&o[l]!=="none"&&o[l]!=="0"&&(s=o[l]);if(i&&u.length&&s)for(let l=0;l<u.length;l++){const c=u[l];o[c]=ep(t,s)}return o}function jw({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}function rp(e,t){return e[t]||e.default||e}const xu=(e,t,r,n={})=>i=>{const o=rp(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s=s-nn(a);const u=Fw(t,e,r,o),l=u[0],c=u[u.length-1],f=vu(e,l),d=vu(e,c);So(f===d,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(jw(o)||(h={...h,...Mw(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!f||!d||Ix.current||o.type===!1)return Ew(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Sw(t,e,h);if(m)return m}return za(h)};function Wa(e){return!!(Ht(e)&&e.add)}const np=e=>/^\-?\d*\.?\d+$/.test(e);function wu(e,t){e.indexOf(t)===-1&&e.push(t)}function Cu(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Su{constructor(){this.subscriptions=[]}add(t){return wu(this.subscriptions,t),()=>Cu(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ip=new Set;function Eu(e,t,r){e||ip.has(t)||(console.warn(t),r&&console.warn(r),ip.add(t))}const Lw=e=>!isNaN(parseFloat(e));class Rw{constructor(t,r={}){this.version="10.16.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:a}=Dt;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,ot.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ot.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==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=Lw(this.current),this.owner=r.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Eu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Su);const n=this.events[t].add(r);return t==="change"?()=>{n(),ot.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}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?Yh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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 Jn(e,t){return new Rw(e,t)}const op=e=>t=>t.test(e),ap=[Cn,we,Sr,en,K2,q2,{test:e=>e==="auto",parse:e=>e}],Oo=e=>ap.find(op(e)),Bw=[...ap,zt,on],Nw=e=>Bw.find(op(e));function zw(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Jn(r))}function Vw(e,t){const r=Ra(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){const s=ux(o[a]);zw(e,a,s)}}function Ww(e,t,r){var n,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const u=o[s],l=t[u];let c=null;Array.isArray(l)&&(c=l[0]),c===null&&(c=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),c!=null&&(typeof c=="string"&&(np(c)||tp(c))?c=parseFloat(c):!Nw(c)&&on.test(l)&&(c=ep(u,l)),e.addValue(u,Jn(c,{owner:e})),r[u]===void 0&&(r[u]=c),c!==null&&e.setBaseTarget(u,c))}}function Hw(e,t){return t?(t[e]||t.default||t).from:void 0}function Uw(e,t,r){const n={};for(const i in e){const o=Hw(i,t);if(o!==void 0)n[i]=o;else{const a=r.getValue(i);a&&(n[i]=a.get())}}return n}function Yw({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function sp(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");n&&(o=n);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in s){const d=e.getValue(f),h=s[f];if(!d||h===void 0||c&&Yw(c,f))continue;const m={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!d.hasAnimated){const v=e.getProps()[$x];v&&(m.elapsed=window.HandoffAppearAnimations(v,f,d,ot),m.syncStart=!0)}d.start(xu(f,d,h,e.shouldReduceMotion&&wn.has(f)?{type:!1}:m));const p=d.animation;Wa(u)&&(u.add(f),p.then(()=>u.remove(f))),l.push(p)}return a&&Promise.all(l).then(()=>{a&&Vw(e,a)}),l}function Tu(e,t,r={}){const n=Ra(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(sp(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Gw(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>l())}else return Promise.all([o(),a(r.delay)])}function Gw(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(qw).forEach((l,c)=>{l.notify("AnimationStart",t),a.push(Tu(l,t,{...o,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function qw(e,t){return e.sortNodePosition(t)}function Kw(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>Tu(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Tu(e,t,r);else{const i=typeof t=="function"?Ra(e,t,r.custom):t;n=Promise.all(sp(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const Xw=[...Hl].reverse(),Zw=Hl.length;function Qw(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Kw(e,r,n)))}function Jw(e){let t=Qw(e);const r=t5();let n=!0;const i=(u,l)=>{const c=Ra(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function o(u){t=u(e)}function a(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let m={},p=1/0;for(let x=0;x<Zw;x++){const b=Xw[x],C=r[b],E=c[b]!==void 0?c[b]:f[b],w=mo(E),_=b===l?C.isActive:null;_===!1&&(p=x);let O=E===f[b]&&E!==c[b]&&w;if(O&&n&&e.manuallyAnimateOnMount&&(O=!1),C.protectedKeys={...m},!C.isActive&&_===null||!E&&!C.prevProp||ka(E)||typeof E=="boolean")continue;const k=e5(C.prevProp,E);let D=k||b===l&&C.isActive&&!O&&w||x>p&&w;const L=Array.isArray(E)?E:[E];let re=L.reduce(i,{});_===!1&&(re={});const{prevResolvedValues:pe={}}=C,se={...pe,...re},q=G=>{D=!0,h.delete(G),C.needsAnimating[G]=!0};for(const G in se){const me=re[G],Ee=pe[G];m.hasOwnProperty(G)||(me!==Ee?Ia(me)&&Ia(Ee)?!bh(me,Ee)||k?q(G):C.protectedKeys[G]=!0:me!==void 0?q(G):h.add(G):me!==void 0&&h.has(G)?q(G):C.protectedKeys[G]=!0)}C.prevProp=E,C.prevResolvedValues=re,C.isActive&&(m={...m,...re}),n&&e.blockInitialAnimation&&(D=!1),D&&!O&&d.push(...L.map(G=>({animation:G,options:{type:b,...u}})))}if(h.size){const x={};h.forEach(b=>{const C=e.getBaseTarget(b);C!==void 0&&(x[b]=C)}),d.push({animation:x})}let v=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(u,l)}),r[u].isActive=l;const d=a(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>r}}function e5(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bh(t,e):!1}function En(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t5(){return{animate:En(!0),whileInView:En(),whileHover:En(),whileTap:En(),whileDrag:En(),whileFocus:En(),exit:En()}}class r5 extends rn{constructor(t){super(t),t.animationState||(t.animationState=Jw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ka(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let n5=0;class i5 extends rn{constructor(){super(...arguments),this.id=n5++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const o5={animation:{Feature:r5},exit:{Feature:i5}},lp=(e,t)=>Math.abs(e-t);function a5(e,t){const r=lp(e.x,t.x),n=lp(e.y,t.y);return Math.sqrt(r**2+n**2)}class up{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Ou(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=a5(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=Dt;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=_u(c,this.transformPagePoint),ot.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Ou(l.type==="pointercancel"?this.lastMoveEventInfo:_u(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!fh(t))return;this.handlers=r,this.transformPagePoint=n;const i=La(t),o=_u(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=Dt;this.history=[{...a,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,Ou(o,this.history)),this.removeListeners=tn(Rr(window,"pointermove",this.handlePointerMove),Rr(window,"pointerup",this.handlePointerUp),Rr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jr(this.updatePoint)}}function _u(e,t){return t?{point:t(e.point)}:e}function cp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ou({point:e},t){return{point:e,delta:cp(e,fp(t)),offset:cp(e,s5(t)),velocity:l5(t,.1)}}function s5(e){return e[0]}function fp(e){return e[e.length-1]}function l5(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=fp(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>nn(t)));)r--;if(!n)return{x:0,y:0};const o=Br(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Qt(e){return e.max-e.min}function ku(e,t=0,r=.01){return Math.abs(e-t)<=r}function dp(e,t,r,n=.5){e.origin=n,e.originPoint=pt(t.min,t.max,e.origin),e.scale=Qt(r)/Qt(t),(ku(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=pt(r.min,r.max,e.origin)-e.originPoint,(ku(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ko(e,t,r,n){dp(e.x,t.x,r.x,n?n.originX:void 0),dp(e.y,t.y,r.y,n?n.originY:void 0)}function hp(e,t,r){e.min=r.min+t.min,e.max=e.min+Qt(t)}function u5(e,t,r){hp(e.x,t.x,r.x),hp(e.y,t.y,r.y)}function pp(e,t,r){e.min=t.min-r.min,e.max=e.min+Qt(t)}function Mo(e,t,r){pp(e.x,t.x,r.x),pp(e.y,t.y,r.y)}function c5(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?pt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?pt(r,e,n.max):Math.min(e,r)),e}function gp(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function f5(e,{top:t,left:r,bottom:n,right:i}){return{x:gp(e.x,r,i),y:gp(e.y,t,n)}}function mp(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function d5(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function h5(e,t){let r=.5;const n=Qt(e),i=Qt(t);return i>n?r=_o(t.min,t.max-n,e.min):n>i&&(r=_o(e.min,e.max-i,t.min)),Jr(0,1,r)}function p5(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Mu=.35;function g5(e=Mu){return e===!1?e=0:e===!0&&(e=Mu),{x:vp(e,"left","right"),y:vp(e,"top","bottom")}}function vp(e,t,r){return{min:yp(e,t),max:yp(e,r)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:bp(),y:bp()}),xp=()=>({min:0,max:0}),kt=()=>({x:xp(),y:xp()});function Er(e){return[e("x"),e("y")]}function wp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function m5({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v5(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Pu(e){return e===void 0||e===1}function Au({scale:e,scaleX:t,scaleY:r}){return!Pu(e)||!Pu(t)||!Pu(r)}function Tn(e){return Au(e)||Cp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Cp(e){return Sp(e.x)||Sp(e.y)}function Sp(e){return e&&e!=="0%"}function Ha(e,t,r){const n=e-r,i=t*n;return r+i}function Ep(e,t,r,n,i){return i!==void 0&&(e=Ha(e,i,n)),Ha(e,r,n)+t}function Du(e,t=0,r=1,n,i){e.min=Ep(e.min,t,r,n,i),e.max=Ep(e.max,t,r,n,i)}function Tp(e,{x:t,y:r}){Du(e.x,t.translate,t.scale,t.originPoint),Du(e.y,r.translate,r.scale,r.originPoint)}function y5(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s<i;s++){o=r[s],a=o.projectionDelta;const u=o.instance;u&&u.style&&u.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ti(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Tp(e,a)),n&&Tn(o.latestValues)&&ti(e,o.latestValues))}t.x=_p(t.x),t.y=_p(t.y)}function _p(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function an(e,t){e.min=e.min+t,e.max=e.max+t}function Op(e,t,[r,n,i]){const o=t[i]!==void 0?t[i]:.5,a=pt(e.min,e.max,o);Du(e,t[r],t[n],a,t.scale)}const b5=["x","scaleX","originX"],x5=["y","scaleY","originY"];function ti(e,t){Op(e.x,t,b5),Op(e.y,t,x5)}function kp(e,t){return wp(v5(e.getBoundingClientRect(),t))}function w5(e,t,r){const n=kp(e,r),{scroll:i}=t;return i&&(an(n.x,i.offset.x),an(n.y,i.offset.y)),n}const C5=new WeakMap;class S5{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=kt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(La(u,"page").point)},o=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gh(c),!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),Er(m=>{let p=this.getAxisMotionValue(m).get()||0;if(Sr.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[m];x&&(p=Qt(x)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&ot.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=l;if(f&&this.currentDirection===null){this.currentDirection=E5(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,m),this.updateAxis("y",l.point,m),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new up(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ot.update(()=>o(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Ua(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=c5(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=f5(n.layoutBox,t):this.constraints=!1,this.elastic=g5(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Er(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=p5(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Zn(t))return!1;const n=t.current;pr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=w5(n,i.root,this.visualElement.getTransformPagePoint());let a=d5(i.layout.layoutBox,o);if(r){const s=r(m5(a));this.hasMutatedConstraints=!!s,s&&(a=wp(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=Er(c=>{if(!Ua(c,r,this.currentDirection))return;let f=u&&u[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(xu(t,n,0,r))}stopAnimation(){Er(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Er(r=>{const{drag:n}=this.getProps();if(!Ua(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[r];o.set(t[r]-pt(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Zn(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Er(a=>{const s=this.getAxisMotionValue(a);if(s){const u=s.get();i[a]=h5({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Er(a=>{if(!Ua(a,t,null))return;const s=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];s.set(pt(u,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;C5.set(this.visualElement,this);const t=this.visualElement.current,r=Rr(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Zn(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const a=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Er(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{a(),r(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mu,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ua(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function E5(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class T5 extends rn{constructor(t){super(t),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new S5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Mp=e=>(t,r)=>{e&&ot.update(()=>e(t,r))};class _5 extends rn{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(t){this.session=new up(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Mp(t),onStart:Mp(r),onMove:n,onEnd:(o,a)=>{delete this.session,i&&ot.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Rr(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 O5(){const e=g.useContext(_a);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=g.useId();return g.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const r=Pp(e,t.target.x),n=Pp(e,t.target.y);return`${r}% ${n}%`}},k5={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=on.parse(e);if(i.length>5)return n;const o=on.createTransformer(e),a=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=u;const l=pt(s,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=l),typeof i[3+a]=="number"&&(i[3+a]/=l),o(i)}};class M5 extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;z2(P5),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,a=n.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||ot.postRender(()=>{const s=a.getStack();(!s||!s.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:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ap(e){const[t,r]=O5(),n=g.useContext(Gl);return g.createElement(M5,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(Yd),isPresent:t,safeToRemove:r})}const P5={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:k5},Dp=["TopLeft","TopRight","BottomLeft","BottomRight"],A5=Dp.length,$p=e=>typeof e=="string"?parseFloat(e):e,Ip=e=>typeof e=="number"||we.test(e);function D5(e,t,r,n,i,o){i?(e.opacity=pt(0,r.opacity!==void 0?r.opacity:1,$5(n)),e.opacityExit=pt(t.opacity!==void 0?t.opacity:1,0,I5(n))):o&&(e.opacity=pt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<A5;a++){const s=`border${Dp[a]}Radius`;let u=Fp(t,s),l=Fp(r,s);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||Ip(u)===Ip(l)?(e[s]=Math.max(pt($p(u),$p(l),n),0),(Sr.test(l)||Sr.test(u))&&(e[s]+="%")):e[s]=l}(t.rotate||r.rotate)&&(e.rotate=pt(t.rotate||0,r.rotate||0,n))}function Fp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $5=jp(0,.5,su),I5=jp(.5,.95,bt);function jp(e,t,r){return n=>n<e?0:n>t?1:r(_o(e,t,n))}function Lp(e,t){e.min=t.min,e.max=t.max}function ur(e,t){Lp(e.x,t.x),Lp(e.y,t.y)}function Rp(e,t,r,n,i){return e-=t,e=Ha(e,1/r,n),i!==void 0&&(e=Ha(e,1/i,n)),e}function F5(e,t=0,r=1,n=.5,i,o=e,a=e){if(Sr.test(t)&&(t=parseFloat(t),t=pt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=pt(o.min,o.max,n);e===o&&(s-=t),e.min=Rp(e.min,t,r,s,i),e.max=Rp(e.max,t,r,s,i)}function Bp(e,t,[r,n,i],o,a){F5(e,t[r],t[n],t[i],t.scale,o,a)}const j5=["x","scaleX","originX"],L5=["y","scaleY","originY"];function Np(e,t,r,n){Bp(e.x,t,j5,r?r.x:void 0,n?n.x:void 0),Bp(e.y,t,L5,r?r.y:void 0,n?n.y:void 0)}function zp(e){return e.translate===0&&e.scale===1}function Vp(e){return zp(e.x)&&zp(e.y)}function R5(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 Wp(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 Hp(e){return Qt(e.x)/Qt(e.y)}class B5{constructor(){this.members=[]}add(t){wu(this.members,t),t.scheduleRender()}remove(t){if(Cu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Up(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const N5=(e,t)=>e.depth-t.depth;class z5{constructor(){this.children=[],this.isDirty=!1}add(t){wu(this.children,t),this.isDirty=!0}remove(t){Cu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(N5),this.isDirty=!1,this.children.forEach(t)}}function V5(e,t){const r=performance.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(jr(n),e(o-t))};return ot.read(n,!0),()=>jr(n)}function W5(e){window.MotionDebug&&window.MotionDebug.record(e)}function H5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U5(e,t,r){const n=Ht(e)?e:Jn(e);return n.start(xu("",n,t,r)),n.animation}const Yp=["","X","Y","Z"],Gp=1e3;let Y5=0;const _n={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=Y5++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{_n.totalNodes=_n.resolvedTargetDeltas=_n.recalculatedProjection=0,this.nodes.forEach(K5),this.nodes.forEach(e3),this.nodes.forEach(t3),this.nodes.forEach(X5),W5(_n)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new z5)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Su),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const u=this.eventHandlers.get(a);u&&u.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,s=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=H5(a),this.instance=a;const{layoutId:u,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),s&&(l||u)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=V5(d,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(Xp))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||a3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=c.getProps(),b=!this.targetLayout||!Wp(this.targetLayout,m)||h,C=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,C);const E={...rp(p,"layout"),onPlay:v,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else d||Xp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,jr(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(r3),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 c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Kp);return}this.isUpdating||this.nodes.forEach(Q5),this.isUpdating=!1,this.nodes.forEach(J5),this.nodes.forEach(G5),this.nodes.forEach(q5),this.clearAllSnapshots();const s=performance.now();Dt.delta=Jr(0,1e3/60,s-Dt.timestamp),Dt.timestamp=s,Dt.isProcessing=!0,nu.update.process(Dt),nu.preRender.process(Dt),nu.render.process(Dt),Dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Z5),this.sharedNodes.forEach(n3)}scheduleUpdateProjection(){ot.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ot.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=kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,s=this.projectionDelta&&!Vp(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;a&&(s||Tn(this.latestValues)||c)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let u=this.removeElementScroll(s);return a&&(u=this.removeTransform(u)),s3(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kt();const s=a.measureViewportBox(),{scroll:u}=this.root;return u&&(an(s.x,u.offset.x),an(s.y,u.offset.y)),s}removeElementScroll(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:c,options:f}=l;if(l!==this.root&&c&&f.layoutScroll){if(c.isRoot){ur(s,a);const{scroll:d}=this.root;d&&(an(s.x,-d.offset.x),an(s.y,-d.offset.y))}an(s.x,c.offset.x),an(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const u=kt();ur(u,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ti(u,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Tn(c.latestValues)&&ti(u,c.latestValues)}return Tn(this.latestValues)&&ti(u,this.latestValues),u}removeTransform(a){const s=kt();ur(s,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Tn(l.latestValues))continue;Au(l.latestValues)&&l.updateSnapshot();const c=kt(),f=l.measurePageBox();ur(c,f),Np(s,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return Tn(this.latestValues)&&Np(s,this.latestValues),s}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!==Dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var s;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==u;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Dt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u5(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ur(this.target,this.layout.layoutBox),Tp(this.target,this.targetDelta)):ur(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Mo(this.relativeTargetOrigin,this.target,h.target),ur(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_n.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Au(this.parent.latestValues)||Cp(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 s=this.getLead(),u=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(l=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Dt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;ur(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;y5(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox);const{target:m}=s;if(!m){this.projectionTransform&&(this.projectionDelta=ei(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei());const p=this.projectionTransform;ko(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Up(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),_n.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){const u=this.snapshot,l=u?u.latestValues:{},c={...this.latestValues},f=ei();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const d=kt(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),x=!v||v.members.length<=1,b=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(o3));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const w=E/1e3;Zp(f.x,a.x,w),Zp(f.y,a.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i3(this.relativeTarget,this.relativeTargetOrigin,d,w),C&&R5(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=kt()),ur(C,this.relativeTarget)),p&&(this.animationValues=c,D5(c,l,this.latestValues,w,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},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&&(jr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ot.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=U5(0,Gp,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},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(Gp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=a;if(!(!s||!u||!l)){if(this!==a&&this.layout&&l&&r0(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||kt();const f=Qt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const d=Qt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+d}ur(s,u),ti(s,c),ko(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new B5),this.sharedNodes.get(a).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(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:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:u}=a;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c<Yp.length;c++){const f="rotate"+Yp[c];u[f]&&(l[f]=u[f],a.setStaticValue(f,0))}a.render();for(const c in l)a.setStaticValue(c,l[c]);a.scheduleRender()}getProjectionStyles(a={}){var s,u;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Fa(a.pointerEvents)||"",l.transform=c?c(this.latestValues,""):"none",l;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Fa(a.pointerEvents)||""),this.hasProjected&&!Tn(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),l.transform=Up(this.projectionDeltaWithTransform,this.treeScale,d),c&&(l.transform=c(d,l.transform));const{x:h,y:m}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?l.opacity=f===this?(u=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:l.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Pa){if(d[p]===void 0)continue;const{correct:v,applyTo:x}=Pa[p],b=l.transform==="none"?d[p]:v(d[p],f);if(x){const C=x.length;for(let E=0;E<C;E++)l[x[E]]=b}else l[p]=b}return this.options.layoutId&&(l.pointerEvents=f===this?Fa(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(Kp),this.root.sharedNodes.clear()}}}function G5(e){e.updateLayout()}function q5(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,a=r.source!==e.layout.source;o==="size"?Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(d);d.min=n[f].min,d.max=d.min+h}):r0(o,r.layoutBox,n)&&Er(f=>{const d=a?r.measuredBox[f]:r.layoutBox[f],h=Qt(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=ei();ko(s,n,r.layoutBox);const u=ei();a?ko(u,e.applyTransform(i,!0),r.measuredBox):ko(u,n,r.layoutBox);const l=!Vp(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=kt();Mo(m,r.layoutBox,d.layoutBox);const p=kt();Mo(p,n,h.layoutBox),Wp(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function K5(e){_n.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 X5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Z5(e){e.clearSnapshot()}function Kp(e){e.clearMeasurements()}function Q5(e){e.isLayoutDirty=!1}function J5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e3(e){e.resolveTargetDelta()}function t3(e){e.calcProjection()}function r3(e){e.resetRotation()}function n3(e){e.removeLeadSnapshot()}function Zp(e,t,r){e.translate=pt(t.translate,0,r),e.scale=pt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Qp(e,t,r,n){e.min=pt(t.min,r.min,n),e.max=pt(t.max,r.max,n)}function i3(e,t,r,n){Qp(e.x,t.x,r.x,n),Qp(e.y,t.y,r.y,n)}function o3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a3={duration:.45,ease:[.4,0,.1,1]},Jp=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),e0=Jp("applewebkit/")&&!Jp("chrome/")?Math.round:bt;function t0(e){e.min=e0(e.min),e.max=e0(e.max)}function s3(e){t0(e.x),t0(e.y)}function r0(e,t,r){return e==="position"||e==="preserve-aspect"&&!ku(Hp(t),Hp(r),.2)}const l3=qp({attachResizeListener:(e,t)=>Lr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$u={current:void 0},n0=qp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$u.current){const e=new l3({});e.mount(window),e.setOptions({layoutScroll:!0}),$u.current=e}return $u.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),u3={pan:{Feature:_5},drag:{Feature:T5,ProjectionNode:n0,MeasureLayout:Ap}},c3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f3(e){const t=c3.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}const d3=4;function Iu(e,t,r=1){pr(r<=d3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=f3(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const a=o.trim();return np(a)?parseFloat(a):a}else return Kl(i)?Iu(i,t,r+1):i}function h3(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const o=i.get();if(!Kl(o))return;const a=Iu(o,n);a&&i.set(a)});for(const i in t){const o=t[i];if(!Kl(o))continue;const a=Iu(o,n);a&&(t[i]=a,r||(r={}),r[i]===void 0&&(r[i]=o))}return{target:t,transitionEnd:r}}const p3=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),i0=e=>p3.has(e),g3=e=>Object.keys(e).some(i0),Ga=e=>e===Cn||e===we,o0=(e,t)=>parseFloat(e.split(", ")[t]),a0=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return o0(i[1],t);{const o=n.match(/^matrix\((.+)\)$/);return o?o0(o[1],e):0}},m3=new Set(["x","y","z"]),v3=yo.filter(e=>!m3.has(e));function y3(e){const t=[];return v3.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ri={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:a0(4,13),y:a0(5,14)};ri.translateX=ri.x,ri.translateY=ri.y;const b3=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=ri[l](n,o)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=ri[l](u,o)}),e},x3=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(i0);let o=[],a=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Oo(c);const d=t[u];let h;if(Ia(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=Oo(c);for(let v=p;v<m&&d[v]!==null;v++)h?pr(Oo(d[v])===h,"All keyframes must be of the same type"):(h=Oo(d[v]),pr(h===f||Ga(f)&&Ga(h),"Keyframes must be of the same dimension as the current value"))}else h=Oo(d);if(f!==h)if(Ga(f)&&Ga(h)){const m=l.get();typeof m=="string"&&l.set(parseFloat(m)),typeof d=="string"?t[u]=parseFloat(d):Array.isArray(d)&&h===we&&(t[u]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?l.set(h.transform(c)):t[u]=f.transform(d):(a||(o=y3(e),a=!0),s.push(u),n[u]=n[u]!==void 0?n[u]:t[u],l.jump(d))}),s.length){const u=s.indexOf("height")>=0?window.pageYOffset:null,l=b3(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Oa&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function w3(e,t,r,n){return g3(t)?x3(e,t,r,n):{target:t,transitionEnd:n}}const C3=(e,t,r,n)=>{const i=h3(e,t,n);return t=i.target,n=i.transitionEnd,w3(e,t,r,n)},Fu={current:null},s0={current:!1};function S3(){if(s0.current=!0,!!Oa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fu.current=e.matches;e.addListener(t),t()}else Fu.current=!1}function E3(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(Ht(o))e.addValue(i,o),Wa(n)&&n.add(i),process.env.NODE_ENV==="development"&&Eu(o.version==="10.16.3",`Attempting to mix Framer Motion versions ${o.version} with 10.16.3 may not work as expected.`);else if(Ht(a))e.addValue(i,Jn(o,{owner:e})),Wa(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Jn(s!==void 0?s:o,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const l0=new WeakMap,u0=Object.keys(vo),T3=u0.length,c0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_3=Ul.length;class O3{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:o},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=()=>ot.render(this.render,!1,!0);const{latestValues:s,renderState:u}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Ma(r),this.isVariantNode=Wd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&Ht(d)&&(d.set(s[f],!1),Wa(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,l0.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((r,n)=>this.bindToMotionValue(n,r)),s0.current||S3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fu.current,process.env.NODE_ENV!=="production"&&Eu(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(){l0.delete(this.current),this.projection&&this.projection.unmount(),jr(this.notifyUpdate),jr(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,r){const n=wn.has(t),i=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ot.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,o){let a,s;if(process.env.NODE_ENV!=="production"&&i&&n){const u="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?So(!1,u):pr(!1,u)}for(let u=0;u<T3;u++){const l=u0[u],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=vo[l];d&&(a=d),c(r)&&(!this.features[l]&&f&&(this.features[l]=new f(this)),h&&(s=h))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:l,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=r;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:!!c||f&&Zn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<c0.length;n++){const i=c0[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=E3(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 n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<_3;n++){const i=Ul[n],o=this.props[i];(mo(o)||o===!1)&&(r[i]=o)}return r}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Jn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=ru(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ht(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Su),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class f0 extends O3{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},o){let a=Uw(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),a&&(a=i(a))),o){Ww(this,n,a);const s=C3(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function k3(e){return window.getComputedStyle(e)}class M3 extends f0{readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}else{const n=k3(t),i=(Kd(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return kp(t,r)}build(t,r,n,i){Xl(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return tu(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){ih(t,r,n,i)}}class P3 extends f0{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(wn.has(r)){const n=bu(r);return n&&n.default||0}return r=oh.has(r)?r:eu(r),t.getAttribute(r)}measureInstanceViewportBox(){return kt()}scrapeMotionValuesFromProps(t,r){return sh(t,r)}build(t,r,n,i){Ql(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){ah(t,r,n,i)}mount(t){this.isSVGTag=Jl(t.tagName),super.mount(t)}}const A3=(e,t)=>ql(e)?new P3(t,{enableHardwareAcceleration:!1}):new M3(t,{enableHardwareAcceleration:!0}),D3={layout:{ProjectionNode:n0,MeasureLayout:Ap}},gr=B2(vx);function d0(){const e=g.useRef(!1);return Vl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function $3(){const e=d0(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>ot.postRender(n),[n]),t]}class I3 extends xe.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function F3({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:u}=i.current;if(t||!n.current||!o||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
28
28
|
[data-motion-pop-id="${r}"] {
|
|
29
29
|
position: absolute !important;
|
|
30
30
|
width: ${o}px !important;
|
|
@@ -102,7 +102,7 @@ const theme2 = createTheme({ palette: {
|
|
|
102
102
|
} });`:oi(12,v?` (${v})`:"",JSON.stringify(p.main)));return cg(p,"light",b,n),cg(p,"dark",C,n),p.contrastText||(p.contrastText=f(p.main)),p},h={dark:uc,light:ug};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nr(Ae({common:Ae({},Bo),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:l,name:"success"}),grey:cS,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const bS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function xS(e){return Math.round(e*1e5)/1e5}const fg={textTransform:"uppercase"},dg='"Roboto", "Helvetica", "Arial", sans-serif';function wS(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=dg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,d=zr(r,bS);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,m=f||(x=>`${x/l*h}rem`),p=(x,b,C,E,w)=>Ae({fontFamily:n,fontWeight:x,fontSize:m(b),lineHeight:C},n===dg?{letterSpacing:`${xS(E/b)}em`}:{},w,c),v={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(s,14,1.75,.4,fg),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,fg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr(Ae({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},v),d,{clone:!1})}const CS=.2,SS=.14,ES=.12;function ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${SS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ES})`].join(",")}const TS=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],_S=["duration","easing","delay"],OS={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)"},kS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hg(e){return`${Math.round(e)}ms`}function MS(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function PS(e){const t=Ae({},OS,e.easing),r=Ae({},kS,e.duration);return Ae({getAutoHeightDuration:MS,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=o,l=zr(o,_S);if(process.env.NODE_ENV!=="production"){const c=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="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(`
|
|
103
103
|
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:hg(a)} ${s} ${typeof u=="string"?u:hg(u)}`).join(",")}},e,{easing:t,duration:r})}const AS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},DS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pg(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=zr(e,DS);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.":oi(18));const s=yS(n),u=ic(e);let l=Nr(u,{mixins:uS(u.breakpoints,r),palette:s,shadows:TS.slice(),typography:wS(s,o),transitions:PS(i),zIndex:Ae({},AS)});if(l=Nr(l,a),l=t.reduce((c,f)=>Nr(c,f),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,h)=>{let m;for(m in d){const p=d[m];if(c.indexOf(m)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const v=m4("",m);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
104
104
|
`))}d[m]={}}}};Object.keys(l.components).forEach(d=>{const h=l.components[d].styleOverrides;h&&d.indexOf("Mui")===0&&f(h,d)})}return l.unstable_sxConfig=Ae({},rc,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return nc({sx:f,theme:this})},l}const gg=pg();function mi(){const e=GC(gg);return process.env.NODE_ENV!=="production"&&xe.useDebugValue(e),e[Ka]||e}const $t=nS({themeId:Ka,defaultTheme:gg,rootShouldForwardProp:e=>hs(e)&&e!=="classes"}),$S=["theme"];function mg(e){let{theme:t}=e,r=zr(e,$S);const n=t[Ka];return y.jsx(ms,Ae({},r,{themeId:n?Ka:void 0,theme:n||t}))}process.env.NODE_ENV!=="production"&&(mg.propTypes={children:T.node,theme:T.oneOfType([T.object,T.func]).isRequired});function IS(e,t,r,n,i){const[o,a]=xe.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return h4(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&a(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const vg=xe["useSyncExternalStore"];function FS(e,t,r,n,i){const o=xe.useCallback(()=>t,[t]),a=xe.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,i,r]),[s,u]=xe.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return vg(u,s,a)}function vs(e,t={}){const r=oc(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=iS({name:"MuiUseMediaQuery",props:t,theme:r});process.env.NODE_ENV!=="production"&&typeof e=="function"&&r===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
105
|
-
`));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(vg!==void 0?FS:IS)(u,i,o,a,s);return process.env.NODE_ENV!=="production"&&xe.useDebugValue({query:u,match:c}),c}const yg=(e,t,r)=>{const n=mi(),i=vs(n.breakpoints.up(t)),o=vs(n.breakpoints.down(t)),a=vs(n.breakpoints.between(t,r)),s=vs(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},jS=({children:e,disableAnimatedMobile:t=!0,...r})=>yg("down","sm")&&t?y.jsx(P.Box,{...r,children:e}):y.jsx(P.Box,{component:gr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Ea(),...r,children:e}),LS=({animate:e,action:t=!1,children:r,...n})=>t?y.jsx(P.Box,{component:gr.div,initial:!1,animate:e?"animate":"exit",variants:Ea(),...n,children:r}):y.jsx(P.Box,{component:gr.div,initial:"initial",animate:"animate",exit:"exit",variants:Ea(),...n,children:r}),RS=()=>Promise.resolve().then(()=>bX).then(e=>e.default),BS=({children:e})=>y.jsx(N3,{strict:!0,features:RS,children:y.jsxs(gr.div,{style:{height:"100%"},children:[" ",e," "]})}),cc=(e=!1)=>{const[t,r]=g.useState(e),n=g.useCallback(()=>r(i=>!i),[]);return[t,n,r]};function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}function bg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function NS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dc(e,t)}var xg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zS(e,t){return!!(e===t||xg(e)&&xg(t))}function VS(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!zS(e[r],t[r]))return!1;return!0}function hc(e,t){t===void 0&&(t=VS);var r,n=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&r===this&&t(s,n)||(i=e.apply(this,s),o=!0,r=this,n=s),i}return a}var WS=typeof performance=="object"&&typeof performance.now=="function",wg=WS?function(){return performance.now()}:function(){return Date.now()};function Cg(e){cancelAnimationFrame(e.id)}function HS(e,t){var r=wg();function n(){wg()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var pc=-1;function Sg(e){if(e===void 0&&(e=!1),pc===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),pc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pc}var vi=null;function Eg(e){if(e===void 0&&(e=!1),vi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?vi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vi="negative":vi="positive-ascending"),document.body.removeChild(t),vi}return vi}process.env.NODE_ENV;var US=150,YS=function(t,r){return t},ys=null,bs=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(ys=new WeakSet,bs=new WeakSet);function GS(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){NS(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=u(p.props,bg(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:bg(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=hc(function(v,x,b,C){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:x,visibleStartIndex:b,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=hc(function(v,x,b){return p.props.onScroll({scrollDirection:v,scrollOffset:x,scrollUpdateWasRequested:b})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var x=p.props,b=x.direction,C=x.itemSize,E=x.layout,w=p._getItemStyleCache(l&&C,l&&E,l&&b),_;if(w.hasOwnProperty(v))_=w[v];else{var O=r(p.props,v,p._instanceProps),k=i(p.props,v,p._instanceProps),D=b==="horizontal"||E==="horizontal",L=b==="rtl",re=D?O:0;w[v]=_={position:"absolute",left:L?void 0:re,right:L?re:void 0,top:D?0:O,height:D?"100%":k,width:D?k:"100%"}}return _},p._getItemStyleCache=void 0,p._getItemStyleCache=hc(function(v,x,b){return{}}),p._onScrollHorizontal=function(v){var x=v.currentTarget,b=x.clientWidth,C=x.scrollLeft,E=x.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var _=p.props.direction,O=C;if(_==="rtl")switch(Eg()){case"negative":O=-C;break;case"positive-descending":O=E-b-C;break}return O=Math.max(0,Math.min(O,E-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var x=v.currentTarget,b=x.clientHeight,C=x.scrollHeight,E=x.scrollTop;p.setState(function(w){if(w.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,C-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var x=p.props.outerRef;p._outerRef=v,typeof x=="function"?x(v):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&Cg(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=HS(p._resetIsScrolling,US)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,v){return qS(p,v),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,v){v===void 0&&(v="auto");var x=this.props,b=x.itemCount,C=x.layout,E=this.state.scrollOffset;p=Math.max(0,Math.min(p,b-1));var w=0;if(this._outerRef){var _=this._outerRef;C==="vertical"?w=_.scrollWidth>_.clientWidth?Sg():0:w=_.scrollHeight>_.clientHeight?Sg():0}this.scrollTo(o(this.props,p,v,E,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,v=p.direction,x=p.initialScrollOffset,b=p.layout;if(typeof x=="number"&&this._outerRef!=null){var C=this._outerRef;v==="horizontal"||b==="horizontal"?C.scrollLeft=x:C.scrollTop=x}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,v=p.direction,x=p.layout,b=this.state,C=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||x==="horizontal")if(v==="rtl")switch(Eg()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var _=w.clientWidth,O=w.scrollWidth;w.scrollLeft=O-_-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Cg(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,v=p.children,x=p.className,b=p.direction,C=p.height,E=p.innerRef,w=p.innerElementType,_=p.innerTagName,O=p.itemCount,k=p.itemData,D=p.itemKey,L=D===void 0?YS:D,re=p.layout,pe=p.outerElementType,se=p.outerTagName,q=p.style,G=p.useIsScrolling,me=p.width,Ee=this.state.isScrolling,Ie=b==="horizontal"||re==="horizontal",Oe=Ie?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),j=$[0],X=$[1],ee=[];if(O>0)for(var H=j;H<=X;H++)ee.push(g.createElement(v,{data:k,key:L(H,k),index:H,isScrolling:G?Ee:void 0,style:this._getItemStyle(H)}));var fe=n(this.props,this._instanceProps);return g.createElement(pe||se||"div",{className:x,onScroll:Oe,ref:this._outerRefSetter,style:fc({position:"relative",height:C,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},q)},g.createElement(w||_||"div",{children:ee,ref:E,style:{height:Ie?"100%":fe,pointerEvents:Ee?"none":void 0,width:Ie?fe:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),x=v[0],b=v[1],C=v[2],E=v[3];this._callOnItemsRendered(x,b,C,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,O=w.scrollOffset,k=w.scrollUpdateWasRequested;this._callOnScroll(_,O,k)}},h._getRangeToRender=function(){var p=this.props,v=p.itemCount,x=p.overscanCount,b=this.state,C=b.isScrolling,E=b.scrollDirection,w=b.scrollOffset;if(v===0)return[0,0,0,0];var _=a(this.props,w,this._instanceProps),O=s(this.props,_,w,this._instanceProps),k=!C||E==="backward"?Math.max(1,x):1,D=!C||E==="forward"?Math.max(1,x):1;return[Math.max(0,_-k),Math.max(0,Math.min(v-1,O+D)),_,O]},d}(g.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var qS=function(t,r){var n=t.children,i=t.direction,o=t.height,a=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&bs&&!bs.has(c)&&(bs.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":ys&&!ys.has(c)&&(ys.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},KS=50,yi=function(t,r,n){var i=t,o=i.itemSize,a=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=a[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=o(c);a[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return a[r]},XS=function(t,r,n){var i=r.itemMetadataMap,o=r.lastMeasuredIndex,a=o>0?i[o].offset:0;return a>=n?Tg(t,r,o,0,n):ZS(t,r,Math.max(0,o),n)},Tg=function(t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=yi(t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},ZS=function(t,r,n,i){for(var o=t.itemCount,a=1;n<o&&yi(t,n,r).offset<i;)n+=a,a*=2;return Tg(t,r,Math.min(n,o-1),Math.floor(n/2),i)},_g=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,o=r.estimatedItemSize,a=r.lastMeasuredIndex,s=0;if(a>=n&&(a=n-1),a>=0){var u=i[a];s=u.offset+u.size}var l=n-a-1,c=l*o;return s+c},QS=GS({getItemOffset:function(t,r,n){return yi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:_g,getOffsetForIndexAndAlignment:function(t,r,n,i,o,a){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=yi(t,r,o),m=_g(t,o),p=Math.max(0,Math.min(m-d,h.offset)),v=Math.max(0,h.offset-d+h.size+a);switch(n==="smart"&&(i>=v-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return v;case"center":return Math.round(v+(p-v)/2);case"auto":default:return i>=v&&i<=p?i:i<v?v:p}},getStartIndexForOffset:function(t,r,n){return XS(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var o=t.direction,a=t.height,s=t.itemCount,u=t.layout,l=t.width,c=o==="horizontal"||u==="horizontal",f=c?l:a,d=yi(t,r,i),h=n+f,m=d.offset+d.size,p=r;p<s-1&&m<h;)p++,m+=yi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||KS,lastMeasuredIndex:-1};return r.resetAfterIndex=function(a,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,a-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const Og=8,JS=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:o,...a}=i[0],s={...n,top:n.top+Og,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?y.jsx(P.ListSubheader,{component:"div",style:s,children:i.group},i.key):y.jsx(P.Typography,{component:"li",...a,noWrap:!0,style:s,children:y.jsxs(P.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,o&&y.jsxs(P.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},kg=g.createContext({}),Mg=g.forwardRef((e,t)=>{const r=g.useContext(kg);return y.jsx("div",{ref:t,...e,...r})});Mg.displayName="OuterElementType";const eE=e=>{const t=g.useRef(null);return g.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},tE=g.forwardRef(function(t,r){const{children:n,...i}=t,o=[];n.forEach(h=>{o.push(h),o.push(...h.children||[])});const a=P.useTheme(),s=P.useMediaQuery(a.breakpoints.up("sm")),u=o.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:o.map(c).reduce((h,m)=>h+m,0),d=eE(u);return y.jsx("div",{ref:r,children:y.jsx(kg.Provider,{value:i,children:y.jsx(QS,{itemData:o,height:f()+2*Og,width:"100%",ref:d,outerElementType:Mg,innerElementType:"ul",itemSize:h=>c(o[h]),overscanCount:5,itemCount:u,children:JS})})})}),rE=P.styled(P.Popper)({[`& .${P.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),gc=g.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:o="Carregando opções...",error:a,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:m,renderOption:p,...v},x)=>{const b=k=>k&&typeof k=="object"?k.value.toString():k.toString(),[C,E,w]=cc(),_=k=>{k.type!=="change"&&E()},O=g.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((L,re)=>{const pe=r.find(se=>se.value.toString()===re.toString());return pe?[...L,pe]:[...L]},[]):r.find(D=>D.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return y.jsx(P.Autocomplete,{ref:x,value:O,open:C,onClose:E,onOpen:_,onInputChange:(k,D,L)=>{L==="input"&&w(!0),!n&&!O&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:o,disabled:n||d,disableListWrap:!0,PopperComponent:rE,ListboxComponent:p?void 0:tE,filterOptions:(k,D)=>k.filter(L=>`${L.value} ${L.label}`.toLocaleUpperCase().includes(D.inputValue.toLocaleUpperCase())),onChange:(k,D)=>{if(!D){l(h?[]:null);return}if(Array.isArray(D)){l(D.map(b));return}l(typeof D=="string"?D.toString():D.value.toString())},renderOption:(k,D,L,re)=>p?p(k,D,L,re):[{...k,showValueInLabel:f},D],renderGroup:k=>k,groupBy:c,multiple:h,renderInput:k=>y.jsx(P.TextField,{...k,placeholder:u,fullWidth:!0,error:!!a,helperText:s,label:e,required:m,InputProps:{...k.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[n?y.jsx(P.CircularProgress,{color:"primary",size:20}):null,k.InputProps.endAdornment]})}}),...v})});gc.displayName="Autocomplete";var cr={},zo={},nE=typeof ho=="object"&&ho&&ho.Object===Object&&ho,Pg=nE,iE=Pg,oE=typeof self=="object"&&self&&self.Object===Object&&self,aE=iE||oE||Function("return this")(),kr=aE,sE=kr,lE=sE.Symbol,Vo=lE,Ag=Vo,Dg=Object.prototype,uE=Dg.hasOwnProperty,cE=Dg.toString,Wo=Ag?Ag.toStringTag:void 0;function fE(e){var t=uE.call(e,Wo),r=e[Wo];try{e[Wo]=void 0;var n=!0}catch{}var i=cE.call(e);return n&&(t?e[Wo]=r:delete e[Wo]),i}var dE=fE,hE=Object.prototype,pE=hE.toString;function gE(e){return pE.call(e)}var mE=gE,$g=Vo,vE=dE,yE=mE,bE="[object Null]",xE="[object Undefined]",Ig=$g?$g.toStringTag:void 0;function wE(e){return e==null?e===void 0?xE:bE:Ig&&Ig in Object(e)?vE(e):yE(e)}var kn=wE,CE=Array.isArray,mr=CE;function SE(e){return e!=null&&typeof e=="object"}var Wr=SE,EE=kn,TE=mr,_E=Wr,OE="[object String]";function kE(e){return typeof e=="string"||!TE(e)&&_E(e)&&EE(e)==OE}var ME=kE;function PE(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var AE=PE,DE=AE,$E=DE(),IE=$E;function FE(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jE=FE,LE=kn,RE=Wr,BE="[object Arguments]";function NE(e){return RE(e)&&LE(e)==BE}var zE=NE,Fg=zE,VE=Wr,jg=Object.prototype,WE=jg.hasOwnProperty,HE=jg.propertyIsEnumerable,UE=Fg(function(){return arguments}())?Fg:function(e){return VE(e)&&WE.call(e,"callee")&&!HE.call(e,"callee")},Lg=UE,xs={exports:{}};function YE(){return!1}var GE=YE;xs.exports,function(e,t){var r=kr,n=GE,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(xs,xs.exports);var mc=xs.exports,qE=9007199254740991,KE=/^(?:0|[1-9]\d*)$/;function XE(e,t){var r=typeof e;return t=t??qE,!!t&&(r=="number"||r!="symbol"&&KE.test(e))&&e>-1&&e%1==0&&e<t}var Rg=XE,ZE=9007199254740991;function QE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZE}var vc=QE,JE=kn,eT=vc,tT=Wr,rT="[object Arguments]",nT="[object Array]",iT="[object Boolean]",oT="[object Date]",aT="[object Error]",sT="[object Function]",lT="[object Map]",uT="[object Number]",cT="[object Object]",fT="[object RegExp]",dT="[object Set]",hT="[object String]",pT="[object WeakMap]",gT="[object ArrayBuffer]",mT="[object DataView]",vT="[object Float32Array]",yT="[object Float64Array]",bT="[object Int8Array]",xT="[object Int16Array]",wT="[object Int32Array]",CT="[object Uint8Array]",ST="[object Uint8ClampedArray]",ET="[object Uint16Array]",TT="[object Uint32Array]",lt={};lt[vT]=lt[yT]=lt[bT]=lt[xT]=lt[wT]=lt[CT]=lt[ST]=lt[ET]=lt[TT]=!0,lt[rT]=lt[nT]=lt[gT]=lt[iT]=lt[mT]=lt[oT]=lt[aT]=lt[sT]=lt[lT]=lt[uT]=lt[cT]=lt[fT]=lt[dT]=lt[hT]=lt[pT]=!1;function _T(e){return tT(e)&&eT(e.length)&&!!lt[JE(e)]}var OT=_T;function kT(e){return function(t){return e(t)}}var yc=kT,ws={exports:{}};ws.exports,function(e,t){var r=Pg,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ws,ws.exports);var bc=ws.exports,MT=OT,PT=yc,Bg=bc,Ng=Bg&&Bg.isTypedArray,AT=Ng?PT(Ng):MT,zg=AT,DT=jE,$T=Lg,IT=mr,FT=mc,jT=Rg,LT=zg,RT=Object.prototype,BT=RT.hasOwnProperty;function NT(e,t){var r=IT(e),n=!r&&$T(e),i=!r&&!n&&FT(e),o=!r&&!n&&!i&<(e),a=r||n||i||o,s=a?DT(e.length,String):[],u=s.length;for(var l in e)(t||BT.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jT(l,u)))&&s.push(l);return s}var Vg=NT,zT=Object.prototype;function VT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zT;return e===r}var xc=VT;function WT(e,t){return function(r){return e(t(r))}}var Wg=WT,HT=Wg,UT=HT(Object.keys,Object),YT=UT,GT=xc,qT=YT,KT=Object.prototype,XT=KT.hasOwnProperty;function ZT(e){if(!GT(e))return qT(e);var t=[];for(var r in Object(e))XT.call(e,r)&&r!="constructor"&&t.push(r);return t}var QT=ZT;function JT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bi=JT,e_=kn,t_=bi,r_="[object AsyncFunction]",n_="[object Function]",i_="[object GeneratorFunction]",o_="[object Proxy]";function a_(e){if(!t_(e))return!1;var t=e_(e);return t==n_||t==i_||t==r_||t==o_}var Hg=a_,s_=Hg,l_=vc;function u_(e){return e!=null&&l_(e.length)&&!s_(e)}var Cs=u_,c_=Vg,f_=QT,d_=Cs;function h_(e){return d_(e)?c_(e):f_(e)}var Ho=h_,p_=IE,g_=Ho;function m_(e,t){return e&&p_(e,t,g_)}var Ug=m_;function v_(e){return e}var Yg=v_,y_=Yg;function b_(e){return typeof e=="function"?e:y_}var x_=b_,w_=Ug,C_=x_;function S_(e,t){return e&&w_(e,C_(t))}var wc=S_,E_=Wg,T_=E_(Object.getPrototypeOf,Object),Cc=T_,__=kn,O_=Cc,k_=Wr,M_="[object Object]",P_=Function.prototype,A_=Object.prototype,Gg=P_.toString,D_=A_.hasOwnProperty,$_=Gg.call(Object);function I_(e){if(!k_(e)||__(e)!=M_)return!1;var t=O_(e);if(t===null)return!0;var r=D_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gg.call(r)==$_}var F_=I_;function j_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var qg=j_;function L_(){this.__data__=[],this.size=0}var R_=L_;function B_(e,t){return e===t||e!==e&&t!==t}var Sc=B_,N_=Sc;function z_(e,t){for(var r=e.length;r--;)if(N_(e[r][0],t))return r;return-1}var Ss=z_,V_=Ss,W_=Array.prototype,H_=W_.splice;function U_(e){var t=this.__data__,r=V_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():H_.call(t,r,1),--this.size,!0}var Y_=U_,G_=Ss;function q_(e){var t=this.__data__,r=G_(t,e);return r<0?void 0:t[r][1]}var K_=q_,X_=Ss;function Z_(e){return X_(this.__data__,e)>-1}var Q_=Z_,J_=Ss;function eO(e,t){var r=this.__data__,n=J_(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var tO=eO,rO=R_,nO=Y_,iO=K_,oO=Q_,aO=tO;function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=rO,xi.prototype.delete=nO,xi.prototype.get=iO,xi.prototype.has=oO,xi.prototype.set=aO;var Es=xi,sO=Es;function lO(){this.__data__=new sO,this.size=0}var uO=lO;function cO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var fO=cO;function dO(e){return this.__data__.get(e)}var hO=dO;function pO(e){return this.__data__.has(e)}var gO=pO,mO=kr,vO=mO["__core-js_shared__"],yO=vO,Ec=yO,Kg=function(){var e=/[^.]+$/.exec(Ec&&Ec.keys&&Ec.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bO(e){return!!Kg&&Kg in e}var xO=bO,wO=Function.prototype,CO=wO.toString;function SO(e){if(e!=null){try{return CO.call(e)}catch{}try{return e+""}catch{}}return""}var Xg=SO,EO=Hg,TO=xO,_O=bi,OO=Xg,kO=/[\\^$.*+?()[\]{}|]/g,MO=/^\[object .+?Constructor\]$/,PO=Function.prototype,AO=Object.prototype,DO=PO.toString,$O=AO.hasOwnProperty,IO=RegExp("^"+DO.call($O).replace(kO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FO(e){if(!_O(e)||TO(e))return!1;var t=EO(e)?IO:MO;return t.test(OO(e))}var jO=FO;function LO(e,t){return e==null?void 0:e[t]}var RO=LO,BO=jO,NO=RO;function zO(e,t){var r=NO(e,t);return BO(r)?r:void 0}var Mn=zO,VO=Mn,WO=kr,HO=VO(WO,"Map"),Tc=HO,UO=Mn,YO=UO(Object,"create"),Ts=YO,Zg=Ts;function GO(){this.__data__=Zg?Zg(null):{},this.size=0}var qO=GO;function KO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XO=KO,ZO=Ts,QO="__lodash_hash_undefined__",JO=Object.prototype,e6=JO.hasOwnProperty;function t6(e){var t=this.__data__;if(ZO){var r=t[e];return r===QO?void 0:r}return e6.call(t,e)?t[e]:void 0}var r6=t6,n6=Ts,i6=Object.prototype,o6=i6.hasOwnProperty;function a6(e){var t=this.__data__;return n6?t[e]!==void 0:o6.call(t,e)}var s6=a6,l6=Ts,u6="__lodash_hash_undefined__";function c6(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=l6&&t===void 0?u6:t,this}var f6=c6,d6=qO,h6=XO,p6=r6,g6=s6,m6=f6;function wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wi.prototype.clear=d6,wi.prototype.delete=h6,wi.prototype.get=p6,wi.prototype.has=g6,wi.prototype.set=m6;var v6=wi,Qg=v6,y6=Es,b6=Tc;function x6(){this.size=0,this.__data__={hash:new Qg,map:new(b6||y6),string:new Qg}}var w6=x6;function C6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var S6=C6,E6=S6;function T6(e,t){var r=e.__data__;return E6(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _s=T6,_6=_s;function O6(e){var t=_6(this,e).delete(e);return this.size-=t?1:0,t}var k6=O6,M6=_s;function P6(e){return M6(this,e).get(e)}var A6=P6,D6=_s;function $6(e){return D6(this,e).has(e)}var I6=$6,F6=_s;function j6(e,t){var r=F6(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var L6=j6,R6=w6,B6=k6,N6=A6,z6=I6,V6=L6;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=R6,Ci.prototype.delete=B6,Ci.prototype.get=N6,Ci.prototype.has=z6,Ci.prototype.set=V6;var _c=Ci,W6=Es,H6=Tc,U6=_c,Y6=200;function G6(e,t){var r=this.__data__;if(r instanceof W6){var n=r.__data__;if(!H6||n.length<Y6-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U6(n)}return r.set(e,t),this.size=r.size,this}var q6=G6,K6=Es,X6=uO,Z6=fO,Q6=hO,J6=gO,e7=q6;function Si(e){var t=this.__data__=new K6(e);this.size=t.size}Si.prototype.clear=X6,Si.prototype.delete=Z6,Si.prototype.get=Q6,Si.prototype.has=J6,Si.prototype.set=e7;var Oc=Si,t7="__lodash_hash_undefined__";function r7(e){return this.__data__.set(e,t7),this}var n7=r7;function i7(e){return this.__data__.has(e)}var o7=i7,a7=_c,s7=n7,l7=o7;function Os(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new a7;++t<r;)this.add(e[t])}Os.prototype.add=Os.prototype.push=s7,Os.prototype.has=l7;var u7=Os;function c7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var f7=c7;function d7(e,t){return e.has(t)}var h7=d7,p7=u7,g7=f7,m7=h7,v7=1,y7=2;function b7(e,t,r,n,i,o){var a=r&v7,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&y7?new p7:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!g7(t,function(x,b){if(!m7(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var Jg=b7,x7=kr,w7=x7.Uint8Array,em=w7;function C7(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var S7=C7;function E7(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var T7=E7,tm=Vo,rm=em,_7=Sc,O7=Jg,k7=S7,M7=T7,P7=1,A7=2,D7="[object Boolean]",$7="[object Date]",I7="[object Error]",F7="[object Map]",j7="[object Number]",L7="[object RegExp]",R7="[object Set]",B7="[object String]",N7="[object Symbol]",z7="[object ArrayBuffer]",V7="[object DataView]",nm=tm?tm.prototype:void 0,kc=nm?nm.valueOf:void 0;function W7(e,t,r,n,i,o,a){switch(r){case V7:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z7:return!(e.byteLength!=t.byteLength||!o(new rm(e),new rm(t)));case D7:case $7:case j7:return _7(+e,+t);case I7:return e.name==t.name&&e.message==t.message;case L7:case B7:return e==t+"";case F7:var s=k7;case R7:var u=n&P7;if(s||(s=M7),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=A7,a.set(e,t);var c=O7(s(e),s(t),n,i,o,a);return a.delete(e),c;case N7:if(kc)return kc.call(e)==kc.call(t)}return!1}var H7=W7;function U7(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var im=U7,Y7=im,G7=mr;function q7(e,t,r){var n=t(e);return G7(e)?n:Y7(n,r(e))}var om=q7;function K7(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var X7=K7;function Z7(){return[]}var am=Z7,Q7=X7,J7=am,ek=Object.prototype,tk=ek.propertyIsEnumerable,sm=Object.getOwnPropertySymbols,rk=sm?function(e){return e==null?[]:(e=Object(e),Q7(sm(e),function(t){return tk.call(e,t)}))}:J7,Mc=rk,nk=om,ik=Mc,ok=Ho;function ak(e){return nk(e,ok,ik)}var lm=ak,um=lm,sk=1,lk=Object.prototype,uk=lk.hasOwnProperty;function ck(e,t,r,n,i,o){var a=r&sk,s=um(e),u=s.length,l=um(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:uk.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var fk=ck,dk=Mn,hk=kr,pk=dk(hk,"DataView"),gk=pk,mk=Mn,vk=kr,yk=mk(vk,"Promise"),bk=yk,xk=Mn,wk=kr,Ck=xk(wk,"Set"),Sk=Ck,Ek=Mn,Tk=kr,_k=Ek(Tk,"WeakMap"),Ok=_k,Pc=gk,Ac=Tc,Dc=bk,$c=Sk,Ic=Ok,cm=kn,Ei=Xg,fm="[object Map]",kk="[object Object]",dm="[object Promise]",hm="[object Set]",pm="[object WeakMap]",gm="[object DataView]",Mk=Ei(Pc),Pk=Ei(Ac),Ak=Ei(Dc),Dk=Ei($c),$k=Ei(Ic),Pn=cm;(Pc&&Pn(new Pc(new ArrayBuffer(1)))!=gm||Ac&&Pn(new Ac)!=fm||Dc&&Pn(Dc.resolve())!=dm||$c&&Pn(new $c)!=hm||Ic&&Pn(new Ic)!=pm)&&(Pn=function(e){var t=cm(e),r=t==kk?e.constructor:void 0,n=r?Ei(r):"";if(n)switch(n){case Mk:return gm;case Pk:return fm;case Ak:return dm;case Dk:return hm;case $k:return pm}return t});var ks=Pn,Fc=Oc,Ik=Jg,Fk=H7,jk=fk,mm=ks,vm=mr,ym=mc,Lk=zg,Rk=1,bm="[object Arguments]",xm="[object Array]",Ms="[object Object]",Bk=Object.prototype,wm=Bk.hasOwnProperty;function Nk(e,t,r,n,i,o){var a=vm(e),s=vm(t),u=a?xm:mm(e),l=s?xm:mm(t);u=u==bm?Ms:u,l=l==bm?Ms:l;var c=u==Ms,f=l==Ms,d=u==l;if(d&&ym(e)){if(!ym(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Fc),a||Lk(e)?Ik(e,t,r,n,i,o):Fk(e,t,u,r,n,i,o);if(!(r&Rk)){var h=c&&wm.call(e,"__wrapped__"),m=f&&wm.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Fc),i(p,v,r,n,o)}}return d?(o||(o=new Fc),jk(e,t,r,n,i,o)):!1}var zk=Nk,Vk=zk,Cm=Wr;function Sm(e,t,r,n,i){return e===t?!0:e==null||t==null||!Cm(e)&&!Cm(t)?e!==e&&t!==t:Vk(e,t,r,n,Sm,i)}var jc=Sm,Wk=Oc,Hk=jc,Uk=1,Yk=2;function Gk(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Wk;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?Hk(c,l,Uk|Yk,n,f):d))return!1}}return!0}var qk=Gk,Kk=bi;function Xk(e){return e===e&&!Kk(e)}var Em=Xk,Zk=Em,Qk=Ho;function Jk(e){for(var t=Qk(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Zk(i)]}return t}var eM=Jk;function tM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Tm=tM,rM=qk,nM=eM,iM=Tm;function oM(e){var t=nM(e);return t.length==1&&t[0][2]?iM(t[0][0],t[0][1]):function(r){return r===e||rM(r,e,t)}}var aM=oM,sM=kn,lM=Wr,uM="[object Symbol]";function cM(e){return typeof e=="symbol"||lM(e)&&sM(e)==uM}var Lc=cM,fM=mr,dM=Lc,hM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pM=/^\w*$/;function gM(e,t){if(fM(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dM(e)?!0:pM.test(e)||!hM.test(e)||t!=null&&e in Object(t)}var Rc=gM,_m=_c,mM="Expected a function";function Bc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mM);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Bc.Cache||_m),r}Bc.Cache=_m;var vM=Bc,yM=vM,bM=500;function xM(e){var t=yM(e,function(n){return r.size===bM&&r.clear(),n}),r=t.cache;return t}var wM=xM,CM=wM,SM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EM=/\\(\\)?/g,TM=CM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SM,function(r,n,i,o){t.push(i?o.replace(EM,"$1"):n||r)}),t}),_M=TM,Om=Vo,OM=qg,kM=mr,MM=Lc,PM=1/0,km=Om?Om.prototype:void 0,Mm=km?km.toString:void 0;function Pm(e){if(typeof e=="string")return e;if(kM(e))return OM(e,Pm)+"";if(MM(e))return Mm?Mm.call(e):"";var t=e+"";return t=="0"&&1/e==-PM?"-0":t}var AM=Pm,DM=AM;function $M(e){return e==null?"":DM(e)}var IM=$M,FM=mr,jM=Rc,LM=_M,RM=IM;function BM(e,t){return FM(e)?e:jM(e,t)?[e]:LM(RM(e))}var Am=BM,NM=Lc,zM=1/0;function VM(e){if(typeof e=="string"||NM(e))return e;var t=e+"";return t=="0"&&1/e==-zM?"-0":t}var Ps=VM,WM=Am,HM=Ps;function UM(e,t){t=WM(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[HM(t[r++])];return r&&r==n?e:void 0}var Dm=UM,YM=Dm;function GM(e,t,r){var n=e==null?void 0:YM(e,t);return n===void 0?r:n}var qM=GM;function KM(e,t){return e!=null&&t in Object(e)}var XM=KM,ZM=Am,QM=Lg,JM=mr,e9=Rg,t9=vc,r9=Ps;function n9(e,t,r){t=ZM(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=r9(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&t9(i)&&e9(a,i)&&(JM(e)||QM(e)))}var i9=n9,o9=XM,a9=i9;function s9(e,t){return e!=null&&a9(e,t,o9)}var l9=s9,u9=jc,c9=qM,f9=l9,d9=Rc,h9=Em,p9=Tm,g9=Ps,m9=1,v9=2;function y9(e,t){return d9(e)&&h9(t)?p9(g9(e),t):function(r){var n=c9(r,e);return n===void 0&&n===t?f9(r,e):u9(t,n,m9|v9)}}var b9=y9;function x9(e){return function(t){return t==null?void 0:t[e]}}var w9=x9,C9=Dm;function S9(e){return function(t){return C9(t,e)}}var E9=S9,T9=w9,_9=E9,O9=Rc,k9=Ps;function M9(e){return O9(e)?T9(k9(e)):_9(e)}var P9=M9,A9=aM,D9=b9,$9=Yg,I9=mr,F9=P9;function j9(e){return typeof e=="function"?e:e==null?$9:typeof e=="object"?I9(e)?D9(e[0],e[1]):A9(e):F9(e)}var L9=j9,R9=Cs;function B9(e,t){return function(r,n){if(r==null)return r;if(!R9(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var N9=B9,z9=Ug,V9=N9,W9=V9(z9),H9=W9,U9=H9,Y9=Cs;function G9(e,t){var r=-1,n=Y9(e)?Array(e.length):[];return U9(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var q9=G9,K9=qg,X9=L9,Z9=q9,Q9=mr;function J9(e,t){var r=Q9(e)?K9:Z9;return r(e,X9(t))}var e8=J9;Object.defineProperty(zo,"__esModule",{value:!0}),zo.flattenNames=void 0;var t8=ME,r8=As(t8),n8=wc,i8=As(n8),o8=F_,a8=As(o8),s8=e8,l8=As(s8);function As(e){return e&&e.__esModule?e:{default:e}}var u8=zo.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,l8.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,a8.default)(n)?(0,i8.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,r8.default)(n)&&r.push(n)}),r};zo.default=u8;var Uo={};function c8(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var f8=c8,d8=Mn,h8=function(){try{var e=d8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p8=h8,$m=p8;function g8(e,t,r){t=="__proto__"&&$m?$m(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Im=g8,m8=Im,v8=Sc,y8=Object.prototype,b8=y8.hasOwnProperty;function x8(e,t,r){var n=e[t];(!(b8.call(e,t)&&v8(n,r))||r===void 0&&!(t in e))&&m8(e,t,r)}var Fm=x8,w8=Fm,C8=Im;function S8(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?C8(r,s,u):w8(r,s,u)}return r}var Ds=S8,E8=Ds,T8=Ho;function _8(e,t){return e&&E8(t,T8(t),e)}var O8=_8;function k8(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var M8=k8,P8=bi,A8=xc,D8=M8,$8=Object.prototype,I8=$8.hasOwnProperty;function F8(e){if(!P8(e))return D8(e);var t=A8(e),r=[];for(var n in e)n=="constructor"&&(t||!I8.call(e,n))||r.push(n);return r}var j8=F8,L8=Vg,R8=j8,B8=Cs;function N8(e){return B8(e)?L8(e,!0):R8(e)}var Nc=N8,z8=Ds,V8=Nc;function W8(e,t){return e&&z8(t,V8(t),e)}var H8=W8,$s={exports:{}};$s.exports,function(e,t){var r=kr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}($s,$s.exports);var U8=$s.exports;function Y8(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var G8=Y8,q8=Ds,K8=Mc;function X8(e,t){return q8(e,K8(e),t)}var Z8=X8,Q8=im,J8=Cc,eP=Mc,tP=am,rP=Object.getOwnPropertySymbols,nP=rP?function(e){for(var t=[];e;)Q8(t,eP(e)),e=J8(e);return t}:tP,jm=nP,iP=Ds,oP=jm;function aP(e,t){return iP(e,oP(e),t)}var sP=aP,lP=om,uP=jm,cP=Nc;function fP(e){return lP(e,cP,uP)}var dP=fP,hP=Object.prototype,pP=hP.hasOwnProperty;function gP(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var mP=gP,Lm=em;function vP(e){var t=new e.constructor(e.byteLength);return new Lm(t).set(new Lm(e)),t}var zc=vP,yP=zc;function bP(e,t){var r=t?yP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var xP=bP,wP=/\w*$/;function CP(e){var t=new e.constructor(e.source,wP.exec(e));return t.lastIndex=e.lastIndex,t}var SP=CP,Rm=Vo,Bm=Rm?Rm.prototype:void 0,Nm=Bm?Bm.valueOf:void 0;function EP(e){return Nm?Object(Nm.call(e)):{}}var TP=EP,_P=zc;function OP(e,t){var r=t?_P(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var kP=OP,MP=zc,PP=xP,AP=SP,DP=TP,$P=kP,IP="[object Boolean]",FP="[object Date]",jP="[object Map]",LP="[object Number]",RP="[object RegExp]",BP="[object Set]",NP="[object String]",zP="[object Symbol]",VP="[object ArrayBuffer]",WP="[object DataView]",HP="[object Float32Array]",UP="[object Float64Array]",YP="[object Int8Array]",GP="[object Int16Array]",qP="[object Int32Array]",KP="[object Uint8Array]",XP="[object Uint8ClampedArray]",ZP="[object Uint16Array]",QP="[object Uint32Array]";function JP(e,t,r){var n=e.constructor;switch(t){case VP:return MP(e);case IP:case FP:return new n(+e);case WP:return PP(e,r);case HP:case UP:case YP:case GP:case qP:case KP:case XP:case ZP:case QP:return $P(e,r);case jP:return new n;case LP:case NP:return new n(e);case RP:return AP(e);case BP:return new n;case zP:return DP(e)}}var eA=JP,tA=bi,zm=Object.create,rA=function(){function e(){}return function(t){if(!tA(t))return{};if(zm)return zm(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),nA=rA,iA=nA,oA=Cc,aA=xc;function sA(e){return typeof e.constructor=="function"&&!aA(e)?iA(oA(e)):{}}var lA=sA,uA=ks,cA=Wr,fA="[object Map]";function dA(e){return cA(e)&&uA(e)==fA}var hA=dA,pA=hA,gA=yc,Vm=bc,Wm=Vm&&Vm.isMap,mA=Wm?gA(Wm):pA,vA=mA,yA=ks,bA=Wr,xA="[object Set]";function wA(e){return bA(e)&&yA(e)==xA}var CA=wA,SA=CA,EA=yc,Hm=bc,Um=Hm&&Hm.isSet,TA=Um?EA(Um):SA,_A=TA,OA=Oc,kA=f8,MA=Fm,PA=O8,AA=H8,DA=U8,$A=G8,IA=Z8,FA=sP,jA=lm,LA=dP,RA=ks,BA=mP,NA=eA,zA=lA,VA=mr,WA=mc,HA=vA,UA=bi,YA=_A,GA=Ho,qA=Nc,KA=1,XA=2,ZA=4,Ym="[object Arguments]",QA="[object Array]",JA="[object Boolean]",eD="[object Date]",tD="[object Error]",Gm="[object Function]",rD="[object GeneratorFunction]",nD="[object Map]",iD="[object Number]",qm="[object Object]",oD="[object RegExp]",aD="[object Set]",sD="[object String]",lD="[object Symbol]",uD="[object WeakMap]",cD="[object ArrayBuffer]",fD="[object DataView]",dD="[object Float32Array]",hD="[object Float64Array]",pD="[object Int8Array]",gD="[object Int16Array]",mD="[object Int32Array]",vD="[object Uint8Array]",yD="[object Uint8ClampedArray]",bD="[object Uint16Array]",xD="[object Uint32Array]",at={};at[Ym]=at[QA]=at[cD]=at[fD]=at[JA]=at[eD]=at[dD]=at[hD]=at[pD]=at[gD]=at[mD]=at[nD]=at[iD]=at[qm]=at[oD]=at[aD]=at[sD]=at[lD]=at[vD]=at[yD]=at[bD]=at[xD]=!0,at[tD]=at[Gm]=at[uD]=!1;function Is(e,t,r,n,i,o){var a,s=t&KA,u=t&XA,l=t&ZA;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!UA(e))return e;var c=VA(e);if(c){if(a=BA(e),!s)return $A(e,a)}else{var f=RA(e),d=f==Gm||f==rD;if(WA(e))return DA(e,s);if(f==qm||f==Ym||d&&!i){if(a=u||d?{}:zA(e),!s)return u?FA(e,AA(a,e)):IA(e,PA(a,e))}else{if(!at[f])return i?e:{};a=NA(e,f,s)}}o||(o=new OA);var h=o.get(e);if(h)return h;o.set(e,a),YA(e)?e.forEach(function(v){a.add(Is(v,t,r,v,e,o))}):HA(e)&&e.forEach(function(v,x){a.set(x,Is(v,t,r,x,e,o))});var m=l?u?LA:jA:u?qA:GA,p=c?void 0:m(e);return kA(p||e,function(v,x){p&&(x=v,v=e[x]),MA(a,x,Is(v,t,r,x,e,o))}),a}var wD=Is,CD=wD,SD=1,ED=4;function TD(e){return CD(e,SD|ED)}var _D=TD;Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.mergeClasses=void 0;var OD=wc,kD=Km(OD),MD=_D,PD=Km(MD),AD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Km(e){return e&&e.__esModule?e:{default:e}}var DD=Uo.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,PD.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,kD.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=AD({},n[s],o[s])}),i}),n};Uo.default=DD;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.autoprefix=void 0;var $D=wc,Xm=FD($D),ID=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function FD(e){return e&&e.__esModule?e:{default:e}}var jD={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},LD=Yo.autoprefix=function(t){var r={};return(0,Xm.default)(t,function(n,i){var o={};(0,Xm.default)(n,function(a,s){var u=jD[s];u?o=ID({},o,u(a)):o[s]=a}),r[i]=o}),r};Yo.default=LD;var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.hover=void 0;var RD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BD=g,Vc=ND(BD);function ND(e){return e&&e.__esModule?e:{default:e}}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WD=Go.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){VD(i,n);function i(){var o,a,s,u;zD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Zm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Vc.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Vc.default.createElement(t,RD({},s.props,s.state)))},a),Zm(s,u)}return i}(Vc.default.Component)};Go.default=WD;var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.active=void 0;var HD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UD=g,Wc=YD(UD);function YD(e){return e&&e.__esModule?e:{default:e}}function GD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KD=qo.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){qD(i,n);function i(){var o,a,s,u;GD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Qm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Wc.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Wc.default.createElement(t,HD({},s.props,s.state)))},a),Qm(s,u)}return i}(Wc.default.Component)};qo.default=KD;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var XD=function(t,r){var n={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[a]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Hc.default=XD,Object.defineProperty(cr,"__esModule",{value:!0}),cr.ReactCSS=cr.loop=cr.handleActive=Uc=cr.handleHover=cr.hover=void 0;var ZD=zo,QD=Ti(ZD),JD=Uo,e$=Ti(JD),t$=Yo,r$=Ti(t$),n$=Go,Jm=Ti(n$),i$=qo,o$=Ti(i$),a$=Hc,s$=Ti(a$);function Ti(e){return e&&e.__esModule?e:{default:e}}cr.hover=Jm.default;var Uc=cr.handleHover=Jm.default;cr.handleActive=o$.default,cr.loop=s$.default;var l$=cr.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=(0,QD.default)(n),a=(0,e$.default)(t,o);return(0,r$.default)(a)},Se=cr.default=l$,u$=function(t,r,n,i,o){var a=o.clientWidth,s=o.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>a?h=1:h=Math.round(c*100/a)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Yc={},c$=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=n*2,o.height=n*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=r,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null},f$=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(Yc[o])return Yc[o];var a=c$(t,r,n,i);return Yc[o]=a,a},ev=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_i=function(t){var r=t.white,n=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,u=t.children,l=Se({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+f$(r,n,i,o.canvas)+") center left"}}});return g.isValidElement(u)?g.cloneElement(u,ev({},u.props,{style:ev({},u.props.style,l.grid)})):g.createElement("div",{style:l.grid})};_i.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var d$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gc=function(e){g$(t,e);function t(){var r,n,i,o;p$(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=tv(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=u$(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),tv(i,o)}return h$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Se({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
105
|
+
`));let u=typeof e=="function"?e(r):e;u=u.replace(/^@media( ?)/m,"");const c=(vg!==void 0?FS:IS)(u,i,o,a,s);return process.env.NODE_ENV!=="production"&&xe.useDebugValue({query:u,match:c}),c}const yg=(e,t,r)=>{const n=mi(),i=vs(n.breakpoints.up(t)),o=vs(n.breakpoints.down(t)),a=vs(n.breakpoints.between(t,r)),s=vs(n.breakpoints.only(t));return e==="up"?i:e==="down"?o:e==="between"?a:s},jS=({children:e,disableAnimatedMobile:t=!0,...r})=>yg("down","sm")&&t?y.jsx(P.Box,{...r,children:e}):y.jsx(P.Box,{component:gr.div,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.3},variants:Ea(),...r,children:e}),LS=({animate:e,action:t=!1,children:r,...n})=>t?y.jsx(P.Box,{component:gr.div,initial:!1,animate:e?"animate":"exit",variants:Ea(),...n,children:r}):y.jsx(P.Box,{component:gr.div,initial:"initial",animate:"animate",exit:"exit",variants:Ea(),...n,children:r}),RS=()=>Promise.resolve().then(()=>xX).then(e=>e.default),BS=({children:e})=>y.jsx(N3,{strict:!0,features:RS,children:y.jsxs(gr.div,{style:{height:"100%"},children:[" ",e," "]})}),cc=(e=!1)=>{const[t,r]=g.useState(e),n=g.useCallback(()=>r(i=>!i),[]);return[t,n,r]};function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}function bg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function NS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dc(e,t)}var xg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zS(e,t){return!!(e===t||xg(e)&&xg(t))}function VS(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!zS(e[r],t[r]))return!1;return!0}function hc(e,t){t===void 0&&(t=VS);var r,n=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&r===this&&t(s,n)||(i=e.apply(this,s),o=!0,r=this,n=s),i}return a}var WS=typeof performance=="object"&&typeof performance.now=="function",wg=WS?function(){return performance.now()}:function(){return Date.now()};function Cg(e){cancelAnimationFrame(e.id)}function HS(e,t){var r=wg();function n(){wg()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var pc=-1;function Sg(e){if(e===void 0&&(e=!1),pc===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),pc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pc}var vi=null;function Eg(e){if(e===void 0&&(e=!1),vi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?vi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vi="negative":vi="positive-ascending"),document.body.removeChild(t),vi}return vi}process.env.NODE_ENV;var US=150,YS=function(t,r){return t},ys=null,bs=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(ys=new WeakSet,bs=new WeakSet);function GS(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,l=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){NS(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=u(p.props,bg(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:bg(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=hc(function(v,x,b,C){return p.props.onItemsRendered({overscanStartIndex:v,overscanStopIndex:x,visibleStartIndex:b,visibleStopIndex:C})}),p._callOnScroll=void 0,p._callOnScroll=hc(function(v,x,b){return p.props.onScroll({scrollDirection:v,scrollOffset:x,scrollUpdateWasRequested:b})}),p._getItemStyle=void 0,p._getItemStyle=function(v){var x=p.props,b=x.direction,C=x.itemSize,E=x.layout,w=p._getItemStyleCache(l&&C,l&&E,l&&b),_;if(w.hasOwnProperty(v))_=w[v];else{var O=r(p.props,v,p._instanceProps),k=i(p.props,v,p._instanceProps),D=b==="horizontal"||E==="horizontal",L=b==="rtl",re=D?O:0;w[v]=_={position:"absolute",left:L?void 0:re,right:L?re:void 0,top:D?0:O,height:D?"100%":k,width:D?k:"100%"}}return _},p._getItemStyleCache=void 0,p._getItemStyleCache=hc(function(v,x,b){return{}}),p._onScrollHorizontal=function(v){var x=v.currentTarget,b=x.clientWidth,C=x.scrollLeft,E=x.scrollWidth;p.setState(function(w){if(w.scrollOffset===C)return null;var _=p.props.direction,O=C;if(_==="rtl")switch(Eg()){case"negative":O=-C;break;case"positive-descending":O=E-b-C;break}return O=Math.max(0,Math.min(O,E-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(v){var x=v.currentTarget,b=x.clientHeight,C=x.scrollHeight,E=x.scrollTop;p.setState(function(w){if(w.scrollOffset===E)return null;var _=Math.max(0,Math.min(E,C-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(v){var x=p.props.outerRef;p._outerRef=v,typeof x=="function"?x(v):x!=null&&typeof x=="object"&&x.hasOwnProperty("current")&&(x.current=v)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&Cg(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=HS(p._resetIsScrolling,US)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}d.getDerivedStateFromProps=function(p,v){return qS(p,v),c(p),null};var h=d.prototype;return h.scrollTo=function(p){p=Math.max(0,p),this.setState(function(v){return v.scrollOffset===p?null:{scrollDirection:v.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(p,v){v===void 0&&(v="auto");var x=this.props,b=x.itemCount,C=x.layout,E=this.state.scrollOffset;p=Math.max(0,Math.min(p,b-1));var w=0;if(this._outerRef){var _=this._outerRef;C==="vertical"?w=_.scrollWidth>_.clientWidth?Sg():0:w=_.scrollHeight>_.clientHeight?Sg():0}this.scrollTo(o(this.props,p,v,E,this._instanceProps,w))},h.componentDidMount=function(){var p=this.props,v=p.direction,x=p.initialScrollOffset,b=p.layout;if(typeof x=="number"&&this._outerRef!=null){var C=this._outerRef;v==="horizontal"||b==="horizontal"?C.scrollLeft=x:C.scrollTop=x}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,v=p.direction,x=p.layout,b=this.state,C=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(v==="horizontal"||x==="horizontal")if(v==="rtl")switch(Eg()){case"negative":w.scrollLeft=-C;break;case"positive-ascending":w.scrollLeft=C;break;default:var _=w.clientWidth,O=w.scrollWidth;w.scrollLeft=O-_-C;break}else w.scrollLeft=C;else w.scrollTop=C}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Cg(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,v=p.children,x=p.className,b=p.direction,C=p.height,E=p.innerRef,w=p.innerElementType,_=p.innerTagName,O=p.itemCount,k=p.itemData,D=p.itemKey,L=D===void 0?YS:D,re=p.layout,pe=p.outerElementType,se=p.outerTagName,q=p.style,G=p.useIsScrolling,me=p.width,Ee=this.state.isScrolling,Ie=b==="horizontal"||re==="horizontal",Oe=Ie?this._onScrollHorizontal:this._onScrollVertical,$=this._getRangeToRender(),j=$[0],X=$[1],ee=[];if(O>0)for(var H=j;H<=X;H++)ee.push(g.createElement(v,{data:k,key:L(H,k),index:H,isScrolling:G?Ee:void 0,style:this._getItemStyle(H)}));var fe=n(this.props,this._instanceProps);return g.createElement(pe||se||"div",{className:x,onScroll:Oe,ref:this._outerRefSetter,style:fc({position:"relative",height:C,width:me,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},q)},g.createElement(w||_||"div",{children:ee,ref:E,style:{height:Ie?"100%":fe,pointerEvents:Ee?"none":void 0,width:Ie?fe:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var v=this._getRangeToRender(),x=v[0],b=v[1],C=v[2],E=v[3];this._callOnItemsRendered(x,b,C,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,_=w.scrollDirection,O=w.scrollOffset,k=w.scrollUpdateWasRequested;this._callOnScroll(_,O,k)}},h._getRangeToRender=function(){var p=this.props,v=p.itemCount,x=p.overscanCount,b=this.state,C=b.isScrolling,E=b.scrollDirection,w=b.scrollOffset;if(v===0)return[0,0,0,0];var _=a(this.props,w,this._instanceProps),O=s(this.props,_,w,this._instanceProps),k=!C||E==="backward"?Math.max(1,x):1,D=!C||E==="forward"?Math.max(1,x):1;return[Math.max(0,_-k),Math.max(0,Math.min(v-1,O+D)),_,O]},d}(g.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var qS=function(t,r){var n=t.children,i=t.direction,o=t.height,a=t.layout,s=t.innerTagName,u=t.outerTagName,l=t.width,c=r.instance;if(process.env.NODE_ENV!=="production"){(s!=null||u!=null)&&bs&&!bs.has(c)&&(bs.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var f=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":ys&&!ys.has(c)&&(ys.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(f&&typeof l!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(l===null?"null":typeof l)+'" was specified.'));if(!f&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},KS=50,yi=function(t,r,n){var i=t,o=i.itemSize,a=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var u=0;if(s>=0){var l=a[s];u=l.offset+l.size}for(var c=s+1;c<=r;c++){var f=o(c);a[c]={offset:u,size:f},u+=f}n.lastMeasuredIndex=r}return a[r]},XS=function(t,r,n){var i=r.itemMetadataMap,o=r.lastMeasuredIndex,a=o>0?i[o].offset:0;return a>=n?Tg(t,r,o,0,n):ZS(t,r,Math.max(0,o),n)},Tg=function(t,r,n,i,o){for(;i<=n;){var a=i+Math.floor((n-i)/2),s=yi(t,a,r).offset;if(s===o)return a;s<o?i=a+1:s>o&&(n=a-1)}return i>0?i-1:0},ZS=function(t,r,n,i){for(var o=t.itemCount,a=1;n<o&&yi(t,n,r).offset<i;)n+=a,a*=2;return Tg(t,r,Math.min(n,o-1),Math.floor(n/2),i)},_g=function(t,r){var n=t.itemCount,i=r.itemMetadataMap,o=r.estimatedItemSize,a=r.lastMeasuredIndex,s=0;if(a>=n&&(a=n-1),a>=0){var u=i[a];s=u.offset+u.size}var l=n-a-1,c=l*o;return s+c},QS=GS({getItemOffset:function(t,r,n){return yi(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:_g,getOffsetForIndexAndAlignment:function(t,r,n,i,o,a){var s=t.direction,u=t.height,l=t.layout,c=t.width,f=s==="horizontal"||l==="horizontal",d=f?c:u,h=yi(t,r,o),m=_g(t,o),p=Math.max(0,Math.min(m-d,h.offset)),v=Math.max(0,h.offset-d+h.size+a);switch(n==="smart"&&(i>=v-d&&i<=p+d?n="auto":n="center"),n){case"start":return p;case"end":return v;case"center":return Math.round(v+(p-v)/2);case"auto":default:return i>=v&&i<=p?i:i<v?v:p}},getStartIndexForOffset:function(t,r,n){return XS(t,n,r)},getStopIndexForStartIndex:function(t,r,n,i){for(var o=t.direction,a=t.height,s=t.itemCount,u=t.layout,l=t.width,c=o==="horizontal"||u==="horizontal",f=c?l:a,d=yi(t,r,i),h=n+f,m=d.offset+d.size,p=r;p<s-1&&m<h;)p++,m+=yi(t,p,i).size;return p},initInstanceProps:function(t,r){var n=t,i=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||KS,lastMeasuredIndex:-1};return r.resetAfterIndex=function(a,s){s===void 0&&(s=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,a-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof r!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});const Og=8,JS=e=>{const{data:t,index:r,style:n}=e,i=t[r],{showValueInLabel:o,...a}=i[0],s={...n,top:n.top+Og,paddingTop:8};return Object.prototype.hasOwnProperty.call(i,"group")?y.jsx(P.ListSubheader,{component:"div",style:s,children:i.group},i.key):y.jsx(P.Typography,{component:"li",...a,noWrap:!0,style:s,children:y.jsxs(P.Stack,{component:"div",direction:"row",flex:1,justifyContent:"space-between",children:[i[1].label,o&&y.jsxs(P.Typography,{variant:"inherit",color:"grey.400",children:["(",i[1].value,")"]})]})})},kg=g.createContext({}),Mg=g.forwardRef((e,t)=>{const r=g.useContext(kg);return y.jsx("div",{ref:t,...e,...r})});Mg.displayName="OuterElementType";const eE=e=>{const t=g.useRef(null);return g.useEffect(()=>{t.current!=null&&t.current.resetAfterIndex(0,!0)},[e]),t},tE=g.forwardRef(function(t,r){const{children:n,...i}=t,o=[];n.forEach(h=>{o.push(h),o.push(...h.children||[])});const a=P.useTheme(),s=P.useMediaQuery(a.breakpoints.up("sm")),u=o.length,l=s?36:48,c=h=>Object.prototype.hasOwnProperty.call(h,"group")?48:l,f=()=>u>8?8*l:o.map(c).reduce((h,m)=>h+m,0),d=eE(u);return y.jsx("div",{ref:r,children:y.jsx(kg.Provider,{value:i,children:y.jsx(QS,{itemData:o,height:f()+2*Og,width:"100%",ref:d,outerElementType:Mg,innerElementType:"ul",itemSize:h=>c(o[h]),overscanCount:5,itemCount:u,children:JS})})})}),rE=P.styled(P.Popper)({[`& .${P.autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}}),gc=g.forwardRef(({label:e,value:t,options:r=[],loading:n,noOptionsText:i="Nenhuma opção disponível",loadingText:o="Carregando opções...",error:a,helperText:s,placeholder:u,onChange:l,groupBy:c,showValueInLabel:f,disabled:d,multiple:h,required:m,renderOption:p,...v},x)=>{const b=k=>k&&typeof k=="object"?k.value.toString():k.toString(),[C,E,w]=cc(),_=k=>{k.type!=="change"&&E()},O=g.useMemo(()=>h?(Array.isArray(t)?t:[]).reduce((L,re)=>{const pe=r.find(se=>se.value.toString()===re.toString());return pe?[...L,pe]:[...L]},[]):r.find(D=>D.value.toString()===(t==null?void 0:t.toString()))||null,[r,t,h]);return y.jsx(P.Autocomplete,{ref:x,value:O,open:C,onClose:E,onOpen:_,onInputChange:(k,D,L)=>{L==="input"&&w(!0),!n&&!O&&l(h?[]:null)},options:r,loading:n,noOptionsText:i,loadingText:o,disabled:n||d,disableListWrap:!0,PopperComponent:rE,ListboxComponent:p?void 0:tE,filterOptions:(k,D)=>k.filter(L=>`${L.value} ${L.label}`.toLocaleUpperCase().includes(D.inputValue.toLocaleUpperCase())),onChange:(k,D)=>{if(!D){l(h?[]:null);return}if(Array.isArray(D)){l(D.map(b));return}l(typeof D=="string"?D.toString():D.value.toString())},renderOption:(k,D,L,re)=>p?p(k,D,L,re):[{...k,showValueInLabel:f},D],renderGroup:k=>k,groupBy:c,multiple:h,renderInput:k=>y.jsx(P.TextField,{...k,placeholder:u,fullWidth:!0,error:!!a,helperText:s,label:e,required:m,InputProps:{...k.InputProps,endAdornment:y.jsxs(y.Fragment,{children:[n?y.jsx(P.CircularProgress,{color:"primary",size:20}):null,k.InputProps.endAdornment]})}}),...v})});gc.displayName="Autocomplete";var cr={},zo={},nE=typeof ho=="object"&&ho&&ho.Object===Object&&ho,Pg=nE,iE=Pg,oE=typeof self=="object"&&self&&self.Object===Object&&self,aE=iE||oE||Function("return this")(),kr=aE,sE=kr,lE=sE.Symbol,Vo=lE,Ag=Vo,Dg=Object.prototype,uE=Dg.hasOwnProperty,cE=Dg.toString,Wo=Ag?Ag.toStringTag:void 0;function fE(e){var t=uE.call(e,Wo),r=e[Wo];try{e[Wo]=void 0;var n=!0}catch{}var i=cE.call(e);return n&&(t?e[Wo]=r:delete e[Wo]),i}var dE=fE,hE=Object.prototype,pE=hE.toString;function gE(e){return pE.call(e)}var mE=gE,$g=Vo,vE=dE,yE=mE,bE="[object Null]",xE="[object Undefined]",Ig=$g?$g.toStringTag:void 0;function wE(e){return e==null?e===void 0?xE:bE:Ig&&Ig in Object(e)?vE(e):yE(e)}var kn=wE,CE=Array.isArray,mr=CE;function SE(e){return e!=null&&typeof e=="object"}var Wr=SE,EE=kn,TE=mr,_E=Wr,OE="[object String]";function kE(e){return typeof e=="string"||!TE(e)&&_E(e)&&EE(e)==OE}var ME=kE;function PE(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var AE=PE,DE=AE,$E=DE(),IE=$E;function FE(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jE=FE,LE=kn,RE=Wr,BE="[object Arguments]";function NE(e){return RE(e)&&LE(e)==BE}var zE=NE,Fg=zE,VE=Wr,jg=Object.prototype,WE=jg.hasOwnProperty,HE=jg.propertyIsEnumerable,UE=Fg(function(){return arguments}())?Fg:function(e){return VE(e)&&WE.call(e,"callee")&&!HE.call(e,"callee")},Lg=UE,xs={exports:{}};function YE(){return!1}var GE=YE;xs.exports,function(e,t){var r=kr,n=GE,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}(xs,xs.exports);var mc=xs.exports,qE=9007199254740991,KE=/^(?:0|[1-9]\d*)$/;function XE(e,t){var r=typeof e;return t=t??qE,!!t&&(r=="number"||r!="symbol"&&KE.test(e))&&e>-1&&e%1==0&&e<t}var Rg=XE,ZE=9007199254740991;function QE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZE}var vc=QE,JE=kn,eT=vc,tT=Wr,rT="[object Arguments]",nT="[object Array]",iT="[object Boolean]",oT="[object Date]",aT="[object Error]",sT="[object Function]",lT="[object Map]",uT="[object Number]",cT="[object Object]",fT="[object RegExp]",dT="[object Set]",hT="[object String]",pT="[object WeakMap]",gT="[object ArrayBuffer]",mT="[object DataView]",vT="[object Float32Array]",yT="[object Float64Array]",bT="[object Int8Array]",xT="[object Int16Array]",wT="[object Int32Array]",CT="[object Uint8Array]",ST="[object Uint8ClampedArray]",ET="[object Uint16Array]",TT="[object Uint32Array]",lt={};lt[vT]=lt[yT]=lt[bT]=lt[xT]=lt[wT]=lt[CT]=lt[ST]=lt[ET]=lt[TT]=!0,lt[rT]=lt[nT]=lt[gT]=lt[iT]=lt[mT]=lt[oT]=lt[aT]=lt[sT]=lt[lT]=lt[uT]=lt[cT]=lt[fT]=lt[dT]=lt[hT]=lt[pT]=!1;function _T(e){return tT(e)&&eT(e.length)&&!!lt[JE(e)]}var OT=_T;function kT(e){return function(t){return e(t)}}var yc=kT,ws={exports:{}};ws.exports,function(e,t){var r=Pg,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ws,ws.exports);var bc=ws.exports,MT=OT,PT=yc,Bg=bc,Ng=Bg&&Bg.isTypedArray,AT=Ng?PT(Ng):MT,zg=AT,DT=jE,$T=Lg,IT=mr,FT=mc,jT=Rg,LT=zg,RT=Object.prototype,BT=RT.hasOwnProperty;function NT(e,t){var r=IT(e),n=!r&&$T(e),i=!r&&!n&&FT(e),o=!r&&!n&&!i&<(e),a=r||n||i||o,s=a?DT(e.length,String):[],u=s.length;for(var l in e)(t||BT.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jT(l,u)))&&s.push(l);return s}var Vg=NT,zT=Object.prototype;function VT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zT;return e===r}var xc=VT;function WT(e,t){return function(r){return e(t(r))}}var Wg=WT,HT=Wg,UT=HT(Object.keys,Object),YT=UT,GT=xc,qT=YT,KT=Object.prototype,XT=KT.hasOwnProperty;function ZT(e){if(!GT(e))return qT(e);var t=[];for(var r in Object(e))XT.call(e,r)&&r!="constructor"&&t.push(r);return t}var QT=ZT;function JT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bi=JT,e_=kn,t_=bi,r_="[object AsyncFunction]",n_="[object Function]",i_="[object GeneratorFunction]",o_="[object Proxy]";function a_(e){if(!t_(e))return!1;var t=e_(e);return t==n_||t==i_||t==r_||t==o_}var Hg=a_,s_=Hg,l_=vc;function u_(e){return e!=null&&l_(e.length)&&!s_(e)}var Cs=u_,c_=Vg,f_=QT,d_=Cs;function h_(e){return d_(e)?c_(e):f_(e)}var Ho=h_,p_=IE,g_=Ho;function m_(e,t){return e&&p_(e,t,g_)}var Ug=m_;function v_(e){return e}var Yg=v_,y_=Yg;function b_(e){return typeof e=="function"?e:y_}var x_=b_,w_=Ug,C_=x_;function S_(e,t){return e&&w_(e,C_(t))}var wc=S_,E_=Wg,T_=E_(Object.getPrototypeOf,Object),Cc=T_,__=kn,O_=Cc,k_=Wr,M_="[object Object]",P_=Function.prototype,A_=Object.prototype,Gg=P_.toString,D_=A_.hasOwnProperty,$_=Gg.call(Object);function I_(e){if(!k_(e)||__(e)!=M_)return!1;var t=O_(e);if(t===null)return!0;var r=D_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Gg.call(r)==$_}var F_=I_;function j_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var qg=j_;function L_(){this.__data__=[],this.size=0}var R_=L_;function B_(e,t){return e===t||e!==e&&t!==t}var Sc=B_,N_=Sc;function z_(e,t){for(var r=e.length;r--;)if(N_(e[r][0],t))return r;return-1}var Ss=z_,V_=Ss,W_=Array.prototype,H_=W_.splice;function U_(e){var t=this.__data__,r=V_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():H_.call(t,r,1),--this.size,!0}var Y_=U_,G_=Ss;function q_(e){var t=this.__data__,r=G_(t,e);return r<0?void 0:t[r][1]}var K_=q_,X_=Ss;function Z_(e){return X_(this.__data__,e)>-1}var Q_=Z_,J_=Ss;function eO(e,t){var r=this.__data__,n=J_(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var tO=eO,rO=R_,nO=Y_,iO=K_,oO=Q_,aO=tO;function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=rO,xi.prototype.delete=nO,xi.prototype.get=iO,xi.prototype.has=oO,xi.prototype.set=aO;var Es=xi,sO=Es;function lO(){this.__data__=new sO,this.size=0}var uO=lO;function cO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var fO=cO;function dO(e){return this.__data__.get(e)}var hO=dO;function pO(e){return this.__data__.has(e)}var gO=pO,mO=kr,vO=mO["__core-js_shared__"],yO=vO,Ec=yO,Kg=function(){var e=/[^.]+$/.exec(Ec&&Ec.keys&&Ec.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bO(e){return!!Kg&&Kg in e}var xO=bO,wO=Function.prototype,CO=wO.toString;function SO(e){if(e!=null){try{return CO.call(e)}catch{}try{return e+""}catch{}}return""}var Xg=SO,EO=Hg,TO=xO,_O=bi,OO=Xg,kO=/[\\^$.*+?()[\]{}|]/g,MO=/^\[object .+?Constructor\]$/,PO=Function.prototype,AO=Object.prototype,DO=PO.toString,$O=AO.hasOwnProperty,IO=RegExp("^"+DO.call($O).replace(kO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FO(e){if(!_O(e)||TO(e))return!1;var t=EO(e)?IO:MO;return t.test(OO(e))}var jO=FO;function LO(e,t){return e==null?void 0:e[t]}var RO=LO,BO=jO,NO=RO;function zO(e,t){var r=NO(e,t);return BO(r)?r:void 0}var Mn=zO,VO=Mn,WO=kr,HO=VO(WO,"Map"),Tc=HO,UO=Mn,YO=UO(Object,"create"),Ts=YO,Zg=Ts;function GO(){this.__data__=Zg?Zg(null):{},this.size=0}var qO=GO;function KO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XO=KO,ZO=Ts,QO="__lodash_hash_undefined__",JO=Object.prototype,e6=JO.hasOwnProperty;function t6(e){var t=this.__data__;if(ZO){var r=t[e];return r===QO?void 0:r}return e6.call(t,e)?t[e]:void 0}var r6=t6,n6=Ts,i6=Object.prototype,o6=i6.hasOwnProperty;function a6(e){var t=this.__data__;return n6?t[e]!==void 0:o6.call(t,e)}var s6=a6,l6=Ts,u6="__lodash_hash_undefined__";function c6(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=l6&&t===void 0?u6:t,this}var f6=c6,d6=qO,h6=XO,p6=r6,g6=s6,m6=f6;function wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wi.prototype.clear=d6,wi.prototype.delete=h6,wi.prototype.get=p6,wi.prototype.has=g6,wi.prototype.set=m6;var v6=wi,Qg=v6,y6=Es,b6=Tc;function x6(){this.size=0,this.__data__={hash:new Qg,map:new(b6||y6),string:new Qg}}var w6=x6;function C6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var S6=C6,E6=S6;function T6(e,t){var r=e.__data__;return E6(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _s=T6,_6=_s;function O6(e){var t=_6(this,e).delete(e);return this.size-=t?1:0,t}var k6=O6,M6=_s;function P6(e){return M6(this,e).get(e)}var A6=P6,D6=_s;function $6(e){return D6(this,e).has(e)}var I6=$6,F6=_s;function j6(e,t){var r=F6(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var L6=j6,R6=w6,B6=k6,N6=A6,z6=I6,V6=L6;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=R6,Ci.prototype.delete=B6,Ci.prototype.get=N6,Ci.prototype.has=z6,Ci.prototype.set=V6;var _c=Ci,W6=Es,H6=Tc,U6=_c,Y6=200;function G6(e,t){var r=this.__data__;if(r instanceof W6){var n=r.__data__;if(!H6||n.length<Y6-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U6(n)}return r.set(e,t),this.size=r.size,this}var q6=G6,K6=Es,X6=uO,Z6=fO,Q6=hO,J6=gO,e7=q6;function Si(e){var t=this.__data__=new K6(e);this.size=t.size}Si.prototype.clear=X6,Si.prototype.delete=Z6,Si.prototype.get=Q6,Si.prototype.has=J6,Si.prototype.set=e7;var Oc=Si,t7="__lodash_hash_undefined__";function r7(e){return this.__data__.set(e,t7),this}var n7=r7;function i7(e){return this.__data__.has(e)}var o7=i7,a7=_c,s7=n7,l7=o7;function Os(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new a7;++t<r;)this.add(e[t])}Os.prototype.add=Os.prototype.push=s7,Os.prototype.has=l7;var u7=Os;function c7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var f7=c7;function d7(e,t){return e.has(t)}var h7=d7,p7=u7,g7=f7,m7=h7,v7=1,y7=2;function b7(e,t,r,n,i,o){var a=r&v7,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&y7?new p7:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!g7(t,function(x,b){if(!m7(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var Jg=b7,x7=kr,w7=x7.Uint8Array,em=w7;function C7(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var S7=C7;function E7(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var T7=E7,tm=Vo,rm=em,_7=Sc,O7=Jg,k7=S7,M7=T7,P7=1,A7=2,D7="[object Boolean]",$7="[object Date]",I7="[object Error]",F7="[object Map]",j7="[object Number]",L7="[object RegExp]",R7="[object Set]",B7="[object String]",N7="[object Symbol]",z7="[object ArrayBuffer]",V7="[object DataView]",nm=tm?tm.prototype:void 0,kc=nm?nm.valueOf:void 0;function W7(e,t,r,n,i,o,a){switch(r){case V7:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z7:return!(e.byteLength!=t.byteLength||!o(new rm(e),new rm(t)));case D7:case $7:case j7:return _7(+e,+t);case I7:return e.name==t.name&&e.message==t.message;case L7:case B7:return e==t+"";case F7:var s=k7;case R7:var u=n&P7;if(s||(s=M7),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=A7,a.set(e,t);var c=O7(s(e),s(t),n,i,o,a);return a.delete(e),c;case N7:if(kc)return kc.call(e)==kc.call(t)}return!1}var H7=W7;function U7(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var im=U7,Y7=im,G7=mr;function q7(e,t,r){var n=t(e);return G7(e)?n:Y7(n,r(e))}var om=q7;function K7(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var X7=K7;function Z7(){return[]}var am=Z7,Q7=X7,J7=am,ek=Object.prototype,tk=ek.propertyIsEnumerable,sm=Object.getOwnPropertySymbols,rk=sm?function(e){return e==null?[]:(e=Object(e),Q7(sm(e),function(t){return tk.call(e,t)}))}:J7,Mc=rk,nk=om,ik=Mc,ok=Ho;function ak(e){return nk(e,ok,ik)}var lm=ak,um=lm,sk=1,lk=Object.prototype,uk=lk.hasOwnProperty;function ck(e,t,r,n,i,o){var a=r&sk,s=um(e),u=s.length,l=um(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:uk.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var fk=ck,dk=Mn,hk=kr,pk=dk(hk,"DataView"),gk=pk,mk=Mn,vk=kr,yk=mk(vk,"Promise"),bk=yk,xk=Mn,wk=kr,Ck=xk(wk,"Set"),Sk=Ck,Ek=Mn,Tk=kr,_k=Ek(Tk,"WeakMap"),Ok=_k,Pc=gk,Ac=Tc,Dc=bk,$c=Sk,Ic=Ok,cm=kn,Ei=Xg,fm="[object Map]",kk="[object Object]",dm="[object Promise]",hm="[object Set]",pm="[object WeakMap]",gm="[object DataView]",Mk=Ei(Pc),Pk=Ei(Ac),Ak=Ei(Dc),Dk=Ei($c),$k=Ei(Ic),Pn=cm;(Pc&&Pn(new Pc(new ArrayBuffer(1)))!=gm||Ac&&Pn(new Ac)!=fm||Dc&&Pn(Dc.resolve())!=dm||$c&&Pn(new $c)!=hm||Ic&&Pn(new Ic)!=pm)&&(Pn=function(e){var t=cm(e),r=t==kk?e.constructor:void 0,n=r?Ei(r):"";if(n)switch(n){case Mk:return gm;case Pk:return fm;case Ak:return dm;case Dk:return hm;case $k:return pm}return t});var ks=Pn,Fc=Oc,Ik=Jg,Fk=H7,jk=fk,mm=ks,vm=mr,ym=mc,Lk=zg,Rk=1,bm="[object Arguments]",xm="[object Array]",Ms="[object Object]",Bk=Object.prototype,wm=Bk.hasOwnProperty;function Nk(e,t,r,n,i,o){var a=vm(e),s=vm(t),u=a?xm:mm(e),l=s?xm:mm(t);u=u==bm?Ms:u,l=l==bm?Ms:l;var c=u==Ms,f=l==Ms,d=u==l;if(d&&ym(e)){if(!ym(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Fc),a||Lk(e)?Ik(e,t,r,n,i,o):Fk(e,t,u,r,n,i,o);if(!(r&Rk)){var h=c&&wm.call(e,"__wrapped__"),m=f&&wm.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Fc),i(p,v,r,n,o)}}return d?(o||(o=new Fc),jk(e,t,r,n,i,o)):!1}var zk=Nk,Vk=zk,Cm=Wr;function Sm(e,t,r,n,i){return e===t?!0:e==null||t==null||!Cm(e)&&!Cm(t)?e!==e&&t!==t:Vk(e,t,r,n,Sm,i)}var jc=Sm,Wk=Oc,Hk=jc,Uk=1,Yk=2;function Gk(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Wk;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?Hk(c,l,Uk|Yk,n,f):d))return!1}}return!0}var qk=Gk,Kk=bi;function Xk(e){return e===e&&!Kk(e)}var Em=Xk,Zk=Em,Qk=Ho;function Jk(e){for(var t=Qk(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Zk(i)]}return t}var eM=Jk;function tM(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Tm=tM,rM=qk,nM=eM,iM=Tm;function oM(e){var t=nM(e);return t.length==1&&t[0][2]?iM(t[0][0],t[0][1]):function(r){return r===e||rM(r,e,t)}}var aM=oM,sM=kn,lM=Wr,uM="[object Symbol]";function cM(e){return typeof e=="symbol"||lM(e)&&sM(e)==uM}var Lc=cM,fM=mr,dM=Lc,hM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pM=/^\w*$/;function gM(e,t){if(fM(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dM(e)?!0:pM.test(e)||!hM.test(e)||t!=null&&e in Object(t)}var Rc=gM,_m=_c,mM="Expected a function";function Bc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mM);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Bc.Cache||_m),r}Bc.Cache=_m;var vM=Bc,yM=vM,bM=500;function xM(e){var t=yM(e,function(n){return r.size===bM&&r.clear(),n}),r=t.cache;return t}var wM=xM,CM=wM,SM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,EM=/\\(\\)?/g,TM=CM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(SM,function(r,n,i,o){t.push(i?o.replace(EM,"$1"):n||r)}),t}),_M=TM,Om=Vo,OM=qg,kM=mr,MM=Lc,PM=1/0,km=Om?Om.prototype:void 0,Mm=km?km.toString:void 0;function Pm(e){if(typeof e=="string")return e;if(kM(e))return OM(e,Pm)+"";if(MM(e))return Mm?Mm.call(e):"";var t=e+"";return t=="0"&&1/e==-PM?"-0":t}var AM=Pm,DM=AM;function $M(e){return e==null?"":DM(e)}var IM=$M,FM=mr,jM=Rc,LM=_M,RM=IM;function BM(e,t){return FM(e)?e:jM(e,t)?[e]:LM(RM(e))}var Am=BM,NM=Lc,zM=1/0;function VM(e){if(typeof e=="string"||NM(e))return e;var t=e+"";return t=="0"&&1/e==-zM?"-0":t}var Ps=VM,WM=Am,HM=Ps;function UM(e,t){t=WM(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[HM(t[r++])];return r&&r==n?e:void 0}var Dm=UM,YM=Dm;function GM(e,t,r){var n=e==null?void 0:YM(e,t);return n===void 0?r:n}var qM=GM;function KM(e,t){return e!=null&&t in Object(e)}var XM=KM,ZM=Am,QM=Lg,JM=mr,e9=Rg,t9=vc,r9=Ps;function n9(e,t,r){t=ZM(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=r9(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&t9(i)&&e9(a,i)&&(JM(e)||QM(e)))}var i9=n9,o9=XM,a9=i9;function s9(e,t){return e!=null&&a9(e,t,o9)}var l9=s9,u9=jc,c9=qM,f9=l9,d9=Rc,h9=Em,p9=Tm,g9=Ps,m9=1,v9=2;function y9(e,t){return d9(e)&&h9(t)?p9(g9(e),t):function(r){var n=c9(r,e);return n===void 0&&n===t?f9(r,e):u9(t,n,m9|v9)}}var b9=y9;function x9(e){return function(t){return t==null?void 0:t[e]}}var w9=x9,C9=Dm;function S9(e){return function(t){return C9(t,e)}}var E9=S9,T9=w9,_9=E9,O9=Rc,k9=Ps;function M9(e){return O9(e)?T9(k9(e)):_9(e)}var P9=M9,A9=aM,D9=b9,$9=Yg,I9=mr,F9=P9;function j9(e){return typeof e=="function"?e:e==null?$9:typeof e=="object"?I9(e)?D9(e[0],e[1]):A9(e):F9(e)}var L9=j9,R9=Cs;function B9(e,t){return function(r,n){if(r==null)return r;if(!R9(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var N9=B9,z9=Ug,V9=N9,W9=V9(z9),H9=W9,U9=H9,Y9=Cs;function G9(e,t){var r=-1,n=Y9(e)?Array(e.length):[];return U9(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var q9=G9,K9=qg,X9=L9,Z9=q9,Q9=mr;function J9(e,t){var r=Q9(e)?K9:Z9;return r(e,X9(t))}var e8=J9;Object.defineProperty(zo,"__esModule",{value:!0}),zo.flattenNames=void 0;var t8=ME,r8=As(t8),n8=wc,i8=As(n8),o8=F_,a8=As(o8),s8=e8,l8=As(s8);function As(e){return e&&e.__esModule?e:{default:e}}var u8=zo.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,l8.default)(t,function(n){Array.isArray(n)?e(n).map(function(i){return r.push(i)}):(0,a8.default)(n)?(0,i8.default)(n,function(i,o){i===!0&&r.push(o),r.push(o+"-"+i)}):(0,r8.default)(n)&&r.push(n)}),r};zo.default=u8;var Uo={};function c8(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var f8=c8,d8=Mn,h8=function(){try{var e=d8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p8=h8,$m=p8;function g8(e,t,r){t=="__proto__"&&$m?$m(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Im=g8,m8=Im,v8=Sc,y8=Object.prototype,b8=y8.hasOwnProperty;function x8(e,t,r){var n=e[t];(!(b8.call(e,t)&&v8(n,r))||r===void 0&&!(t in e))&&m8(e,t,r)}var Fm=x8,w8=Fm,C8=Im;function S8(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?C8(r,s,u):w8(r,s,u)}return r}var Ds=S8,E8=Ds,T8=Ho;function _8(e,t){return e&&E8(t,T8(t),e)}var O8=_8;function k8(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var M8=k8,P8=bi,A8=xc,D8=M8,$8=Object.prototype,I8=$8.hasOwnProperty;function F8(e){if(!P8(e))return D8(e);var t=A8(e),r=[];for(var n in e)n=="constructor"&&(t||!I8.call(e,n))||r.push(n);return r}var j8=F8,L8=Vg,R8=j8,B8=Cs;function N8(e){return B8(e)?L8(e,!0):R8(e)}var Nc=N8,z8=Ds,V8=Nc;function W8(e,t){return e&&z8(t,V8(t),e)}var H8=W8,$s={exports:{}};$s.exports,function(e,t){var r=kr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,d=s?s(f):new l.constructor(f);return l.copy(d),d}e.exports=u}($s,$s.exports);var U8=$s.exports;function Y8(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var G8=Y8,q8=Ds,K8=Mc;function X8(e,t){return q8(e,K8(e),t)}var Z8=X8,Q8=im,J8=Cc,eP=Mc,tP=am,rP=Object.getOwnPropertySymbols,nP=rP?function(e){for(var t=[];e;)Q8(t,eP(e)),e=J8(e);return t}:tP,jm=nP,iP=Ds,oP=jm;function aP(e,t){return iP(e,oP(e),t)}var sP=aP,lP=om,uP=jm,cP=Nc;function fP(e){return lP(e,cP,uP)}var dP=fP,hP=Object.prototype,pP=hP.hasOwnProperty;function gP(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&pP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var mP=gP,Lm=em;function vP(e){var t=new e.constructor(e.byteLength);return new Lm(t).set(new Lm(e)),t}var zc=vP,yP=zc;function bP(e,t){var r=t?yP(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var xP=bP,wP=/\w*$/;function CP(e){var t=new e.constructor(e.source,wP.exec(e));return t.lastIndex=e.lastIndex,t}var SP=CP,Rm=Vo,Bm=Rm?Rm.prototype:void 0,Nm=Bm?Bm.valueOf:void 0;function EP(e){return Nm?Object(Nm.call(e)):{}}var TP=EP,_P=zc;function OP(e,t){var r=t?_P(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var kP=OP,MP=zc,PP=xP,AP=SP,DP=TP,$P=kP,IP="[object Boolean]",FP="[object Date]",jP="[object Map]",LP="[object Number]",RP="[object RegExp]",BP="[object Set]",NP="[object String]",zP="[object Symbol]",VP="[object ArrayBuffer]",WP="[object DataView]",HP="[object Float32Array]",UP="[object Float64Array]",YP="[object Int8Array]",GP="[object Int16Array]",qP="[object Int32Array]",KP="[object Uint8Array]",XP="[object Uint8ClampedArray]",ZP="[object Uint16Array]",QP="[object Uint32Array]";function JP(e,t,r){var n=e.constructor;switch(t){case VP:return MP(e);case IP:case FP:return new n(+e);case WP:return PP(e,r);case HP:case UP:case YP:case GP:case qP:case KP:case XP:case ZP:case QP:return $P(e,r);case jP:return new n;case LP:case NP:return new n(e);case RP:return AP(e);case BP:return new n;case zP:return DP(e)}}var eA=JP,tA=bi,zm=Object.create,rA=function(){function e(){}return function(t){if(!tA(t))return{};if(zm)return zm(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),nA=rA,iA=nA,oA=Cc,aA=xc;function sA(e){return typeof e.constructor=="function"&&!aA(e)?iA(oA(e)):{}}var lA=sA,uA=ks,cA=Wr,fA="[object Map]";function dA(e){return cA(e)&&uA(e)==fA}var hA=dA,pA=hA,gA=yc,Vm=bc,Wm=Vm&&Vm.isMap,mA=Wm?gA(Wm):pA,vA=mA,yA=ks,bA=Wr,xA="[object Set]";function wA(e){return bA(e)&&yA(e)==xA}var CA=wA,SA=CA,EA=yc,Hm=bc,Um=Hm&&Hm.isSet,TA=Um?EA(Um):SA,_A=TA,OA=Oc,kA=f8,MA=Fm,PA=O8,AA=H8,DA=U8,$A=G8,IA=Z8,FA=sP,jA=lm,LA=dP,RA=ks,BA=mP,NA=eA,zA=lA,VA=mr,WA=mc,HA=vA,UA=bi,YA=_A,GA=Ho,qA=Nc,KA=1,XA=2,ZA=4,Ym="[object Arguments]",QA="[object Array]",JA="[object Boolean]",eD="[object Date]",tD="[object Error]",Gm="[object Function]",rD="[object GeneratorFunction]",nD="[object Map]",iD="[object Number]",qm="[object Object]",oD="[object RegExp]",aD="[object Set]",sD="[object String]",lD="[object Symbol]",uD="[object WeakMap]",cD="[object ArrayBuffer]",fD="[object DataView]",dD="[object Float32Array]",hD="[object Float64Array]",pD="[object Int8Array]",gD="[object Int16Array]",mD="[object Int32Array]",vD="[object Uint8Array]",yD="[object Uint8ClampedArray]",bD="[object Uint16Array]",xD="[object Uint32Array]",at={};at[Ym]=at[QA]=at[cD]=at[fD]=at[JA]=at[eD]=at[dD]=at[hD]=at[pD]=at[gD]=at[mD]=at[nD]=at[iD]=at[qm]=at[oD]=at[aD]=at[sD]=at[lD]=at[vD]=at[yD]=at[bD]=at[xD]=!0,at[tD]=at[Gm]=at[uD]=!1;function Is(e,t,r,n,i,o){var a,s=t&KA,u=t&XA,l=t&ZA;if(r&&(a=i?r(e,n,i,o):r(e)),a!==void 0)return a;if(!UA(e))return e;var c=VA(e);if(c){if(a=BA(e),!s)return $A(e,a)}else{var f=RA(e),d=f==Gm||f==rD;if(WA(e))return DA(e,s);if(f==qm||f==Ym||d&&!i){if(a=u||d?{}:zA(e),!s)return u?FA(e,AA(a,e)):IA(e,PA(a,e))}else{if(!at[f])return i?e:{};a=NA(e,f,s)}}o||(o=new OA);var h=o.get(e);if(h)return h;o.set(e,a),YA(e)?e.forEach(function(v){a.add(Is(v,t,r,v,e,o))}):HA(e)&&e.forEach(function(v,x){a.set(x,Is(v,t,r,x,e,o))});var m=l?u?LA:jA:u?qA:GA,p=c?void 0:m(e);return kA(p||e,function(v,x){p&&(x=v,v=e[x]),MA(a,x,Is(v,t,r,x,e,o))}),a}var wD=Is,CD=wD,SD=1,ED=4;function TD(e){return CD(e,SD|ED)}var _D=TD;Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.mergeClasses=void 0;var OD=wc,kD=Km(OD),MD=_D,PD=Km(MD),AD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Km(e){return e&&e.__esModule?e:{default:e}}var DD=Uo.mergeClasses=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=t.default&&(0,PD.default)(t.default)||{};return r.map(function(i){var o=t[i];return o&&(0,kD.default)(o,function(a,s){n[s]||(n[s]={}),n[s]=AD({},n[s],o[s])}),i}),n};Uo.default=DD;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.autoprefix=void 0;var $D=wc,Xm=FD($D),ID=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function FD(e){return e&&e.__esModule?e:{default:e}}var jD={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var r=t&&t.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(t,r){var n=r[t];return n||{extend:t}}},LD=Yo.autoprefix=function(t){var r={};return(0,Xm.default)(t,function(n,i){var o={};(0,Xm.default)(n,function(a,s){var u=jD[s];u?o=ID({},o,u(a)):o[s]=a}),r[i]=o}),r};Yo.default=LD;var Go={};Object.defineProperty(Go,"__esModule",{value:!0}),Go.hover=void 0;var RD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BD=g,Vc=ND(BD);function ND(e){return e&&e.__esModule?e:{default:e}}function zD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WD=Go.hover=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){VD(i,n);function i(){var o,a,s,u;zD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Zm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return Vc.default.createElement(r,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},Vc.default.createElement(t,RD({},s.props,s.state)))},a),Zm(s,u)}return i}(Vc.default.Component)};Go.default=WD;var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.active=void 0;var HD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UD=g,Wc=YD(UD);function YD(e){return e&&e.__esModule?e:{default:e}}function GD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qm(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KD=qo.active=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){qD(i,n);function i(){var o,a,s,u;GD(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Qm(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return Wc.default.createElement(r,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},Wc.default.createElement(t,HD({},s.props,s.state)))},a),Qm(s,u)}return i}(Wc.default.Component)};qo.default=KD;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var XD=function(t,r){var n={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[a]=s};return t===0&&i("first-child"),t===r-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),n};Hc.default=XD,Object.defineProperty(cr,"__esModule",{value:!0}),cr.ReactCSS=cr.loop=cr.handleActive=Uc=cr.handleHover=cr.hover=void 0;var ZD=zo,QD=Ti(ZD),JD=Uo,e$=Ti(JD),t$=Yo,r$=Ti(t$),n$=Go,Jm=Ti(n$),i$=qo,o$=Ti(i$),a$=Hc,s$=Ti(a$);function Ti(e){return e&&e.__esModule?e:{default:e}}cr.hover=Jm.default;var Uc=cr.handleHover=Jm.default;cr.handleActive=o$.default,cr.loop=s$.default;var l$=cr.ReactCSS=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=(0,QD.default)(n),a=(0,e$.default)(t,o);return(0,r$.default)(a)},Se=cr.default=l$,u$=function(t,r,n,i,o){var a=o.clientWidth,s=o.clientHeight,u=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=l-(o.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(f<0?d=0:f>s?d=1:d=Math.round(f*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var h=void 0;if(c<0?h=0:c>a?h=1:h=Math.round(c*100/a)/100,i!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Yc={},c$=function(t,r,n,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=n*2,o.height=n*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=r,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null},f$=function(t,r,n,i){var o=t+"-"+r+"-"+n+(i?"-server":"");if(Yc[o])return Yc[o];var a=c$(t,r,n,i);return Yc[o]=a,a},ev=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_i=function(t){var r=t.white,n=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,u=t.children,l=Se({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+f$(r,n,i,o.canvas)+") center left"}}});return g.isValidElement(u)?g.cloneElement(u,ev({},u.props,{style:ev({},u.props.style,l.grid)})):g.createElement("div",{style:l.grid})};_i.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var d$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function g$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gc=function(e){g$(t,e);function t(){var r,n,i,o;p$(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=tv(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=u$(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},n),tv(i,o)}return h$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,i=this.props.rgb,o=Se({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
106
106
|
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
|
107
107
|
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:d$({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return g.createElement("div",{style:o.alpha},g.createElement("div",{style:o.checkboard},g.createElement(_i,{renderers:this.props.renderers})),g.createElement("div",{style:o.gradient}),g.createElement("div",{style:o.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("div",{style:o.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:o.slider}))))}}]),t}(g.PureComponent||g.Component),m$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function v$(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function x$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w$=1,rv=38,C$=40,S$=[rv,C$],E$=function(t){return S$.indexOf(t)>-1},T$=function(t){return Number(String(t).replace(/%/g,""))},_$=1,je=function(e){x$(t,e);function t(r){y$(this,t);var n=b$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(i){n.setUpdatedValue(i.target.value,i)},n.handleKeyDown=function(i){var o=T$(i.target.value);if(!isNaN(o)&&E$(i.keyCode)){var a=n.getArrowOffset(),s=i.keyCode===rv?o+a:o-a;n.setUpdatedValue(s,i)}},n.handleDrag=function(i){if(n.props.dragLabel){var o=Math.round(n.props.value+i.movementX);o>=0&&o<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(o),i)}},n.handleMouseDown=function(i){n.props.dragLabel&&(i.preventDefault(),n.handleDrag(i),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+_$++,n}return m$(t,[{key:"componentDidUpdate",value:function(n,i){this.props.value!==this.state.value&&(n.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return v$({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||w$}},{key:"setUpdatedValue",value:function(n,i){var o=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(o,i),this.setState({value:n})}},{key:"render",value:function(){var n=this,i=Se({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return g.createElement("div",{style:i.wrap},g.createElement("input",{id:this.inputId,style:i.input,ref:function(a){return n.input=a},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?g.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(g.PureComponent||g.Component),O$=function(t,r,n,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(i.getBoundingClientRect().left+window.pageXOffset),c=u-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var f=void 0;if(c<0)f=359;else if(c>a)f=0;else{var d=-(c*100/a)+100;f=360*d/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var h=void 0;if(l<0)h=0;else if(l>o)h=359;else{var m=l*100/o;h=360*m/100}if(n.h!==h)return{h,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},k$=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function M$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function P$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Oi=function(e){P$(t,e);function t(){var r,n,i,o;M$(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(n=(i=nv(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),i),i.handleChange=function(l){var c=O$(l,i.props.direction,i.props.hsl,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},n),nv(i,o)}return k$(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.direction,o=i===void 0?"horizontal":i,a=Se({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:o==="vertical"});return g.createElement("div",{style:a.hue},g.createElement("div",{className:"hue-"+o,style:a.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
|
|
108
108
|
.hue-horizontal {
|
|
@@ -118,7 +118,7 @@ const theme2 = createTheme({ palette: {
|
|
|
118
118
|
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
119
119
|
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
120
120
|
}
|
|
121
|
-
`),g.createElement("div",{style:a.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:a.slider}))))}}]),t}(g.PureComponent||g.Component);function A$(){this.__data__=[],this.size=0}function Ko(e,t){return e===t||e!==e&&t!==t}function Fs(e,t){for(var r=e.length;r--;)if(Ko(e[r][0],t))return r;return-1}var D$=Array.prototype,$$=D$.splice;function I$(e){var t=this.__data__,r=Fs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$$.call(t,r,1),--this.size,!0}function F$(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}function j$(e){return Fs(this.__data__,e)>-1}function L$(e,t){var r=this.__data__,n=Fs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hr.prototype.clear=A$,Hr.prototype.delete=I$,Hr.prototype.get=F$,Hr.prototype.has=j$,Hr.prototype.set=L$;function R$(){this.__data__=new Hr,this.size=0}function B$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function N$(e){return this.__data__.get(e)}function z$(e){return this.__data__.has(e)}var V$=typeof global=="object"&&global&&global.Object===Object&&global;const iv=V$;var W$=typeof self=="object"&&self&&self.Object===Object&&self,H$=iv||W$||Function("return this")();const vr=H$;var U$=vr.Symbol;const ln=U$;var ov=Object.prototype,Y$=ov.hasOwnProperty,G$=ov.toString,Xo=ln?ln.toStringTag:void 0;function q$(e){var t=Y$.call(e,Xo),r=e[Xo];try{e[Xo]=void 0;var n=!0}catch{}var i=G$.call(e);return n&&(t?e[Xo]=r:delete e[Xo]),i}var K$=Object.prototype,X$=K$.toString;function Z$(e){return X$.call(e)}var Q$="[object Null]",J$="[object Undefined]",av=ln?ln.toStringTag:void 0;function An(e){return e==null?e===void 0?J$:Q$:av&&av in Object(e)?q$(e):Z$(e)}function fr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eI="[object AsyncFunction]",tI="[object Function]",rI="[object GeneratorFunction]",nI="[object Proxy]";function qc(e){if(!fr(e))return!1;var t=An(e);return t==tI||t==rI||t==eI||t==nI}var iI=vr["__core-js_shared__"];const Kc=iI;var sv=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oI(e){return!!sv&&sv in e}var aI=Function.prototype,sI=aI.toString;function Dn(e){if(e!=null){try{return sI.call(e)}catch{}try{return e+""}catch{}}return""}var lI=/[\\^$.*+?()[\]{}|]/g,uI=/^\[object .+?Constructor\]$/,cI=Function.prototype,fI=Object.prototype,dI=cI.toString,hI=fI.hasOwnProperty,pI=RegExp("^"+dI.call(hI).replace(lI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gI(e){if(!fr(e)||oI(e))return!1;var t=qc(e)?pI:uI;return t.test(Dn(e))}function mI(e,t){return e==null?void 0:e[t]}function $n(e,t){var r=mI(e,t);return gI(r)?r:void 0}var vI=$n(vr,"Map");const Zo=vI;var yI=$n(Object,"create");const Qo=yI;function bI(){this.__data__=Qo?Qo(null):{},this.size=0}function xI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wI="__lodash_hash_undefined__",CI=Object.prototype,SI=CI.hasOwnProperty;function EI(e){var t=this.__data__;if(Qo){var r=t[e];return r===wI?void 0:r}return SI.call(t,e)?t[e]:void 0}var TI=Object.prototype,_I=TI.hasOwnProperty;function OI(e){var t=this.__data__;return Qo?t[e]!==void 0:_I.call(t,e)}var kI="__lodash_hash_undefined__";function MI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qo&&t===void 0?kI:t,this}function In(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}In.prototype.clear=bI,In.prototype.delete=xI,In.prototype.get=EI,In.prototype.has=OI,In.prototype.set=MI;function PI(){this.size=0,this.__data__={hash:new In,map:new(Zo||Hr),string:new In}}function AI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function js(e,t){var r=e.__data__;return AI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function DI(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}function $I(e){return js(this,e).get(e)}function II(e){return js(this,e).has(e)}function FI(e,t){var r=js(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ur.prototype.clear=PI,Ur.prototype.delete=DI,Ur.prototype.get=$I,Ur.prototype.has=II,Ur.prototype.set=FI;var jI=200;function LI(e,t){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!Zo||n.length<jI-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ur(n)}return r.set(e,t),this.size=r.size,this}function Mr(e){var t=this.__data__=new Hr(e);this.size=t.size}Mr.prototype.clear=R$,Mr.prototype.delete=B$,Mr.prototype.get=N$,Mr.prototype.has=z$,Mr.prototype.set=LI;var RI=function(){try{var e=$n(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ls=RI;function Xc(e,t,r){t=="__proto__"&&Ls?Ls(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Zc(e,t,r){(r!==void 0&&!Ko(e[t],r)||r===void 0&&!(t in e))&&Xc(e,t,r)}function BI(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var NI=BI();const lv=NI;var uv=typeof z=="object"&&z&&!z.nodeType&&z,cv=uv&&typeof module=="object"&&module&&!module.nodeType&&module,zI=cv&&cv.exports===uv,fv=zI?vr.Buffer:void 0,dv=fv?fv.allocUnsafe:void 0;function VI(e,t){if(t)return e.slice();var r=e.length,n=dv?dv(r):new e.constructor(r);return e.copy(n),n}var WI=vr.Uint8Array;const Rs=WI;function HI(e){var t=new e.constructor(e.byteLength);return new Rs(t).set(new Rs(e)),t}function UI(e,t){var r=t?HI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function YI(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var hv=Object.create,GI=function(){function e(){}return function(t){if(!fr(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const qI=GI;function pv(e,t){return function(r){return e(t(r))}}var KI=pv(Object.getPrototypeOf,Object);const gv=KI;var XI=Object.prototype;function Qc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XI;return e===r}function ZI(e){return typeof e.constructor=="function"&&!Qc(e)?qI(gv(e)):{}}function un(e){return e!=null&&typeof e=="object"}var QI="[object Arguments]";function mv(e){return un(e)&&An(e)==QI}var vv=Object.prototype,JI=vv.hasOwnProperty,eF=vv.propertyIsEnumerable,tF=mv(function(){return arguments}())?mv:function(e){return un(e)&&JI.call(e,"callee")&&!eF.call(e,"callee")};const Bs=tF;var rF=Array.isArray;const tr=rF;var nF=9007199254740991;function Jc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nF}function ki(e){return e!=null&&Jc(e.length)&&!qc(e)}function iF(e){return un(e)&&ki(e)}function oF(){return!1}var yv=typeof z=="object"&&z&&!z.nodeType&&z,bv=yv&&typeof module=="object"&&module&&!module.nodeType&&module,aF=bv&&bv.exports===yv,xv=aF?vr.Buffer:void 0,sF=xv?xv.isBuffer:void 0,lF=sF||oF;const Ns=lF;var uF="[object Object]",cF=Function.prototype,fF=Object.prototype,wv=cF.toString,dF=fF.hasOwnProperty,hF=wv.call(Object);function pF(e){if(!un(e)||An(e)!=uF)return!1;var t=gv(e);if(t===null)return!0;var r=dF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wv.call(r)==hF}var gF="[object Arguments]",mF="[object Array]",vF="[object Boolean]",yF="[object Date]",bF="[object Error]",xF="[object Function]",wF="[object Map]",CF="[object Number]",SF="[object Object]",EF="[object RegExp]",TF="[object Set]",_F="[object String]",OF="[object WeakMap]",kF="[object ArrayBuffer]",MF="[object DataView]",PF="[object Float32Array]",AF="[object Float64Array]",DF="[object Int8Array]",$F="[object Int16Array]",IF="[object Int32Array]",FF="[object Uint8Array]",jF="[object Uint8ClampedArray]",LF="[object Uint16Array]",RF="[object Uint32Array]",ut={};ut[PF]=ut[AF]=ut[DF]=ut[$F]=ut[IF]=ut[FF]=ut[jF]=ut[LF]=ut[RF]=!0,ut[gF]=ut[mF]=ut[kF]=ut[vF]=ut[MF]=ut[yF]=ut[bF]=ut[xF]=ut[wF]=ut[CF]=ut[SF]=ut[EF]=ut[TF]=ut[_F]=ut[OF]=!1;function BF(e){return un(e)&&Jc(e.length)&&!!ut[An(e)]}function NF(e){return function(t){return e(t)}}var Cv=typeof z=="object"&&z&&!z.nodeType&&z,Jo=Cv&&typeof module=="object"&&module&&!module.nodeType&&module,zF=Jo&&Jo.exports===Cv,ef=zF&&iv.process,VF=function(){try{var e=Jo&&Jo.require&&Jo.require("util").types;return e||ef&&ef.binding&&ef.binding("util")}catch{}}();const Sv=VF;var Ev=Sv&&Sv.isTypedArray,WF=Ev?NF(Ev):BF;const tf=WF;function rf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var HF=Object.prototype,UF=HF.hasOwnProperty;function YF(e,t,r){var n=e[t];(!(UF.call(e,t)&&Ko(n,r))||r===void 0&&!(t in e))&&Xc(e,t,r)}function GF(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Xc(r,s,u):YF(r,s,u)}return r}function qF(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var KF=9007199254740991,XF=/^(?:0|[1-9]\d*)$/;function nf(e,t){var r=typeof e;return t=t??KF,!!t&&(r=="number"||r!="symbol"&&XF.test(e))&&e>-1&&e%1==0&&e<t}var ZF=Object.prototype,QF=ZF.hasOwnProperty;function Tv(e,t){var r=tr(e),n=!r&&Bs(e),i=!r&&!n&&Ns(e),o=!r&&!n&&!i&&tf(e),a=r||n||i||o,s=a?qF(e.length,String):[],u=s.length;for(var l in e)(t||QF.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||nf(l,u)))&&s.push(l);return s}function JF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ej=Object.prototype,tj=ej.hasOwnProperty;function rj(e){if(!fr(e))return JF(e);var t=Qc(e),r=[];for(var n in e)n=="constructor"&&(t||!tj.call(e,n))||r.push(n);return r}function _v(e){return ki(e)?Tv(e,!0):rj(e)}function nj(e){return GF(e,_v(e))}function ij(e,t,r,n,i,o,a){var s=rf(e,r),u=rf(t,r),l=a.get(u);if(l){Zc(e,r,l);return}var c=o?o(s,u,r+"",e,t,a):void 0,f=c===void 0;if(f){var d=tr(u),h=!d&&Ns(u),m=!d&&!h&&tf(u);c=u,d||h||m?tr(s)?c=s:iF(s)?c=YI(s):h?(f=!1,c=VI(u,!0)):m?(f=!1,c=UI(u,!0)):c=[]:pF(u)||Bs(u)?(c=s,Bs(s)?c=nj(s):(!fr(s)||qc(s))&&(c=ZI(u))):f=!1}f&&(a.set(u,c),i(c,u,n,o,a),a.delete(u)),Zc(e,r,c)}function Ov(e,t,r,n,i){e!==t&&lv(t,function(o,a){if(i||(i=new Mr),fr(o))ij(e,t,a,r,Ov,n,i);else{var s=n?n(rf(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Zc(e,a,s)}},_v)}function zs(e){return e}function oj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var kv=Math.max;function aj(e,t,r){return t=kv(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=kv(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),oj(e,this,s)}}function sj(e){return function(){return e}}var lj=Ls?function(e,t){return Ls(e,"toString",{configurable:!0,enumerable:!1,value:sj(t),writable:!0})}:zs;const uj=lj;var cj=800,fj=16,dj=Date.now;function hj(e){var t=0,r=0;return function(){var n=dj(),i=fj-(n-r);if(r=n,i>0){if(++t>=cj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pj=hj(uj);const gj=pj;function mj(e,t){return gj(aj(e,t,zs),e+"")}function vj(e,t,r){if(!fr(r))return!1;var n=typeof t;return(n=="number"?ki(r)&&nf(t,r.length):n=="string"&&t in r)?Ko(r[t],e):!1}function yj(e){return mj(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&vj(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var bj=yj(function(e,t,r){Ov(e,t,r)});const Yt=bj;var ea=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,u=Se(Yt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return g.createElement("div",{style:u.wrap},g.createElement("div",{style:u.bg}),g.createElement("div",{style:u.content},o))};ea.propTypes={background:T.string,zDepth:T.oneOf([0,1,2,3,4,5]),radius:T.number,styles:T.object},ea.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var xj=function(){return vr.Date.now()};const of=xj;var wj=/\s/;function Cj(e){for(var t=e.length;t--&&wj.test(e.charAt(t)););return t}var Sj=/^\s+/;function Ej(e){return e&&e.slice(0,Cj(e)+1).replace(Sj,"")}var Tj="[object Symbol]";function Vs(e){return typeof e=="symbol"||un(e)&&An(e)==Tj}var Mv=0/0,_j=/^[-+]0x[0-9a-f]+$/i,Oj=/^0b[01]+$/i,kj=/^0o[0-7]+$/i,Mj=parseInt;function Pv(e){if(typeof e=="number")return e;if(Vs(e))return Mv;if(fr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ej(e);var r=Oj.test(e);return r||kj.test(e)?Mj(e.slice(2),r?2:8):_j.test(e)?Mv:+e}var Pj="Expected a function",Aj=Math.max,Dj=Math.min;function ta(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Pj);t=Pv(t)||0,fr(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Aj(Pv(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(_){var O=n,k=i;return n=i=void 0,l=_,a=e.apply(k,O),a}function m(_){return l=_,s=setTimeout(x,t),c?h(_):a}function p(_){var O=_-u,k=_-l,D=t-O;return f?Dj(D,o-k):D}function v(_){var O=_-u,k=_-l;return u===void 0||O>=t||O<0||f&&k>=o}function x(){var _=of();if(v(_))return b(_);s=setTimeout(x,p(_))}function b(_){return s=void 0,d&&n?h(_):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function E(){return s===void 0?a:b(of())}function w(){var _=of(),O=v(_);if(n=arguments,i=this,u=_,O){if(s===void 0)return m(u);if(f)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),a}return w.cancel=C,w.flush=E,w}var $j="Expected a function";function Av(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($j);return fr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ta(e,t,{leading:n,maxWait:t,trailing:i})}var Ij=function(t,r,n){var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>a&&(c=a);var f=l/o,d=1-c/a;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},Fj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function jj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lj(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Rj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ws=function(e){Rj(t,e);function t(r){jj(this,t);var n=Lj(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,Ij(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var o=n.getContainerRenderWindow();o.addEventListener("mousemove",n.handleChange),o.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=Av(function(i,o,a){i(o,a)},50),n}return Fj(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},o=i.color,a=i.white,s=i.black,u=i.pointer,l=i.circle,c=Se({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
121
|
+
`),g.createElement("div",{style:a.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:a.slider}))))}}]),t}(g.PureComponent||g.Component);function A$(){this.__data__=[],this.size=0}function Ko(e,t){return e===t||e!==e&&t!==t}function Fs(e,t){for(var r=e.length;r--;)if(Ko(e[r][0],t))return r;return-1}var D$=Array.prototype,$$=D$.splice;function I$(e){var t=this.__data__,r=Fs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$$.call(t,r,1),--this.size,!0}function F$(e){var t=this.__data__,r=Fs(t,e);return r<0?void 0:t[r][1]}function j$(e){return Fs(this.__data__,e)>-1}function L$(e,t){var r=this.__data__,n=Fs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hr.prototype.clear=A$,Hr.prototype.delete=I$,Hr.prototype.get=F$,Hr.prototype.has=j$,Hr.prototype.set=L$;function R$(){this.__data__=new Hr,this.size=0}function B$(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function N$(e){return this.__data__.get(e)}function z$(e){return this.__data__.has(e)}var V$=typeof global=="object"&&global&&global.Object===Object&&global;const iv=V$;var W$=typeof self=="object"&&self&&self.Object===Object&&self,H$=iv||W$||Function("return this")();const vr=H$;var U$=vr.Symbol;const ln=U$;var ov=Object.prototype,Y$=ov.hasOwnProperty,G$=ov.toString,Xo=ln?ln.toStringTag:void 0;function q$(e){var t=Y$.call(e,Xo),r=e[Xo];try{e[Xo]=void 0;var n=!0}catch{}var i=G$.call(e);return n&&(t?e[Xo]=r:delete e[Xo]),i}var K$=Object.prototype,X$=K$.toString;function Z$(e){return X$.call(e)}var Q$="[object Null]",J$="[object Undefined]",av=ln?ln.toStringTag:void 0;function An(e){return e==null?e===void 0?J$:Q$:av&&av in Object(e)?q$(e):Z$(e)}function fr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eI="[object AsyncFunction]",tI="[object Function]",rI="[object GeneratorFunction]",nI="[object Proxy]";function qc(e){if(!fr(e))return!1;var t=An(e);return t==tI||t==rI||t==eI||t==nI}var iI=vr["__core-js_shared__"];const Kc=iI;var sv=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oI(e){return!!sv&&sv in e}var aI=Function.prototype,sI=aI.toString;function Dn(e){if(e!=null){try{return sI.call(e)}catch{}try{return e+""}catch{}}return""}var lI=/[\\^$.*+?()[\]{}|]/g,uI=/^\[object .+?Constructor\]$/,cI=Function.prototype,fI=Object.prototype,dI=cI.toString,hI=fI.hasOwnProperty,pI=RegExp("^"+dI.call(hI).replace(lI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gI(e){if(!fr(e)||oI(e))return!1;var t=qc(e)?pI:uI;return t.test(Dn(e))}function mI(e,t){return e==null?void 0:e[t]}function $n(e,t){var r=mI(e,t);return gI(r)?r:void 0}var vI=$n(vr,"Map");const Zo=vI;var yI=$n(Object,"create");const Qo=yI;function bI(){this.__data__=Qo?Qo(null):{},this.size=0}function xI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wI="__lodash_hash_undefined__",CI=Object.prototype,SI=CI.hasOwnProperty;function EI(e){var t=this.__data__;if(Qo){var r=t[e];return r===wI?void 0:r}return SI.call(t,e)?t[e]:void 0}var TI=Object.prototype,_I=TI.hasOwnProperty;function OI(e){var t=this.__data__;return Qo?t[e]!==void 0:_I.call(t,e)}var kI="__lodash_hash_undefined__";function MI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qo&&t===void 0?kI:t,this}function In(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}In.prototype.clear=bI,In.prototype.delete=xI,In.prototype.get=EI,In.prototype.has=OI,In.prototype.set=MI;function PI(){this.size=0,this.__data__={hash:new In,map:new(Zo||Hr),string:new In}}function AI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function js(e,t){var r=e.__data__;return AI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function DI(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}function $I(e){return js(this,e).get(e)}function II(e){return js(this,e).has(e)}function FI(e,t){var r=js(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ur.prototype.clear=PI,Ur.prototype.delete=DI,Ur.prototype.get=$I,Ur.prototype.has=II,Ur.prototype.set=FI;var jI=200;function LI(e,t){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!Zo||n.length<jI-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ur(n)}return r.set(e,t),this.size=r.size,this}function Mr(e){var t=this.__data__=new Hr(e);this.size=t.size}Mr.prototype.clear=R$,Mr.prototype.delete=B$,Mr.prototype.get=N$,Mr.prototype.has=z$,Mr.prototype.set=LI;var RI=function(){try{var e=$n(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ls=RI;function Xc(e,t,r){t=="__proto__"&&Ls?Ls(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Zc(e,t,r){(r!==void 0&&!Ko(e[t],r)||r===void 0&&!(t in e))&&Xc(e,t,r)}function BI(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var NI=BI();const lv=NI;var uv=typeof N=="object"&&N&&!N.nodeType&&N,cv=uv&&typeof module=="object"&&module&&!module.nodeType&&module,zI=cv&&cv.exports===uv,fv=zI?vr.Buffer:void 0,dv=fv?fv.allocUnsafe:void 0;function VI(e,t){if(t)return e.slice();var r=e.length,n=dv?dv(r):new e.constructor(r);return e.copy(n),n}var WI=vr.Uint8Array;const Rs=WI;function HI(e){var t=new e.constructor(e.byteLength);return new Rs(t).set(new Rs(e)),t}function UI(e,t){var r=t?HI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function YI(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var hv=Object.create,GI=function(){function e(){}return function(t){if(!fr(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const qI=GI;function pv(e,t){return function(r){return e(t(r))}}var KI=pv(Object.getPrototypeOf,Object);const gv=KI;var XI=Object.prototype;function Qc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||XI;return e===r}function ZI(e){return typeof e.constructor=="function"&&!Qc(e)?qI(gv(e)):{}}function un(e){return e!=null&&typeof e=="object"}var QI="[object Arguments]";function mv(e){return un(e)&&An(e)==QI}var vv=Object.prototype,JI=vv.hasOwnProperty,eF=vv.propertyIsEnumerable,tF=mv(function(){return arguments}())?mv:function(e){return un(e)&&JI.call(e,"callee")&&!eF.call(e,"callee")};const Bs=tF;var rF=Array.isArray;const tr=rF;var nF=9007199254740991;function Jc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nF}function ki(e){return e!=null&&Jc(e.length)&&!qc(e)}function iF(e){return un(e)&&ki(e)}function oF(){return!1}var yv=typeof N=="object"&&N&&!N.nodeType&&N,bv=yv&&typeof module=="object"&&module&&!module.nodeType&&module,aF=bv&&bv.exports===yv,xv=aF?vr.Buffer:void 0,sF=xv?xv.isBuffer:void 0,lF=sF||oF;const Ns=lF;var uF="[object Object]",cF=Function.prototype,fF=Object.prototype,wv=cF.toString,dF=fF.hasOwnProperty,hF=wv.call(Object);function pF(e){if(!un(e)||An(e)!=uF)return!1;var t=gv(e);if(t===null)return!0;var r=dF.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wv.call(r)==hF}var gF="[object Arguments]",mF="[object Array]",vF="[object Boolean]",yF="[object Date]",bF="[object Error]",xF="[object Function]",wF="[object Map]",CF="[object Number]",SF="[object Object]",EF="[object RegExp]",TF="[object Set]",_F="[object String]",OF="[object WeakMap]",kF="[object ArrayBuffer]",MF="[object DataView]",PF="[object Float32Array]",AF="[object Float64Array]",DF="[object Int8Array]",$F="[object Int16Array]",IF="[object Int32Array]",FF="[object Uint8Array]",jF="[object Uint8ClampedArray]",LF="[object Uint16Array]",RF="[object Uint32Array]",ut={};ut[PF]=ut[AF]=ut[DF]=ut[$F]=ut[IF]=ut[FF]=ut[jF]=ut[LF]=ut[RF]=!0,ut[gF]=ut[mF]=ut[kF]=ut[vF]=ut[MF]=ut[yF]=ut[bF]=ut[xF]=ut[wF]=ut[CF]=ut[SF]=ut[EF]=ut[TF]=ut[_F]=ut[OF]=!1;function BF(e){return un(e)&&Jc(e.length)&&!!ut[An(e)]}function NF(e){return function(t){return e(t)}}var Cv=typeof N=="object"&&N&&!N.nodeType&&N,Jo=Cv&&typeof module=="object"&&module&&!module.nodeType&&module,zF=Jo&&Jo.exports===Cv,ef=zF&&iv.process,VF=function(){try{var e=Jo&&Jo.require&&Jo.require("util").types;return e||ef&&ef.binding&&ef.binding("util")}catch{}}();const Sv=VF;var Ev=Sv&&Sv.isTypedArray,WF=Ev?NF(Ev):BF;const tf=WF;function rf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var HF=Object.prototype,UF=HF.hasOwnProperty;function YF(e,t,r){var n=e[t];(!(UF.call(e,t)&&Ko(n,r))||r===void 0&&!(t in e))&&Xc(e,t,r)}function GF(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Xc(r,s,u):YF(r,s,u)}return r}function qF(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var KF=9007199254740991,XF=/^(?:0|[1-9]\d*)$/;function nf(e,t){var r=typeof e;return t=t??KF,!!t&&(r=="number"||r!="symbol"&&XF.test(e))&&e>-1&&e%1==0&&e<t}var ZF=Object.prototype,QF=ZF.hasOwnProperty;function Tv(e,t){var r=tr(e),n=!r&&Bs(e),i=!r&&!n&&Ns(e),o=!r&&!n&&!i&&tf(e),a=r||n||i||o,s=a?qF(e.length,String):[],u=s.length;for(var l in e)(t||QF.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||nf(l,u)))&&s.push(l);return s}function JF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ej=Object.prototype,tj=ej.hasOwnProperty;function rj(e){if(!fr(e))return JF(e);var t=Qc(e),r=[];for(var n in e)n=="constructor"&&(t||!tj.call(e,n))||r.push(n);return r}function _v(e){return ki(e)?Tv(e,!0):rj(e)}function nj(e){return GF(e,_v(e))}function ij(e,t,r,n,i,o,a){var s=rf(e,r),u=rf(t,r),l=a.get(u);if(l){Zc(e,r,l);return}var c=o?o(s,u,r+"",e,t,a):void 0,f=c===void 0;if(f){var d=tr(u),h=!d&&Ns(u),m=!d&&!h&&tf(u);c=u,d||h||m?tr(s)?c=s:iF(s)?c=YI(s):h?(f=!1,c=VI(u,!0)):m?(f=!1,c=UI(u,!0)):c=[]:pF(u)||Bs(u)?(c=s,Bs(s)?c=nj(s):(!fr(s)||qc(s))&&(c=ZI(u))):f=!1}f&&(a.set(u,c),i(c,u,n,o,a),a.delete(u)),Zc(e,r,c)}function Ov(e,t,r,n,i){e!==t&&lv(t,function(o,a){if(i||(i=new Mr),fr(o))ij(e,t,a,r,Ov,n,i);else{var s=n?n(rf(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Zc(e,a,s)}},_v)}function zs(e){return e}function oj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var kv=Math.max;function aj(e,t,r){return t=kv(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=kv(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),oj(e,this,s)}}function sj(e){return function(){return e}}var lj=Ls?function(e,t){return Ls(e,"toString",{configurable:!0,enumerable:!1,value:sj(t),writable:!0})}:zs;const uj=lj;var cj=800,fj=16,dj=Date.now;function hj(e){var t=0,r=0;return function(){var n=dj(),i=fj-(n-r);if(r=n,i>0){if(++t>=cj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pj=hj(uj);const gj=pj;function mj(e,t){return gj(aj(e,t,zs),e+"")}function vj(e,t,r){if(!fr(r))return!1;var n=typeof t;return(n=="number"?ki(r)&&nf(t,r.length):n=="string"&&t in r)?Ko(r[t],e):!1}function yj(e){return mj(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&vj(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t})}var bj=yj(function(e,t,r){Ov(e,t,r)});const Yt=bj;var ea=function(t){var r=t.zDepth,n=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,u=Se(Yt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":r===1});return g.createElement("div",{style:u.wrap},g.createElement("div",{style:u.bg}),g.createElement("div",{style:u.content},o))};ea.propTypes={background:T.string,zDepth:T.oneOf([0,1,2,3,4,5]),radius:T.number,styles:T.object},ea.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var xj=function(){return vr.Date.now()};const of=xj;var wj=/\s/;function Cj(e){for(var t=e.length;t--&&wj.test(e.charAt(t)););return t}var Sj=/^\s+/;function Ej(e){return e&&e.slice(0,Cj(e)+1).replace(Sj,"")}var Tj="[object Symbol]";function Vs(e){return typeof e=="symbol"||un(e)&&An(e)==Tj}var Mv=0/0,_j=/^[-+]0x[0-9a-f]+$/i,Oj=/^0b[01]+$/i,kj=/^0o[0-7]+$/i,Mj=parseInt;function Pv(e){if(typeof e=="number")return e;if(Vs(e))return Mv;if(fr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ej(e);var r=Oj.test(e);return r||kj.test(e)?Mj(e.slice(2),r?2:8):_j.test(e)?Mv:+e}var Pj="Expected a function",Aj=Math.max,Dj=Math.min;function ta(e,t,r){var n,i,o,a,s,u,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Pj);t=Pv(t)||0,fr(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Aj(Pv(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(_){var O=n,k=i;return n=i=void 0,l=_,a=e.apply(k,O),a}function m(_){return l=_,s=setTimeout(x,t),c?h(_):a}function p(_){var O=_-u,k=_-l,D=t-O;return f?Dj(D,o-k):D}function v(_){var O=_-u,k=_-l;return u===void 0||O>=t||O<0||f&&k>=o}function x(){var _=of();if(v(_))return b(_);s=setTimeout(x,p(_))}function b(_){return s=void 0,d&&n?h(_):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function E(){return s===void 0?a:b(of())}function w(){var _=of(),O=v(_);if(n=arguments,i=this,u=_,O){if(s===void 0)return m(u);if(f)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),a}return w.cancel=C,w.flush=E,w}var $j="Expected a function";function Av(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($j);return fr(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ta(e,t,{leading:n,maxWait:t,trailing:i})}var Ij=function(t,r,n){var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,u=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,l=s-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>a&&(c=a);var f=l/o,d=1-c/a;return{h:r.h,s:f,v:d,a:r.a,source:"hsv"}},Fj=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function jj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lj(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Rj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ws=function(e){Rj(t,e);function t(r){jj(this,t);var n=Lj(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(i){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,Ij(i,n.props.hsl,n.container),i)},n.handleMouseDown=function(i){n.handleChange(i);var o=n.getContainerRenderWindow();o.addEventListener("mousemove",n.handleChange),o.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=Av(function(i,o,a){i(o,a)},50),n}return Fj(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,i=window;!i.document.contains(n)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,i=this.props.style||{},o=i.color,a=i.white,s=i.black,u=i.pointer,l=i.circle,c=Se({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
122
122
|
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:u,circle:l}},{custom:!!this.props.style});return g.createElement("div",{style:c.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},g.createElement("style",null,`
|
|
123
123
|
.saturation-white {
|
|
124
124
|
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
@@ -129,7 +129,7 @@ const theme2 = createTheme({ palette: {
|
|
|
129
129
|
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
130
130
|
}
|
|
131
131
|
`),g.createElement("div",{style:c.white,className:"saturation-white"},g.createElement("div",{style:c.black,className:"saturation-black"}),g.createElement("div",{style:c.pointer},this.props.pointer?g.createElement(this.props.pointer,this.props):g.createElement("div",{style:c.circle}))))}}]),t}(g.PureComponent||g.Component);function Bj(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Nj=pv(Object.keys,Object);const zj=Nj;var Vj=Object.prototype,Wj=Vj.hasOwnProperty;function Hj(e){if(!Qc(e))return zj(e);var t=[];for(var r in Object(e))Wj.call(e,r)&&r!="constructor"&&t.push(r);return t}function af(e){return ki(e)?Tv(e):Hj(e)}function Uj(e,t){return e&&lv(e,t,af)}function Yj(e,t){return function(r,n){if(r==null)return r;if(!ki(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var Gj=Yj(Uj);const Dv=Gj;function qj(e){return typeof e=="function"?e:zs}function Kj(e,t){var r=tr(e)?Bj:Dv;return r(e,qj(t))}function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}var Xj=/^\s+/,Zj=/\s+$/;function he(e,t){if(e=e||"",t=t||{},e instanceof he)return e;if(!(this instanceof he))return new he(e,t);var r=Qj(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}he.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,o,a,s;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=Rv(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Iv(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Iv(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=$v(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=$v(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Fv(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return rL(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(dt(this._r,255)*100)+"%",g:Math.round(dt(this._g,255)*100)+"%",b:Math.round(dt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(dt(this._r,255)*100)+"%, "+Math.round(dt(this._g,255)*100)+"%, "+Math.round(dt(this._b,255)*100)+"%)":"rgba("+Math.round(dt(this._r,255)*100)+"%, "+Math.round(dt(this._g,255)*100)+"%, "+Math.round(dt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:pL[Fv(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+jv(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=he(t);n="#"+jv(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return he(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(aL,arguments)},brighten:function(){return this._applyModification(sL,arguments)},darken:function(){return this._applyModification(lL,arguments)},desaturate:function(){return this._applyModification(nL,arguments)},saturate:function(){return this._applyModification(iL,arguments)},greyscale:function(){return this._applyModification(oL,arguments)},spin:function(){return this._applyModification(uL,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(dL,arguments)},complement:function(){return this._applyCombination(cL,arguments)},monochromatic:function(){return this._applyCombination(hL,arguments)},splitcomplement:function(){return this._applyCombination(fL,arguments)},triad:function(){return this._applyCombination(Lv,[3])},tetrad:function(){return this._applyCombination(Lv,[4])}},he.fromRatio=function(e,t){if(Hs(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=ra(e[n]));e=r}return he(e,t)};function Qj(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=yL(e)),Hs(e)=="object"&&(Yr(e.r)&&Yr(e.g)&&Yr(e.b)?(t=Jj(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Yr(e.h)&&Yr(e.s)&&Yr(e.v)?(n=ra(e.s),i=ra(e.v),t=tL(e.h,n,i),a=!0,s="hsv"):Yr(e.h)&&Yr(e.s)&&Yr(e.l)&&(n=ra(e.s),o=ra(e.l),t=eL(e.h,n,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Rv(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Jj(e,t,r){return{r:dt(e,255)*255,g:dt(t,255)*255,b:dt(r,255)*255}}function $v(e,t,r){e=dt(e,255),t=dt(t,255),r=dt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=(n+i)/2;if(n==i)o=a=0;else{var u=n-i;switch(a=s>.5?u/(2-n-i):u/(n+i),n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,l:s}}function eL(e,t,r){var n,i,o;e=dt(e,360),t=dt(t,100),r=dt(r,100);function a(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(t===0)n=i=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Iv(e,t,r){e=dt(e,255),t=dt(t,255),r=dt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,a,s=n,u=n-i;if(a=n===0?0:u/n,n==i)o=0;else{switch(n){case e:o=(t-r)/u+(t<r?6:0);break;case t:o=(r-e)/u+2;break;case r:o=(e-t)/u+4;break}o/=6}return{h:o,s:a,v:s}}function tL(e,t,r){e=dt(e,360)*6,t=dt(t,100),r=dt(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),u=n%6,l=[r,a,o,o,s,r][u],c=[s,r,r,a,o,o][u],f=[o,o,s,r,r,a][u];return{r:l*255,g:c*255,b:f*255}}function Fv(e,t,r,n){var i=[yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function rL(e,t,r,n,i){var o=[yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16)),yr(Bv(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function jv(e,t,r,n){var i=[yr(Bv(n)),yr(Math.round(e).toString(16)),yr(Math.round(t).toString(16)),yr(Math.round(r).toString(16))];return i.join("")}he.equals=function(e,t){return!e||!t?!1:he(e).toRgbString()==he(t).toRgbString()},he.random=function(){return he.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s-=t/100,r.s=Us(r.s),he(r)}function iL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.s+=t/100,r.s=Us(r.s),he(r)}function oL(e){return he(e).desaturate(100)}function aL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l+=t/100,r.l=Us(r.l),he(r)}function sL(e,t){t=t===0?0:t||10;var r=he(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),he(r)}function lL(e,t){t=t===0?0:t||10;var r=he(e).toHsl();return r.l-=t/100,r.l=Us(r.l),he(r)}function uL(e,t){var r=he(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,he(r)}function cL(e){var t=he(e).toHsl();return t.h=(t.h+180)%360,he(t)}function Lv(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=he(e).toHsl(),n=[he(e)],i=360/t,o=1;o<t;o++)n.push(he({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function fL(e){var t=he(e).toHsl(),r=t.h;return[he(e),he({h:(r+72)%360,s:t.s,l:t.l}),he({h:(r+216)%360,s:t.s,l:t.l})]}function dL(e,t,r){t=t||6,r=r||30;var n=he(e).toHsl(),i=360/r,o=[he(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(he(n));return o}function hL(e,t){t=t||6;for(var r=he(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(he({h:n,s:i,v:o})),o=(o+s)%1;return a}he.mix=function(e,t,r){r=r===0?0:r||50;var n=he(e).toRgb(),i=he(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return he(a)},he.readability=function(e,t){var r=he(e),n=he(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},he.isReadable=function(e,t,r){var n=he.readability(e,t),i,o;switch(o=!1,i=bL(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},he.mostReadable=function(e,t,r){var n=null,i=0,o,a,s,u;r=r||{},a=r.includeFallbackColors,s=r.level,u=r.size;for(var l=0;l<t.length;l++)o=he.readability(e,t[l]),o>i&&(i=o,n=he(t[l]));return he.isReadable(e,n,{level:s,size:u})||!a?n:(r.includeFallbackColors=!1,he.mostReadable(e,["#fff","#000"],r))};var sf=he.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pL=he.hexNames=gL(sf);function gL(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Rv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dt(e,t){mL(e)&&(e="100%");var r=vL(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Us(e){return Math.min(1,Math.max(0,e))}function rr(e){return parseInt(e,16)}function mL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function vL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function yr(e){return e.length==1?"0"+e:""+e}function ra(e){return e<=1&&(e=e*100+"%"),e}function Bv(e){return Math.round(parseFloat(e)*255).toString(16)}function Nv(e){return rr(e)/255}var br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Yr(e){return!!br.CSS_UNIT.exec(e)}function yL(e){e=e.replace(Xj,"").replace(Zj,"").toLowerCase();var t=!1;if(sf[e])e=sf[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=br.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=br.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=br.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=br.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=br.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=br.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=br.hex8.exec(e))?{r:rr(r[1]),g:rr(r[2]),b:rr(r[3]),a:Nv(r[4]),format:t?"name":"hex8"}:(r=br.hex6.exec(e))?{r:rr(r[1]),g:rr(r[2]),b:rr(r[3]),format:t?"name":"hex"}:(r=br.hex4.exec(e))?{r:rr(r[1]+""+r[1]),g:rr(r[2]+""+r[2]),b:rr(r[3]+""+r[3]),a:Nv(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=br.hex3.exec(e))?{r:rr(r[1]+""+r[1]),g:rr(r[2]+""+r[2]),b:rr(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function bL(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var zv=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,i=0;return Kj(r,function(o){if(t[o]&&(n+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),n===i?t:!1},na=function(t,r){var n=t.hex?he(t.hex):he(t),i=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();i.s===0&&(i.h=r||0,o.h=r||0);var u=s==="000000"&&a.a===0;return{hsl:i,hex:u?"transparent":"#"+s,rgb:a,hsv:o,oldHue:t.h||r||i.h,source:t.source}},cn=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&he(t).isValid()},lf=function(t){if(!t)return"#fff";var r=na(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},uf=function(t,r){var n=t.replace("°","");return he(r+" ("+n+")")._ok},ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function wL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CL(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function SL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Gt=function(t){var r=function(n){SL(i,n);function i(o){wL(this,i);var a=CL(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.handleChange=function(s,u){var l=zv(s);if(l){var c=na(s,s.h||a.state.oldHue);a.setState(c),a.props.onChangeComplete&&a.debounce(a.props.onChangeComplete,c,u),a.props.onChange&&a.props.onChange(c,u)}},a.handleSwatchHover=function(s,u){var l=zv(s);if(l){var c=na(s,s.h||a.state.oldHue);a.props.onSwatchHover&&a.props.onSwatchHover(c,u)}},a.state=ia({},na(o.color,0)),a.debounce=ta(function(s,u,l){s(u,l)},100),a}return xL(i,[{key:"render",value:function(){var a={};return this.props.onSwatchHover&&(a.onSwatchHover=this.handleSwatchHover),g.createElement(t,ia({},this.props,this.state,{onChange:this.handleChange},a))}}],[{key:"getDerivedStateFromProps",value:function(a,s){return ia({},na(a.color,s.oldHue))}}]),i}(g.PureComponent||g.Component);return r.propTypes=ia({},t.propTypes),r.defaultProps=ia({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},EL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TL=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vv(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function OL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var kL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){OL(i,n);function i(){var o,a,s,u;_L(this,i);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(a=(s=Vv(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},a),Vv(s,u)}return TL(i,[{key:"render",value:function(){return g.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},g.createElement(t,EL({},this.props,this.state)))}}]),i}(g.Component)},Wv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ML=13,PL=function(t){var r=t.color,n=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,u=s===void 0?r:s,l=t.children,c=t.focus,f=t.focusStyle,d=f===void 0?{}:f,h=r==="transparent",m=Se({default:{swatch:Wv({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?d:{})}}),p=function(E){return o(r,E)},v=function(E){return E.keyCode===ML&&o(r,E)},x=function(E){return a(r,E)},b={};return a&&(b.onMouseOver=x),g.createElement("div",Wv({style:m.swatch,onClick:p,title:u,tabIndex:0,onKeyDown:v},b),l,h&&g.createElement(_i,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Fn=kL(PL);var AL=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},DL=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hv=function(t){var r=t.rgb,n=t.hsl,i=t.width,o=t.height,a=t.onChange,s=t.direction,u=t.style,l=t.renderers,c=t.pointer,f=t.className,d=f===void 0?"":f,h=Se({default:{picker:{position:"relative",width:i,height:o},alpha:{radius:"2px",style:u}}});return g.createElement("div",{style:h.picker,className:"alpha-picker "+d},g.createElement(Gc,DL({},h.alpha,{rgb:r,hsl:n,pointer:c,renderers:l,onChange:a,direction:s})))};Hv.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:AL},Gt(Hv);function Uv(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var $L="__lodash_hash_undefined__";function IL(e){return this.__data__.set(e,$L),this}function FL(e){return this.__data__.has(e)}function Ys(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ur;++t<r;)this.add(e[t])}Ys.prototype.add=Ys.prototype.push=IL,Ys.prototype.has=FL;function jL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function LL(e,t){return e.has(t)}var RL=1,BL=2;function Yv(e,t,r,n,i,o){var a=r&RL,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&BL?new Ys:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],p=t[f];if(n)var v=a?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!jL(t,function(x,b){if(!LL(h,b)&&(m===x||i(m,x,r,n,o)))return h.push(b)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function NL(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function zL(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VL=1,WL=2,HL="[object Boolean]",UL="[object Date]",YL="[object Error]",GL="[object Map]",qL="[object Number]",KL="[object RegExp]",XL="[object Set]",ZL="[object String]",QL="[object Symbol]",JL="[object ArrayBuffer]",eR="[object DataView]",Gv=ln?ln.prototype:void 0,cf=Gv?Gv.valueOf:void 0;function tR(e,t,r,n,i,o,a){switch(r){case eR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JL:return!(e.byteLength!=t.byteLength||!o(new Rs(e),new Rs(t)));case HL:case UL:case qL:return Ko(+e,+t);case YL:return e.name==t.name&&e.message==t.message;case KL:case ZL:return e==t+"";case GL:var s=NL;case XL:var u=n&VL;if(s||(s=zL),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=WL,a.set(e,t);var c=Yv(s(e),s(t),n,i,o,a);return a.delete(e),c;case QL:if(cf)return cf.call(e)==cf.call(t)}return!1}function rR(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function nR(e,t,r){var n=t(e);return tr(e)?n:rR(n,r(e))}function iR(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function oR(){return[]}var aR=Object.prototype,sR=aR.propertyIsEnumerable,qv=Object.getOwnPropertySymbols,lR=qv?function(e){return e==null?[]:(e=Object(e),iR(qv(e),function(t){return sR.call(e,t)}))}:oR;const uR=lR;function Kv(e){return nR(e,af,uR)}var cR=1,fR=Object.prototype,dR=fR.hasOwnProperty;function hR(e,t,r,n,i,o){var a=r&cR,s=Kv(e),u=s.length,l=Kv(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var d=s[f];if(!(a?d in t:dR.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var p=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<u;){d=s[f];var x=e[d],b=t[d];if(n)var C=a?n(b,x,d,t,e,o):n(x,b,d,e,t,o);if(!(C===void 0?x===b||i(x,b,r,n,o):C)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}var pR=$n(vr,"DataView");const ff=pR;var gR=$n(vr,"Promise");const df=gR;var mR=$n(vr,"Set");const hf=mR;var vR=$n(vr,"WeakMap");const pf=vR;var Xv="[object Map]",yR="[object Object]",Zv="[object Promise]",Qv="[object Set]",Jv="[object WeakMap]",e1="[object DataView]",bR=Dn(ff),xR=Dn(Zo),wR=Dn(df),CR=Dn(hf),SR=Dn(pf),jn=An;(ff&&jn(new ff(new ArrayBuffer(1)))!=e1||Zo&&jn(new Zo)!=Xv||df&&jn(df.resolve())!=Zv||hf&&jn(new hf)!=Qv||pf&&jn(new pf)!=Jv)&&(jn=function(e){var t=An(e),r=t==yR?e.constructor:void 0,n=r?Dn(r):"";if(n)switch(n){case bR:return e1;case xR:return Xv;case wR:return Zv;case CR:return Qv;case SR:return Jv}return t});const t1=jn;var ER=1,r1="[object Arguments]",n1="[object Array]",Gs="[object Object]",TR=Object.prototype,i1=TR.hasOwnProperty;function _R(e,t,r,n,i,o){var a=tr(e),s=tr(t),u=a?n1:t1(e),l=s?n1:t1(t);u=u==r1?Gs:u,l=l==r1?Gs:l;var c=u==Gs,f=l==Gs,d=u==l;if(d&&Ns(e)){if(!Ns(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Mr),a||tf(e)?Yv(e,t,r,n,i,o):tR(e,t,u,r,n,i,o);if(!(r&ER)){var h=c&&i1.call(e,"__wrapped__"),m=f&&i1.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,v=m?t.value():t;return o||(o=new Mr),i(p,v,r,n,o)}}return d?(o||(o=new Mr),hR(e,t,r,n,i,o)):!1}function gf(e,t,r,n,i){return e===t?!0:e==null||t==null||!un(e)&&!un(t)?e!==e&&t!==t:_R(e,t,r,n,gf,i)}var OR=1,kR=2;function MR(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new Mr;if(n)var d=n(l,c,u,e,t,f);if(!(d===void 0?gf(c,l,OR|kR,n,f):d))return!1}}return!0}function o1(e){return e===e&&!fr(e)}function PR(e){for(var t=af(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,o1(i)]}return t}function a1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function AR(e){var t=PR(e);return t.length==1&&t[0][2]?a1(t[0][0],t[0][1]):function(r){return r===e||MR(r,e,t)}}var DR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$R=/^\w*$/;function mf(e,t){if(tr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Vs(e)?!0:$R.test(e)||!DR.test(e)||t!=null&&e in Object(t)}var IR="Expected a function";function vf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(IR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(vf.Cache||Ur),r}vf.Cache=Ur;var FR=500;function jR(e){var t=vf(e,function(n){return r.size===FR&&r.clear(),n}),r=t.cache;return t}var LR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RR=/\\(\\)?/g,BR=jR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LR,function(r,n,i,o){t.push(i?o.replace(RR,"$1"):n||r)}),t});const NR=BR;var zR=1/0,s1=ln?ln.prototype:void 0,l1=s1?s1.toString:void 0;function u1(e){if(typeof e=="string")return e;if(tr(e))return Uv(e,u1)+"";if(Vs(e))return l1?l1.call(e):"";var t=e+"";return t=="0"&&1/e==-zR?"-0":t}function VR(e){return e==null?"":u1(e)}function c1(e,t){return tr(e)?e:mf(e,t)?[e]:NR(VR(e))}var WR=1/0;function qs(e){if(typeof e=="string"||Vs(e))return e;var t=e+"";return t=="0"&&1/e==-WR?"-0":t}function f1(e,t){t=c1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qs(t[r++])];return r&&r==n?e:void 0}function HR(e,t,r){var n=e==null?void 0:f1(e,t);return n===void 0?r:n}function UR(e,t){return e!=null&&t in Object(e)}function YR(e,t,r){t=c1(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=qs(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Jc(i)&&nf(a,i)&&(tr(e)||Bs(e)))}function GR(e,t){return e!=null&&YR(e,t,UR)}var qR=1,KR=2;function XR(e,t){return mf(e)&&o1(t)?a1(qs(e),t):function(r){var n=HR(r,e);return n===void 0&&n===t?GR(r,e):gf(t,n,qR|KR)}}function ZR(e){return function(t){return t==null?void 0:t[e]}}function QR(e){return function(t){return f1(t,e)}}function JR(e){return mf(e)?ZR(qs(e)):QR(e)}function eB(e){return typeof e=="function"?e:e==null?zs:typeof e=="object"?tr(e)?XR(e[0],e[1]):AR(e):JR(e)}function tB(e,t){var r=-1,n=ki(e)?Array(e.length):[];return Dv(e,function(i,o,a){n[++r]=t(i,o,a)}),n}function Ln(e,t){var r=tr(e)?Uv:tB;return r(e,eB(t))}var rB=function(t){var r=t.colors,n=t.onClick,i=t.onSwatchHover,o=Se({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return g.createElement("div",{style:o.swatches},Ln(r,function(a){return g.createElement(Fn,{key:a,color:a,style:o.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+a}})}),g.createElement("div",{style:o.clear}))},yf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=i==="transparent",h=function(v,x){cn(v)&&r({hex:v,source:"hex"},x)},m=Se(Yt({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:lf(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return g.createElement("div",{style:m.card,className:"block-picker "+f},g.createElement("div",{style:m.triangle}),g.createElement("div",{style:m.head},d&&g.createElement(_i,{borderRadius:"6px 6px 0 0"}),g.createElement("div",{style:m.label},i)),g.createElement("div",{style:m.body},g.createElement(rB,{colors:o,onClick:h,onSwatchHover:n}),g.createElement(je,{style:{input:m.input},value:i,onChange:h})))};yf.propTypes={width:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.string),triangle:T.oneOf(["top","hide"]),styles:T.object},yf.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},Gt(yf);var Mi={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"},Pi={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Ai={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"},Di={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},$i={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Ii={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"},Fi={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"},ji={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Li={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},oa={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"},Ri={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},Bi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Ni={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},zi={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Vi={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"},Wi={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Hi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Ui={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},d1=function(t){var r=t.color,n=t.onClick,i=t.onSwatchHover,o=t.hover,a=t.active,s=t.circleSize,u=t.circleSpacing,l=Se({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:o,active:a});return g.createElement("div",{style:l.swatch},g.createElement(Fn,{style:l.Swatch,color:r,onClick:n,onHover:i,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+r}}))};d1.defaultProps={circleSize:28,circleSpacing:14};const nB=Uc(d1);var bf=function(t){var r=t.width,n=t.onChange,i=t.onSwatchHover,o=t.colors,a=t.hex,s=t.circleSize,u=t.styles,l=u===void 0?{}:u,c=t.circleSpacing,f=t.className,d=f===void 0?"":f,h=Se(Yt({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),m=function(v,x){return n({hex:v,source:"hex"},x)};return g.createElement("div",{style:h.card,className:"circle-picker "+d},Ln(o,function(p){return g.createElement(nB,{key:p,color:p,onClick:m,onSwatchHover:i,active:a===p.toLowerCase(),circleSize:s,circleSpacing:c})}))};bf.propTypes={width:T.oneOfType([T.string,T.number]),circleSize:T.number,circleSpacing:T.number,styles:T.object},bf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Mi[500],Pi[500],Ai[500],Di[500],$i[500],Ii[500],Fi[500],ji[500],Li[500],oa[500],Ri[500],Bi[500],Ni[500],zi[500],Vi[500],Wi[500],Hi[500],Ui[500]],styles:{}},Gt(bf);function h1(e){return e===void 0}var p1={};Object.defineProperty(p1,"__esModule",{value:!0});var g1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iB=g,m1=oB(iB);function oB(e){return e&&e.__esModule?e:{default:e}}function aB(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ks=24,sB=p1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Ks:n,o=e.height,a=o===void 0?Ks:o,s=e.style,u=s===void 0?{}:s,l=aB(e,["fill","width","height","style"]);return m1.default.createElement("svg",g1({viewBox:"0 0 "+Ks+" "+Ks,style:g1({fill:r,width:i,height:a},u)},l),m1.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},lB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function uB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function fB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v1=function(e){fB(t,e);function t(r){uB(this,t);var n=cB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(i,o){i.hex?cn(i.hex)&&n.props.onChange({hex:i.hex,source:"hex"},o):i.r||i.g||i.b?n.props.onChange({r:i.r||n.props.rgb.r,g:i.g||n.props.rgb.g,b:i.b||n.props.rgb.b,source:"rgb"},o):i.a?(i.a<0?i.a=0:i.a>1&&(i.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},o)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),n.props.onChange({h:i.h||n.props.hsl.h,s:Number(h1(i.s)?n.props.hsl.s:i.s),l:Number(h1(i.l)?n.props.hsl.l:i.l),source:"hsl"},o))},n.showHighlight=function(i){i.currentTarget.style.background="#eee"},n.hideHighlight=function(i){i.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return lB(t,[{key:"render",value:function(){var n=this,i=Se({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=g.createElement("div",{style:i.fields,className:"flexbox-fix"},g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.field},g.createElement(je,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),g.createElement("div",{style:i.alpha},g.createElement(je,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),g.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,g.createElement("div",{style:i.toggle},g.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},g.createElement(sB,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),t}(g.Component);v1.defaultProps={view:"hex"};var y1=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},dB=function(){var t=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return g.createElement("div",{style:t.picker})},xf=function(t){var r=t.width,n=t.onChange,i=t.disableAlpha,o=t.rgb,a=t.hsl,s=t.hsv,u=t.hex,l=t.renderers,c=t.styles,f=c===void 0?{}:c,d=t.className,h=d===void 0?"":d,m=t.defaultView,p=Se(Yt({default:{picker:{width:r,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:i});return g.createElement("div",{style:p.picker,className:"chrome-picker "+h},g.createElement("div",{style:p.saturation},g.createElement(Ws,{style:p.Saturation,hsl:a,hsv:s,pointer:dB,onChange:n})),g.createElement("div",{style:p.body},g.createElement("div",{style:p.controls,className:"flexbox-fix"},g.createElement("div",{style:p.color},g.createElement("div",{style:p.swatch},g.createElement("div",{style:p.active}),g.createElement(_i,{renderers:l}))),g.createElement("div",{style:p.toggles},g.createElement("div",{style:p.hue},g.createElement(Oi,{style:p.Hue,hsl:a,pointer:y1,onChange:n})),g.createElement("div",{style:p.alpha},g.createElement(Gc,{style:p.Alpha,rgb:o,hsl:a,pointer:y1,renderers:l,onChange:n})))),g.createElement(v1,{rgb:o,hsl:a,hex:u,view:m,onChange:n,disableAlpha:i})))};xf.propTypes={width:T.oneOfType([T.string,T.number]),disableAlpha:T.bool,styles:T.object,defaultView:T.oneOf(["hex","rgb","hsl"])},xf.defaultProps={width:225,disableAlpha:!1,styles:{}};const hB=Gt(xf);var pB=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.active,s=Se({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:lf(r),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Fn,{style:s.color,color:r,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:s.dot}))},gB=function(t){var r=t.hex,n=t.rgb,i=t.onChange,o=Se({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(u,l){u.r||u.g||u.b?i({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):i({hex:u.hex,source:"hex"},l)};return g.createElement("div",{style:o.fields,className:"flexbox-fix"},g.createElement("div",{style:o.active}),g.createElement(je,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:a}),g.createElement(je,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:a}))},wf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.colors,o=t.hex,a=t.rgb,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Yt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),d=function(m,p){m.hex?cn(m.hex)&&r({hex:m.hex,source:"hex"},p):r(m,p)};return g.createElement(ea,{style:f.Compact,styles:u},g.createElement("div",{style:f.compact,className:"compact-picker "+c},g.createElement("div",null,Ln(i,function(h){return g.createElement(pB,{key:h,color:h,active:h.toLowerCase()===o,onClick:d,onSwatchHover:n})}),g.createElement("div",{style:f.clear})),g.createElement(gB,{hex:o,rgb:a,onChange:d})))};wf.propTypes={colors:T.arrayOf(T.string),styles:T.object},wf.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},Gt(wf);var mB=function(t){var r=t.hover,n=t.color,i=t.onClick,o=t.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Se({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:r});return g.createElement("div",{style:s.swatch},g.createElement(Fn,{color:n,onClick:i,onHover:o,focusStyle:a}))};const vB=Uc(mB);var Cf=function(t){var r=t.width,n=t.colors,i=t.onChange,o=t.onSwatchHover,a=t.triangle,s=t.styles,u=s===void 0?{}:s,l=t.className,c=l===void 0?"":l,f=Se(Yt({default:{card:{width:r,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":a==="hide","top-left-triangle":a==="top-left","top-right-triangle":a==="top-right","bottom-left-triangle":a==="bottom-left","bottom-right-triangle":a==="bottom-right"}),d=function(m,p){return i({hex:m,source:"hex"},p)};return g.createElement("div",{style:f.card,className:"github-picker "+c},g.createElement("div",{style:f.triangleShadow}),g.createElement("div",{style:f.triangle}),Ln(n,function(h){return g.createElement(vB,{color:h,key:h,onClick:d,onSwatchHover:o})}))};Cf.propTypes={width:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.string),triangle:T.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:T.object},Cf.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},Gt(Cf);var yB=function(t){var r=t.direction,n=Se({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:r==="vertical"});return g.createElement("div",{style:n.picker})},bB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.hsl,a=t.direction,s=t.pointer,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},l)),h=function(p){return i({a:1,h:p.h,l:.5,s:1})};return g.createElement("div",{style:d.picker,className:"hue-picker "+f},g.createElement(Oi,bB({},d.hue,{hsl:o,pointer:s,onChange:h,direction:a})))};Sf.propTypes={styles:T.object},Sf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:yB,styles:{}},Gt(Sf);var xB=function(t){var r=t.onChange,n=t.hex,i=t.rgb,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Yt({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),c=function(d,h){d.hex?cn(d.hex)&&r({hex:d.hex,source:"hex"},h):(d.r||d.g||d.b)&&r({r:d.r||i.r,g:d.g||i.g,b:d.b||i.b,source:"rgb"},h)};return g.createElement(ea,{styles:a},g.createElement("div",{style:l.material,className:"material-picker "+u},g.createElement(je,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),g.createElement("div",{style:l.split,className:"flexbox-fix"},g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:i.r,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:i.g,onChange:c})),g.createElement("div",{style:l.third},g.createElement(je,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:i.b,onChange:c})))))};Gt(xB);var wB=function(t){var r=t.onChange,n=t.rgb,i=t.hsv,o=t.hex,a=Se({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?cn(l["#"])&&r({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?r({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&r({h:l.h||i.h,s:l.s||i.s,v:l.v||i.v,source:"hsv"},c)};return g.createElement("div",{style:a.fields},g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(i.h),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(i.s*100),onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(i.v*100),onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),g.createElement(je,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),g.createElement("div",{style:a.divider}),g.createElement(je,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:o.replace("#",""),onChange:s}),g.createElement("div",{style:a.fieldSymbols},g.createElement("div",{style:a.symbol},"°"),g.createElement("div",{style:a.symbol},"%"),g.createElement("div",{style:a.symbol},"%")))},CB=function(t){var r=t.hsl,n=Se({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":r.l>.5});return g.createElement("div",{style:n.picker})},SB=function(){var t=Se({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return g.createElement("div",{style:t.pointer},g.createElement("div",{style:t.left},g.createElement("div",{style:t.leftInside})),g.createElement("div",{style:t.right},g.createElement("div",{style:t.rightInside})))},b1=function(t){var r=t.onClick,n=t.label,i=t.children,o=t.active,a=Se({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return g.createElement("div",{style:a.button,onClick:r},n||i)},EB=function(t){var r=t.rgb,n=t.currentColor,i=Se({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return g.createElement("div",null,g.createElement("div",{style:i.label},"new"),g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.new}),g.createElement("div",{style:i.current})),g.createElement("div",{style:i.label},"current"))},TB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ef=function(e){kB(t,e);function t(r){_B(this,t);var n=OB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return TB(t,[{key:"render",value:function(){var n=this.props,i=n.styles,o=i===void 0?{}:i,a=n.className,s=a===void 0?"":a,u=Se(Yt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},o));return g.createElement("div",{style:u.picker,className:"photoshop-picker "+s},g.createElement("div",{style:u.head},this.props.header),g.createElement("div",{style:u.body,className:"flexbox-fix"},g.createElement("div",{style:u.saturation},g.createElement(Ws,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:CB,onChange:this.props.onChange})),g.createElement("div",{style:u.hue},g.createElement(Oi,{direction:"vertical",hsl:this.props.hsl,pointer:SB,onChange:this.props.onChange})),g.createElement("div",{style:u.controls},g.createElement("div",{style:u.top,className:"flexbox-fix"},g.createElement("div",{style:u.previews},g.createElement(EB,{rgb:this.props.rgb,currentColor:this.state.currentColor})),g.createElement("div",{style:u.actions},g.createElement(b1,{label:"OK",onClick:this.props.onAccept,active:!0}),g.createElement(b1,{label:"Cancel",onClick:this.props.onCancel}),g.createElement(wB,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(g.Component);Ef.propTypes={header:T.string,styles:T.object},Ef.defaultProps={header:"Color Picker",styles:{}},Gt(Ef);var MB=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Se({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),u=function(c,f){c.hex?cn(c.hex)&&r({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,r({h:i.h,s:i.s,l:i.l,a:c.a,source:"rgb"},f))};return g.createElement("div",{style:s.fields,className:"flexbox-fix"},g.createElement("div",{style:s.double},g.createElement(je,{style:{input:s.input,label:s.label},label:"hex",value:o.replace("#",""),onChange:u})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.single},g.createElement(je,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),g.createElement("div",{style:s.alpha},g.createElement(je,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},PB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x1=function(t){var r=t.colors,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=Se({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!r||!r.length}),s=function(l,c){i({hex:l,source:"hex"},c)};return g.createElement("div",{style:a.colors,className:"flexbox-fix"},r.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return g.createElement("div",{key:c,style:a.swatchWrap},g.createElement(Fn,PB({},l,{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};x1.propTypes={colors:T.arrayOf(T.oneOfType([T.string,T.shape({color:T.string,title:T.string})])).isRequired};var AB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf=function(t){var r=t.width,n=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,u=t.onSwatchHover,l=t.disableAlpha,c=t.presetColors,f=t.renderers,d=t.styles,h=d===void 0?{}:d,m=t.className,p=m===void 0?"":m,v=Se(Yt({default:AB({picker:{width:r,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:l});return g.createElement("div",{style:v.picker,className:"sketch-picker "+p},g.createElement("div",{style:v.saturation},g.createElement(Ws,{style:v.Saturation,hsl:a,hsv:o,onChange:s})),g.createElement("div",{style:v.controls,className:"flexbox-fix"},g.createElement("div",{style:v.sliders},g.createElement("div",{style:v.hue},g.createElement(Oi,{style:v.Hue,hsl:a,onChange:s})),g.createElement("div",{style:v.alpha},g.createElement(Gc,{style:v.Alpha,rgb:n,hsl:a,renderers:f,onChange:s}))),g.createElement("div",{style:v.color},g.createElement(_i,null),g.createElement("div",{style:v.activeColor}))),g.createElement(MB,{rgb:n,hsl:a,hex:i,onChange:s,disableAlpha:l}),g.createElement(x1,{colors:c,onClick:s,onSwatchHover:u}))};Tf.propTypes={disableAlpha:T.bool,width:T.oneOfType([T.string,T.number]),styles:T.object},Tf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},Gt(Tf);var aa=function(t){var r=t.hsl,n=t.offset,i=t.onClick,o=i===void 0?function(){}:i,a=t.active,s=t.first,u=t.last,l=Se({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:u}),c=function(d){return o({h:r.h,s:.5,l:n,source:"hsl"},d)};return g.createElement("div",{style:l.swatch,onClick:c})},DB=function(t){var r=t.onClick,n=t.hsl,i=Se({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return g.createElement("div",{style:i.swatches},g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:r,first:!0})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:r})),g.createElement("div",{style:i.swatch},g.createElement(aa,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:r,last:!0})),g.createElement("div",{style:i.clear}))},$B=function(){var t=Se({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return g.createElement("div",{style:t.picker})},_f=function(t){var r=t.hsl,n=t.onChange,i=t.pointer,o=t.styles,a=o===void 0?{}:o,s=t.className,u=s===void 0?"":s,l=Se(Yt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return g.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},g.createElement("div",{style:l.hue},g.createElement(Oi,{style:l.Hue,hsl:r,pointer:i,onChange:n})),g.createElement("div",{style:l.swatches},g.createElement(DB,{hsl:r,onClick:n})))};_f.propTypes={styles:T.object},_f.defaultProps={pointer:$B,styles:{}},Gt(_f);var w1={};Object.defineProperty(w1,"__esModule",{value:!0});var C1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IB=g,S1=FB(IB);function FB(e){return e&&e.__esModule?e:{default:e}}function jB(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Xs=24,LB=w1.default=function(e){var t=e.fill,r=t===void 0?"currentColor":t,n=e.width,i=n===void 0?Xs:n,o=e.height,a=o===void 0?Xs:o,s=e.style,u=s===void 0?{}:s,l=jB(e,["fill","width","height","style"]);return S1.default.createElement("svg",C1({viewBox:"0 0 "+Xs+" "+Xs,style:C1({fill:r,width:i,height:a},u)},l),S1.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},RB=function(t){var r=t.color,n=t.onClick,i=n===void 0?function(){}:n,o=t.onSwatchHover,a=t.first,s=t.last,u=t.active,l=Se({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:lf(r),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:u,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return g.createElement(Fn,{color:r,style:l.color,onClick:i,onHover:o,focusStyle:{boxShadow:"0 0 4px "+r}},g.createElement("div",{style:l.check},g.createElement(LB,null)))},BB=function(t){var r=t.onClick,n=t.onSwatchHover,i=t.group,o=t.active,a=Se({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return g.createElement("div",{style:a.group},Ln(i,function(s,u){return g.createElement(RB,{key:s,color:s,active:s.toLowerCase()===o,first:u===0,last:u===i.length-1,onClick:r,onSwatchHover:n})}))},Of=function(t){var r=t.width,n=t.height,i=t.onChange,o=t.onSwatchHover,a=t.colors,s=t.hex,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),h=function(p,v){return i({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.picker,className:"swatches-picker "+f},g.createElement(ea,null,g.createElement("div",{style:d.overflow},g.createElement("div",{style:d.body},Ln(a,function(m){return g.createElement(BB,{key:m.toString(),group:m,active:s,onClick:h,onSwatchHover:o})}),g.createElement("div",{style:d.clear})))))};Of.propTypes={width:T.oneOfType([T.string,T.number]),height:T.oneOfType([T.string,T.number]),colors:T.arrayOf(T.arrayOf(T.string)),styles:T.object},Of.defaultProps={width:320,height:240,colors:[[Mi[900],Mi[700],Mi[500],Mi[300],Mi[100]],[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Ai[900],Ai[700],Ai[500],Ai[300],Ai[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],[$i[900],$i[700],$i[500],$i[300],$i[100]],[Ii[900],Ii[700],Ii[500],Ii[300],Ii[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[ji[900],ji[700],ji[500],ji[300],ji[100]],[Li[900],Li[700],Li[500],Li[300],Li[100]],["#194D33",oa[700],oa[500],oa[300],oa[100]],[Ri[900],Ri[700],Ri[500],Ri[300],Ri[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[Ni[900],Ni[700],Ni[500],Ni[300],Ni[100]],[zi[900],zi[700],zi[500],zi[300],zi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},Gt(Of);var kf=function(t){var r=t.onChange,n=t.onSwatchHover,i=t.hex,o=t.colors,a=t.width,s=t.triangle,u=t.styles,l=u===void 0?{}:u,c=t.className,f=c===void 0?"":c,d=Se(Yt({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),h=function(p,v){cn(p)&&r({hex:p,source:"hex"},v)};return g.createElement("div",{style:d.card,className:"twitter-picker "+f},g.createElement("div",{style:d.triangleShadow}),g.createElement("div",{style:d.triangle}),g.createElement("div",{style:d.body},Ln(o,function(m,p){return g.createElement(Fn,{key:p,color:m,hex:m,style:d.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+m}})}),g.createElement("div",{style:d.hash},"#"),g.createElement(je,{label:null,style:{input:d.input},value:i.replace("#",""),onChange:h}),g.createElement("div",{style:d.clear})))};kf.propTypes={width:T.oneOfType([T.string,T.number]),triangle:T.oneOf(["hide","top-left","top-right"]),colors:T.arrayOf(T.string),styles:T.object},kf.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},Gt(kf);var Mf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return g.createElement("div",{style:r.picker})};Mf.propTypes={hsl:T.shape({h:T.number,s:T.number,l:T.number,a:T.number})},Mf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var Pf=function(t){var r=Se({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return g.createElement("div",{style:r.picker})};Pf.propTypes={hsl:T.shape({h:T.number,s:T.number,l:T.number,a:T.number})},Pf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var NB=function(t){var r=t.onChange,n=t.rgb,i=t.hsl,o=t.hex,a=t.hsv,s=function(h,m){if(h.hex)cn(h.hex)&&r({hex:h.hex,source:"hex"},m);else if(h.rgb){var p=h.rgb.split(",");uf(h.rgb,"rgb")&&r({r:p[0],g:p[1],b:p[2],a:1,source:"rgb"},m)}else if(h.hsv){var v=h.hsv.split(",");uf(h.hsv,"hsv")&&(v[2]=v[2].replace("%",""),v[1]=v[1].replace("%",""),v[0]=v[0].replace("°",""),v[1]==1?v[1]=.01:v[2]==1&&(v[2]=.01),r({h:Number(v[0]),s:Number(v[1]),v:Number(v[2]),source:"hsv"},m))}else if(h.hsl){var x=h.hsl.split(",");uf(h.hsl,"hsl")&&(x[2]=x[2].replace("%",""),x[1]=x[1].replace("%",""),x[0]=x[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),r({h:Number(x[0]),s:Number(x[1]),v:Number(x[2]),source:"hsl"},m))}},u=Se({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(i.h)+"°, "+Math.round(i.s*100)+"%, "+Math.round(i.l*100)+"%",f=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.v*100)+"%";return g.createElement("div",{style:u.wrap,className:"flexbox-fix"},g.createElement("div",{style:u.fields},g.createElement("div",{style:u.double},g.createElement(je,{style:{input:u.input,label:u.label},label:"hex",value:o,onChange:s})),g.createElement("div",{style:u.column},g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),g.createElement("div",{style:u.single},g.createElement(je,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},Af=function(t){var r=t.width,n=t.onChange,i=t.rgb,o=t.hsl,a=t.hsv,s=t.hex,u=t.header,l=t.styles,c=l===void 0?{}:l,f=t.className,d=f===void 0?"":f,h=Se(Yt({default:{picker:{width:r,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return g.createElement("div",{style:h.picker,className:"google-picker "+d},g.createElement("div",{style:h.head},u),g.createElement("div",{style:h.swatch}),g.createElement("div",{style:h.saturation},g.createElement(Ws,{hsl:o,hsv:a,pointer:Mf,onChange:n})),g.createElement("div",{style:h.body},g.createElement("div",{style:h.controls,className:"flexbox-fix"},g.createElement("div",{style:h.hue},g.createElement(Oi,{style:h.Hue,hsl:o,radius:"4px",pointer:Pf,onChange:n}))),g.createElement(NB,{rgb:i,hsl:o,hex:s,hsv:a,onChange:n})))};Af.propTypes={width:T.oneOfType([T.string,T.number]),styles:T.object,header:T.string},Af.defaultProps={width:652,styles:{},header:"Color picker"},Gt(Af);const sa=/^[a-z0-9]+(-[a-z0-9]+)*$/,Zs=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:n,prefix:u,name:s};return t&&!Qs(l)?null:l}const o=i[0],a=o.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Qs(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:o};return t&&!Qs(s,r)?null:s}return null},Qs=(e,t)=>e?!!((e.provider===""||e.provider.match(sa))&&(t&&e.prefix===""||e.prefix.match(sa))&&e.name.match(sa)):!1,E1=Object.freeze({left:0,top:0,width:16,height:16}),Js=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Df=Object.freeze({...E1,...Js}),$f=Object.freeze({...Df,body:"",hidden:!1});function zB(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function T1(e,t){const r=zB(e,t);for(const n in $f)n in Js?n in e&&!(n in r)&&(r[n]=Js[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function VB(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const s=n[a]&&n[a].parent,u=s&&o(s);u&&(i[a]=[s].concat(u))}return i[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function WB(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(s){o=T1(n[s]||i[s],o)}return a(t),r.forEach(a),T1(e,o)}function _1(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=VB(e);for(const i in n){const o=n[i];o&&(t(i,WB(e,i,o)),r.push(i))}return r}const HB={provider:"",aliases:{},not_found:{},...E1};function If(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function O1(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!If(e,HB))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(sa)||typeof o.body!="string"||!If(o,$f))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(sa)||typeof a!="string"||!r[a]&&!n[a]||!If(o,$f))return null}return t}const k1=Object.create(null);function UB(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Rn(e,t){const r=k1[e]||(k1[e]=Object.create(null));return r[t]||(r[t]=UB(e,t))}function Ff(e,t){return O1(t)?_1(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function YB(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let la=!1;function M1(e){return typeof e=="boolean"&&(la=e),la}function GB(e){const t=typeof e=="string"?Zs(e,!0,la):e;if(t){const r=Rn(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function qB(e,t){const r=Zs(e,!0,la);if(!r)return!1;const n=Rn(r.provider,r.prefix);return YB(n,r.name,t)}function KB(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),la&&!t&&!e.prefix){let i=!1;return O1(e)&&(e.prefix="",_1(e,(o,a)=>{a&&qB(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Qs({provider:t,prefix:r,name:"a"}))return!1;const n=Rn(t,r);return!!Ff(n,e)}const P1=Object.freeze({width:null,height:null}),A1=Object.freeze({...P1,...Js}),XB=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ZB=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function D1(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(XB);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=ZB.test(o);for(;;){if(a){const s=parseFloat(o);isNaN(s)?i.push(o):i.push(Math.ceil(s*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const QB=e=>e==="unset"||e==="undefined"||e==="none";function JB(e,t){const r={...Df,...e},n={...A1,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(m=>{const p=[],v=m.hFlip,x=m.vFlip;let b=m.rotate;v?x?b+=2:(p.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),p.push("scale(-1 1)"),i.top=i.left=0):x&&(p.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),p.push("scale(1 -1)"),i.top=i.left=0);let C;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:C=i.height/2+i.top,p.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:p.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,p.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}b%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),p.length&&(o='<g transform="'+p.join(" ")+'">'+o+"</g>")});const a=n.width,s=n.height,u=i.width,l=i.height;let c,f;a===null?(f=s===null?"1em":s==="auto"?l:s,c=D1(f,u/l)):(c=a==="auto"?u:a,f=s===null?D1(c,l/u):s==="auto"?l:s);const d={},h=(m,p)=>{QB(p)||(d[m]=p.toString())};return h("width",c),h("height",f),d.viewBox=i.left.toString()+" "+i.top.toString()+" "+u.toString()+" "+l.toString(),{attributes:d,body:o}}const eN=/\sid="(\S+)"/g,tN="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let rN=0;function nN(e,t=tN){const r=[];let n;for(;n=eN.exec(e);)r.push(n[1]);if(!r.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{const a=typeof t=="function"?t(o):t+(rN++).toString(),s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const jf=Object.create(null);function iN(e,t){jf[e]=t}function Lf(e){return jf[e]||jf[""]}function Rf(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Bf=Object.create(null),ua=["https://api.simplesvg.com","https://api.unisvg.com"],el=[];for(;ua.length>0;)ua.length===1||Math.random()>.5?el.push(ua.shift()):el.push(ua.pop());Bf[""]=Rf({resources:["https://api.iconify.design"].concat(el)});function oN(e,t){const r=Rf(t);return r===null?!1:(Bf[e]=r,!0)}function Nf(e){return Bf[e]}let $1=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function aN(e,t){const r=Nf(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function sN(e){return e===404}const lN=(e,t,r)=>{const n=[],i=aN(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},s=0;return r.forEach((u,l)=>{s+=u.length+1,s>=i&&l>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},s=u.length),a.icons.push(u)}),n.push(a),n};function uN(e){if(typeof e=="string"){const t=Nf(e);if(t)return t.path}return"/"}const cN={prepare:lN,send:(e,t,r)=>{if(!$1){r("abort",424);return}let n=uN(t.provider);switch(t.type){case"icons":{const o=t.prefix,s=t.icons.join(","),u=new URLSearchParams({icons:s});n+=o+".json?"+u.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$1(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(sN(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})}};function fN(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,s=i.name,u=r[o]||(r[o]=Object.create(null)),l=u[a]||(u[a]=Rn(o,a));let c;s in l.icons?c=t.loaded:a===""||l.missing.has(s)?c=t.missing:c=t.pending;const f={provider:o,prefix:a,name:s};c.push(f)}),t}function I1(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function dN(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,s=a.pending.length;a.pending=a.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else if(e.missing.has(l))a.missing.push({provider:n,prefix:i,name:l});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||I1([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let hN=0;function pN(e,t,r){const n=hN++,i=I1.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}function gN(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?Zs(i,t,r):i;o&&n.push(o)}),n}var mN={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vN(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let _=e.resources.slice(0);for(a=[];_.length>1;){const O=Math.floor(Math.random()*_.length);a.push(_[O]),_=_.slice(0,O).concat(_.slice(O+1))}a=a.concat(_)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const s=Date.now();let u="pending",l=0,c,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function m(){f&&(clearTimeout(f),f=null)}function p(){u==="pending"&&(u="aborted"),m(),d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function v(_,O){O&&(h=[]),typeof _=="function"&&h.push(_)}function x(){return{startTime:s,payload:t,status:u,queriesSent:l,queriesPending:d.length,subscribe:v,abort:p}}function b(){u="failed",h.forEach(_=>{_(void 0,c)})}function C(){d.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),d=[]}function E(_,O,k){const D=O!=="success";switch(d=d.filter(L=>L!==_),u){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){c=k,b();return}if(D){c=k,d.length||(a.length?w():b());return}if(m(),C(),!e.random){const L=e.resources.indexOf(_.resource);L!==-1&&L!==e.index&&(e.index=L)}u="completed",h.forEach(L=>{L(k)})}function w(){if(u!=="pending")return;m();const _=a.shift();if(_===void 0){if(d.length){f=setTimeout(()=>{m(),u==="pending"&&(C(),b())},e.timeout);return}b();return}const O={status:"pending",resource:_,callback:(k,D)=>{E(O,k,D)}};d.push(O),l++,f=setTimeout(w,e.rotate),r(_,t,O.callback)}return setTimeout(w),x}function F1(e){const t={...mN,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function i(s,u,l){const c=vN(t,s,u,(f,d)=>{n(),l&&l(f,d)});return r.push(c),c}function o(s){return r.find(u=>s(u))||null}return{query:i,find:o,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function j1(){}const zf=Object.create(null);function yN(e){if(!zf[e]){const t=Nf(e);if(!t)return;const r=F1(t),n={config:t,redundancy:r};zf[e]=n}return zf[e]}function bN(e,t,r){let n,i;if(typeof e=="string"){const o=Lf(e);if(!o)return r(void 0,424),j1;i=o.send;const a=yN(e);a&&(n=a.redundancy)}else{const o=Rf(e);if(o){n=F1(o);const a=e.resources?e.resources[0]:"",s=Lf(a);s&&(i=s.send)}}return!n||!i?(r(void 0,424),j1):n.query(t,i,r)().abort}const L1="iconify2",ca="iconify",R1=ca+"-count",B1=ca+"-version",N1=36e5,xN=168;function Vf(e,t){try{return e.getItem(t)}catch{}}function Wf(e,t,r){try{return e.setItem(t,r),!0}catch{}}function z1(e,t){try{e.removeItem(t)}catch{}}function Hf(e,t){return Wf(e,R1,t.toString())}function Uf(e){return parseInt(Vf(e,R1))||0}const tl={local:!0,session:!0},V1={local:new Set,session:new Set};let Yf=!1;function wN(e){Yf=e}let rl=typeof window>"u"?{}:window;function W1(e){const t=e+"Storage";try{if(rl&&rl[t]&&typeof rl[t].length=="number")return rl[t]}catch{}tl[e]=!1}function H1(e,t){const r=W1(e);if(!r)return;const n=Vf(r,B1);if(n!==L1){if(n){const s=Uf(r);for(let u=0;u<s;u++)z1(r,ca+u.toString())}Wf(r,B1,L1),Hf(r,0);return}const i=Math.floor(Date.now()/N1)-xN,o=s=>{const u=ca+s.toString(),l=Vf(r,u);if(typeof l=="string"){try{const c=JSON.parse(l);if(typeof c=="object"&&typeof c.cached=="number"&&c.cached>i&&typeof c.provider=="string"&&typeof c.data=="object"&&typeof c.data.prefix=="string"&&t(c,s))return!0}catch{}z1(r,u)}};let a=Uf(r);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?(a--,Hf(r,a)):V1[e].add(s))}function U1(){if(!Yf){wN(!0);for(const e in tl)H1(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Rn(n,i);if(!Ff(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function CN(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in tl)H1(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function SN(e,t){Yf||U1();function r(n){let i;if(!tl[n]||!(i=W1(n)))return;const o=V1[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=Uf(i),!Hf(i,a+1))return;const s={cached:Math.floor(Date.now()/N1),provider:e.provider,data:t};return Wf(i,ca+a.toString(),JSON.stringify(s))}t.lastModified&&!CN(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Y1(){}function EN(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,dN(e)}))}function TN(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=Lf(r)))return;o.prepare(r,n,i).forEach(s=>{bN(r,s,u=>{if(typeof u!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Ff(e,u);if(!l.length)return;const c=e.pendingIcons;c&&l.forEach(f=>{c.delete(f)}),SN(e,u)}catch(l){console.error(l)}EN(e)})})}))}const _N=(e,t)=>{const r=gN(e,!0,M1()),n=fN(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,Y1)}),()=>{u=!1}}const i=Object.create(null),o=[];let a,s;return n.pending.forEach(u=>{const{provider:l,prefix:c}=u;if(c===s&&l===a)return;a=l,s=c,o.push(Rn(l,c));const f=i[l]||(i[l]=Object.create(null));f[c]||(f[c]=[])}),n.pending.forEach(u=>{const{provider:l,prefix:c,name:f}=u,d=Rn(l,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[l][c].push(f))}),o.forEach(u=>{const{provider:l,prefix:c}=u;i[l][c].length&&TN(u,i[l][c])}),t?pN(t,n,o):Y1};function ON(e,t){const r={...e};for(const n in t){const i=t[n],o=typeof i;n in P1?(i===null||i&&(o==="string"||o==="number"))&&(r[n]=i):o===typeof r[n]&&(r[n]=n==="rotate"?i%4:i)}return r}const kN=/[\s,]+/;function MN(e,t){t.split(kN).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function PN(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}function AN(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function DN(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function $N(e){return"data:image/svg+xml,"+DN(e)}function IN(e){return'url("'+$N(e)+'")'}let fa;function FN(){try{fa=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{fa=null}}function jN(e){return fa===void 0&&FN(),fa?fa.createHTML(e):e}const G1={...A1,inline:!1},LN={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},RN={display:"inline-block"},Gf={backgroundColor:"currentColor"},q1={backgroundColor:"transparent"},K1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},X1={WebkitMask:Gf,mask:Gf,background:q1};for(const e in X1){const t=X1[e];for(const r in K1)t[e+r]=K1[r]}const BN={...G1,inline:!0};function Z1(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const NN=(e,t,r,n)=>{const i=r?BN:G1,o=ON(i,t),a=t.mode||"svg",s={},u=t.style||{},l={...a==="svg"?LN:{},ref:n};for(let x in t){const b=t[x];if(b!==void 0)switch(x){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":o[x]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&MN(o,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?o[x]=PN(b):typeof b=="number"&&(o[x]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete l["aria-hidden"];break;default:i[x]===void 0&&(l[x]=b)}}const c=JB(e,o),f=c.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),a==="svg"){l.style={...s,...u},Object.assign(l,f);let x=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:jN(nN(c.body,b?()=>b+"ID"+x++:"iconifyReact"))},g.createElement("svg",l)}const{body:d,width:h,height:m}=e,p=a==="mask"||(a==="bg"?!1:d.indexOf("currentColor")!==-1),v=AN(d,{...f,width:h+"",height:m+""});return l.style={...s,"--svg":IN(v),width:Z1(f.width),height:Z1(f.height),...RN,...p?Gf:q1,...u},g.createElement("span",l)};if(M1(!0),iN("",cN),typeof document<"u"&&typeof window<"u"){U1();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!KB(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;oN(r,i)||console.error(n)}catch{console.error(n)}}}}class Q1 extends g.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:n});return}let i;if(typeof n!="string"||(i=Zs(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const o=GB(i);if(!o){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),o!==null&&(this._loading={name:n,abort:_N([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const a=["iconify"];i.prefix!==""&&a.push("iconify--"+i.prefix),i.provider!==""&&a.push("iconify--"+i.provider),this._setData({data:o,classes:a}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:g.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),NN({...Df,...r.data},n,t._inline,t._ref)}}const zN=g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return g.createElement(Q1,n)});g.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return g.createElement(Q1,n)});const Rt=g.forwardRef(({icon:e,width:t=20,sx:r,...n},i)=>y.jsx(P.Box,{ref:i,component:zN,icon:e,sx:{width:t,height:t,...r},...n}));Rt.displayName="Iconify";const J1=({value:e,onChangeColor:t,...r})=>{const[n,i]=g.useState(null),o=s=>{i(s.currentTarget)},a=()=>i(null);return y.jsxs(y.Fragment,{children:[y.jsx(P.TextField,{...r,value:e,onChange:s=>t(s.target.value),InputProps:{inputProps:{...r.inputProps,maxLength:7},startAdornment:y.jsx(P.InputAdornment,{position:"start",sx:{ml:2},children:y.jsx(P.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:o,children:y.jsx(Rt,{icon:"bi:square-fill",color:e,width:25,height:23})})})}}),y.jsx(P.Popover,{open:!!n,anchorEl:n,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:y.jsx(hB,{color:e,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function Ve(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function U(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Y(e){U(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Gr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function qf(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function nl(e,t){U(2,arguments);var r=Y(e).getTime(),n=Ve(t);return new Date(r+n)}function VN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*1e3)}var WN=6e4;function HN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*WN)}var UN=36e5;function YN(e,t){U(2,arguments);var r=Ve(t);return nl(e,r*UN)}function GN(e,t){U(2,arguments);var r=Ve(t),n=r*7;return qf(e,n)}function il(e,t){U(2,arguments);var r=Y(e),n=Ve(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function ey(e,t){U(2,arguments);var r=Ve(t);return il(e,r*12)}function qN(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()-n.getFullYear()}function Yi(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function KN(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Yi(r,n),o=Math.abs(qN(r,n));r.setFullYear(1584),n.setFullYear(1584);var a=Yi(r,n)===-i,s=i*(o-Number(a));return s===0?0:s}function XN(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Kf(e){U(1,arguments);var t=Y(e);return t.setHours(23,59,59,999),t}function Xf(e){U(1,arguments);var t=Y(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function ZN(e){U(1,arguments);var t=Y(e);return Kf(t).getTime()===Xf(t).getTime()}function Zf(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=Yi(r,n),o=Math.abs(XN(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=Yi(r,n)===-i;ZN(Y(e))&&o===1&&Yi(e,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}var ty={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},QN="trunc";function da(e){return e?ty[e]:ty[QN]}function JN(e,t,r){U(2,arguments);var n=Zf(e,t)/3;return da(r==null?void 0:r.roundingMethod)(n)}function Gi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function qi(e){U(1,arguments);var t=Y(e);return t.setHours(0,0,0,0),t}var ez=864e5;function tz(e,t){U(2,arguments);var r=qi(e),n=qi(t),i=r.getTime()-Gi(r),o=n.getTime()-Gi(n);return Math.round((i-o)/ez)}function ry(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function ny(e,t){U(2,arguments);var r=Y(e),n=Y(t),i=ry(r,n),o=Math.abs(tz(r,n));r.setDate(r.getDate()-i*o);var a=+(ry(r,n)===-i),s=i*(o-a);return s===0?0:s}function rz(e,t,r){U(2,arguments);var n=ny(e,t)/7;return da(r==null?void 0:r.roundingMethod)(n)}var ol=6e4,al=36e5,nz=1e3;function sl(e,t){return U(2,arguments),Y(e).getTime()-Y(t).getTime()}function iz(e,t,r){U(2,arguments);var n=sl(e,t)/al;return da(r==null?void 0:r.roundingMethod)(n)}function oz(e,t,r){U(2,arguments);var n=sl(e,t)/ol;return da(r==null?void 0:r.roundingMethod)(n)}function iy(e,t,r){U(2,arguments);var n=sl(e,t)/1e3;return da(r==null?void 0:r.roundingMethod)(n)}function az(e,t){var r;U(1,arguments);var n=e||{},i=Y(n.start),o=Y(n.end),a=o.getTime();if(!(i.getTime()<=a))throw new RangeError("Invalid interval");var s=[],u=i;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=a;)s.push(Y(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}var sz={};function xr(){return sz}function Qf(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?-7:0)+6-(h-f);return d.setDate(d.getDate()+m),d.setHours(23,59,59,999),d}function Jf(e){U(1,arguments);var t=Y(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function lz(e){return U(1,arguments),e instanceof Date||Gr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function oy(e){if(U(1,arguments),!lz(e)&&typeof e!="number")return!1;var t=Y(e);return!isNaN(Number(t))}function ay(e,t){U(2,arguments);var r=Ve(t);return nl(e,-r)}var uz=864e5;function cz(e){U(1,arguments);var t=Y(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/uz)+1}function Ki(e){U(1,arguments);var t=1,r=Y(e),n=r.getUTCDay(),i=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function sy(e){U(1,arguments);var t=Y(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Ki(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Ki(o);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function fz(e){U(1,arguments);var t=sy(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Ki(r);return n}var dz=6048e5;function ly(e){U(1,arguments);var t=Y(e),r=Ki(t).getTime()-fz(t).getTime();return Math.round(r/dz)+1}function Bn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getUTCDay(),m=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-m),d.setUTCHours(0,0,0,0),d}function ed(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getUTCFullYear(),d=xr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,h),m.setUTCHours(0,0,0,0);var p=Bn(m,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var x=Bn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function hz(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=ed(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var m=Bn(h,t);return m}var pz=6048e5;function uy(e,t){U(1,arguments);var r=Y(e),n=Bn(r,t).getTime()-hz(r,t).getTime();return Math.round(n/pz)+1}function De(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var gz={y:function(t,r){var n=t.getUTCFullYear(),i=n>0?n:1-n;return De(r==="yy"?i%100:i,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):De(n+1,2)},d:function(t,r){return De(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return De(t.getUTCHours()%12||12,r.length)},H:function(t,r){return De(t.getUTCHours(),r.length)},m:function(t,r){return De(t.getUTCMinutes(),r.length)},s:function(t,r){return De(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return De(o,r.length)}};const fn=gz;var Xi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mz={G:function(t,r,n){var i=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return fn.y(t,r)},Y:function(t,r,n,i){var o=ed(t,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return De(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):De(a,r.length)},R:function(t,r){var n=sy(t);return De(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return De(n,r.length)},Q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return De(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,r,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return De(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,r,n){var i=t.getUTCMonth();switch(r){case"M":case"MM":return fn.M(t,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,r,n){var i=t.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return De(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,r,n,i){var o=uy(t,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):De(o,r.length)},I:function(t,r,n){var i=ly(t);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):De(i,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):fn.d(t,r)},D:function(t,r,n){var i=cz(t);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):De(i,r.length)},E:function(t,r,n){var i=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return De(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return De(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var i=t.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return De(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,r,n){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var i=t.getUTCHours(),o;switch(i===12?o=Xi.noon:i===0?o=Xi.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var i=t.getUTCHours(),o;switch(i>=17?o=Xi.evening:i>=12?o=Xi.afternoon:i>=4?o=Xi.morning:o=Xi.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return fn.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fn.H(t,r)},K:function(t,r,n){var i=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},k:function(t,r,n){var i=t.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):De(i,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fn.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fn.s(t,r)},S:function(t,r){return fn.S(t,r)},X:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return fy(a);case"XXXX":case"XX":return Nn(a);case"XXXXX":case"XXX":default:return Nn(a,":")}},x:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return fy(a);case"xxxx":case"xx":return Nn(a);case"xxxxx":case"xxx":default:return Nn(a,":")}},O:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+cy(a,":");case"OOOO":default:return"GMT"+Nn(a,":")}},z:function(t,r,n,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+cy(a,":");case"zzzz":default:return"GMT"+Nn(a,":")}},t:function(t,r,n,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return De(a,r.length)},T:function(t,r,n,i){var o=i._originalDate||t,a=o.getTime();return De(a,r.length)}};function cy(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=t||"";return r+String(i)+a+De(o,2)}function fy(e,t){if(e%60===0){var r=e>0?"-":"+";return r+De(Math.abs(e)/60,2)}return Nn(e,t)}function Nn(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),o=De(Math.floor(i/60),2),a=De(i%60,2);return n+o+r+a}const vz=mz;var dy=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},hy=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},yz=function(t,r){var n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return dy(t,r);var a;switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",dy(i,r)).replace("{{time}}",hy(o,r))},bz={p:hy,P:yz};const td=bz;var xz=["D","DD"],wz=["YY","YYYY"];function py(e){return xz.indexOf(e)!==-1}function gy(e){return wz.indexOf(e)!==-1}function ll(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cz={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sz=function(t,r,n){var i,o=Cz[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const Ez=Sz;function Zi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Tz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_z={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kz={date:Zi({formats:Tz,defaultWidth:"full"}),time:Zi({formats:_z,defaultWidth:"full"}),dateTime:Zi({formats:Oz,defaultWidth:"full"})};const Mz=kz;var Pz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Az=function(t,r,n,i){return Pz[t]};const Dz=Az;function Pr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var $z={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Iz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Fz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},jz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Lz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bz=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Nz={ordinalNumber:Bz,era:Pr({values:$z,defaultWidth:"wide"}),quarter:Pr({values:Iz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:Fz,defaultWidth:"wide"}),day:Pr({values:jz,defaultWidth:"wide"}),dayPeriod:Pr({values:Lz,defaultWidth:"wide",formattingValues:Rz,defaultFormattingWidth:"wide"})};const zz=Nz;function Ar(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Wz(s,function(f){return f.test(a)}):Vz(s,function(f){return f.test(a)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(a.length);return{value:l,rest:c}}}function Vz(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Wz(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function my(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Hz=/^(\d+)(th|st|nd|rd)?/i,Uz=/\d+/i,Yz={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gz={any:[/^b/i,/^(a|c)/i]},qz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kz={any:[/1/i,/2/i,/3/i,/4/i]},Xz={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Zz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qz={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Jz={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eV={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tV={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rV={ordinalNumber:my({matchPattern:Hz,parsePattern:Uz,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:Yz,defaultMatchWidth:"wide",parsePatterns:Gz,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:qz,defaultMatchWidth:"wide",parsePatterns:Kz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:Xz,defaultMatchWidth:"wide",parsePatterns:Zz,defaultParseWidth:"any"}),day:Ar({matchPatterns:Qz,defaultMatchWidth:"wide",parsePatterns:Jz,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:eV,defaultMatchWidth:"any",parsePatterns:tV,defaultParseWidth:"any"})},nV={code:"en-US",formatDistance:Ez,formatLong:Mz,formatRelative:Dz,localize:zz,match:rV,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ul=nV;var iV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aV=/^'([^]*?)'?$/,sV=/''/g,lV=/[a-zA-Z]/;function rd(e,t,r){var n,i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E;U(2,arguments);var w=String(t),_=xr(),O=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:_.locale)!==null&&n!==void 0?n:ul,k=Ve((o=(a=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(l=r.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Ve((h=(m=(p=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(x=r.locale)===null||x===void 0||(b=x.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&p!==void 0?p:_.weekStartsOn)!==null&&m!==void 0?m:(C=_.locale)===null||C===void 0||(E=C.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&h!==void 0?h:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var L=Y(e);if(!oy(L))throw new RangeError("Invalid time value");var re=Gi(L),pe=ay(L,re),se={firstWeekContainsDate:k,weekStartsOn:D,locale:O,_originalDate:L},q=w.match(oV).map(function(G){var me=G[0];if(me==="p"||me==="P"){var Ee=td[me];return Ee(G,O.formatLong)}return G}).join("").match(iV).map(function(G){if(G==="''")return"'";var me=G[0];if(me==="'")return uV(G);var Ee=vz[me];if(Ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&gy(G)&&ll(G,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&py(G)&&ll(G,t,String(e)),Ee(pe,G,O.localize,se);if(me.match(lV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+me+"`");return G}).join("");return q}function uV(e){var t=e.match(aV);return t?t[1].replace(sV,"'"):e}function cV(e){U(1,arguments);var t=Y(e),r=t.getDate();return r}function vy(e){U(1,arguments);var t=Y(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function fV(e){U(1,arguments);var t=Y(e),r=t.getHours();return r}function dV(e){U(1,arguments);var t=Y(e),r=t.getMinutes();return r}function hV(e){U(1,arguments);var t=Y(e),r=t.getMonth();return r}function pV(e){U(1,arguments);var t=Y(e),r=t.getSeconds();return r}function gV(e){U(1,arguments);var t=Y(e),r=t.getMilliseconds();return r}function zn(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Y(e),h=d.getDay(),m=(h<f?7:0)+h-f;return d.setDate(d.getDate()-m),d.setHours(0,0,0,0),d}function mV(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=Y(e),f=c.getFullYear(),d=xr(),h=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setFullYear(f+1,0,h),m.setHours(0,0,0,0);var p=zn(m,t),v=new Date(0);v.setFullYear(f,0,h),v.setHours(0,0,0,0);var x=zn(v,t);return c.getTime()>=p.getTime()?f+1:c.getTime()>=x.getTime()?f:f-1}function vV(e,t){var r,n,i,o,a,s,u,l;U(1,arguments);var c=xr(),f=Ve((r=(n=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&n!==void 0?n:(u=c.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=mV(e,t),h=new Date(0);h.setFullYear(d,0,f),h.setHours(0,0,0,0);var m=zn(h,t);return m}var yV=6048e5;function bV(e,t){U(1,arguments);var r=Y(e),n=zn(r,t).getTime()-vV(r,t).getTime();return Math.round(n/yV)+1}function xV(e){return U(1,arguments),Y(e).getFullYear()}function nd(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()>n.getTime()}function ha(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()<n.getTime()}function wV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getTime()===n.getTime()}function CV(e,t){U(2,arguments);var r=qi(e),n=qi(t);return r.getTime()===n.getTime()}function SV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()}function EV(e,t){U(2,arguments);var r=Y(e),n=Y(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function yy(e){U(1,arguments);var t=Y(e);return t.setMinutes(0,0,0),t}function TV(e,t){U(2,arguments);var r=yy(e),n=yy(t);return r.getTime()===n.getTime()}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _V(e,t){if(e){if(typeof e=="string")return by(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return by(e,t)}}function xy(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_V(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function id(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function We(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cl(e)}function OV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kV(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function He(e){var t=OV();return function(){var n=cl(e),i;if(t){var o=cl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kV(this,i)}}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){if(Gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wy(e){var t=MV(e,"string");return Gr(t)==="symbol"?t:String(t)}function Cy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wy(n.key),n)}}function Re(e,t,r){return t&&Cy(e.prototype,t),r&&Cy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t,r){return t=wy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PV=10,Sy=function(){function e(){Le(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return Re(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),AV=function(e){We(r,e);var t=He(r);function r(n,i,o,a,s){var u;return Le(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=o,u.priority=a,s&&(u.subPriority=s),u}return Re(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(Sy),DV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",PV),te(ae(n),"subPriority",-1),n}return Re(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(Sy),Ge=function(){function e(){Le(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return Re(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new AV(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),$V=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",140),te(ae(n),"incompatibleTokens",["R","u","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Dr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function gt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function $r(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*al+o*ol+a*nz),rest:t.slice(r[0].length)}}function Ey(e){return gt(Et.anyDigitsSigned,e)}function Ct(e,t){switch(e){case 1:return gt(Et.singleDigit,t);case 2:return gt(Et.twoDigits,t);case 3:return gt(Et.threeDigits,t);case 4:return gt(Et.fourDigits,t);default:return gt(new RegExp("^\\d{1,"+e+"}"),t)}}function fl(e,t){switch(e){case 1:return gt(Et.singleDigitSigned,t);case 2:return gt(Et.twoDigitsSigned,t);case 3:return gt(Et.threeDigitsSigned,t);case 4:return gt(Et.fourDigitsSigned,t);default:return gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ad(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ty(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function _y(e){return e%400===0||e%4===0&&e%100!==0}var IV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Tt(Ct(4,i),s);case"yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var u=Ty(a.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),FV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Tt(Ct(4,i),s);case"Yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var u=ed(i,s);if(a.isTwoDigitYear){var l=Ty(a.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}}]),r}(Ge),jV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Ki(s)}}]),r}(Ge),LV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),RV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Ct(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),BV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Ct(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),NV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ae(n),"priority",110),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"M":return Tt(gt(Et.month,i),s);case"MM":return Tt(Ct(2,i),s);case"Mo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),zV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",110),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"L":return Tt(gt(Et.month,i),s);case"LL":return Tt(Ct(2,i),s);case"Lo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function VV(e,t,r){U(2,arguments);var n=Y(e),i=Ve(t),o=uy(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var WV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return gt(Et.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return Bn(VV(i,a,s),s)}}]),r}(Ge);function HV(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=ly(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var UV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return gt(Et.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Ki(HV(i,a))}}]),r}(Ge),YV=[31,28,31,30,31,30,31,31,30,31,30,31],GV=[31,29,31,30,31,30,31,31,30,31,30,31],qV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subPriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return gt(Et.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a),u=i.getUTCMonth();return s?o>=1&&o<=GV[u]:o>=1&&o<=YV[u]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),KV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subpriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return gt(Et.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function sd(e,t,r){var n,i,o,a,s,u,l,c;U(2,arguments);var f=xr(),d=Ve((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Y(e),m=Ve(t),p=h.getUTCDay(),v=m%7,x=(v+7)%7,b=(x<d?7:0)+m-p;return h.setUTCDate(h.getUTCDate()+b),h}var XV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),ZV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"e":case"ee":return Tt(Ct(o.length,i),u);case"eo":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),QV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"c":case"cc":return Tt(Ct(o.length,i),u);case"co":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function JV(e,t){U(2,arguments);var r=Ve(t);r%7===0&&(r=r-7);var n=1,i=Y(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,u=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+u),i}var eW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return Ct(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return Tt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Tt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Tt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Tt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=JV(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),tW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),rW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),nW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","b","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),iW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return gt(Et.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),oW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return gt(Et.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ge),aW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return gt(Et.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),sW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return gt(Et.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ge),lW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",60),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return gt(Et.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ge),uW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",50),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return gt(Et.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ge),cW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",30),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){var a=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Tt(Ct(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ge),fW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","x"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"X":return $r(Dr.basicOptionalMinutes,i);case"XX":return $r(Dr.basic,i);case"XXXX":return $r(Dr.basicOptionalSeconds,i);case"XXXXX":return $r(Dr.extendedOptionalSeconds,i);case"XXX":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),dW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","X"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"x":return $r(Dr.basicOptionalMinutes,i);case"xx":return $r(Dr.basic,i);case"xxxx":return $r(Dr.basicOptionalSeconds,i);case"xxxxx":return $r(Dr.extendedOptionalSeconds,i);case"xxx":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),hW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",40),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ge),pW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",20),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ge),gW={G:new $V,y:new IV,Y:new FV,R:new jV,u:new LV,Q:new RV,q:new BV,M:new NV,L:new zV,w:new WV,I:new UV,d:new qV,D:new KV,E:new XV,e:new ZV,c:new QV,i:new eW,a:new tW,b:new rW,B:new nW,h:new iW,H:new oW,K:new aW,k:new sW,m:new lW,s:new uW,S:new cW,X:new fW,x:new dW,t:new hW,T:new pW},mW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yW=/^'([^]*?)'?$/,bW=/''/g,xW=/\S/,wW=/[a-zA-Z]/;function CW(e,t,r,n){var i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E,w;U(3,arguments);var _=String(e),O=String(t),k=xr(),D=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&i!==void 0?i:ul;if(!D.match)throw new RangeError("locale must contain match property");var L=Ve((a=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:k.firstWeekContainsDate)!==null&&s!==void 0?s:(d=k.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=Ve((m=(p=(v=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&p!==void 0?p:(E=k.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(O==="")return _===""?Y(r):new Date(NaN);var pe={firstWeekContainsDate:L,weekStartsOn:re,locale:D},se=[new DV],q=O.match(vW).map(function(Z){var Q=Z[0];if(Q in td){var ne=td[Q];return ne(Z,D.formatLong)}return Z}).join("").match(mW),G=[],me=xy(q),Ee;try{var Ie=function(){var Q=Ee.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&gy(Q)&&ll(Q,O,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&py(Q)&&ll(Q,O,e);var ne=Q[0],be=gW[ne];if(be){var R=be.incompatibleTokens;if(Array.isArray(R)){var Be=G.find(function(ht){return R.includes(ht.token)||ht.token===ne});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(Q,"` at the same time"))}else if(be.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));G.push({token:ne,fullToken:Q});var le=be.run(_,Q,D.match,pe);if(!le)return{v:new Date(NaN)};se.push(le.setter),_=le.rest}else{if(ne.match(wW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(Q==="''"?Q="'":ne==="'"&&(Q=SW(Q)),_.indexOf(Q)===0)_=_.slice(Q.length);else return{v:new Date(NaN)}}};for(me.s();!(Ee=me.n()).done;){var Oe=Ie();if(Gr(Oe)==="object")return Oe.v}}catch(Z){me.e(Z)}finally{me.f()}if(_.length>0&&xW.test(_))return new Date(NaN);var $=se.map(function(Z){return Z.priority}).sort(function(Z,Q){return Q-Z}).filter(function(Z,Q,ne){return ne.indexOf(Z)===Q}).map(function(Z){return se.filter(function(Q){return Q.priority===Z}).sort(function(Q,ne){return ne.subPriority-Q.subPriority})}).map(function(Z){return Z[0]}),j=Y(r);if(isNaN(j.getTime()))return new Date(NaN);var X=ay(j,Gi(j)),ee={},H=xy($),fe;try{for(H.s();!(fe=H.n()).done;){var ue=fe.value;if(!ue.validate(X,pe))return new Date(NaN);var ge=ue.set(X,ee,pe);Array.isArray(ge)?(X=ge[0],id(ee,ge[1])):X=ge}}catch(Z){H.e(Z)}finally{H.f()}return X}function SW(e){return e.match(yW)[1].replace(bW,"'")}function EW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setDate(n),r}function TW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setHours(n),r}function _W(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMinutes(n),r}function OW(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=vy(a);return r.setMonth(n,Math.min(o,s)),r}function kW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setSeconds(n),r}function MW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMilliseconds(n),r}function PW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Oy(e){U(1,arguments);var t=Y(e);return t.setDate(1),t.setHours(0,0,0,0),t}function dl(e){U(1,arguments);var t=Y(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function AW(e,t){var r;U(1,arguments);var n=Ve((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=FW(e),o;if(i.date){var a=jW(i.date,n);o=LW(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,l;if(i.time&&(u=RW(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=BW(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var hl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DW=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$W=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function FW(e){var t={},r=e.split(hl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],hl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=hl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function jW(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function LW(e,t){if(t===null)return new Date(NaN);var r=e.match(DW);if(!r)return new Date(NaN);var n=!!r[4],i=pa(r[1]),o=pa(r[2])-1,a=pa(r[3]),s=pa(r[4]),u=pa(r[5])-1;if(n)return HW(t,s,u)?NW(t,s,u):new Date(NaN);var l=new Date(0);return!VW(t,o,a)||!WW(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function pa(e){return e?parseInt(e):1}function RW(e){var t=e.match($W);if(!t)return NaN;var r=ld(t[1]),n=ld(t[2]),i=ld(t[3]);return UW(r,n,i)?r*al+n*ol+i*1e3:NaN}function ld(e){return e&&parseFloat(e.replace(",","."))||0}function BW(e){if(e==="Z")return 0;var t=e.match(IW);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return YW(n,i)?r*(n*al+i*ol):NaN}function NW(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var zW=[31,null,31,30,31,30,31,31,30,31,30,31];function ky(e){return e%400===0||e%4===0&&e%100!==0}function VW(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(zW[t]||(ky(e)?29:28))}function WW(e,t){return t>=1&&t<=(ky(e)?366:365)}function HW(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function UW(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function YW(e,t){return t>=0&&t<=59}function GW(e,t){var r,n;U(1,arguments);var i=Y(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=De(i.getDate(),2),d=De(i.getMonth()+1,2),h=De(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var p=Math.abs(m),v=De(Math.floor(p/60),2),x=De(p%60,2),b=m<0?"+":"-";u="".concat(b).concat(v,":").concat(x)}else u="Z";var C=De(i.getHours(),2),E=De(i.getMinutes(),2),w=De(i.getSeconds(),2),_=s===""?"":"T",O=[C,E,w].join(c);s="".concat(s).concat(_).concat(O).concat(u)}return s}function qW(e,t){U(2,arguments);var r=Y(e).getTime(),n=Y(t.start).getTime(),i=Y(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(ud,ud.exports);var KW=ud.exports;const XW=xn(KW),ZW={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QW={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class JW{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=ZW,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>AW(n),this.toISO=n=>GW(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:CW(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(o=>{const a=o[0];if(a==="p"||a==="P"){const s=XW[a],u=this.locale||ul;return s(o,u.formatLong,{})}return o}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>oy(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>rd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return KN(n,this.date(i));case"quarters":return JN(n,this.date(i));case"months":return Zf(n,this.date(i));case"weeks":return rz(n,this.date(i));case"days":return ny(n,this.date(i));case"hours":return iz(n,this.date(i));case"minutes":return oz(n,this.date(i));case"seconds":return iy(n,this.date(i));default:return sl(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:wV(n,i),this.isSameYear=(n,i)=>SV(n,i),this.isSameMonth=(n,i)=>EV(n,i),this.isSameDay=(n,i)=>CV(n,i),this.isSameHour=(n,i)=>TV(n,i),this.isAfter=(n,i)=>nd(n,i),this.isAfterYear=(n,i)=>nd(n,Jf(i)),this.isAfterDay=(n,i)=>nd(n,Kf(i)),this.isBefore=(n,i)=>ha(n,i),this.isBeforeYear=(n,i)=>ha(n,dl(i)),this.isBeforeDay=(n,i)=>ha(n,qi(i)),this.isWithinRange=(n,[i,o])=>qW(n,{start:i,end:o}),this.startOfYear=n=>dl(n),this.startOfMonth=n=>Oy(n),this.startOfWeek=n=>zn(n,{locale:this.locale}),this.startOfDay=n=>qi(n),this.endOfYear=n=>Jf(n),this.endOfMonth=n=>Xf(n),this.endOfWeek=n=>Qf(n,{locale:this.locale}),this.endOfDay=n=>Kf(n),this.addYears=(n,i)=>ey(n,i),this.addMonths=(n,i)=>il(n,i),this.addWeeks=(n,i)=>GN(n,i),this.addDays=(n,i)=>qf(n,i),this.addHours=(n,i)=>YN(n,i),this.addMinutes=(n,i)=>HN(n,i),this.addSeconds=(n,i)=>VN(n,i),this.getYear=n=>xV(n),this.getMonth=n=>hV(n),this.getDate=n=>cV(n),this.getHours=n=>fV(n),this.getMinutes=n=>dV(n),this.getSeconds=n=>pV(n),this.getMilliseconds=n=>gV(n),this.setYear=(n,i)=>PW(n,i),this.setMonth=(n,i)=>OW(n,i),this.setDate=(n,i)=>EW(n,i),this.setHours=(n,i)=>TW(n,i),this.setMinutes=(n,i)=>_W(n,i),this.setSeconds=(n,i)=>kW(n,i),this.setMilliseconds=(n,i)=>MW(n,i),this.getDaysInMonth=n=>vy(n),this.getNextMonth=n=>il(n,1),this.getPreviousMonth=n=>il(n,-1),this.getMonthArray=n=>{const o=[dl(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return az({start:zn(n,{locale:this.locale}),end:Qf(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=zn(Oy(n),{locale:this.locale}),o=Qf(Xf(n),{locale:this.locale});let a=0,s=i;const u=[];for(;ha(s,o);){const l=Math.floor(a/7);u[l]=u[l]||[],u[l].push(s),s=qf(s,1),a+=1}return u},this.getWeekNumber=n=>bV(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=dl(n),a=Jf(i),s=[];let u=o;for(;ha(u,a);)s.push(u),u=ey(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=Ae({},QW,r)}}var eH={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},tH=function(t,r,n){var i,o=eH[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const rH=tH;var nH={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},iH={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oH={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aH={date:Zi({formats:nH,defaultWidth:"full"}),time:Zi({formats:iH,defaultWidth:"full"}),dateTime:Zi({formats:oH,defaultWidth:"full"})};const sH=aH;var lH={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},uH=function(t,r,n,i){var o=lH[t];return typeof o=="function"?o(r):o};const cH=uH;var fH={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},dH={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},hH={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},pH={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},gH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},mH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},vH=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},yH={ordinalNumber:vH,era:Pr({values:fH,defaultWidth:"wide"}),quarter:Pr({values:dH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:hH,defaultWidth:"wide"}),day:Pr({values:pH,defaultWidth:"wide"}),dayPeriod:Pr({values:gH,defaultWidth:"wide",formattingValues:mH,defaultFormattingWidth:"wide"})};const bH=yH;var xH=/^(\d+)[ºªo]?/i,wH=/\d+/i,CH={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},SH={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},EH={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},_H={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},OH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},kH={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},MH={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},PH={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},AH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},DH={ordinalNumber:my({matchPattern:xH,parsePattern:wH,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:CH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:EH,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:_H,defaultMatchWidth:"wide",parsePatterns:OH,defaultParseWidth:"any"}),day:Ar({matchPatterns:kH,defaultMatchWidth:"wide",parsePatterns:MH,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:PH,defaultMatchWidth:"any",parsePatterns:AH,defaultParseWidth:"any"})},$H={code:"pt-BR",formatDistance:rH,formatLong:sH,formatRelative:cH,localize:bH,match:DH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const IH=$H;var My={exports:{}},Py={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ay={exports:{}},FH=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},jH=FH,LH=Array.prototype.concat,RH=Array.prototype.slice,Dy=Ay.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];jH(o)?r=LH.call(r,RH.call(o)):r.push(o)}return r};Dy.wrap=function(e){return function(){return e(Dy(arguments))}};var BH=Ay.exports,ga=Py,ma=BH,$y=Object.hasOwnProperty,Iy=Object.create(null);for(var cd in ga)$y.call(ga,cd)&&(Iy[ga[cd]]=cd);var nr=My.exports={to:{},get:{}};nr.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=nr.get.hsl(e),n="hsl";break;case"hwb":r=nr.get.hwb(e),n="hwb";break;default:r=nr.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},nr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;a[u]=parseInt(s.slice(c,c+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)a[u]=parseInt(s[u]+s[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)a[u]=parseInt(s[u+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:$y.call(ga,s[1])?(a=ga[s[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=dn(a[u],0,255);return a[3]=dn(a[3],0,1),a},nr.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.to.hex=function(){var e=ma(arguments);return"#"+pl(e[0])+pl(e[1])+pl(e[2])+(e[3]<1?pl(Math.round(e[3]*255)):"")},nr.to.rgb=function(){var e=ma(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},nr.to.rgb.percent=function(){var e=ma(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},nr.to.hsl=function(){var e=ma(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},nr.to.hwb=function(){var e=ma(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},nr.to.keyword=function(e){return Iy[e.slice(0,3)]};function dn(e,t,r){return Math.min(Math.max(t,e),r)}function pl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var NH=My.exports;const va=Py,Fy={};for(const e of Object.keys(va))Fy[va[e]]=e;const de={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var jy=de;for(const e of Object.keys(de)){if(!("channels"in de[e]))throw new Error("missing channels property: "+e);if(!("labels"in de[e]))throw new Error("missing channel labels property: "+e);if(de[e].labels.length!==de[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=de[e];delete de[e].channels,delete de[e].labels,Object.defineProperty(de[e],"channels",{value:t}),Object.defineProperty(de[e],"labels",{value:r})}de.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s,u;o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+o)/2;return o===i?u=0:l<=.5?u=a/(o+i):u=a/(2-o-i),[s,u*100,l*100]},de.rgb.hsv=function(e){let t,r,n,i,o;const a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,t=f(a),r=f(s),n=f(u),a===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]},de.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=de.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]},de.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function zH(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}de.rgb.keyword=function(e){const t=Fy[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(va)){const o=va[i],a=zH(e,o);a<r&&(r=a,n=i)}return n},de.keyword.rgb=function(e){return va[e]},de.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]},de.rgb.lab=function(e){const t=de.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(r-n),s=200*(n-i);return[o,a,s]},de.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,u[l]=a*255;return u},de.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]},de.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},de.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,a;a=(2-r)*n;const s=(2-r)*i;return o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]},de.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const a=Math.floor(6*t),s=1-n;o=6*t-a,a&1&&(o=1-o);const u=r+o*(s-r);let l,c,f;switch(a){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},de.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]},de.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]},de.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,o=500*(t-r),a=200*(r-n);return[i,o,a]},de.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;const s=o**3,u=i**3,l=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},de.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(r*r+n*n);return[t,a,i]},de.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),a=r*Math.sin(i);return[t,o,a]},de.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?de.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(a+=60),a},de.hsv.ansi16=function(e){return de.rgb.ansi16(de.hsv.rgb(e),e[2])},de.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},de.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]},de.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},de.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},de.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]},de.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o;let s,u;return a<1?s=o/(1-a):s=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a,u/=6,u%=1,[u*360,a*100,s*100]},de.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},de.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},de.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},de.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},de.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},de.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},de.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]},de.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},de.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},de.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},de.gray.hsl=function(e){return[0,0,e[0]]},de.gray.hsv=de.gray.hsl,de.gray.hwb=function(e){return[0,100,e[0]]},de.gray.cmyk=function(e){return[0,0,0,e[0]]},de.gray.lab=function(e){return[e[0],0,0]},de.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},de.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const gl=jy;function VH(){const e={},t=Object.keys(gl);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function WH(e){const t=VH(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(gl[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function HH(e,t){return function(r){return t(e(r))}}function UH(e,t){const r=[t[e].parent,e];let n=gl[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=HH(gl[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var YH=function(e){const t=WH(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){const a=n[o];t[a].parent!==null&&(r[a]=UH(a,t))}return r};const fd=jy,GH=YH,Qi={},qH=Object.keys(fd);function KH(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function XH(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}qH.forEach(e=>{Qi[e]={},Object.defineProperty(Qi[e],"channels",{value:fd[e].channels}),Object.defineProperty(Qi[e],"labels",{value:fd[e].labels});const t=GH(e);Object.keys(t).forEach(n=>{const i=t[n];Qi[e][n]=XH(i),Qi[e][n].raw=KH(i)})});var ZH=Qi;const Ji=NH,ir=ZH,Ly=["keyword","gray","hex"],dd={};for(const e of Object.keys(ir))dd[[...ir[e].labels].sort().join("")]=e;const ml={};function It(e,t){if(!(this instanceof It))return new It(e,t);if(t&&t in Ly&&(t=null),t&&!(t in ir))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof It)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ji.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=ir[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=ir[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=hd(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in dd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=dd[o];const{labels:a}=ir[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=hd(s)}if(ml[this.model])for(n=ir[this.model].channels,r=0;r<n;r++){const i=ml[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}It.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Ji.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ir[this.model],{labels:r}=ir[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new It([...this.color.map(JH(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new It([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:St("rgb",0,At(255)),green:St("rgb",1,At(255)),blue:St("rgb",2,At(255)),hue:St(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:St("hsl",1,At(100)),lightness:St("hsl",2,At(100)),saturationv:St("hsv",1,At(100)),value:St("hsv",2,At(100)),chroma:St("hcg",1,At(100)),gray:St("hcg",2,At(100)),white:St("hwb",1,At(100)),wblack:St("hwb",2,At(100)),cyan:St("cmyk",0,At(100)),magenta:St("cmyk",1,At(100)),yellow:St("cmyk",2,At(100)),black:St("cmyk",3,At(100)),x:St("xyz",0,At(95.047)),y:St("xyz",1,At(100)),z:St("xyz",2,At(108.833)),l:St("lab",0,At(100)),a:St("lab",1),b:St("lab",2),keyword(e){return e!==void 0?new It(e):ir[this.model].keyword(this.color)},hex(e){return e!==void 0?new It(e):Ji.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new It(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Ji.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return It.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return It.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(ir)){if(Ly.includes(e))continue;const{channels:t}=ir[e];It.prototype[e]=function(...r){return this.model===e?new It(this):r.length>0?new It(r,e):new It([...eU(ir[this.model][e].raw(this.color)),this.valpha],e)},It[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=hd(r,t)),new It(n,e)}}function QH(e,t){return Number(e.toFixed(t))}function JH(e){return function(t){return QH(t,e)}}function St(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(ml[n]||(ml[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function At(e){return function(t){return Math.max(0,Math.min(e,t))}}function eU(e){return Array.isArray(e)?e:[e]}function hd(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var tU=It;const rU=xn(tU),nt={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},nU={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},iU={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},oU={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},aU={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},sU={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:nt[800]},eo={common:{black:"#000",white:"#fff"},primary:nU,secondary:iU,info:oU,success:aU,warning:sU,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:nt,divider:W(nt[500],.24),action:{hover:W(nt[500],.08),selected:W(nt[500],.16),disabled:W(nt[500],.8),disabledBackground:W(nt[500],.24),focus:W(nt[500],.24),hoverOpacity:.08,disabledOpacity:.48}},hn=e=>{const t={...eo,mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{...eo.action,active:nt[600]}},r={...eo,mode:"dark",text:{primary:"#fff",secondary:nt[500],disabled:nt[600]},background:{paper:nt[800],default:nt[900],neutral:W(nt[500],.16)},action:{...eo.action,active:nt[500]}};return e==="light"?t:r},lU=e=>({lighter:lc(e,.815),light:lc(e,.225),main:e,dark:sc(e,.15),darker:sc(e,.35)}),uU=e=>rU(e).luminosity()<=.55?"#fff":nt[900],cU=e=>{const t=lU(e);return{...eo,primary:{...t,contrastText:uU(t.main)},mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{active:nt[600],...eo.action}}},Ry=hn("light"),fU=Ry.grey[500],dU=Ry.common.black;function By(e,t){const r=W(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${W(t||hn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${W(hn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${W(hn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${W(hn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${W(hn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${W(hn("light").error.main,.24)}`,card:`0 0 2px 0 ${W(e,.2)}, 0 12px 24px -4px ${W(e,.12)}`,dialog:`-40px 40px 80px -8px ${W(e,.24)}`,dropdown:`0 0 2px 0 ${W(e,.24)}, -20px 20px 40px -4px ${W(e,.24)}`}}const hU=(e,t)=>By(e==="light"?fU:dU,t),pU=()=>y.jsx(P.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),gU=["primary","secondary","info","success","warning","error"];function mU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.color==="inherit",a=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(a||s)&&{...(i||o)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||o)&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},h=gU.map(v=>({...n.color===v&&{...(a||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(u||l)&&{color:e.palette[v].main,border:`solid 1px ${W(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:W(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(c||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:W(e.palette[v].main,.16),"&:hover":{backgroundColor:W(e.palette[v].main,.32)}}}})),m={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,m,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function vU(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function yU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function Ny(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function bU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function xU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function wU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function CU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function SU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function EU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function TU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function _U(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function OU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function kU(e){return y.jsx(P.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function MU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function PU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function AU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const DU=["primary","secondary","info","success","warning","error"];function $U(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.variant==="filled",a=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:W(e.palette.grey[500],.48)},...a&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.16),"&:hover":{backgroundColor:W(e.palette.grey[500],.32)}}}};return[...DU.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...o&&{"& .MuiChip-deleteIcon":{color:W(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:W(e.palette[c].main,.16),"&:hover":{backgroundColor:W(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:W(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(yU,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function IU(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function FU(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function jU(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function LU(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function RU(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const BU=["info","success","warning","error"];function NU(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...BU.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...o&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...a&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(bU,{}),success:y.jsx(wU,{}),warning:y.jsx(xU,{}),error:y.jsx(CU,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function zU(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function VU(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function WU(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:W(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:W(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function HU(e){return{MuiRadio:{defaultProps:{icon:y.jsx(_U,{}),checkedIcon:y.jsx(OU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function UU(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${W(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function YU(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function GU(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function qU(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(Ny,{}),icon:y.jsx(Ny,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:W(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function KU(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const XU=["primary","secondary","info","success","warning","error"];function ZU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",o=n.variant==="contained",a=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={...i&&{...o&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...a&&{borderColor:W(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},d=XU.map(p=>({...n.color===p&&{...o&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:W(e.palette[p].main,.16),"&:hover":{backgroundColor:W(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},m={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,m]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function QU(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:W(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function JU(e){return{MuiSelect:{defaultProps:{IconComponent:kU}}}}function eY(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function tY(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function rY(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function nY(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function iY(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"none","& .clickable-row":{cursor:"pointer"},"& .no-clickable-row .clickable-row":{cursor:"initial"},"& .no-clickable-row .clickable-row:hover":{backgroundColor:"initial"},"&.simple":{"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:"#fff",borderBottom:"none",borderRadius:0},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:700,fontSize:11}},"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{padding:"0 16px"},"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,borderRadius:0},"& .MuiDataGrid-pinnedColumnHeaders":{backgroundColor:"inherit",boxShadow:"none"},"& .MuiDataGrid-pinnedColumns--right":{backgroundColor:"#fff",boxShadow:"-2px 0px 4px -2px rgba(0, 0, 0, 0.075)"},"& .MuiDataGrid-pinnedColumns--left":{backgroundColor:"#fff",boxShadow:"2px 0px 4px -2px rgba(0, 0, 0, 0.071)"},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.background.neutral},"& .MuiDataGrid-columnHeaderCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-cellCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-pinnedRows":{boxShadow:"none",fontWeight:"bold"},"& .hide-checkbox-select-all div":{display:"none !important"},"& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer":{border:"none"},"& .MuiDataGrid-columnSeparator":{color:e.palette.divider},"& .MuiDataGrid-columnSeparator:hover":{color:e.palette.primary.main},'& .MuiDataGrid-cell[data-field="__check__"]':{padding:0},'& .MuiDataGrid-columnHeader[data-field="__check__"]':{padding:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}function oY(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function aY(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:W(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const sY=["primary","secondary","info","success","warning","error"];function lY(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...sY.map(a=>({...r.color===a&&{backgroundColor:P.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function uY(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function cY(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(MU,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(PU,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(AU,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function fY(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(SU,{}),checkedIcon:y.jsx(EU,{}),indeterminateIcon:y.jsx(TU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function dY(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function hY(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const pY=["primary","secondary","info","success","warning","error"];function gY(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",o=n.variant==="soft",a={"& .MuiPaginationItem-root":{...i&&{borderColor:W(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...pY.map(u=>({...n.color===u&&{...o&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:W(e.palette[u].main,.16),"&:hover":{backgroundColor:W(e.palette[u].main,.32)}}}}}})),a]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function mY(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const vY=["primary","secondary","info","success","warning","error"];function yY(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",o=r.variant==="outlined",a=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{borderStyle:"solid",...n&&{borderColor:W(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=vY.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{...r.color===h&&{...i&&{borderColor:W(e.palette[h].dark,.48)},...a&&{borderColor:W(e.palette[h].main,.48)},...s&&{borderColor:W(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function bY(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const xY=["primary","secondary","info","success","warning","error"];function wY(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=xY.map(s=>({...r.color===s&&{"&:hover":{borderColor:W(e.palette[s].main,.48),backgroundColor:W(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),a={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...o,i,a]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function CY(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function SY(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function EY(e){return Object.assign(mU(e),IU(e),$U(e),vU(e),FU(e),jU(),WU(e),HU(e),zU(),LU(e),RU(e),VU(),NU(e),QU(e),JU(),ZU(e),qU(e),YU(e),GU(e),KU(e),UU(e),nY(e),tY(e),rY(e),eY(),fY(e),iY(e),oY(e),uY(e),cY(e),aY(e),lY(e),dY(e),hY(e),gY(e),yY(e),mY(e),bY(e),CY(e),wY(e),SY())}const zy=hn("light"),TY=zy.grey[500],_Y=zy.common.black;function Vy(e){const t=W(e,.2),r=W(e,.14),n=W(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const OY=e=>Vy(e==="light"?TY:_Y);function Bt(e){return`${e/16}rem`}function to({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Bt(e)},"@media (min-width:900px)":{fontSize:Bt(t)},"@media (min-width:1200px)":{fontSize:Bt(r)}}}const kY={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Bt(40),...to({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Bt(32),...to({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Bt(24),...to({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Bt(20),...to({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Bt(18),...to({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Bt(17),...to({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Bt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Bt(14)},body1:{lineHeight:1.5,fontSize:Bt(16)},body2:{lineHeight:22/14,fontSize:Bt(14)},caption:{lineHeight:1.5,fontSize:Bt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Bt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Bt(14),textTransform:"capitalize"}},Wy=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=g.useMemo(()=>({palette:cU(t),typography:kY,shape:{borderRadius:8},direction:r,shadows:OY(n),customShadows:hU(n,t)}),[t,r,n]),o=pg(i);return o.components=EY(o),y.jsx(G0,{injectFirst:!0,children:y.jsxs(mg,{theme:o,children:[y.jsx(P.CssBaseline,{}),y.jsx(pU,{}),e]})})},tZ="",rZ="",MY=({themeColor:e,children:t})=>y.jsx(co.LocalizationProvider,{dateAdapter:JW,adapterLocale:IH,children:y.jsx(Wy,{color:e,children:t})}),ro=e=>e&&e.charAt(0).toUpperCase(),PY=e=>["A","N","H","L","Q"].includes(ro(e))?"primary":["F","G","T","I","J"].includes(ro(e))?"info":["K","D","Y","B","O"].includes(ro(e))?"success":["P","E","R","S","U"].includes(ro(e))?"warning":["V","W","X","M","Z"].includes(ro(e))?"error":"default",Hy=g.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=mi(),u=ro(t),l=PY(t),c=e||l,f=c==="default"?y.jsxs(P.Avatar,{ref:a,sx:i,...o,children:[t&&u,n]}):y.jsxs(P.Avatar,{ref:a,sx:{color:(d=s.palette[c])==null?void 0:d.contrastText,backgroundColor:(h=s.palette[c])==null?void 0:h.main,fontWeight:s.typography.fontWeightMedium,...i},...o,children:[t&&u,n]});return r?y.jsx(P.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});Hy.displayName="CustomAvatar";const pn={tiny:24,small:32,medium:40,large:56},Uy=g.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...o},a)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return y.jsx(P.AvatarGroup,{ref:a,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:pn.large,height:pn.large,"&:first-of-type":{fontSize:16}},...l&&{width:pn.medium,height:pn.medium},...u&&{width:pn.small,height:pn.small},...s&&{width:pn.tiny,height:pn.tiny}},...t&&{...f},...i},...o,children:n})});Uy.displayName="CustomAvatarGroup";const Yy=P.styled(P.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),AY=()=>{const e=Xn.useGridApiContext(),{rowHeight:t,paginationModel:r}=Xn.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,i=Xn.gridColumnsTotalWidthSelector(e),o=Xn.gridColumnPositionsSelector(e),a=g.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),u=g.useMemo(()=>{const l=[];for(let c=0;c<n;c+=1){for(const f of s)l.push(y.jsx(Yy,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(P.Skeleton,{width:"100%"})},`column-${c}-${f.field}`));l.push(y.jsx(Yy,{},`fill-${c}`))}return l},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:u})},DY=({columns:e,...t})=>{const r=[{...Xn.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=g.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return y.jsx(Xn.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:AY},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:i=>`Agrupar por ${i}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:i=>`Parar de agrupar por ${i}`,unpin:"Desafixar",footerRowSelected:i=>`${i} ${i===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:i=>`${i.from}-${i.to} de ${i.count}`}},...t})},$Y=({children:e,waitBeforeShow:t=500})=>{const[r,n]=g.useState(!1);return g.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var Gy={exports:{}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),p=Object.prototype.toString,v=Math.max,x=Math.min,b=function(){return m.Date.now()};function C(w){var _=typeof w;return!!w&&(_=="object"||_=="function")}function E(w){if(typeof w=="number")return w;if(function(k){return typeof k=="symbol"||function(D){return!!D&&typeof D=="object"}(k)&&p.call(k)=="[object Symbol]"}(w))return NaN;if(C(w)){var _=typeof w.valueOf=="function"?w.valueOf():w;w=C(_)?_+"":_}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var O=l.test(w);return O||c.test(w)?f(w.slice(2),O?2:8):u.test(w)?NaN:+w}i.exports=function(w,_,O){var k,D,L,re,pe,se,q=0,G=!1,me=!1,Ee=!0;if(typeof w!="function")throw new TypeError("Expected a function");function Ie(ee){var H=k,fe=D;return k=D=void 0,q=ee,re=w.apply(fe,H)}function Oe(ee){var H=ee-se;return se===void 0||H>=_||H<0||me&&ee-q>=L}function $(){var ee=b();if(Oe(ee))return j(ee);pe=setTimeout($,function(H){var fe=_-(H-se);return me?x(fe,L-(H-q)):fe}(ee))}function j(ee){return pe=void 0,Ee&&k?Ie(ee):(k=D=void 0,re)}function X(){var ee=b(),H=Oe(ee);if(k=arguments,D=this,se=ee,H){if(pe===void 0)return function(fe){return q=fe,pe=setTimeout($,_),G?Ie(fe):re}(se);if(me)return pe=setTimeout($,_),Ie(se)}return pe===void 0&&(pe=setTimeout($,_)),re}return _=E(_)||0,C(O)&&(G=!!O.leading,L=(me="maxWait"in O)?v(E(O.maxWait)||0,_):L,Ee="trailing"in O?!!O.trailing:Ee),X.cancel=function(){pe!==void 0&&clearTimeout(pe),q=0,k=se=D=pe=void 0},X.flush=function(){return pe===void 0?re:j(b())},X}},96:(i,o,a)=>{var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,p=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,x=p||v||Function("return this")(),b=Object.prototype.toString,C=Math.max,E=Math.min,w=function(){return x.Date.now()};function _(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function O(k){if(typeof k=="number")return k;if(function(re){return typeof re=="symbol"||function(pe){return!!pe&&typeof pe=="object"}(re)&&b.call(re)==l}(k))return u;if(_(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=_(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(c,"");var L=d.test(k);return L||h.test(k)?m(k.slice(2),L?2:8):f.test(k)?u:+k}i.exports=function(k,D,L){var re=!0,pe=!0;if(typeof k!="function")throw new TypeError(s);return _(L)&&(re="leading"in L?!!L.leading:re,pe="trailing"in L?!!L.trailing:pe),function(se,q,G){var me,Ee,Ie,Oe,$,j,X=0,ee=!1,H=!1,fe=!0;if(typeof se!="function")throw new TypeError(s);function ue(be){var R=me,Be=Ee;return me=Ee=void 0,X=be,Oe=se.apply(Be,R)}function ge(be){var R=be-j;return j===void 0||R>=q||R<0||H&&be-X>=Ie}function Z(){var be=w();if(ge(be))return Q(be);$=setTimeout(Z,function(R){var Be=q-(R-j);return H?E(Be,Ie-(R-X)):Be}(be))}function Q(be){return $=void 0,fe&&me?ue(be):(me=Ee=void 0,Oe)}function ne(){var be=w(),R=ge(be);if(me=arguments,Ee=this,j=be,R){if($===void 0)return function(Be){return X=Be,$=setTimeout(Z,q),ee?ue(Be):Oe}(j);if(H)return $=setTimeout(Z,q),ue(j)}return $===void 0&&($=setTimeout(Z,q)),Oe}return q=O(q)||0,_(G)&&(ee=!!G.leading,Ie=(H="maxWait"in G)?C(O(G.maxWait)||0,q):Ie,fe="trailing"in G?!!G.trailing:fe),ne.cancel=function(){$!==void 0&&clearTimeout($),X=0,me=j=Ee=$=void 0},ne.flush=function(){return $===void 0?Oe:Q(w())},ne}(k,D,{leading:re,maxWait:D,trailing:pe})}},703:(i,o,a)=>{var s=a(414);function u(){}function l(){}l.resetWarningCache=u,i.exports=function(){function c(h,m,p,v,x,b){if(b!==s){var C=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 C.name="Invariant Violation",C}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var a in o)r.o(o,a)&&!r.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>le,LazyLoadImage:()=>ct,trackWindowScroll:()=>j});const i=g;var o=r.n(i),a=r(697);const s=Rd;var u=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(I){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(I)}function f(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);M&&(N=N.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,N)}return B}function d(I,M,B){return(M=m(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function h(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,m(N.key),N)}}function m(I){var M=function(B,N){if(c(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(c(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return c(M)==="symbol"?M:String(M)}function p(I,M){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},p(I,M)}function v(I){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},v(I)}var x=function(I){I.forEach(function(M){M.isIntersecting&&M.target.onVisible()})},b={},C=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&p(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=v(N);if(Ce){var ce=v(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(c(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;if(function(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).supportsObserver=!A.scrollPosition&&A.useIntersectionObserver&&l(),F.supportsObserver){var ce=A.threshold;F.observer=function(oe){return b[oe]=b[oe]||new IntersectionObserver(x,{rootMargin:oe+"px"}),b[oe]}(ce)}return F}return M=Ne,B=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,F=this.placeholder.getBoundingClientRect(),ce=u().findDOMNode(this.placeholder).style,oe=parseInt(ce.getPropertyValue("margin-left"),10)||0,ie=parseInt(ce.getPropertyValue("margin-top"),10)||0;return{bottom:A.y+F.bottom+ie,left:A.x+F.left+oe,right:A.x+F.right+oe,top:A.y+F.top+ie}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,F=A.scrollPosition,ce=A.threshold,oe=this.getPlaceholderBoundingBox(F),ie=F.y+window.innerHeight,Me=F.x,st=F.x+window.innerWidth,et=F.y;return et-ce<=oe.bottom&&ie+ce>=oe.top&&Me-ce<=oe.right&&st+ce>=oe.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,F=this.props,ce=F.className,oe=F.height,ie=F.placeholder,Me=F.style,st=F.width;if(ie&&typeof ie.type!="function")return o().cloneElement(ie,{ref:function(tt){return A.placeholder=tt}});var et=function(tt){for(var _t=1;_t<arguments.length;_t++){var vt=arguments[_t]!=null?arguments[_t]:{};_t%2?f(Object(vt),!0).forEach(function(Ft){d(tt,Ft,vt[Ft])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):f(Object(vt)).forEach(function(Ft){Object.defineProperty(tt,Ft,Object.getOwnPropertyDescriptor(vt,Ft))})}return tt}({display:"inline-block"},Me);return st!==void 0&&(et.width=st),oe!==void 0&&(et.height=oe),o().createElement("span",{className:ce,ref:function(tt){return A.placeholder=tt},style:et},ie)}}],B&&h(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);C.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},C.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const E=C;var w=r(296),_=r.n(w),O=r(96),k=r.n(O),D=function(I){var M=getComputedStyle(I,null);return M.getPropertyValue("overflow")+M.getPropertyValue("overflow-y")+M.getPropertyValue("overflow-x")};const L=function(I){if(!(I instanceof HTMLElement))return window;for(var M=I;M&&M instanceof HTMLElement;){if(/(scroll|auto)/.test(D(M)))return M;M=M.parentNode}return window};function re(I){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},re(I)}var pe=["delayMethod","delayTime"];function se(){return se=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var N in B)Object.prototype.hasOwnProperty.call(B,N)&&(I[N]=B[N])}return I},se.apply(this,arguments)}function q(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(re(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(re(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(N.key),re(Ce)==="symbol"?Ce:String(Ce)),N)}var Ce}function G(I,M){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},G(I,M)}function me(I,M){if(M&&(re(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(I)}function Ee(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Ie(I){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},Ie(I)}var Oe=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},$=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const j=function(I){var M=function(B){(function(ce,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),oe&&G(ce,oe)})(F,B);var N,Ce,ke,Ne,A=(ke=F,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ce,oe=Ie(ke);if(Ne){var ie=Ie(this).constructor;ce=Reflect.construct(oe,arguments,ie)}else ce=oe.apply(this,arguments);return me(this,ce)});function F(ce){var oe;if(function(Me,st){if(!(Me instanceof st))throw new TypeError("Cannot call a class as a function")}(this,F),(oe=A.call(this,ce)).useIntersectionObserver=ce.useIntersectionObserver&&l(),oe.useIntersectionObserver)return me(oe);var ie=oe.onChangeScroll.bind(Ee(oe));return ce.delayMethod==="debounce"?oe.delayedScroll=_()(ie,ce.delayTime):ce.delayMethod==="throttle"&&(oe.delayedScroll=k()(ie,ce.delayTime)),oe.state={scrollPosition:{x:Oe(),y:$()}},oe.baseComponentRef=o().createRef(),oe}return N=F,(Ce=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||L(u().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=L(u().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Oe(),y:$()}})}},{key:"render",value:function(){var ce=this.props,oe=(ce.delayMethod,ce.delayTime,function(Me,st){if(Me==null)return{};var et,tt,_t=function(Ft,Xr){if(Ft==null)return{};var Zr,Kn,Sa={},Bl=Object.keys(Ft);for(Kn=0;Kn<Bl.length;Kn++)Zr=Bl[Kn],Xr.indexOf(Zr)>=0||(Sa[Zr]=Ft[Zr]);return Sa}(Me,st);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Me);for(tt=0;tt<vt.length;tt++)et=vt[tt],st.indexOf(et)>=0||Object.prototype.propertyIsEnumerable.call(Me,et)&&(_t[et]=Me[et])}return _t}(ce,pe)),ie=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(I,se({forwardRef:this.baseComponentRef,scrollPosition:ie},oe))}}])&&q(N.prototype,Ce),Object.defineProperty(N,"prototype",{writable:!1}),F}(o().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function X(I){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},X(I)}function ee(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(X(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(X(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(N.key),X(Ce)==="symbol"?Ce:String(Ce)),N)}var Ce}function H(I,M){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},H(I,M)}function fe(I){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},fe(I)}var ue=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&H(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=fe(N);if(Ce){var ce=fe(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(X(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){return function(F,ce){if(!(F instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,Ne),ke.call(this,A)}return M=Ne,(B=[{key:"render",value:function(){return o().createElement(E,this.props)}}])&&ee(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);const ge=j(ue);function Z(I){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Z(I)}function Q(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(Z(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(Z(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(N.key),Z(Ce)==="symbol"?Ce:String(Ce)),N)}var Ce}function ne(I,M){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},ne(I,M)}function be(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function R(I){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},R(I)}var Be=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&ne(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=R(N);if(Ce){var ce=R(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(Z(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(oe)}(this,A)});function Ne(A){var F;(function(st,et){if(!(st instanceof et))throw new TypeError("Cannot call a class as a function")})(this,Ne),F=ke.call(this,A);var ce=A.afterLoad,oe=A.beforeLoad,ie=A.scrollPosition,Me=A.visibleByDefault;return F.state={visible:Me},Me&&(oe(),ce()),F.onVisible=F.onVisible.bind(be(F)),F.isScrollTracked=!!(ie&&Number.isFinite(ie.x)&&ie.x>=0&&Number.isFinite(ie.y)&&ie.y>=0),F}return M=Ne,(B=[{key:"componentDidUpdate",value:function(A,F){F.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,F=A.className,ce=A.delayMethod,oe=A.delayTime,ie=A.height,Me=A.placeholder,st=A.scrollPosition,et=A.style,tt=A.threshold,_t=A.useIntersectionObserver,vt=A.width;return this.isScrollTracked||_t&&l()?o().createElement(E,{className:F,height:ie,onVisible:this.onVisible,placeholder:Me,scrollPosition:st,style:et,threshold:tt,useIntersectionObserver:_t,width:vt}):o().createElement(ge,{className:F,delayMethod:ce,delayTime:oe,height:ie,onVisible:this.onVisible,placeholder:Me,style:et,threshold:tt,width:vt})}}])&&Q(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);Be.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Be.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const le=Be;function ht(I){return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},ht(I)}var Zt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Vt(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);M&&(N=N.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,N)}return B}function Kr(I){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?Vt(Object(B),!0).forEach(function(N){wr(I,N,B[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(B)):Vt(Object(B)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(B,N))})}return I}function wr(I,M,B){return(M=bn(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function Cr(){return Cr=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var N in B)Object.prototype.hasOwnProperty.call(B,N)&&(I[N]=B[N])}return I},Cr.apply(this,arguments)}function Ca(I,M){for(var B=0;B<M.length;B++){var N=M[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(I,bn(N.key),N)}}function bn(I){var M=function(B,N){if(ht(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(ht(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return ht(M)==="symbol"?M:String(M)}function qn(I,M){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,N){return B.__proto__=N,B},qn(I,M)}function K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},K(I)}var ve=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&qn(A,F)})(Ne,I);var M,B,N,Ce,ke=(N=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=K(N);if(Ce){var ce=K(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(ht(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;return function(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).state={loaded:!1},F}return M=Ne,(B=[{key:"onImageLoad",value:function(){var A=this;return this.state.loaded?null:function(F){A.props.onLoad(F),A.props.afterLoad(),A.setState({loaded:!0})}}},{key:"getImg",value:function(){var A=this.props,F=(A.afterLoad,A.beforeLoad,A.delayMethod,A.delayTime,A.effect,A.placeholder,A.placeholderSrc,A.scrollPosition,A.threshold,A.useIntersectionObserver,A.visibleByDefault,A.wrapperClassName,A.wrapperProps,function(ce,oe){if(ce==null)return{};var ie,Me,st=function(tt,_t){if(tt==null)return{};var vt,Ft,Xr={},Zr=Object.keys(tt);for(Ft=0;Ft<Zr.length;Ft++)vt=Zr[Ft],_t.indexOf(vt)>=0||(Xr[vt]=tt[vt]);return Xr}(ce,oe);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(ce);for(Me=0;Me<et.length;Me++)ie=et[Me],oe.indexOf(ie)>=0||Object.prototype.propertyIsEnumerable.call(ce,ie)&&(st[ie]=ce[ie])}return st}(A,Zt));return o().createElement("img",Cr({},F,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var A=this.props,F=A.beforeLoad,ce=A.className,oe=A.delayMethod,ie=A.delayTime,Me=A.height,st=A.placeholder,et=A.scrollPosition,tt=A.style,_t=A.threshold,vt=A.useIntersectionObserver,Ft=A.visibleByDefault,Xr=A.width;return o().createElement(le,{beforeLoad:F,className:ce,delayMethod:oe,delayTime:ie,height:Me,placeholder:st,scrollPosition:et,style:tt,threshold:_t,useIntersectionObserver:vt,visibleByDefault:Ft,width:Xr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var F=this.props,ce=F.effect,oe=F.height,ie=F.placeholderSrc,Me=F.width,st=F.wrapperClassName,et=F.wrapperProps,tt=this.state.loaded,_t=tt?" lazy-load-image-loaded":"",vt=tt||!ie?{}:{backgroundImage:"url(".concat(ie,")"),backgroundSize:"100% 100%"};return o().createElement("span",Cr({className:st+" lazy-load-image-background "+ce+_t,style:Kr(Kr({},vt),{},{color:"transparent",display:"inline-block",height:oe,width:Me})},et),A)}},{key:"render",value:function(){var A=this.props,F=A.effect,ce=A.placeholderSrc,oe=A.visibleByDefault,ie=A.wrapperClassName,Me=A.wrapperProps,st=this.getLazyLoadImage();return(F||ce)&&!oe||ie||Me?this.getWrappedLazyLoadImage(st):st}}])&&Ca(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);ve.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ve.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ct=ve})(),Gy.exports=n})();var IY=Gy.exports;const FY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",jY="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function LY(e="1/1"){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}const vl=g.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=y.jsx(P.Box,{component:IY.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?FY:jY,sx:{width:1,height:1,objectFit:"cover"},...i});return e?y.jsx(P.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:LY(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):y.jsx(P.Box,{ref:o,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:a})});vl.displayName="Image";/*! *****************************************************************************
|
|
132
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function id(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function We(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cl(e)}function OV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kV(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}function He(e){var t=OV();return function(){var n=cl(e),i;if(t){var o=cl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kV(this,i)}}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){if(Gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wy(e){var t=MV(e,"string");return Gr(t)==="symbol"?t:String(t)}function Cy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wy(n.key),n)}}function Re(e,t,r){return t&&Cy(e.prototype,t),r&&Cy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e,t,r){return t=wy(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PV=10,Sy=function(){function e(){Le(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return Re(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),AV=function(e){We(r,e);var t=He(r);function r(n,i,o,a,s){var u;return Le(this,r),u=t.call(this),u.value=n,u.validateValue=i,u.setValue=o,u.priority=a,s&&(u.subPriority=s),u}return Re(r,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),r}(Sy),DV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",PV),te(ae(n),"subPriority",-1),n}return Re(r,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),r}(Sy),Ge=function(){function e(){Le(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return Re(e,[{key:"run",value:function(r,n,i,o){var a=this.parse(r,n,i,o);return a?{setter:new AV(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),e}(),$V=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",140),te(ae(n),"incompatibleTokens",["R","u","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Dr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tt(e,t){return e&&{value:t(e.value),rest:e.rest}}function gt(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function $r(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*al+o*ol+a*nz),rest:t.slice(r[0].length)}}function Ey(e){return gt(Et.anyDigitsSigned,e)}function Ct(e,t){switch(e){case 1:return gt(Et.singleDigit,t);case 2:return gt(Et.twoDigits,t);case 3:return gt(Et.threeDigits,t);case 4:return gt(Et.fourDigits,t);default:return gt(new RegExp("^\\d{1,"+e+"}"),t)}}function fl(e,t){switch(e){case 1:return gt(Et.singleDigitSigned,t);case 2:return gt(Et.twoDigitsSigned,t);case 3:return gt(Et.threeDigitsSigned,t);case 4:return gt(Et.fourDigitsSigned,t);default:return gt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ad(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ty(e,t){var r=t>0,n=r?t:1-t,i;if(n<=50)i=e||100;else{var o=n+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return r?i:1-i}function _y(e){return e%400===0||e%4===0&&e%100!==0}var IV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Tt(Ct(4,i),s);case"yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var u=Ty(a.year,s);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var l=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),FV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return{year:l,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Tt(Ct(4,i),s);case"Yo":return Tt(a.ordinalNumber(i,{unit:"year"}),s);default:return Tt(Ct(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,a,s){var u=ed(i,s);if(a.isTwoDigitYear){var l=Ty(a.year,u);return i.setUTCFullYear(l,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Bn(i,s)}}]),r}(Ge),jV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Ki(s)}}]),r}(Ge),LV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",130),te(ae(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){return fl(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),RV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Ct(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),BV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",120),te(ae(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Ct(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),NV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ae(n),"priority",110),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"M":return Tt(gt(Et.month,i),s);case"MM":return Tt(Ct(2,i),s);case"Mo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),zV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",110),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l-1};switch(o){case"L":return Tt(gt(Et.month,i),s);case"LL":return Tt(Ct(2,i),s);case"Lo":return Tt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function VV(e,t,r){U(2,arguments);var n=Y(e),i=Ve(t),o=uy(n,r)-i;return n.setUTCDate(n.getUTCDate()-o*7),n}var WV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"w":return gt(Et.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a,s){return Bn(VV(i,a,s),s)}}]),r}(Ge);function HV(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=ly(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var UV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",100),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"I":return gt(Et.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,a){return Ki(HV(i,a))}}]),r}(Ge),YV=[31,28,31,30,31,30,31,31,30,31,30,31],GV=[31,29,31,30,31,30,31,31,30,31,30,31],qV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subPriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"d":return gt(Et.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a),u=i.getUTCMonth();return s?o>=1&&o<=GV[u]:o>=1&&o<=YV[u]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),KV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"subpriority",1),te(ae(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return gt(Et.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=_y(a);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function sd(e,t,r){var n,i,o,a,s,u,l,c;U(2,arguments);var f=xr(),d=Ve((n=(i=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Y(e),m=Ve(t),p=h.getUTCDay(),v=m%7,x=(v+7)%7,b=(x<d?7:0)+m-p;return h.setUTCDate(h.getUTCDate()+b),h}var XV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),ZV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"e":case"ee":return Tt(Ct(o.length,i),u);case"eo":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),QV=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a,s){var u=function(c){var f=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+f};switch(o){case"c":case"cc":return Tt(Ct(o.length,i),u);case"co":return Tt(a.ordinalNumber(i,{unit:"day"}),u);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=sd(i,a,s),i.setUTCHours(0,0,0,0),i}}]),r}(Ge);function JV(e,t){U(2,arguments);var r=Ve(t);r%7===0&&(r=r-7);var n=1,i=Y(e),o=i.getUTCDay(),a=r%7,s=(a+7)%7,u=(s<n?7:0)+r-o;return i.setUTCDate(i.getUTCDate()+u),i}var eW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",90),te(ae(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){var s=function(l){return l===0?7:l};switch(o){case"i":case"ii":return Ct(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return Tt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Tt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Tt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Tt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,a){return i=JV(i,a),i.setUTCHours(0,0,0,0),i}}]),r}(Ge),tW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),rW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),nW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",80),te(ae(n),"incompatibleTokens",["a","b","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ad(a),0,0,0),i}}]),r}(Ge),iW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["H","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"h":return gt(Et.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),oW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"H":return gt(Et.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),r}(Ge),aW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["h","H","k","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"K":return gt(Et.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),r}(Ge),sW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",70),te(ae(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"k":return gt(Et.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),r}(Ge),lW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",60),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"m":return gt(Et.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),r}(Ge),uW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",50),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o,a){switch(o){case"s":return gt(Et.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Ct(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),r}(Ge),cW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",30),te(ae(n),"incompatibleTokens",["t","T"]),n}return Re(r,[{key:"parse",value:function(i,o){var a=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Tt(Ct(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),r}(Ge),fW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","x"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"X":return $r(Dr.basicOptionalMinutes,i);case"XX":return $r(Dr.basic,i);case"XXXX":return $r(Dr.basicOptionalSeconds,i);case"XXXXX":return $r(Dr.extendedOptionalSeconds,i);case"XXX":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),dW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",10),te(ae(n),"incompatibleTokens",["t","T","X"]),n}return Re(r,[{key:"parse",value:function(i,o){switch(o){case"x":return $r(Dr.basicOptionalMinutes,i);case"xx":return $r(Dr.basic,i);case"xxxx":return $r(Dr.basicOptionalSeconds,i);case"xxxxx":return $r(Dr.extendedOptionalSeconds,i);case"xxx":default:return $r(Dr.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),r}(Ge),hW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",40),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),r}(Ge),pW=function(e){We(r,e);var t=He(r);function r(){var n;Le(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),te(ae(n),"priority",20),te(ae(n),"incompatibleTokens","*"),n}return Re(r,[{key:"parse",value:function(i){return Ey(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),r}(Ge),gW={G:new $V,y:new IV,Y:new FV,R:new jV,u:new LV,Q:new RV,q:new BV,M:new NV,L:new zV,w:new WV,I:new UV,d:new qV,D:new KV,E:new XV,e:new ZV,c:new QV,i:new eW,a:new tW,b:new rW,B:new nW,h:new iW,H:new oW,K:new aW,k:new sW,m:new lW,s:new uW,S:new cW,X:new fW,x:new dW,t:new hW,T:new pW},mW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yW=/^'([^]*?)'?$/,bW=/''/g,xW=/\S/,wW=/[a-zA-Z]/;function CW(e,t,r,n){var i,o,a,s,u,l,c,f,d,h,m,p,v,x,b,C,E,w;U(3,arguments);var _=String(e),O=String(t),k=xr(),D=(i=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&i!==void 0?i:ul;if(!D.match)throw new RangeError("locale must contain match property");var L=Ve((a=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&u!==void 0?u:k.firstWeekContainsDate)!==null&&s!==void 0?s:(d=k.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=Ve((m=(p=(v=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&p!==void 0?p:(E=k.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(O==="")return _===""?Y(r):new Date(NaN);var pe={firstWeekContainsDate:L,weekStartsOn:re,locale:D},se=[new DV],q=O.match(vW).map(function(Z){var Q=Z[0];if(Q in td){var ne=td[Q];return ne(Z,D.formatLong)}return Z}).join("").match(mW),G=[],me=xy(q),Ee;try{var Ie=function(){var Q=Ee.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&gy(Q)&&ll(Q,O,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&py(Q)&&ll(Q,O,e);var ne=Q[0],be=gW[ne];if(be){var R=be.incompatibleTokens;if(Array.isArray(R)){var Be=G.find(function(ht){return R.includes(ht.token)||ht.token===ne});if(Be)throw new RangeError("The format string mustn't contain `".concat(Be.fullToken,"` and `").concat(Q,"` at the same time"))}else if(be.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(Q,"` and any other token at the same time"));G.push({token:ne,fullToken:Q});var le=be.run(_,Q,D.match,pe);if(!le)return{v:new Date(NaN)};se.push(le.setter),_=le.rest}else{if(ne.match(wW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(Q==="''"?Q="'":ne==="'"&&(Q=SW(Q)),_.indexOf(Q)===0)_=_.slice(Q.length);else return{v:new Date(NaN)}}};for(me.s();!(Ee=me.n()).done;){var Oe=Ie();if(Gr(Oe)==="object")return Oe.v}}catch(Z){me.e(Z)}finally{me.f()}if(_.length>0&&xW.test(_))return new Date(NaN);var $=se.map(function(Z){return Z.priority}).sort(function(Z,Q){return Q-Z}).filter(function(Z,Q,ne){return ne.indexOf(Z)===Q}).map(function(Z){return se.filter(function(Q){return Q.priority===Z}).sort(function(Q,ne){return ne.subPriority-Q.subPriority})}).map(function(Z){return Z[0]}),j=Y(r);if(isNaN(j.getTime()))return new Date(NaN);var X=ay(j,Gi(j)),ee={},H=xy($),fe;try{for(H.s();!(fe=H.n()).done;){var ue=fe.value;if(!ue.validate(X,pe))return new Date(NaN);var ge=ue.set(X,ee,pe);Array.isArray(ge)?(X=ge[0],id(ee,ge[1])):X=ge}}catch(Z){H.e(Z)}finally{H.f()}return X}function SW(e){return e.match(yW)[1].replace(bW,"'")}function EW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setDate(n),r}function TW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setHours(n),r}function _W(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMinutes(n),r}function OW(e,t){U(2,arguments);var r=Y(e),n=Ve(t),i=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(i,n,15),a.setHours(0,0,0,0);var s=vy(a);return r.setMonth(n,Math.min(o,s)),r}function kW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setSeconds(n),r}function MW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return r.setMilliseconds(n),r}function PW(e,t){U(2,arguments);var r=Y(e),n=Ve(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Oy(e){U(1,arguments);var t=Y(e);return t.setDate(1),t.setHours(0,0,0,0),t}function dl(e){U(1,arguments);var t=Y(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function AW(e,t){var r;U(1,arguments);var n=Ve((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=FW(e),o;if(i.date){var a=jW(i.date,n);o=LW(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),u=0,l;if(i.time&&(u=RW(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(l=BW(i.timezone),isNaN(l))return new Date(NaN)}else{var c=new Date(s+u),f=new Date(0);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return new Date(s+u+l)}var hl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},DW=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$W=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,IW=/^([+-])(\d{2})(?::?(\d{2}))?$/;function FW(e){var t={},r=e.split(hl.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],hl.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hl.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var i=hl.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function jW(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function LW(e,t){if(t===null)return new Date(NaN);var r=e.match(DW);if(!r)return new Date(NaN);var n=!!r[4],i=pa(r[1]),o=pa(r[2])-1,a=pa(r[3]),s=pa(r[4]),u=pa(r[5])-1;if(n)return HW(t,s,u)?NW(t,s,u):new Date(NaN);var l=new Date(0);return!VW(t,o,a)||!WW(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}function pa(e){return e?parseInt(e):1}function RW(e){var t=e.match($W);if(!t)return NaN;var r=ld(t[1]),n=ld(t[2]),i=ld(t[3]);return UW(r,n,i)?r*al+n*ol+i*1e3:NaN}function ld(e){return e&&parseFloat(e.replace(",","."))||0}function BW(e){if(e==="Z")return 0;var t=e.match(IW);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return YW(n,i)?r*(n*al+i*ol):NaN}function NW(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}var zW=[31,null,31,30,31,30,31,31,30,31,30,31];function ky(e){return e%400===0||e%4===0&&e%100!==0}function VW(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(zW[t]||(ky(e)?29:28))}function WW(e,t){return t>=1&&t<=(ky(e)?366:365)}function HW(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function UW(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function YW(e,t){return t>=0&&t<=59}function GW(e,t){var r,n;U(1,arguments);var i=Y(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((n=t==null?void 0:t.representation)!==null&&n!==void 0?n:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",u="",l=o==="extended"?"-":"",c=o==="extended"?":":"";if(a!=="time"){var f=De(i.getDate(),2),d=De(i.getMonth()+1,2),h=De(i.getFullYear(),4);s="".concat(h).concat(l).concat(d).concat(l).concat(f)}if(a!=="date"){var m=i.getTimezoneOffset();if(m!==0){var p=Math.abs(m),v=De(Math.floor(p/60),2),x=De(p%60,2),b=m<0?"+":"-";u="".concat(b).concat(v,":").concat(x)}else u="Z";var C=De(i.getHours(),2),E=De(i.getMinutes(),2),w=De(i.getSeconds(),2),_=s===""?"":"T",O=[C,E,w].join(c);s="".concat(s).concat(_).concat(O).concat(u)}return s}function qW(e,t){U(2,arguments);var r=Y(e).getTime(),n=Y(t.start).getTime(),i=Y(t.end).getTime();if(!(n<=i))throw new RangeError("Invalid interval");return r>=n&&r<=i}var ud={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,l){switch(u){case"P":return l.date({width:"short"});case"PP":return l.date({width:"medium"});case"PPP":return l.date({width:"long"});case"PPPP":default:return l.date({width:"full"})}},n=function(u,l){switch(u){case"p":return l.time({width:"short"});case"pp":return l.time({width:"medium"});case"ppp":return l.time({width:"long"});case"pppp":default:return l.time({width:"full"})}},i=function(u,l){var c=u.match(/(P+)(p+)?/)||[],f=c[1],d=c[2];if(!d)return r(u,l);var h;switch(f){case"P":h=l.dateTime({width:"short"});break;case"PP":h=l.dateTime({width:"medium"});break;case"PPP":h=l.dateTime({width:"long"});break;case"PPPP":default:h=l.dateTime({width:"full"});break}return h.replace("{{date}}",r(f,l)).replace("{{time}}",n(d,l))},o={p:n,P:i},a=o;t.default=a,e.exports=t.default})(ud,ud.exports);var KW=ud.exports;const XW=xn(KW),ZW={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},QW={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",fullDateWithWeekday:"PPPP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",monthAndYear:"LLLL yyyy",monthAndDate:"MMMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aa",fullDateTime24h:"PP HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class JW{constructor({locale:t,formats:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=ZW,this.escapedCharacters={start:"'",end:"'"},this.date=n=>typeof n>"u"?new Date:n===null?null:new Date(n),this.dateWithTimezone=n=>this.date(n),this.getTimezone=()=>"default",this.setTimezone=n=>n,this.toJsDate=n=>n,this.parseISO=n=>AW(n),this.toISO=n=>GW(n,{format:"extended"}),this.parse=(n,i)=>n===""?null:CW(n,i,new Date,{locale:this.locale}),this.getCurrentLocaleCode=()=>{var n;return((n=this.locale)==null?void 0:n.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time()):!0,this.expandFormat=n=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(i).map(o=>{const a=o[0];if(a==="p"||a==="P"){const s=XW[a],u=this.locale||ul;return s(o,u.formatLong,{})}return o}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=n=>n===null,this.isValid=n=>oy(this.date(n)),this.format=(n,i)=>this.formatByString(n,this.formats[i]),this.formatByString=(n,i)=>rd(n,i,{locale:this.locale}),this.formatNumber=n=>n,this.getDiff=(n,i,o)=>{switch(o){case"years":return KN(n,this.date(i));case"quarters":return JN(n,this.date(i));case"months":return Zf(n,this.date(i));case"weeks":return rz(n,this.date(i));case"days":return ny(n,this.date(i));case"hours":return iz(n,this.date(i));case"minutes":return oz(n,this.date(i));case"seconds":return iy(n,this.date(i));default:return sl(n,this.date(i))}},this.isEqual=(n,i)=>n===null&&i===null?!0:wV(n,i),this.isSameYear=(n,i)=>SV(n,i),this.isSameMonth=(n,i)=>EV(n,i),this.isSameDay=(n,i)=>CV(n,i),this.isSameHour=(n,i)=>TV(n,i),this.isAfter=(n,i)=>nd(n,i),this.isAfterYear=(n,i)=>nd(n,Jf(i)),this.isAfterDay=(n,i)=>nd(n,Kf(i)),this.isBefore=(n,i)=>ha(n,i),this.isBeforeYear=(n,i)=>ha(n,dl(i)),this.isBeforeDay=(n,i)=>ha(n,qi(i)),this.isWithinRange=(n,[i,o])=>qW(n,{start:i,end:o}),this.startOfYear=n=>dl(n),this.startOfMonth=n=>Oy(n),this.startOfWeek=n=>zn(n,{locale:this.locale}),this.startOfDay=n=>qi(n),this.endOfYear=n=>Jf(n),this.endOfMonth=n=>Xf(n),this.endOfWeek=n=>Qf(n,{locale:this.locale}),this.endOfDay=n=>Kf(n),this.addYears=(n,i)=>ey(n,i),this.addMonths=(n,i)=>il(n,i),this.addWeeks=(n,i)=>GN(n,i),this.addDays=(n,i)=>qf(n,i),this.addHours=(n,i)=>YN(n,i),this.addMinutes=(n,i)=>HN(n,i),this.addSeconds=(n,i)=>VN(n,i),this.getYear=n=>xV(n),this.getMonth=n=>hV(n),this.getDate=n=>cV(n),this.getHours=n=>fV(n),this.getMinutes=n=>dV(n),this.getSeconds=n=>pV(n),this.getMilliseconds=n=>gV(n),this.setYear=(n,i)=>PW(n,i),this.setMonth=(n,i)=>OW(n,i),this.setDate=(n,i)=>EW(n,i),this.setHours=(n,i)=>TW(n,i),this.setMinutes=(n,i)=>_W(n,i),this.setSeconds=(n,i)=>kW(n,i),this.setMilliseconds=(n,i)=>MW(n,i),this.getDaysInMonth=n=>vy(n),this.getNextMonth=n=>il(n,1),this.getPreviousMonth=n=>il(n,-1),this.getMonthArray=n=>{const o=[dl(n)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(n,i)=>this.setSeconds(this.setMinutes(this.setHours(n,this.getHours(i)),this.getMinutes(i)),this.getSeconds(i)),this.getWeekdays=()=>{const n=new Date;return az({start:zn(n,{locale:this.locale}),end:Qf(n,{locale:this.locale})}).map(i=>this.formatByString(i,"EEEEEE"))},this.getWeekArray=n=>{const i=zn(Oy(n),{locale:this.locale}),o=Qf(Xf(n),{locale:this.locale});let a=0,s=i;const u=[];for(;ha(s,o);){const l=Math.floor(a/7);u[l]=u[l]||[],u[l].push(s),s=qf(s,1),a+=1}return u},this.getWeekNumber=n=>bV(n,{locale:this.locale}),this.getYearRange=(n,i)=>{const o=dl(n),a=Jf(i),s=[];let u=o;for(;ha(u,a);)s.push(u),u=ey(u,1);return s},this.getMeridiemText=n=>n==="am"?"AM":"PM",this.locale=t,this.formats=Ae({},QW,r)}}var eH={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},tH=function(t,r,n){var i,o=eH[t];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"há "+i:i};const rH=tH;var nH={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},iH={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oH={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aH={date:Zi({formats:nH,defaultWidth:"full"}),time:Zi({formats:iH,defaultWidth:"full"}),dateTime:Zi({formats:oH,defaultWidth:"full"})};const sH=aH;var lH={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},uH=function(t,r,n,i){var o=lH[t];return typeof o=="function"?o(r):o};const cH=uH;var fH={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},dH={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},hH={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},pH={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},gH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},mH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},vH=function(t,r){var n=Number(t);return(r==null?void 0:r.unit)==="week"?n+"ª":n+"º"},yH={ordinalNumber:vH,era:Pr({values:fH,defaultWidth:"wide"}),quarter:Pr({values:dH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pr({values:hH,defaultWidth:"wide"}),day:Pr({values:pH,defaultWidth:"wide"}),dayPeriod:Pr({values:gH,defaultWidth:"wide",formattingValues:mH,defaultFormattingWidth:"wide"})};const bH=yH;var xH=/^(\d+)[ºªo]?/i,wH=/\d+/i,CH={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},SH={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},EH={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},TH={any:[/1/i,/2/i,/3/i,/4/i]},_H={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},OH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},kH={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},MH={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},PH={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},AH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},DH={ordinalNumber:my({matchPattern:xH,parsePattern:wH,valueCallback:function(t){return parseInt(t,10)}}),era:Ar({matchPatterns:CH,defaultMatchWidth:"wide",parsePatterns:SH,defaultParseWidth:"any"}),quarter:Ar({matchPatterns:EH,defaultMatchWidth:"wide",parsePatterns:TH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ar({matchPatterns:_H,defaultMatchWidth:"wide",parsePatterns:OH,defaultParseWidth:"any"}),day:Ar({matchPatterns:kH,defaultMatchWidth:"wide",parsePatterns:MH,defaultParseWidth:"any"}),dayPeriod:Ar({matchPatterns:PH,defaultMatchWidth:"any",parsePatterns:AH,defaultParseWidth:"any"})},$H={code:"pt-BR",formatDistance:rH,formatLong:sH,formatRelative:cH,localize:bH,match:DH,options:{weekStartsOn:0,firstWeekContainsDate:1}};const IH=$H;var My={exports:{}},Py={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ay={exports:{}},FH=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},jH=FH,LH=Array.prototype.concat,RH=Array.prototype.slice,Dy=Ay.exports=function(t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];jH(o)?r=LH.call(r,RH.call(o)):r.push(o)}return r};Dy.wrap=function(e){return function(){return e(Dy(arguments))}};var BH=Ay.exports,ga=Py,ma=BH,$y=Object.hasOwnProperty,Iy=Object.create(null);for(var cd in ga)$y.call(ga,cd)&&(Iy[ga[cd]]=cd);var nr=My.exports={to:{},get:{}};nr.get=function(e){var t=e.substring(0,3).toLowerCase(),r,n;switch(t){case"hsl":r=nr.get.hsl(e),n="hsl";break;case"hwb":r=nr.get.hwb(e),n="hwb";break;default:r=nr.get.rgb(e),n="rgb";break}return r?{model:n,value:r}:null},nr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,u,l;if(s=e.match(r)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;a[u]=parseInt(s.slice(c,c+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)a[u]=parseInt(s[u]+s[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(n)){for(u=0;u<3;u++)a[u]=parseInt(s[u+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:$y.call(ga,s[1])?(a=ga[s[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=dn(a[u],0,255);return a[3]=dn(a[3],0,1),a},nr.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=e.match(t);if(r){var n=parseFloat(r[4]),i=(parseFloat(r[1])%360+360)%360,o=dn(parseFloat(r[2]),0,100),a=dn(parseFloat(r[3]),0,100),s=dn(isNaN(n)?1:n,0,1);return[i,o,a,s]}return null},nr.to.hex=function(){var e=ma(arguments);return"#"+pl(e[0])+pl(e[1])+pl(e[2])+(e[3]<1?pl(Math.round(e[3]*255)):"")},nr.to.rgb=function(){var e=ma(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},nr.to.rgb.percent=function(){var e=ma(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},nr.to.hsl=function(){var e=ma(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},nr.to.hwb=function(){var e=ma(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},nr.to.keyword=function(e){return Iy[e.slice(0,3)]};function dn(e,t,r){return Math.min(Math.max(t,e),r)}function pl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var NH=My.exports;const va=Py,Fy={};for(const e of Object.keys(va))Fy[va[e]]=e;const de={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var jy=de;for(const e of Object.keys(de)){if(!("channels"in de[e]))throw new Error("missing channels property: "+e);if(!("labels"in de[e]))throw new Error("missing channel labels property: "+e);if(de[e].labels.length!==de[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=de[e];delete de[e].channels,delete de[e].labels,Object.defineProperty(de[e],"channels",{value:t}),Object.defineProperty(de[e],"labels",{value:r})}de.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s,u;o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+o)/2;return o===i?u=0:l<=.5?u=a/(o+i):u=a/(2-o-i),[s,u*100,l*100]},de.rgb.hsv=function(e){let t,r,n,i,o;const a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,o=0):(o=c/l,t=f(a),r=f(s),n=f(u),a===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]},de.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=de.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]},de.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function zH(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}de.rgb.keyword=function(e){const t=Fy[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(va)){const o=va[i],a=zH(e,o);a<r&&(r=a,n=i)}return n},de.keyword.rgb=function(e){return va[e]},de.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]},de.rgb.lab=function(e){const t=de.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16,a=500*(r-n),s=200*(n-i);return[o,a,s]},de.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,o,a;if(r===0)return a=n*255,[a,a,a];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,u[l]=a*255;return u},de.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;const a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r);return[t,s*100,a*100]},de.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*o),u=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},de.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let o,a;a=(2-r)*n;const s=(2-r)*i;return o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]},de.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let o;i>1&&(r/=i,n/=i);const a=Math.floor(6*t),s=1-n;o=6*t-a,a&1&&(o=1-o);const u=r+o*(s-r);let l,c,f;switch(a){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]},de.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[o*255,a*255,s*255]},de.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]},de.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,o=500*(t-r),a=200*(r-n);return[i,o,a]},de.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;const s=o**3,u=i**3,l=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]},de.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(r*r+n*n);return[t,a,i]},de.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),a=r*Math.sin(i);return[t,o,a]},de.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?de.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(a+=60),a},de.hsv.ansi16=function(e){return de.rgb.ansi16(de.hsv.rgb(e),e[2])},de.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},de.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]},de.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]},de.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},de.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]},de.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),a=i-o;let s,u;return a<1?s=o/(1-a):s=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a,u/=6,u%=1,[u*360,a*100,s*100]},de.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]},de.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]},de.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]},de.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]},de.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]},de.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]},de.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]},de.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},de.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},de.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},de.gray.hsl=function(e){return[0,0,e[0]]},de.gray.hsv=de.gray.hsl,de.gray.hwb=function(e){return[0,100,e[0]]},de.gray.cmyk=function(e){return[0,0,0,e[0]]},de.gray.lab=function(e){return[e[0],0,0]},de.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},de.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const gl=jy;function VH(){const e={},t=Object.keys(gl);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function WH(e){const t=VH(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(gl[n]);for(let o=i.length,a=0;a<o;a++){const s=i[a],u=t[s];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(s))}}return t}function HH(e,t){return function(r){return t(e(r))}}function UH(e,t){const r=[t[e].parent,e];let n=gl[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=HH(gl[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var YH=function(e){const t=WH(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){const a=n[o];t[a].parent!==null&&(r[a]=UH(a,t))}return r};const fd=jy,GH=YH,Qi={},qH=Object.keys(fd);function KH(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function XH(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let o=i.length,a=0;a<o;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}qH.forEach(e=>{Qi[e]={},Object.defineProperty(Qi[e],"channels",{value:fd[e].channels}),Object.defineProperty(Qi[e],"labels",{value:fd[e].labels});const t=GH(e);Object.keys(t).forEach(n=>{const i=t[n];Qi[e][n]=XH(i),Qi[e][n].raw=KH(i)})});var ZH=Qi;const Ji=NH,ir=ZH,Ly=["keyword","gray","hex"],dd={};for(const e of Object.keys(ir))dd[[...ir[e].labels].sort().join("")]=e;const ml={};function It(e,t){if(!(this instanceof It))return new It(e,t);if(t&&t in Ly&&(t=null),t&&!(t in ir))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof It)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ji.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=ir[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=ir[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=hd(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in dd))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=dd[o];const{labels:a}=ir[this.model],s=[];for(r=0;r<a.length;r++)s.push(e[a[r]]);this.color=hd(s)}if(ml[this.model])for(n=ir[this.model].channels,r=0;r<n;r++){const i=ml[this.model][r];i&&(this.color[r]=i(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}It.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Ji.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to[t.model](r)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),r=t.valpha===1?t.color:[...t.color,this.valpha];return Ji.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ir[this.model],{labels:r}=ir[this.model];for(let n=0;n<t;n++)e[r[n]]=this.color[n];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new It([...this.color.map(JH(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new It([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:St("rgb",0,At(255)),green:St("rgb",1,At(255)),blue:St("rgb",2,At(255)),hue:St(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:St("hsl",1,At(100)),lightness:St("hsl",2,At(100)),saturationv:St("hsv",1,At(100)),value:St("hsv",2,At(100)),chroma:St("hcg",1,At(100)),gray:St("hcg",2,At(100)),white:St("hwb",1,At(100)),wblack:St("hwb",2,At(100)),cyan:St("cmyk",0,At(100)),magenta:St("cmyk",1,At(100)),yellow:St("cmyk",2,At(100)),black:St("cmyk",3,At(100)),x:St("xyz",0,At(95.047)),y:St("xyz",1,At(100)),z:St("xyz",2,At(108.833)),l:St("lab",0,At(100)),a:St("lab",1),b:St("lab",2),keyword(e){return e!==void 0?new It(e):ir[this.model].keyword(this.color)},hex(e){return e!==void 0?new It(e):Ji.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new It(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Ji.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return It.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=r.alpha()-n.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return It.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(ir)){if(Ly.includes(e))continue;const{channels:t}=ir[e];It.prototype[e]=function(...r){return this.model===e?new It(this):r.length>0?new It(r,e):new It([...eU(ir[this.model][e].raw(this.color)),this.valpha],e)},It[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=hd(r,t)),new It(n,e)}}function QH(e,t){return Number(e.toFixed(t))}function JH(e){return function(t){return QH(t,e)}}function St(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(ml[n]||(ml[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function At(e){return function(t){return Math.max(0,Math.min(e,t))}}function eU(e){return Array.isArray(e)?e:[e]}function hd(e,t){for(let r=0;r<t;r++)typeof e[r]!="number"&&(e[r]=0);return e}var tU=It;const rU=xn(tU),nt={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},nU={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},iU={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},oU={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},aU={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},sU={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:nt[800]},eo={common:{black:"#000",white:"#fff"},primary:nU,secondary:iU,info:oU,success:aU,warning:sU,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:nt,divider:W(nt[500],.24),action:{hover:W(nt[500],.08),selected:W(nt[500],.16),disabled:W(nt[500],.8),disabledBackground:W(nt[500],.24),focus:W(nt[500],.24),hoverOpacity:.08,disabledOpacity:.48}},hn=e=>{const t={...eo,mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{...eo.action,active:nt[600]}},r={...eo,mode:"dark",text:{primary:"#fff",secondary:nt[500],disabled:nt[600]},background:{paper:nt[800],default:nt[900],neutral:W(nt[500],.16)},action:{...eo.action,active:nt[500]}};return e==="light"?t:r},lU=e=>({lighter:lc(e,.815),light:lc(e,.225),main:e,dark:sc(e,.15),darker:sc(e,.35)}),uU=e=>rU(e).luminosity()<=.55?"#fff":nt[900],cU=e=>{const t=lU(e);return{...eo,primary:{...t,contrastText:uU(t.main)},mode:"light",text:{primary:nt[800],secondary:nt[600],disabled:nt[500]},background:{paper:"#fff",default:nt[100],neutral:nt[200]},action:{active:nt[600],...eo.action}}},Ry=hn("light"),fU=Ry.grey[500],dU=Ry.common.black;function By(e,t){const r=W(e,.16);return{z1:`0 1px 2px 0 ${r}`,z4:`0 4px 8px 0 ${r}`,z8:`0 8px 16px 0 ${r}`,z12:`0 12px 24px -4px ${r}`,z16:`0 16px 32px -4px ${r}`,z20:`0 20px 40px -4px ${r}`,z24:`0 24px 48px 0 ${r}`,primary:`0 8px 16px 0 ${W(t||hn("light").primary.main,.24)}`,info:`0 8px 16px 0 ${W(hn("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${W(hn("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${W(hn("light").success.main,.24)}`,warning:`0 8px 16px 0 ${W(hn("light").warning.main,.24)}`,error:`0 8px 16px 0 ${W(hn("light").error.main,.24)}`,card:`0 0 2px 0 ${W(e,.2)}, 0 12px 24px -4px ${W(e,.12)}`,dialog:`-40px 40px 80px -8px ${W(e,.24)}`,dropdown:`0 0 2px 0 ${W(e,.24)}, -20px 20px 40px -4px ${W(e,.24)}`}}const hU=(e,t)=>By(e==="light"?fU:dU,t),pU=()=>y.jsx(P.GlobalStyles,{styles:{"*":{boxSizing:"border-box"},html:{margin:0,padding:0,width:"100%",height:"100%",WebkitOverflowScrolling:"touch"},body:{margin:0,padding:0,width:"100%",height:"100%",backgroundColor:"#fff"},"#root":{width:"100%",height:"100%"},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}},"&[type=search]":{"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"}}},img:{display:"block",maxWidth:"100%"},ul:{margin:0,padding:0},".SnackbarContainer-root":{transform:"scale(1)",zIndex:"9999 !important",maxHeight:"0 !important","& .MuiCollapse-wrapper":{maxHeight:"0 !important"}}}}),gU=["primary","secondary","info","success","warning","error"];function mU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.color==="inherit",a=n.variant==="circular",s=n.variant==="extended",u=n.variant==="outlined",l=n.variant==="outlinedExtended",c=n.variant==="soft",f=n.variant==="softExtended",d={"&:hover, &:active":{boxShadow:"none"},...(a||s)&&{...(i||o)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(u||l)&&{boxShadow:"none",backgroundColor:"transparent",...(i||o)&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...i&&{...!t&&{color:e.palette.text.secondary}}},...(c||f)&&{boxShadow:"none",...i&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...o&&{backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},h=gU.map(v=>({...n.color===v&&{...(a||s)&&{boxShadow:e.customShadows[v],"&:hover":{backgroundColor:e.palette[v].dark}},...(u||l)&&{color:e.palette[v].main,border:`solid 1px ${W(e.palette[v].main,.48)}`,"&:hover":{backgroundColor:W(e.palette[v].main,.08),border:`solid 1px ${e.palette[v].main}`}},...(c||f)&&{color:e.palette[v][t?"dark":"light"],backgroundColor:W(e.palette[v].main,.16),"&:hover":{backgroundColor:W(e.palette[v].main,.32)}}}})),m={"&.Mui-disabled":{...(u||l)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},p={...(s||l||f)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...n.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...n.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...n.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...h,d,m,p]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function vU(e){return{MuiCard:{styleOverrides:{root:{position:"relative",boxShadow:e.customShadows.card,borderRadius:Number(e.shape.borderRadius)*2,zIndex:0}}},MuiCardHeader:{defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:e.spacing(.5)}},styleOverrides:{root:{padding:e.spacing(3,3,0)}}},MuiCardContent:{styleOverrides:{root:{padding:e.spacing(3)}}}}}function yU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L12,10.59 L13.29,9.29 C13.6821222,8.89787783 14.3178778,8.89787783 14.71,9.29 C15.1021222,9.68212217 15.1021222,10.3178778 14.71,10.71 L13.41,12 L14.71,13.29 Z"})})}function Ny(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z"})})}function bU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M13,16 C13,16.5522847 12.5522847,17 12,17 C11.4477153,17 11,16.5522847 11,16 L11,11 C11,10.4477153 11.4477153,10 12,10 C12.5522847,10 13,10.4477153 13,11 L13,16 Z M12,9 C11.4477153,9 11,8.55228475 11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 C13,8.55228475 12.5522847,9 12,9 Z"})})}function xU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M22.56,16.3 L14.89,3.58 C14.2597186,2.59400001 13.1702353,1.99737652 12,1.99737652 C10.8297647,1.99737652 9.74028139,2.59400001 9.11,3.58 L1.44,16.3 C0.888546003,17.2192471 0.869485343,18.3628867 1.39,19.3 C1.99197363,20.3551378 3.11522982,21.0046397 4.33,21 L19.67,21 C20.8765042,21.0128744 21.9978314,20.3797441 22.61,19.34 C23.146086,18.3926382 23.1269508,17.2292197 22.56,16.3 L22.56,16.3 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,9 C11,8.44771525 11.4477153,8 12,8 C12.5522847,8 13,8.44771525 13,9 L13,13 Z"})})}function wU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M16.3,9.61 L11.73,15.61 C11.5412074,15.855247 11.2494966,15.9992561 10.94,16.0000145 C10.6322197,16.001658 10.3408221,15.861492 10.15,15.62 L7.71,12.51 C7.49028166,12.2277602 7.43782669,11.8497415 7.57239438,11.5183399 C7.70696206,11.1869384 8.00810836,10.9525017 8.36239438,10.9033399 C8.7166804,10.8541782 9.07028166,10.9977602 9.29,11.28 L10.92,13.36 L14.7,8.36 C14.917932,8.07418751 15.2717886,7.92635122 15.6282755,7.97217964 C15.9847624,8.01800806 16.2897207,8.25053875 16.4282755,8.58217966 C16.5668304,8.91382056 16.517932,9.29418753 16.3,9.58 L16.3,9.61 Z"})})}function CU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12,2 C6.4771525,2 2,6.4771525 2,12 C2,17.5228475 6.4771525,22 12,22 C17.5228475,22 22,17.5228475 22,12 C22,9.3478351 20.9464316,6.80429597 19.0710678,4.92893219 C17.195704,3.0535684 14.6521649,2 12,2 Z M12,17 C11.4477153,17 11,16.5522847 11,16 C11,15.4477153 11.4477153,15 12,15 C12.5522847,15 13,15.4477153 13,16 C13,16.5522847 12.5522847,17 12,17 Z M13,13 C13,13.5522847 12.5522847,14 12,14 C11.4477153,14 11,13.5522847 11,13 L11,8 C11,7.44771525 11.4477153,7 12,7 C12.5522847,7 13,7.44771525 13,8 L13,13 Z"})})}function SU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function EU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function TU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}function _U(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Z"})})}function OU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M12 2A10 10 0 1 1 2 12C2 6.477 6.477 2 12 2Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17ZM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"})})}function kU(e){return y.jsx(P.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:y.jsx("path",{d:"M12,16 C11.7663478,16.0004565 11.5399121,15.9190812 11.36,15.77 L5.36,10.77 C4.93474074,10.4165378 4.87653776,9.78525926 5.23,9.36 C5.58346224,8.93474074 6.21474074,8.87653776 6.64,9.23 L12,13.71 L17.36,9.39 C17.5665934,9.2222295 17.8315409,9.14373108 18.0961825,9.17188444 C18.3608241,9.2000378 18.6033268,9.33252029 18.77,9.54 C18.9551341,9.74785947 19.0452548,10.0234772 19.0186853,10.3005589 C18.9921158,10.5776405 18.8512608,10.8311099 18.63,11 L12.63,15.83 C12.444916,15.955516 12.2231011,16.0153708 12,16 Z"})})}function MU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M12,8 C12.5522847,8 13,8.44771525 13,9 L13,9 L13,11 L15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L13,13 L13,15 C13,15.5522847 12.5522847,16 12,16 C11.4477153,16 11,15.5522847 11,15 L11,15 L11,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 L11,11 L11,9 C11,8.44771525 11.4477153,8 12,8 Z"})})}function PU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M15,11 C15.5522847,11 16,11.4477153 16,12 C16,12.5522847 15.5522847,13 15,13 L15,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 L9,11 Z"})})}function AU(e){return y.jsx(P.SvgIcon,{...e,children:y.jsx("path",{d:"M18,3 C19.6568542,3 21,4.34314575 21,6 L21,6 L21,18 C21,19.6568542 19.6568542,21 18,21 L18,21 L6,21 C4.34314575,21 3,19.6568542 3,18 L3,18 L3,6 C3,4.34314575 4.34314575,3 6,3 L6,3 Z M18,5 L6,5 C5.44771525,5 5,5.44771525 5,6 L5,6 L5,18 C5,18.5522847 5.44771525,19 6,19 L6,19 L18,19 C18.5522847,19 19,18.5522847 19,18 L19,18 L19,6 C19,5.44771525 18.5522847,5 18,5 L18,5 Z M14,8.99420168 C14.2666375,8.99420168 14.5222334,9.10068735 14.71,9.29 C14.8993127,9.4777666 15.0057983,9.73336246 15.0057983,10 C15.0057983,10.2666375 14.8993127,10.5222334 14.71,10.71 L14.71,10.71 L13.41,12 L14.71,13.29 C14.8993127,13.4777666 15.0057983,13.7333625 15.0057983,14 C15.0057983,14.2666375 14.8993127,14.5222334 14.71,14.71 C14.5222334,14.8993127 14.2666375,15.0057983 14,15.0057983 C13.7333625,15.0057983 13.4777666,14.8993127 13.29,14.71 L13.29,14.71 L12,13.41 L10.71,14.71 C10.5222334,14.8993127 10.2666375,15.0057983 10,15.0057983 C9.73336246,15.0057983 9.4777666,14.8993127 9.29,14.71 C9.10068735,14.5222334 8.99420168,14.2666375 8.99420168,14 C8.99420168,13.7333625 9.10068735,13.4777666 9.29,13.29 L9.29,13.29 L10.59,12 L9.29,10.71 C8.89787783,10.3178778 8.89787783,9.68212217 9.29,9.29 C9.68212217,8.89787783 10.3178778,8.89787783 10.71,9.29 L10.71,9.29 L12,10.59 L13.29,9.29 C13.4777666,9.10068735 13.7333625,8.99420168 14,8.99420168 Z"})})}const DU=["primary","secondary","info","success","warning","error"];function $U(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="default",o=n.variant==="filled",a=n.variant==="outlined",s=n.variant==="soft",u={...i&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:W(e.palette.grey[500],.48)},...a&&{border:`solid 1px ${W(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.16),"&:hover":{backgroundColor:W(e.palette.grey[500],.32)}}}};return[...DU.map(c=>({...n.color===c&&{"& .MuiChip-avatar":{color:e.palette[c].lighter,backgroundColor:e.palette[c].dark},...o&&{"& .MuiChip-deleteIcon":{color:W(e.palette[c].contrastText,.56),"&:hover":{color:e.palette[c].contrastText}}},...s&&{color:e.palette[c][t?"dark":"light"],backgroundColor:W(e.palette[c].main,.16),"&:hover":{backgroundColor:W(e.palette[c].main,.32)},"& .MuiChip-deleteIcon":{color:W(e.palette[c][t?"dark":"light"],.48),"&:hover":{color:e.palette[c].dark}}}}})),u]};return{MuiChip:{defaultProps:{deleteIcon:y.jsx(yU,{})},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function IU(e){return{MuiTabs:{defaultProps:{textColor:"inherit",allowScrollButtonsMobile:!0,variant:"scrollable"},styleOverrides:{scrollButtons:{width:48,borderRadius:"50%"}}},MuiTab:{defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({ownerState:t})=>({padding:0,opacity:1,minWidth:48,fontWeight:e.typography.fontWeightMedium,"&:not(:last-of-type)":{marginRight:e.spacing(3),[e.breakpoints.up("sm")]:{marginRight:e.spacing(5)}},"&:not(.Mui-selected)":{color:e.palette.text.secondary},...(t.iconPosition==="start"||t.iconPosition==="end")&&{minHeight:48}})}}}}function FU(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function jU(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function LU(e){return{MuiListItemIcon:{styleOverrides:{root:{color:"inherit",minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemAvatar:{styleOverrides:{root:{minWidth:"auto",marginRight:e.spacing(2)}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},multiline:{marginTop:0,marginBottom:0}}}}}function RU(e){return{MuiTableContainer:{styleOverrides:{root:{position:"relative"}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:"none"},head:{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral},stickyHeader:{backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`},paddingCheckbox:{paddingLeft:e.spacing(1)}}},MuiTablePagination:{defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"},SelectProps:{MenuProps:{MenuListProps:{sx:{"& .MuiMenuItem-root":{...e.typography.body2}}}}}},styleOverrides:{root:{borderTop:`solid 1px ${e.palette.divider}`},toolbar:{height:64},actions:{marginRight:e.spacing(1)},select:{"&:focus":{borderRadius:e.shape.borderRadius}}}}}}const BU=["info","success","warning","error"];function NU(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="standard",o=n.variant==="filled",a=n.variant==="outlined";return[...BU.map(u=>({...n.severity===u&&{...i&&{color:e.palette[u][t?"darker":"lighter"],backgroundColor:e.palette[u][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[u][t?"main":"light"]}},...o&&{color:e.palette[u].contrastText,backgroundColor:e.palette[u].main},...a&&{color:e.palette[u][t?"dark":"light"],border:`solid 1px ${e.palette[u].main}`,"& .MuiAlert-icon":{color:e.palette[u].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:y.jsx(bU,{}),success:y.jsx(wU,{}),warning:y.jsx(xU,{}),error:y.jsx(CU,{})}},styleOverrides:{root:({ownerState:n})=>r(n),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function zU(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function VU(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function WU(e){return{MuiInputBase:{styleOverrides:{root:{"&.Mui-disabled":{"& svg":{color:e.palette.text.disabled}}},input:{"&::placeholder":{opacity:1,color:e.palette.text.disabled}}}},MuiInput:{styleOverrides:{underline:{"&:before":{borderBottomColor:W(e.palette.grey[500],.56)},"&:after":{borderBottomColor:e.palette.text.primary}}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputLabel-root.Mui-focused":{color:e.palette.text.primary}}}},MuiFilledInput:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:W(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:W(e.palette.grey[500],.32)},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderWidth:1,borderColor:e.palette.text.primary}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.action.disabledBackground}}}}}}}function HU(e){return{MuiRadio:{defaultProps:{icon:y.jsx(_U,{}),checkedIcon:y.jsx(OU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function UU(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${W(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function YU(e){return{MuiDialog:{styleOverrides:{paper:{boxShadow:e.customShadows.dialog,"&.MuiPaper-rounded":{borderRadius:Number(e.shape.borderRadius)*2},"&.MuiDialog-paperFullScreen":{borderRadius:0},"&.MuiDialog-paper .MuiDialogActions-root":{padding:e.spacing(3)},"@media (max-width: 600px)":{margin:e.spacing(2)},"@media (max-width: 663.95px)":{"&.MuiDialog-paperWidthSm.MuiDialog-paperScrollBody":{maxWidth:"100%"}}},paperFullWidth:{width:"100%"}}},MuiDialogTitle:{styleOverrides:{root:{padding:e.spacing(3)}}},MuiDialogContent:{styleOverrides:{root:{padding:e.spacing(0,3)},dividers:{borderTop:0,borderBottomStyle:"dashed",paddingBottom:e.spacing(3)}}},MuiDialogActions:{styleOverrides:{root:{"& > :not(:first-of-type)":{marginLeft:e.spacing(1.5)}}}}}}function GU(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.24)}}},MuiAvatarGroup:{defaultProps:{max:4},styleOverrides:{root:{justifyContent:"flex-end"},avatar:{fontSize:16,fontWeight:e.typography.fontWeightMedium,"&:first-of-type":{fontSize:12,color:e.palette.primary.main,backgroundColor:e.palette.primary.lighter}}}}}}function qU(e){return{MuiRating:{defaultProps:{emptyIcon:y.jsx(Ny,{}),icon:y.jsx(Ny,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:W(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function KU(e){const t=e.palette.mode==="light";return{MuiSlider:{defaultProps:{size:"small"},styleOverrides:{root:{"&.Mui-disabled":{color:e.palette.action.disabled}},rail:{opacity:.32},markLabel:{fontSize:13,color:e.palette.text.disabled},valueLabel:{borderRadius:8,backgroundColor:e.palette.grey[t?800:700]}}}}}const XU=["primary","secondary","info","success","warning","error"];function ZU(e){const t=e.palette.mode==="light",r=n=>{const i=n.color==="inherit",o=n.variant==="contained",a=n.variant==="outlined",s=n.variant==="text",u=n.variant==="soft",l=n.size==="small",c=n.size==="large",f={textTransform:"none",...i&&{...o&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...a&&{borderColor:W(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...u&&{color:e.palette.text.primary,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{backgroundColor:W(e.palette.grey[500],.24)}}}},d=XU.map(p=>({...n.color===p&&{...o&&{"&:hover":{boxShadow:e.customShadows[p]}},...u&&{color:e.palette[p][t?"dark":"light"],backgroundColor:W(e.palette[p].main,.16),"&:hover":{backgroundColor:W(e.palette[p].main,.32)}}}})),h={"&.Mui-disabled":{...u&&{backgroundColor:e.palette.action.disabledBackground}}},m={...l&&{height:30,fontSize:13,...u&&{padding:"4px 10px"}},...c&&{height:48,fontSize:15,...u&&{padding:"8px 22px"}}};return[...d,f,h,m]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function QU(e){const t=e.palette.mode==="light",r=n=>({padding:"9px 13px 9px 12px",width:58,height:38,...n.size==="small"&&{padding:"4px 8px 4px 7px",width:40,height:24},"& .MuiSwitch-thumb":{width:14,height:14,boxShadow:"none",color:`${e.palette.common.white} !important`,...n.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:W(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...n.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...n.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:n})=>r(n)}}}}function JU(e){return{MuiSelect:{defaultProps:{IconComponent:kU}}}}function eY(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function tY(e){const t=e.palette.mode==="light";return{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.grey[t?800:700]},arrow:{color:e.palette.grey[t?800:700]}}}}}function rY(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function nY(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function iY(e){return{MuiDataGrid:{styleOverrides:{root:{borderRadius:0,border:"none","& .clickable-row":{cursor:"pointer"},"& .no-clickable-row .clickable-row":{cursor:"initial"},"& .no-clickable-row .clickable-row:hover":{backgroundColor:"initial"},"&.simple":{"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:"#fff",borderBottom:"none",borderRadius:0},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:700,fontSize:11}},"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{padding:"0 16px"},"& .MuiDataGrid-columnHeaders":{color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,borderRadius:0},"& .MuiDataGrid-pinnedColumnHeaders":{backgroundColor:"inherit",boxShadow:"none"},"& .MuiDataGrid-pinnedColumns--right":{backgroundColor:"#fff",boxShadow:"-2px 0px 4px -2px rgba(0, 0, 0, 0.075)"},"& .MuiDataGrid-pinnedColumns--left":{backgroundColor:"#fff",boxShadow:"2px 0px 4px -2px rgba(0, 0, 0, 0.071)"},"& .MuiDataGrid-columnHeader--moving":{backgroundColor:e.palette.background.neutral},"& .MuiDataGrid-columnHeaderCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-cellCheckbox":{width:"64px !important",minWidth:"64px !important",maxWidth:"64px !important"},"& .MuiDataGrid-pinnedRows":{boxShadow:"none",fontWeight:"bold"},"& .hide-checkbox-select-all div":{display:"none !important"},"& .MuiDataGrid-cell, .MuiDataGrid-columnsContainer":{border:"none"},"& .MuiDataGrid-columnSeparator":{color:e.palette.divider},"& .MuiDataGrid-columnSeparator:hover":{color:e.palette.primary.main},'& .MuiDataGrid-cell[data-field="__check__"]':{padding:0},'& .MuiDataGrid-columnHeader[data-field="__check__"]':{padding:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},toolbarContainer:{padding:e.spacing(2),backgroundColor:e.palette.background.paper,borderTop:`solid 1px ${e.palette.divider}`,"& .MuiButton-root":{marginRight:e.spacing(1.5),color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}}},paper:{boxShadow:e.customShadows.dropdown},menu:{"& .MuiPaper-root":{boxShadow:e.customShadows.dropdown,padding:8,borderRadius:12},"& .MuiMenuItem-root":{borderRadius:8,...e.typography.body2,"& .MuiListItemIcon-root":{minWidth:"auto",color:e.palette.primary.main},"& .MuiListItemText-primary":{fontSize:14}}},panelFooter:{padding:e.spacing(2),justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,"& .MuiButton-root":{"&:first-of-type":{marginRight:e.spacing(1.5),color:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.action.hover}},"&:last-of-type":{color:e.palette.common.white,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark}}}},filterForm:{padding:e.spacing(1.5,0),"& .MuiFormControl-root":{margin:e.spacing(0,.5)},"& .MuiInput-root":{marginTop:e.spacing(3),"&::before, &::after":{display:"none"},"& .MuiNativeSelect-select, .MuiInput-input":{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral},"& .MuiSvgIcon-root":{right:4}}}}}}}function oY(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function aY(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:W(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const sY=["primary","secondary","info","success","warning","error"];function lY(e){const t=r=>{const n=r.variant==="buffer",i={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...n&&{backgroundColor:"transparent"}};return[...sY.map(a=>({...r.color===a&&{backgroundColor:P.alpha(e.palette[a].main,.24)}})),i]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:r})=>t(r)}}}}function uY(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function cY(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:y.jsx(MU,{sx:{width:20,height:20}}),defaultExpandIcon:y.jsx(PU,{sx:{width:20,height:20}}),defaultEndIcon:y.jsx(AU,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function fY(e){return{MuiCheckbox:{defaultProps:{icon:y.jsx(SU,{}),checkedIcon:y.jsx(EU,{}),indeterminateIcon:y.jsx(TU,{})},styleOverrides:{root:({ownerState:t})=>({padding:e.spacing(1),...t.size==="small"&&{"& svg":{width:20,height:20}},...t.size==="medium"&&{"& svg":{width:24,height:24}}})}}}}function dY(e){return{MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{boxShadow:e.customShadows.z8,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),"&.Mui-disabled":{opacity:1,color:e.palette.action.disabled,"& .MuiTypography-root":{color:"inherit"}}},expandIconWrapper:{color:"inherit"}}}}}function hY(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const pY=["primary","secondary","info","success","warning","error"];function gY(e){const t=e.palette.mode==="light",r=n=>{const i=n.variant==="outlined",o=n.variant==="soft",a={"& .MuiPaginationItem-root":{...i&&{borderColor:W(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...pY.map(u=>({...n.color===u&&{...o&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[u][t?"dark":"light"],backgroundColor:W(e.palette[u].main,.16),"&:hover":{backgroundColor:W(e.palette[u].main,.32)}}}}}})),a]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:n})=>r(n)}}}}function mY(e){return{MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},li:{display:"inline-flex",margin:e.spacing(.25,0),"& > *":{...e.typography.body2}}}}}}const vY=["primary","secondary","info","success","warning","error"];function yY(e){const t=r=>{const n=r.color==="inherit",i=r.variant==="contained",o=r.variant==="outlined",a=r.variant==="text",s=r.variant==="soft",u=r.orientation==="horizontal",l=r.orientation==="vertical",c={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{borderStyle:"solid",...n&&{borderColor:W(e.palette.grey[500],.32)},...u&&{borderWidth:"0px 1px 0px 0px"},...l&&{borderWidth:"0px 0px 1px 0px"}}}}},f=vY.map(h=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!o&&{...r.color===h&&{...i&&{borderColor:W(e.palette[h].dark,.48)},...a&&{borderColor:W(e.palette[h].main,.48)},...s&&{borderColor:W(e.palette[h].dark,.24)}}}}}})),d={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...f,c,d]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:r})=>t(r)}}}}function bY(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:W(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const xY=["primary","secondary","info","success","warning","error"];function wY(e){const t=r=>{const i={...r.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},o=xY.map(s=>({...r.color===s&&{"&:hover":{borderColor:W(e.palette[s].main,.48),backgroundColor:W(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),a={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...o,i,a]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:r})=>t(r)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function CY(e){return{MuiFormControlLabel:{styleOverrides:{label:{...e.typography.body2}}},MuiFormHelperText:{defaultProps:{component:"div"},styleOverrides:{root:{marginTop:e.spacing(1)}}},MuiFormLabel:{styleOverrides:{root:{color:e.palette.text.disabled}}}}}function SY(e){return{MuiLoadingButton:{variants:[{props:{loading:!0,loadingPosition:"start",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorStart":{left:10}}},{props:{loading:!0,loadingPosition:"end",size:"small"},style:{"& .MuiLoadingButton-loadingIndicatorEnd":{right:10}}}],styleOverrides:{loadingIndicatorStart:{left:14},loadingIndicatorEnd:{right:14}}}}}function EY(e){return Object.assign(mU(e),IU(e),$U(e),vU(e),FU(e),jU(),WU(e),HU(e),zU(),LU(e),RU(e),VU(),NU(e),QU(e),JU(),ZU(e),qU(e),YU(e),GU(e),KU(e),UU(e),nY(e),tY(e),rY(e),eY(),fY(e),iY(e),oY(e),uY(e),cY(e),aY(e),lY(e),dY(e),hY(e),gY(e),yY(e),mY(e),bY(e),CY(e),wY(e),SY())}const zy=hn("light"),TY=zy.grey[500],_Y=zy.common.black;function Vy(e){const t=W(e,.2),r=W(e,.14),n=W(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${r},0px 1px 3px 0px ${n}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${r},0px 1px 5px 0px ${n}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${r},0px 1px 8px 0px ${n}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${r},0px 1px 10px 0px ${n}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${r},0px 1px 14px 0px ${n}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${r},0px 1px 18px 0px ${n}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${r},0px 2px 16px 1px ${n}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${r},0px 3px 14px 2px ${n}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${r},0px 3px 16px 2px ${n}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${r},0px 4px 18px 3px ${n}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${r},0px 4px 20px 3px ${n}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${r},0px 5px 22px 4px ${n}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${r},0px 5px 24px 4px ${n}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${r},0px 5px 26px 4px ${n}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${r},0px 6px 28px 5px ${n}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${r},0px 6px 30px 5px ${n}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${r},0px 6px 32px 5px ${n}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${r},0px 7px 34px 6px ${n}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${r},0px 7px 36px 6px ${n}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${r},0px 8px 38px 7px ${n}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${r},0px 8px 40px 7px ${n}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${r},0px 8px 42px 7px ${n}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${r},0px 9px 44px 8px ${n}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${r},0px 9px 46px 8px ${n}`]}const OY=e=>Vy(e==="light"?TY:_Y);function Bt(e){return`${e/16}rem`}function to({sm:e,md:t,lg:r}){return{"@media (min-width:600px)":{fontSize:Bt(e)},"@media (min-width:900px)":{fontSize:Bt(t)},"@media (min-width:1200px)":{fontSize:Bt(r)}}}const kY={fontFamily:"Public Sans, sans-serif",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:Bt(40),...to({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:Bt(32),...to({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:Bt(24),...to({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:Bt(20),...to({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:Bt(18),...to({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:Bt(17),...to({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:Bt(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:Bt(14)},body1:{lineHeight:1.5,fontSize:Bt(16)},body2:{lineHeight:22/14,fontSize:Bt(14)},caption:{lineHeight:1.5,fontSize:Bt(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:Bt(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:Bt(14),textTransform:"capitalize"}},Wy=({children:e,color:t,direction:r="ltr",themeMode:n="light"})=>{const i=g.useMemo(()=>({palette:cU(t),typography:kY,shape:{borderRadius:8},direction:r,shadows:OY(n),customShadows:hU(n,t)}),[t,r,n]),o=pg(i);return o.components=EY(o),y.jsx(G0,{injectFirst:!0,children:y.jsxs(mg,{theme:o,children:[y.jsx(P.CssBaseline,{}),y.jsx(pU,{}),e]})})},rZ="",nZ="",MY=({themeColor:e,children:t})=>y.jsx(co.LocalizationProvider,{dateAdapter:JW,adapterLocale:IH,children:y.jsx(Wy,{color:e,children:t})}),ro=e=>e&&e.charAt(0).toUpperCase(),PY=e=>["A","N","H","L","Q"].includes(ro(e))?"primary":["F","G","T","I","J"].includes(ro(e))?"info":["K","D","Y","B","O"].includes(ro(e))?"success":["P","E","R","S","U"].includes(ro(e))?"warning":["V","W","X","M","Z"].includes(ro(e))?"error":"default",Hy=g.forwardRef(({color:e,name:t="",BadgeProps:r,children:n,sx:i,...o},a)=>{var d,h;const s=mi(),u=ro(t),l=PY(t),c=e||l,f=c==="default"?y.jsxs(P.Avatar,{ref:a,sx:i,...o,children:[t&&u,n]}):y.jsxs(P.Avatar,{ref:a,sx:{color:(d=s.palette[c])==null?void 0:d.contrastText,backgroundColor:(h=s.palette[c])==null?void 0:h.main,fontWeight:s.typography.fontWeightMedium,...i},...o,children:[t&&u,n]});return r?y.jsx(P.Badge,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...r,children:f}):f});Hy.displayName="CustomAvatar";const pn={tiny:24,small:32,medium:40,large:56},Uy=g.forwardRef(({size:e="small",compact:t,max:r,children:n,sx:i,...o},a)=>{const s=e==="tiny",u=e==="small",l=e==="medium",c=e==="large",f={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return y.jsx(P.AvatarGroup,{ref:a,max:t?3:r,spacing:(s||u)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...c&&{width:pn.large,height:pn.large,"&:first-of-type":{fontSize:16}},...l&&{width:pn.medium,height:pn.medium},...u&&{width:pn.small,height:pn.small},...s&&{width:pn.tiny,height:pn.tiny}},...t&&{...f},...i},...o,children:n})});Uy.displayName="CustomAvatarGroup";const Yy=P.styled(P.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),AY=()=>{const e=Xn.useGridApiContext(),{rowHeight:t,paginationModel:r}=Xn.useGridRootProps(),n=(r==null?void 0:r.pageSize)||12,i=Xn.gridColumnsTotalWidthSelector(e),o=Xn.gridColumnPositionsSelector(e),a=g.useMemo(()=>o.filter(l=>l<=i).length,[i,o]),s=e.current.getVisibleColumns().slice(0,a),u=g.useMemo(()=>{const l=[];for(let c=0;c<n;c+=1){for(const f of s)l.push(y.jsx(Yy,{sx:{justifyContent:f.align,minWidth:f.cellClassName==="MuiDataGrid-cellCheckbox"?64:void 0},children:y.jsx(P.Skeleton,{width:"100%"})},`column-${c}-${f.field}`));l.push(y.jsx(Yy,{},`fill-${c}`))}return l},[n,s]);return y.jsx("div",{style:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:l})=>`${l}px`).join(" ")} 1fr`,gridAutoRows:t},children:u})},DY=({columns:e,...t})=>{const r=[{...Xn.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],n=g.useCallback(i=>({bottom:i.isLastVisible?0:8}),[]);return y.jsx(Xn.DataGridPremium,{columns:r,autoHeight:!0,rowHeight:72,getRowSpacing:n,slots:{loadingOverlay:AY},localeText:{actionsCellMore:"Ações",aggregationFunctionLabelAvg:"Média",aggregationFunctionLabelMax:"Máx",aggregationFunctionLabelMin:"Mín",aggregationFunctionLabelSize:"Quantidade",aggregationFunctionLabelSum:"Soma",aggregationMenuItemHeader:"Agregação",booleanCellFalseLabel:"Ativos",booleanCellTrueLabel:"Inativos",checkboxSelectionHeaderName:"Coluna se Seleção",columnHeaderFiltersLabel:"Filtro",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar coluna",columnMenuLabel:"Colunas",columnMenuManageColumns:"Gerenciar colunas",columnsPanelHideAllButton:"Ocultar todas",columnsPanelShowAllButton:"Mostar todas",columnsPanelTextFieldLabel:"Buscar coluna",columnsPanelTextFieldPlaceholder:"Digite o nome da coluna",filterPanelAddFilter:"Adicionar filtro",filterPanelColumns:"Colunas",filterPanelDeleteIconLabel:"Remover",filterPanelInputLabel:"Filtro",filterPanelInputPlaceholder:"Valor do filtro",filterPanelLogicOperator:"Condição",filterPanelOperator:"Condição",filterPanelOperatorAnd:"e",filterPanelOperatorOr:"ou",filterPanelRemoveAll:"Remover todos",groupColumn:i=>`Agrupar por ${i}`,groupingColumnHeaderName:"Grupo",pinToLeft:"Fixar na esquerda",pinToRight:"Fixar na direita",toolbarColumns:"Colunas",toolbarDensity:"Densidade",toolbarDensityComfortable:"Confortável",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padrão",toolbarExport:"Exportar",toolbarExportCSV:"Exportar como CSV",toolbarExportExcel:"Exportar como Excel",toolbarExportLabel:"Exportar",toolbarExportPrint:"Imprimir",toolbarFilters:"Filtros",unGroupColumn:i=>`Parar de agrupar por ${i}`,unpin:"Desafixar",footerRowSelected:i=>`${i} ${i===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"N° de linhas",labelDisplayedRows:i=>`${i.from}-${i.to} de ${i.count}`}},...t})},$Y=({children:e,waitBeforeShow:t=500})=>{const[r,n]=g.useState(!1);return g.useEffect(()=>{const i=setTimeout(()=>n(!0),t);return()=>clearTimeout(i)},[t]),r?e:null};var Gy={exports:{}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")(),p=Object.prototype.toString,v=Math.max,x=Math.min,b=function(){return m.Date.now()};function C(w){var _=typeof w;return!!w&&(_=="object"||_=="function")}function E(w){if(typeof w=="number")return w;if(function(k){return typeof k=="symbol"||function(D){return!!D&&typeof D=="object"}(k)&&p.call(k)=="[object Symbol]"}(w))return NaN;if(C(w)){var _=typeof w.valueOf=="function"?w.valueOf():w;w=C(_)?_+"":_}if(typeof w!="string")return w===0?w:+w;w=w.replace(s,"");var O=l.test(w);return O||c.test(w)?f(w.slice(2),O?2:8):u.test(w)?NaN:+w}i.exports=function(w,_,O){var k,D,L,re,pe,se,q=0,G=!1,me=!1,Ee=!0;if(typeof w!="function")throw new TypeError("Expected a function");function Ie(ee){var H=k,fe=D;return k=D=void 0,q=ee,re=w.apply(fe,H)}function Oe(ee){var H=ee-se;return se===void 0||H>=_||H<0||me&&ee-q>=L}function $(){var ee=b();if(Oe(ee))return j(ee);pe=setTimeout($,function(H){var fe=_-(H-se);return me?x(fe,L-(H-q)):fe}(ee))}function j(ee){return pe=void 0,Ee&&k?Ie(ee):(k=D=void 0,re)}function X(){var ee=b(),H=Oe(ee);if(k=arguments,D=this,se=ee,H){if(pe===void 0)return function(fe){return q=fe,pe=setTimeout($,_),G?Ie(fe):re}(se);if(me)return pe=setTimeout($,_),Ie(se)}return pe===void 0&&(pe=setTimeout($,_)),re}return _=E(_)||0,C(O)&&(G=!!O.leading,L=(me="maxWait"in O)?v(E(O.maxWait)||0,_):L,Ee="trailing"in O?!!O.trailing:Ee),X.cancel=function(){pe!==void 0&&clearTimeout(pe),q=0,k=se=D=pe=void 0},X.flush=function(){return pe===void 0?re:j(b())},X}},96:(i,o,a)=>{var s="Expected a function",u=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,m=parseInt,p=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,x=p||v||Function("return this")(),b=Object.prototype.toString,C=Math.max,E=Math.min,w=function(){return x.Date.now()};function _(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function O(k){if(typeof k=="number")return k;if(function(re){return typeof re=="symbol"||function(pe){return!!pe&&typeof pe=="object"}(re)&&b.call(re)==l}(k))return u;if(_(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=_(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(c,"");var L=d.test(k);return L||h.test(k)?m(k.slice(2),L?2:8):f.test(k)?u:+k}i.exports=function(k,D,L){var re=!0,pe=!0;if(typeof k!="function")throw new TypeError(s);return _(L)&&(re="leading"in L?!!L.leading:re,pe="trailing"in L?!!L.trailing:pe),function(se,q,G){var me,Ee,Ie,Oe,$,j,X=0,ee=!1,H=!1,fe=!0;if(typeof se!="function")throw new TypeError(s);function ue(be){var R=me,Be=Ee;return me=Ee=void 0,X=be,Oe=se.apply(Be,R)}function ge(be){var R=be-j;return j===void 0||R>=q||R<0||H&&be-X>=Ie}function Z(){var be=w();if(ge(be))return Q(be);$=setTimeout(Z,function(R){var Be=q-(R-j);return H?E(Be,Ie-(R-X)):Be}(be))}function Q(be){return $=void 0,fe&&me?ue(be):(me=Ee=void 0,Oe)}function ne(){var be=w(),R=ge(be);if(me=arguments,Ee=this,j=be,R){if($===void 0)return function(Be){return X=Be,$=setTimeout(Z,q),ee?ue(Be):Oe}(j);if(H)return $=setTimeout(Z,q),ue(j)}return $===void 0&&($=setTimeout(Z,q)),Oe}return q=O(q)||0,_(G)&&(ee=!!G.leading,Ie=(H="maxWait"in G)?C(O(G.maxWait)||0,q):Ie,fe="trailing"in G?!!G.trailing:fe),ne.cancel=function(){$!==void 0&&clearTimeout($),X=0,me=j=Ee=$=void 0},ne.flush=function(){return $===void 0?Oe:Q(w())},ne}(k,D,{leading:re,maxWait:D,trailing:pe})}},703:(i,o,a)=>{var s=a(414);function u(){}function l(){}l.resetWarningCache=u,i.exports=function(){function c(h,m,p,v,x,b){if(b!==s){var C=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 C.name="Invariant Violation",C}}function f(){return c}c.isRequired=c;var d={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:l,resetWarningCache:u};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var a in o)r.o(o,a)&&!r.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{LazyLoadComponent:()=>le,LazyLoadImage:()=>ct,trackWindowScroll:()=>j});const i=g;var o=r.n(i),a=r(697);const s=Rd;var u=r.n(s);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(I){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},c(I)}function f(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,z)}return B}function d(I,M,B){return(M=m(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function h(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,m(z.key),z)}}function m(I){var M=function(B,z){if(c(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(c(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return c(M)==="symbol"?M:String(M)}function p(I,M){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},p(I,M)}function v(I){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},v(I)}var x=function(I){I.forEach(function(M){M.isIntersecting&&M.target.onVisible()})},b={},C=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&p(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=v(z);if(Ce){var ce=v(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(c(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;if(function(oe,ie){if(!(oe instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).supportsObserver=!A.scrollPosition&&A.useIntersectionObserver&&l(),F.supportsObserver){var ce=A.threshold;F.observer=function(oe){return b[oe]=b[oe]||new IntersectionObserver(x,{rootMargin:oe+"px"}),b[oe]}(ce)}return F}return M=Ne,B=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,F=this.placeholder.getBoundingClientRect(),ce=u().findDOMNode(this.placeholder).style,oe=parseInt(ce.getPropertyValue("margin-left"),10)||0,ie=parseInt(ce.getPropertyValue("margin-top"),10)||0;return{bottom:A.y+F.bottom+ie,left:A.x+F.left+oe,right:A.x+F.right+oe,top:A.y+F.top+ie}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var A=this.props,F=A.scrollPosition,ce=A.threshold,oe=this.getPlaceholderBoundingBox(F),ie=F.y+window.innerHeight,Me=F.x,st=F.x+window.innerWidth,et=F.y;return et-ce<=oe.bottom&&ie+ce>=oe.top&&Me-ce<=oe.right&&st+ce>=oe.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var A=this,F=this.props,ce=F.className,oe=F.height,ie=F.placeholder,Me=F.style,st=F.width;if(ie&&typeof ie.type!="function")return o().cloneElement(ie,{ref:function(tt){return A.placeholder=tt}});var et=function(tt){for(var _t=1;_t<arguments.length;_t++){var vt=arguments[_t]!=null?arguments[_t]:{};_t%2?f(Object(vt),!0).forEach(function(Ft){d(tt,Ft,vt[Ft])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):f(Object(vt)).forEach(function(Ft){Object.defineProperty(tt,Ft,Object.getOwnPropertyDescriptor(vt,Ft))})}return tt}({display:"inline-block"},Me);return st!==void 0&&(et.width=st),oe!==void 0&&(et.height=oe),o().createElement("span",{className:ce,ref:function(tt){return A.placeholder=tt},style:et},ie)}}],B&&h(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);C.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},C.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const E=C;var w=r(296),_=r.n(w),O=r(96),k=r.n(O),D=function(I){var M=getComputedStyle(I,null);return M.getPropertyValue("overflow")+M.getPropertyValue("overflow-y")+M.getPropertyValue("overflow-x")};const L=function(I){if(!(I instanceof HTMLElement))return window;for(var M=I;M&&M instanceof HTMLElement;){if(/(scroll|auto)/.test(D(M)))return M;M=M.parentNode}return window};function re(I){return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},re(I)}var pe=["delayMethod","delayTime"];function se(){return se=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(I[z]=B[z])}return I},se.apply(this,arguments)}function q(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(re(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(re(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(z.key),re(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function G(I,M){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},G(I,M)}function me(I,M){if(M&&(re(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(I)}function Ee(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Ie(I){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},Ie(I)}var Oe=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},$=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const j=function(I){var M=function(B){(function(ce,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(oe&&oe.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),Object.defineProperty(ce,"prototype",{writable:!1}),oe&&G(ce,oe)})(F,B);var z,Ce,ke,Ne,A=(ke=F,Ne=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var ce,oe=Ie(ke);if(Ne){var ie=Ie(this).constructor;ce=Reflect.construct(oe,arguments,ie)}else ce=oe.apply(this,arguments);return me(this,ce)});function F(ce){var oe;if(function(Me,st){if(!(Me instanceof st))throw new TypeError("Cannot call a class as a function")}(this,F),(oe=A.call(this,ce)).useIntersectionObserver=ce.useIntersectionObserver&&l(),oe.useIntersectionObserver)return me(oe);var ie=oe.onChangeScroll.bind(Ee(oe));return ce.delayMethod==="debounce"?oe.delayedScroll=_()(ie,ce.delayTime):ce.delayMethod==="throttle"&&(oe.delayedScroll=k()(ie,ce.delayTime)),oe.state={scrollPosition:{x:Oe(),y:$()}},oe.baseComponentRef=o().createRef(),oe}return z=F,(Ce=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||L(u().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=L(u().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:Oe(),y:$()}})}},{key:"render",value:function(){var ce=this.props,oe=(ce.delayMethod,ce.delayTime,function(Me,st){if(Me==null)return{};var et,tt,_t=function(Ft,Xr){if(Ft==null)return{};var Zr,Kn,Sa={},Bl=Object.keys(Ft);for(Kn=0;Kn<Bl.length;Kn++)Zr=Bl[Kn],Xr.indexOf(Zr)>=0||(Sa[Zr]=Ft[Zr]);return Sa}(Me,st);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(Me);for(tt=0;tt<vt.length;tt++)et=vt[tt],st.indexOf(et)>=0||Object.prototype.propertyIsEnumerable.call(Me,et)&&(_t[et]=Me[et])}return _t}(ce,pe)),ie=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(I,se({forwardRef:this.baseComponentRef,scrollPosition:ie},oe))}}])&&q(z.prototype,Ce),Object.defineProperty(z,"prototype",{writable:!1}),F}(o().Component);return M.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},M.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},M};function X(I){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},X(I)}function ee(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(X(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(X(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(z.key),X(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function H(I,M){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},H(I,M)}function fe(I){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},fe(I)}var ue=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&H(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=fe(z);if(Ce){var ce=fe(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(X(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){return function(F,ce){if(!(F instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,Ne),ke.call(this,A)}return M=Ne,(B=[{key:"render",value:function(){return o().createElement(E,this.props)}}])&&ee(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);const ge=j(ue);function Z(I){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Z(I)}function Q(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,(Ce=function(ke,Ne){if(Z(ke)!=="object"||ke===null)return ke;var A=ke[Symbol.toPrimitive];if(A!==void 0){var F=A.call(ke,"string");if(Z(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ke)}(z.key),Z(Ce)==="symbol"?Ce:String(Ce)),z)}var Ce}function ne(I,M){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},ne(I,M)}function be(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function R(I){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},R(I)}var Be=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&ne(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=R(z);if(Ce){var ce=R(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(Z(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(oe)}(this,A)});function Ne(A){var F;(function(st,et){if(!(st instanceof et))throw new TypeError("Cannot call a class as a function")})(this,Ne),F=ke.call(this,A);var ce=A.afterLoad,oe=A.beforeLoad,ie=A.scrollPosition,Me=A.visibleByDefault;return F.state={visible:Me},Me&&(oe(),ce()),F.onVisible=F.onVisible.bind(be(F)),F.isScrollTracked=!!(ie&&Number.isFinite(ie.x)&&ie.x>=0&&Number.isFinite(ie.y)&&ie.y>=0),F}return M=Ne,(B=[{key:"componentDidUpdate",value:function(A,F){F.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var A=this.props,F=A.className,ce=A.delayMethod,oe=A.delayTime,ie=A.height,Me=A.placeholder,st=A.scrollPosition,et=A.style,tt=A.threshold,_t=A.useIntersectionObserver,vt=A.width;return this.isScrollTracked||_t&&l()?o().createElement(E,{className:F,height:ie,onVisible:this.onVisible,placeholder:Me,scrollPosition:st,style:et,threshold:tt,useIntersectionObserver:_t,width:vt}):o().createElement(ge,{className:F,delayMethod:ce,delayTime:oe,height:ie,onVisible:this.onVisible,placeholder:Me,style:et,threshold:tt,width:vt})}}])&&Q(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);Be.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Be.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const le=Be;function ht(I){return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},ht(I)}var Zt=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Vt(I,M){var B=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);M&&(z=z.filter(function(Ce){return Object.getOwnPropertyDescriptor(I,Ce).enumerable})),B.push.apply(B,z)}return B}function Kr(I){for(var M=1;M<arguments.length;M++){var B=arguments[M]!=null?arguments[M]:{};M%2?Vt(Object(B),!0).forEach(function(z){wr(I,z,B[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(B)):Vt(Object(B)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(B,z))})}return I}function wr(I,M,B){return(M=bn(M))in I?Object.defineProperty(I,M,{value:B,enumerable:!0,configurable:!0,writable:!0}):I[M]=B,I}function Cr(){return Cr=Object.assign?Object.assign.bind():function(I){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(I[z]=B[z])}return I},Cr.apply(this,arguments)}function Ca(I,M){for(var B=0;B<M.length;B++){var z=M[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,bn(z.key),z)}}function bn(I){var M=function(B,z){if(ht(B)!=="object"||B===null)return B;var Ce=B[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(B,"string");if(ht(ke)!=="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I);return ht(M)==="symbol"?M:String(M)}function qn(I,M){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,z){return B.__proto__=z,B},qn(I,M)}function K(I){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)},K(I)}var ve=function(I){(function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&qn(A,F)})(Ne,I);var M,B,z,Ce,ke=(z=Ne,Ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,F=K(z);if(Ce){var ce=K(this).constructor;A=Reflect.construct(F,arguments,ce)}else A=F.apply(this,arguments);return function(oe,ie){if(ie&&(ht(ie)==="object"||typeof ie=="function"))return ie;if(ie!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}(oe)}(this,A)});function Ne(A){var F;return function(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,Ne),(F=ke.call(this,A)).state={loaded:!1},F}return M=Ne,(B=[{key:"onImageLoad",value:function(){var A=this;return this.state.loaded?null:function(F){A.props.onLoad(F),A.props.afterLoad(),A.setState({loaded:!0})}}},{key:"getImg",value:function(){var A=this.props,F=(A.afterLoad,A.beforeLoad,A.delayMethod,A.delayTime,A.effect,A.placeholder,A.placeholderSrc,A.scrollPosition,A.threshold,A.useIntersectionObserver,A.visibleByDefault,A.wrapperClassName,A.wrapperProps,function(ce,oe){if(ce==null)return{};var ie,Me,st=function(tt,_t){if(tt==null)return{};var vt,Ft,Xr={},Zr=Object.keys(tt);for(Ft=0;Ft<Zr.length;Ft++)vt=Zr[Ft],_t.indexOf(vt)>=0||(Xr[vt]=tt[vt]);return Xr}(ce,oe);if(Object.getOwnPropertySymbols){var et=Object.getOwnPropertySymbols(ce);for(Me=0;Me<et.length;Me++)ie=et[Me],oe.indexOf(ie)>=0||Object.prototype.propertyIsEnumerable.call(ce,ie)&&(st[ie]=ce[ie])}return st}(A,Zt));return o().createElement("img",Cr({},F,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var A=this.props,F=A.beforeLoad,ce=A.className,oe=A.delayMethod,ie=A.delayTime,Me=A.height,st=A.placeholder,et=A.scrollPosition,tt=A.style,_t=A.threshold,vt=A.useIntersectionObserver,Ft=A.visibleByDefault,Xr=A.width;return o().createElement(le,{beforeLoad:F,className:ce,delayMethod:oe,delayTime:ie,height:Me,placeholder:st,scrollPosition:et,style:tt,threshold:_t,useIntersectionObserver:vt,visibleByDefault:Ft,width:Xr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(A){var F=this.props,ce=F.effect,oe=F.height,ie=F.placeholderSrc,Me=F.width,st=F.wrapperClassName,et=F.wrapperProps,tt=this.state.loaded,_t=tt?" lazy-load-image-loaded":"",vt=tt||!ie?{}:{backgroundImage:"url(".concat(ie,")"),backgroundSize:"100% 100%"};return o().createElement("span",Cr({className:st+" lazy-load-image-background "+ce+_t,style:Kr(Kr({},vt),{},{color:"transparent",display:"inline-block",height:oe,width:Me})},et),A)}},{key:"render",value:function(){var A=this.props,F=A.effect,ce=A.placeholderSrc,oe=A.visibleByDefault,ie=A.wrapperClassName,Me=A.wrapperProps,st=this.getLazyLoadImage();return(F||ce)&&!oe||ie||Me?this.getWrappedLazyLoadImage(st):st}}])&&Ca(M.prototype,B),Object.defineProperty(M,"prototype",{writable:!1}),Ne}(o().Component);ve.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ve.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ct=ve})(),Gy.exports=n})();var IY=Gy.exports;const FY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjAAIAAAQAASDSLW8AAAAASUVORK5CYII=",jY="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxyYWRpYWxHcmFkaWVudCBpZD0iYSIgY3g9IjUwJSIgY3k9IjQ2LjgwMTEwMiUiIHI9Ijk1LjQ5NzExMiUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTE5ZWFiIiBzdG9wLW9wYWNpdHk9Ii40OCIvPjwvcmFkaWFsR3JhZGllbnQ+PHBhdGggZD0ibTg4IDg2aDUxMnY1MTJoLTUxMnoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg4IC04NikiLz48L3N2Zz4=";function LY(e="1/1"){return{"4/3":"calc(100% / 4 * 3)","3/4":"calc(100% / 3 * 4)","6/4":"calc(100% / 6 * 4)","4/6":"calc(100% / 4 * 6)","16/9":"calc(100% / 16 * 9)","9/16":"calc(100% / 9 * 16)","21/9":"calc(100% / 21 * 9)","9/21":"calc(100% / 9 * 21)","1/1":"100%"}[e]}const vl=g.forwardRef(({ratio:e,disabledEffect:t=!1,effect:r="blur",sx:n,...i},o)=>{const a=y.jsx(P.Box,{component:IY.LazyLoadImage,wrapperClassName:"wrapper",effect:t?void 0:r,placeholderSrc:t?FY:jY,sx:{width:1,height:1,objectFit:"cover"},...i});return e?y.jsx(P.Box,{ref:o,component:"span",sx:{width:1,lineHeight:1,display:"block",overflow:"hidden",position:"relative",pt:LY(e),"& .wrapper":{top:0,left:0,width:1,height:1,position:"absolute",backgroundSize:"cover !important"},...n},children:a}):y.jsx(P.Box,{ref:o,component:"span",sx:{lineHeight:1,display:"block",overflow:"hidden",position:"relative","& .wrapper":{width:1,height:1,backgroundSize:"cover !important"},...n},children:a})});vl.displayName="Image";/*! *****************************************************************************
|
|
133
133
|
Copyright (c) Microsoft Corporation.
|
|
134
134
|
|
|
135
135
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -239,10 +239,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
239
239
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fq(e){if(Array.isArray(e))return Md(e)}function Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(n){Nb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xa(e,t){return pq(e)||hq(e,t)||zb(e,t)||dq()}function dq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
240
240
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zb(e,t){if(e){if(typeof e=="string")return Md(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Md(e,t)}}function Md(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function pq(e){if(Array.isArray(e))return e}var gq="file-invalid-type",mq="file-too-large",vq="file-too-small",yq="too-many-files",bq=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:gq,message:"File type must be ".concat(r)}},Vb=function(t){return{code:mq,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Wb=function(t){return{code:vq,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},xq={code:yq,message:"Too many files"};function Hb(e,t){var r=e.type==="application/x-moz-file"||lq(e,t);return[r,r?null:bq(t)]}function Ub(e,t,r){if(Gn(e.size))if(Gn(t)&&Gn(r)){if(e.size>r)return[!1,Vb(r)];if(e.size<t)return[!1,Wb(t)]}else{if(Gn(t)&&e.size<t)return[!1,Wb(t)];if(Gn(r)&&e.size>r)return[!1,Vb(r)]}return[!0,null]}function Gn(e){return e!=null}function wq(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(u){var l=Hb(u,r),c=xa(l,1),f=c[0],d=Ub(u,n,i),h=xa(d,1),m=h[0],p=s?s(u):null;return f&&m&&!p})}function Al(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Dl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Yb(e){e.preventDefault()}function Cq(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Sq(e){return e.indexOf("Edge/")!==-1}function Eq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Cq(e)||Sq(e)}function Ir(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!Al(n)&&s&&s.apply(void 0,[n].concat(o)),Al(n)})}}function Tq(){return"showOpenFilePicker"in window}function _q(e){if(Gn(e)){var t=Object.entries(e).filter(function(r){var n=xa(r,2),i=n[0],o=n[1],a=!0;return Gb(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(qb))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(r,n){var i=xa(n,2),o=i[0],a=i[1];return Bb(Bb({},r),{},Nb({},o,a))},{});return[{description:"Files",accept:t}]}return e}function Oq(e){if(Gn(e))return Object.entries(e).reduce(function(t,r){var n=xa(r,2),i=n[0],o=n[1];return[].concat(Lb(t),[i],Lb(o))},[]).filter(function(t){return Gb(t)||qb(t)}).join(",")}function kq(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Mq(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Gb(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function qb(e){return/^.*\.[\w]+$/.test(e)}var Pq=["children"],Aq=["open"],Dq=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],$q=["refKey","onChange","onClick"];function Iq(e){return Lq(e)||jq(e)||Kb(e)||Fq()}function Fq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
241
241
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lq(e){if(Array.isArray(e))return Ad(e)}function Pd(e,t){return Nq(e)||Bq(e,t)||Kb(e,t)||Rq()}function Rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
242
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(e,t){if(e){if(typeof e=="string")return Ad(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ad(e,t)}}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Nq(e){if(Array.isArray(e))return e}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){Dd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e,t){if(e==null)return{};var r=zq(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $d=g.forwardRef(function(e,t){var r=e.children,n=$l(e,Pq),i=Il(n),o=i.open,a=$l(i,Aq);return g.useImperativeHandle(t,function(){return{open:o}},[o]),g.createElement(g.Fragment,null,r(mt(mt({},a),{},{open:o})))});$d.displayName="Dropzone";var Zb={disabled:!1,getFilesFromEvent:JG,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};$d.defaultProps=Zb,$d.propTypes={children:T.func,accept:T.objectOf(T.arrayOf(T.string)),multiple:T.bool,preventDropOnDocument:T.bool,noClick:T.bool,noKeyboard:T.bool,noDrag:T.bool,noDragEventsBubbling:T.bool,minSize:T.number,maxSize:T.number,maxFiles:T.number,disabled:T.bool,getFilesFromEvent:T.func,onFileDialogCancel:T.func,onFileDialogOpen:T.func,useFsAccessApi:T.bool,autoFocus:T.bool,onDragEnter:T.func,onDragLeave:T.func,onDragOver:T.func,onDrop:T.func,onDropAccepted:T.func,onDropRejected:T.func,onError:T.func,validator:T.func};var Id={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Il(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=mt(mt({},Zb),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,E=t.noClick,w=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,k=t.onError,D=t.validator,L=g.useMemo(function(){return Oq(r)},[r]),re=g.useMemo(function(){return _q(r)},[r]),pe=g.useMemo(function(){return typeof v=="function"?v:Qb},[v]),se=g.useMemo(function(){return typeof p=="function"?p:Qb},[p]),q=g.useRef(null),G=g.useRef(null),me=g.useReducer(Vq,Id),Ee=Pd(me,2),Ie=Ee[0],Oe=Ee[1],$=Ie.isFocused,j=Ie.isFileDialogActive,X=g.useRef(typeof window<"u"&&window.isSecureContext&&x&&Tq()),ee=function(){!X.current&&j&&setTimeout(function(){if(G.current){var ve=G.current.files;ve.length||(Oe({type:"closeDialog"}),se())}},300)};g.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[G,j,se,X]);var H=g.useRef([]),fe=function(ve){q.current&&q.current.contains(ve.target)||(ve.preventDefault(),H.current=[])};g.useEffect(function(){return C&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){C&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[q,C]),g.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var ue=g.useCallback(function(K){k?k(K):console.error(K)},[k]),ge=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[].concat(Iq(H.current),[K.target]),Dl(K)&&Promise.resolve(i(K)).then(function(ve){if(!(Al(K)&&!O)){var ct=ve.length,I=ct>0&&wq({files:ve,accept:L,minSize:a,maxSize:o,multiple:s,maxFiles:u,validator:D}),M=ct>0&&!I;Oe({isDragAccept:I,isDragReject:M,isDragActive:!0,type:"setDraggedFiles"}),l&&l(K)}}).catch(function(ve){return ue(ve)})},[i,l,ue,O,L,a,o,s,u,D]),Z=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=Dl(K);if(ve&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ve&&f&&f(K),!1},[f,O]),Q=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=H.current.filter(function(I){return q.current&&q.current.contains(I)}),ct=ve.indexOf(K.target);ct!==-1&&ve.splice(ct,1),H.current=ve,!(ve.length>0)&&(Oe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Dl(K)&&c&&c(K))},[q,c,O]),ne=g.useCallback(function(K,ve){var ct=[],I=[];K.forEach(function(M){var B=Hb(M,L),N=Pd(B,2),Ce=N[0],ke=N[1],Ne=Ub(M,a,o),A=Pd(Ne,2),F=A[0],ce=A[1],oe=D?D(M):null;if(Ce&&F&&!oe)ct.push(M);else{var ie=[ke,ce];oe&&(ie=ie.concat(oe)),I.push({file:M,errors:ie.filter(function(Me){return Me})})}}),(!s&&ct.length>1||s&&u>=1&&ct.length>u)&&(ct.forEach(function(M){I.push({file:M,errors:[xq]})}),ct.splice(0)),Oe({acceptedFiles:ct,fileRejections:I,type:"setFiles"}),d&&d(ct,I,ve),I.length>0&&m&&m(I,ve),ct.length>0&&h&&h(ct,ve)},[Oe,s,L,a,o,u,d,h,m,D]),be=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[],Dl(K)&&Promise.resolve(i(K)).then(function(ve){Al(K)&&!O||ne(ve,K)}).catch(function(ve){return ue(ve)}),Oe({type:"reset"})},[i,ne,ue,O]),R=g.useCallback(function(){if(X.current){Oe({type:"openDialog"}),pe();var K={multiple:s,types:re};window.showOpenFilePicker(K).then(function(ve){return i(ve)}).then(function(ve){ne(ve,null),Oe({type:"closeDialog"})}).catch(function(ve){kq(ve)?(se(ve),Oe({type:"closeDialog"})):Mq(ve)?(X.current=!1,G.current?(G.current.value=null,G.current.click()):ue(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ue(ve)});return}G.current&&(Oe({type:"openDialog"}),pe(),G.current.value=null,G.current.click())},[Oe,pe,se,x,ne,ue,re,s]),Be=g.useCallback(function(K){!q.current||!q.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),R())},[q,R]),le=g.useCallback(function(){Oe({type:"focus"})},[]),ht=g.useCallback(function(){Oe({type:"blur"})},[]),Zt=g.useCallback(function(){E||(Eq()?setTimeout(R,0):R())},[E,R]),Vt=function(ve){return n?null:ve},Kr=function(ve){return w?null:Vt(ve)},wr=function(ve){return _?null:Vt(ve)},Cr=function(ve){O&&ve.stopPropagation()},Ca=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.role,M=K.onKeyDown,B=K.onFocus,N=K.onBlur,Ce=K.onClick,ke=K.onDragEnter,Ne=K.onDragOver,A=K.onDragLeave,F=K.onDrop,ce=$l(K,Dq);return mt(mt(Dd({onKeyDown:Kr(Ir(M,Be)),onFocus:Kr(Ir(B,le)),onBlur:Kr(Ir(N,ht)),onClick:Vt(Ir(Ce,Zt)),onDragEnter:wr(Ir(ke,ge)),onDragOver:wr(Ir(Ne,Z)),onDragLeave:wr(Ir(A,Q)),onDrop:wr(Ir(F,be)),role:typeof I=="string"&&I!==""?I:"presentation"},ct,q),!n&&!w?{tabIndex:0}:{}),ce)}},[q,Be,le,ht,Zt,ge,Z,Q,be,w,_,n]),bn=g.useCallback(function(K){K.stopPropagation()},[]),qn=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.onChange,M=K.onClick,B=$l(K,$q),N=Dd({accept:L,multiple:s,type:"file",style:{display:"none"},onChange:Vt(Ir(I,be)),onClick:Vt(Ir(M,bn)),tabIndex:-1},ct,G);return mt(mt({},N),B)}},[G,r,s,be,n]);return mt(mt({},Ie),{},{isFocused:$&&!n,getRootProps:Ca,getInputProps:qn,rootRef:q,inputRef:G,open:Vt(R)})}function Vq(e,t){switch(t.type){case"focus":return mt(mt({},e),{},{isFocused:!0});case"blur":return mt(mt({},e),{},{isFocused:!1});case"openDialog":return mt(mt({},Id),{},{isFileDialogActive:!0});case"closeDialog":return mt(mt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mt(mt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mt(mt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mt({},Id);default:return e}}function Qb(){}const Wq=()=>{const t=mi().palette.primary.main;return y.jsxs(y.Fragment,{children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[y.jsx("stop",{offset:"0%",stopColor:t}),y.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),y.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},Hq=g.memo(Wq),Uq=({...e})=>{const t=mi(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return y.jsx(P.Box,{...e,children:y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx(Hq,{}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[y.jsx("stop",{offset:"0%",stopOpacity:"0"}),y.jsx("stop",{offset:"100%"})]})}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),y.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),y.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),y.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),y.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),y.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),y.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),y.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),y.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),y.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),y.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),y.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},Yq=g.memo(Uq),Gq=["pdf"],qq=["txt"],Kq=["psd"],Xq=["doc","docx"],Zq=["xls","xlsx"],Qq=["zip","rar","iso"],Jq=["ai","esp"],eK=["ppt","pptx"],tK=["wav","aif","mp3","aac"],rK=["jpg","jpeg","gif","bmp","png","svg"],nK=["m4v","avi","mpg","mp4","webm"],lr=e=>`/assets/icons/files/${e}.svg`;function Jb(e){let t;switch(e==null?void 0:e.includes(Xt(e))){case qq.includes(Xt(e)):t="txt";break;case Qq.includes(Xt(e)):t="zip";break;case tK.includes(Xt(e)):t="audio";break;case rK.includes(Xt(e)):t="image";break;case nK.includes(Xt(e)):t="video";break;case Xq.includes(Xt(e)):t="word";break;case Zq.includes(Xt(e)):t="excel";break;case eK.includes(Xt(e)):t="powerpoint";break;case Gq.includes(Xt(e)):t="pdf";break;case Kq.includes(Xt(e)):t="photoshop";break;case Jq.includes(Xt(e)):t="illustrator";break;default:t=Xt(e)}return t}function iK(e){let t;switch(Jb(e)){case"folder":t=lr("ic_folder");break;case"txt":t=lr("ic_txt");break;case"zip":t=lr("ic_zip");break;case"audio":t=lr("ic_audio");break;case"video":t=lr("ic_video");break;case"word":t=lr("ic_word");break;case"excel":t=lr("ic_excel");break;case"powerpoint":t=lr("ic_power_point");break;case"pdf":t=lr("ic_pdf");break;case"photoshop":t=lr("ic_pts");break;case"illustrator":t=lr("ic_ai");break;case"image":t=lr("ic_img");break;default:t=lr("ic_file")}return t}function Xt(e=""){return e&&e.split(".").pop()||""}function oK(e){return e.split("/").pop()}function Fd(e){return typeof e=="string"?{key:e,preview:e,name:oK(e),type:Xt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function Fl(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}function aK(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,o=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||o}, ${n||o}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function sK(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function lK(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const e2={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},uK=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:Fl,bgGradient:aK,filterStyles:lK,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:e2,textGradient:sK},Symbol.toStringTag,{value:"Module"})),t2=({onDownload:e})=>{const t=mi();return y.jsx(P.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...Fl({opacity:.64,color:t.palette.grey[900]})}},children:y.jsx(Rt,{icon:"eva:arrow-circle-down-fill",width:24})})},r2=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:u=""}=Fd(e),l=Jb(s||u),c=l==="image"&&r?y.jsx(P.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):y.jsx(P.Box,{component:"img",src:iK(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?y.jsx(P.Tooltip,{title:a,children:y.jsxs(P.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&y.jsx(t2,{onDownload:n})]})}):y.jsxs(y.Fragment,{children:[c,n&&y.jsx(t2,{onDownload:n})]})};var n2={exports:{}};/*! @preserve
|
|
242
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(e,t){if(e){if(typeof e=="string")return Ad(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ad(e,t)}}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Nq(e){if(Array.isArray(e))return e}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){Dd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e,t){if(e==null)return{};var r=zq(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var $d=g.forwardRef(function(e,t){var r=e.children,n=$l(e,Pq),i=Il(n),o=i.open,a=$l(i,Aq);return g.useImperativeHandle(t,function(){return{open:o}},[o]),g.createElement(g.Fragment,null,r(mt(mt({},a),{},{open:o})))});$d.displayName="Dropzone";var Zb={disabled:!1,getFilesFromEvent:JG,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};$d.defaultProps=Zb,$d.propTypes={children:T.func,accept:T.objectOf(T.arrayOf(T.string)),multiple:T.bool,preventDropOnDocument:T.bool,noClick:T.bool,noKeyboard:T.bool,noDrag:T.bool,noDragEventsBubbling:T.bool,minSize:T.number,maxSize:T.number,maxFiles:T.number,disabled:T.bool,getFilesFromEvent:T.func,onFileDialogCancel:T.func,onFileDialogOpen:T.func,useFsAccessApi:T.bool,autoFocus:T.bool,onDragEnter:T.func,onDragLeave:T.func,onDragOver:T.func,onDrop:T.func,onDropAccepted:T.func,onDropRejected:T.func,onError:T.func,validator:T.func};var Id={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Il(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=mt(mt({},Zb),e),r=t.accept,n=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,u=t.maxFiles,l=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,E=t.noClick,w=t.noKeyboard,_=t.noDrag,O=t.noDragEventsBubbling,k=t.onError,D=t.validator,L=g.useMemo(function(){return Oq(r)},[r]),re=g.useMemo(function(){return _q(r)},[r]),pe=g.useMemo(function(){return typeof v=="function"?v:Qb},[v]),se=g.useMemo(function(){return typeof p=="function"?p:Qb},[p]),q=g.useRef(null),G=g.useRef(null),me=g.useReducer(Vq,Id),Ee=Pd(me,2),Ie=Ee[0],Oe=Ee[1],$=Ie.isFocused,j=Ie.isFileDialogActive,X=g.useRef(typeof window<"u"&&window.isSecureContext&&x&&Tq()),ee=function(){!X.current&&j&&setTimeout(function(){if(G.current){var ve=G.current.files;ve.length||(Oe({type:"closeDialog"}),se())}},300)};g.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[G,j,se,X]);var H=g.useRef([]),fe=function(ve){q.current&&q.current.contains(ve.target)||(ve.preventDefault(),H.current=[])};g.useEffect(function(){return C&&(document.addEventListener("dragover",Yb,!1),document.addEventListener("drop",fe,!1)),function(){C&&(document.removeEventListener("dragover",Yb),document.removeEventListener("drop",fe))}},[q,C]),g.useEffect(function(){return!n&&b&&q.current&&q.current.focus(),function(){}},[q,b,n]);var ue=g.useCallback(function(K){k?k(K):console.error(K)},[k]),ge=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[].concat(Iq(H.current),[K.target]),Dl(K)&&Promise.resolve(i(K)).then(function(ve){if(!(Al(K)&&!O)){var ct=ve.length,I=ct>0&&wq({files:ve,accept:L,minSize:a,maxSize:o,multiple:s,maxFiles:u,validator:D}),M=ct>0&&!I;Oe({isDragAccept:I,isDragReject:M,isDragActive:!0,type:"setDraggedFiles"}),l&&l(K)}}).catch(function(ve){return ue(ve)})},[i,l,ue,O,L,a,o,s,u,D]),Z=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=Dl(K);if(ve&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return ve&&f&&f(K),!1},[f,O]),Q=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K);var ve=H.current.filter(function(I){return q.current&&q.current.contains(I)}),ct=ve.indexOf(K.target);ct!==-1&&ve.splice(ct,1),H.current=ve,!(ve.length>0)&&(Oe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Dl(K)&&c&&c(K))},[q,c,O]),ne=g.useCallback(function(K,ve){var ct=[],I=[];K.forEach(function(M){var B=Hb(M,L),z=Pd(B,2),Ce=z[0],ke=z[1],Ne=Ub(M,a,o),A=Pd(Ne,2),F=A[0],ce=A[1],oe=D?D(M):null;if(Ce&&F&&!oe)ct.push(M);else{var ie=[ke,ce];oe&&(ie=ie.concat(oe)),I.push({file:M,errors:ie.filter(function(Me){return Me})})}}),(!s&&ct.length>1||s&&u>=1&&ct.length>u)&&(ct.forEach(function(M){I.push({file:M,errors:[xq]})}),ct.splice(0)),Oe({acceptedFiles:ct,fileRejections:I,type:"setFiles"}),d&&d(ct,I,ve),I.length>0&&m&&m(I,ve),ct.length>0&&h&&h(ct,ve)},[Oe,s,L,a,o,u,d,h,m,D]),be=g.useCallback(function(K){K.preventDefault(),K.persist(),Cr(K),H.current=[],Dl(K)&&Promise.resolve(i(K)).then(function(ve){Al(K)&&!O||ne(ve,K)}).catch(function(ve){return ue(ve)}),Oe({type:"reset"})},[i,ne,ue,O]),R=g.useCallback(function(){if(X.current){Oe({type:"openDialog"}),pe();var K={multiple:s,types:re};window.showOpenFilePicker(K).then(function(ve){return i(ve)}).then(function(ve){ne(ve,null),Oe({type:"closeDialog"})}).catch(function(ve){kq(ve)?(se(ve),Oe({type:"closeDialog"})):Mq(ve)?(X.current=!1,G.current?(G.current.value=null,G.current.click()):ue(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ue(ve)});return}G.current&&(Oe({type:"openDialog"}),pe(),G.current.value=null,G.current.click())},[Oe,pe,se,x,ne,ue,re,s]),Be=g.useCallback(function(K){!q.current||!q.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),R())},[q,R]),le=g.useCallback(function(){Oe({type:"focus"})},[]),ht=g.useCallback(function(){Oe({type:"blur"})},[]),Zt=g.useCallback(function(){E||(Eq()?setTimeout(R,0):R())},[E,R]),Vt=function(ve){return n?null:ve},Kr=function(ve){return w?null:Vt(ve)},wr=function(ve){return _?null:Vt(ve)},Cr=function(ve){O&&ve.stopPropagation()},Ca=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.role,M=K.onKeyDown,B=K.onFocus,z=K.onBlur,Ce=K.onClick,ke=K.onDragEnter,Ne=K.onDragOver,A=K.onDragLeave,F=K.onDrop,ce=$l(K,Dq);return mt(mt(Dd({onKeyDown:Kr(Ir(M,Be)),onFocus:Kr(Ir(B,le)),onBlur:Kr(Ir(z,ht)),onClick:Vt(Ir(Ce,Zt)),onDragEnter:wr(Ir(ke,ge)),onDragOver:wr(Ir(Ne,Z)),onDragLeave:wr(Ir(A,Q)),onDrop:wr(Ir(F,be)),role:typeof I=="string"&&I!==""?I:"presentation"},ct,q),!n&&!w?{tabIndex:0}:{}),ce)}},[q,Be,le,ht,Zt,ge,Z,Q,be,w,_,n]),bn=g.useCallback(function(K){K.stopPropagation()},[]),qn=g.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=K.refKey,ct=ve===void 0?"ref":ve,I=K.onChange,M=K.onClick,B=$l(K,$q),z=Dd({accept:L,multiple:s,type:"file",style:{display:"none"},onChange:Vt(Ir(I,be)),onClick:Vt(Ir(M,bn)),tabIndex:-1},ct,G);return mt(mt({},z),B)}},[G,r,s,be,n]);return mt(mt({},Ie),{},{isFocused:$&&!n,getRootProps:Ca,getInputProps:qn,rootRef:q,inputRef:G,open:Vt(R)})}function Vq(e,t){switch(t.type){case"focus":return mt(mt({},e),{},{isFocused:!0});case"blur":return mt(mt({},e),{},{isFocused:!1});case"openDialog":return mt(mt({},Id),{},{isFileDialogActive:!0});case"closeDialog":return mt(mt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return mt(mt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return mt(mt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mt({},Id);default:return e}}function Qb(){}const Wq=()=>{const t=mi().palette.primary.main;return y.jsxs(y.Fragment,{children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[y.jsx("stop",{offset:"0%",stopColor:t}),y.jsx("stop",{offset:"100%",stopColor:t,stopOpacity:"0"})]})}),y.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})},Hq=g.memo(Wq),Uq=({...e})=>{const t=mi(),r=t.palette.primary.main,n=t.palette.primary.dark,i=t.palette.primary.darker;return y.jsx(P.Box,{...e,children:y.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx(Hq,{}),y.jsx("defs",{children:y.jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[y.jsx("stop",{offset:"0%",stopOpacity:"0"}),y.jsx("stop",{offset:"100%"})]})}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),y.jsx("path",{fill:i,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),y.jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),y.jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),y.jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),y.jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),y.jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),y.jsx("ellipse",{cx:"380.363",cy:"298.487",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),y.jsx("ellipse",{cx:"390.052",cy:"264.383",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),y.jsx("ellipse",{cx:"346.97",cy:"270.022",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),y.jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),y.jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:r,fillRule:"nonzero",opacity:"0.2"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),y.jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),y.jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),y.jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),y.jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),y.jsx("ellipse",{cx:"119.593",cy:"258.664",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"101.03",cy:"260.545",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),y.jsx("ellipse",{cx:"108.459",cy:"265.905",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("ellipse",{cx:"89.193",cy:"265.433",fill:r,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),y.jsx("path",{stroke:i,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),y.jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:r,fillRule:"nonzero",opacity:"0.1"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),y.jsx("path",{fill:r,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),y.jsx("path",{fill:n,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})})},Yq=g.memo(Uq),Gq=["pdf"],qq=["txt"],Kq=["psd"],Xq=["doc","docx"],Zq=["xls","xlsx"],Qq=["zip","rar","iso"],Jq=["ai","esp"],eK=["ppt","pptx"],tK=["wav","aif","mp3","aac"],rK=["jpg","jpeg","gif","bmp","png","svg"],nK=["m4v","avi","mpg","mp4","webm"],lr=e=>`/assets/icons/files/${e}.svg`;function Jb(e){let t;switch(e==null?void 0:e.includes(Xt(e))){case qq.includes(Xt(e)):t="txt";break;case Qq.includes(Xt(e)):t="zip";break;case tK.includes(Xt(e)):t="audio";break;case rK.includes(Xt(e)):t="image";break;case nK.includes(Xt(e)):t="video";break;case Xq.includes(Xt(e)):t="word";break;case Zq.includes(Xt(e)):t="excel";break;case eK.includes(Xt(e)):t="powerpoint";break;case Gq.includes(Xt(e)):t="pdf";break;case Kq.includes(Xt(e)):t="photoshop";break;case Jq.includes(Xt(e)):t="illustrator";break;default:t=Xt(e)}return t}function iK(e){let t;switch(Jb(e)){case"folder":t=lr("ic_folder");break;case"txt":t=lr("ic_txt");break;case"zip":t=lr("ic_zip");break;case"audio":t=lr("ic_audio");break;case"video":t=lr("ic_video");break;case"word":t=lr("ic_word");break;case"excel":t=lr("ic_excel");break;case"powerpoint":t=lr("ic_power_point");break;case"pdf":t=lr("ic_pdf");break;case"photoshop":t=lr("ic_pts");break;case"illustrator":t=lr("ic_ai");break;case"image":t=lr("ic_img");break;default:t=lr("ic_file")}return t}function Xt(e=""){return e&&e.split(".").pop()||""}function oK(e){return e.split("/").pop()}function Fd(e){return typeof e=="string"?{key:e,preview:e,name:oK(e),type:Xt(e)}:{key:e.preview,name:e.name,size:e.size,path:e.path,type:e.type,preview:e.preview,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate}}function Fl(e){const t=(e==null?void 0:e.color)||"#000000",r=(e==null?void 0:e.blur)||6,n=(e==null?void 0:e.opacity)||.8,i=e==null?void 0:e.imgUrl;return i?{position:"relative",backgroundImage:`url(${i})`,"&:before":{position:"absolute",top:0,left:0,zIndex:9,content:'""',width:"100%",height:"100%",backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}:{backdropFilter:`blur(${r}px)`,WebkitBackdropFilter:`blur(${r}px)`,backgroundColor:W(t,n)}}function aK(e){const t=(e==null?void 0:e.direction)||"to bottom",r=e==null?void 0:e.startColor,n=e==null?void 0:e.endColor,i=e==null?void 0:e.imgUrl,o=e==null?void 0:e.color;return i?{background:`linear-gradient(${t}, ${r||o}, ${n||o}), url(${i})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}:{background:`linear-gradient(${t}, ${r}, ${n})`}}function sK(e){return{background:`-webkit-linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}function lK(e){return{filter:e,WebkitFilter:e,MozFilter:e}}const e2={msOverflowStyle:"none",scrollbarWidth:"none",overflowY:"scroll","&::-webkit-scrollbar":{display:"none"}},uK=Object.freeze(Object.defineProperty({__proto__:null,bgBlur:Fl,bgGradient:aK,filterStyles:lK,hideScrollbarX:{msOverflowStyle:"none",scrollbarWidth:"none",overflowX:"scroll","&::-webkit-scrollbar":{display:"none"}},hideScrollbarY:e2,textGradient:sK},Symbol.toStringTag,{value:"Module"})),t2=({onDownload:e})=>{const t=mi();return y.jsx(P.IconButton,{onClick:e,sx:{p:0,top:0,right:0,width:1,height:1,zIndex:9,opacity:0,position:"absolute",borderRadius:"unset",justifyContent:"center",bgcolor:"grey.800",color:"common.white",transition:t.transitions.create("opacity"),"&:hover":{opacity:1,...Fl({opacity:.64,color:t.palette.grey[900]})}},children:y.jsx(Rt,{icon:"eva:arrow-circle-down-fill",width:24})})},r2=({file:e,tooltip:t,imageView:r,onDownload:n,sx:i,imgSx:o})=>{const{name:a="",path:s="",preview:u=""}=Fd(e),l=Jb(s||u),c=l==="image"&&r?y.jsx(P.Box,{component:"img",src:u,sx:{width:1,height:1,flexShrink:0,objectFit:"cover",...o}}):y.jsx(P.Box,{component:"img",src:iK(l),sx:{width:32,height:32,flexShrink:0,...i}});return t?y.jsx(P.Tooltip,{title:a,children:y.jsxs(P.Stack,{flexShrink:0,component:"span",alignItems:"center",justifyContent:"center",sx:{width:"fit-content",height:"inherit"},children:[c,n&&y.jsx(t2,{onDownload:n})]})}):y.jsxs(y.Fragment,{children:[c,n&&y.jsx(t2,{onDownload:n})]})};var n2={exports:{}};/*! @preserve
|
|
243
243
|
* numeral.js
|
|
244
244
|
* version : 2.0.6
|
|
245
245
|
* author : Adam Draper
|
|
246
246
|
* license : MIT
|
|
247
247
|
* http://adamwdraper.github.com/Numeral-js/
|
|
248
|
-
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ho,function(){var t,r,n="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=o[t.options.currentLocale],h=!1,m=!1,p=0,v="",x=1e12,b=1e9,C=1e6,E=1e3,w="",_=!1,O,k,D,L,re,pe,se;if(l=l||0,k=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(re=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(O=c.match(/a(k|m|b|t)?/),O=O?O[1]:!1,t._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),k>=x&&!O||O==="t"?(v+=d.abbreviations.trillion,l=l/x):k<x&&k>=b&&!O||O==="b"?(v+=d.abbreviations.billion,l=l/b):k<b&&k>=C&&!O||O==="m"?(v+=d.abbreviations.million,l=l/C):(k<C&&k>=E&&!O||O==="k")&&(v+=d.abbreviations.thousand,l=l/E)),t._.includes(c,"[.]")&&(m=!0,c=c.replace("[.]",".")),D=l.toString().split(".")[0],L=c.split(".")[1],pe=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,L?(t._.includes(L,"[")?(L=L.replace("]",""),L=L.split("["),w=t._.toFixed(l,L[0].length+L[1].length,f,L[1].length)):w=t._.toFixed(l,L.length,f),D=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):D=t._.toFixed(l,0,f),v&&!O&&Number(D)>=1e3&&v!==d.abbreviations.trillion)switch(D=String(Number(D)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),_=!0),D.length<p)for(var q=p-D.length;q>0;q--)D="0"+D;return pe>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(D=""),se=D+w+(v||""),h?se=(h&&_?"(":"")+se+(h&&_?")":""):re>=0?se=re===0?(_?"-":"+")+se:se+(_?"-":"+"):_&&(se="-"+se),se},stringToNumber:function(l){var c=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,m,p;if(s.zeroFormat&&l===s.zeroFormat)m=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)m=null;else{m=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,d[h]);break}m*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),m*=Number(l)}return m},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<d;h++)h in f&&(m=c(m,f[h],h,f));return m},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),m=c-(d||0),p,v,x,b;return h.length===2?p=Math.min(Math.max(h[1].length,m),c):p=m,x=Math.pow(10,p),b=(f(l+"e+"+p)/x).toFixed(p),d>c-p&&(v=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),b=b.replace(v,"")),b}},t.options=s,t.formats=i,t.locales=o,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return o[s.currentLocale];if(l=l.toLowerCase(),!o[l])throw new Error("Unknown locale : "+l);return o[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,m,p,v,x,b;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=t.localeData(c)}catch{x=t.localeData(t.locale())}return h=x.currency.symbol,p=x.abbreviations,f=x.delimiters.decimal,x.delimiters.thousands==="."?d="\\.":d=x.delimiters.thousands,b=l.match(/^[^\d]+/),b!==null&&(l=l.substr(1),b[0]!==h)||(b=l.match(/[^\d]+$/),b!==null&&(l=l.slice(0,-1),b[0]!==p.thousand&&b[0]!==p.million&&b[0]!==p.billion&&b[0]!==p.trillion))?!1:(v=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(m=l.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,m,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(f===null&&s.nullFormat!==null)m=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,m=p(f,d,c)}return m},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,m,p){var v,x=t._.includes(m,"ib")?c:l,b=t._.includes(m," b")||t._.includes(m," ib")?" ":"",C,E,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=x.suffixes.length;C++)if(E=Math.pow(x.base,C),w=Math.pow(x.base,C+1),h===null||h===0||h>=E&&h<w){b+=x.suffixes[C],E>0&&(h=h/E);break}return v=t._.numberToFormat(h,m,p),v+b},unformat:function(h){var m=t._.stringToNumber(h),p,v;if(m){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){v=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){v=Math.pow(c.base,p);break}}m*=v||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,v;for(c=c.replace(/\s?\$\s?/,""),m=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(p=h.before[v],p){case"$":m=t._.insert(m,d.currency.symbol,v);break;case" ":m=t._.insert(m," ",v+d.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(p=h.after[v],p){case"$":m=v===h.after.length-1?m+d.currency.symbol:t._.insert(m,d.currency.symbol,-(h.after.length-(1+v)));break;case" ":m=v===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+v)+d.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",m=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(m[0]),c,f),d+"e"+m[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(m,p,v,x){var b=t._.correctionFactor(m,p),C=m*b*(p*b)/(b*b);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,m=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),m+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),m=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(n2);var cK=n2.exports;const wa=xn(cK);function fK(e){return wa(e).format()}function dK(e){const t=e?wa(e).format("$0,0.00"):"";return jl(t,".00")}function hK(e){const t=e?wa(Number(e)/100).format("0.0%"):"";return jl(t,".0")}function pK(e){const t=e?wa(e).format("0.00a"):"";return jl(t,".00")}function jd(e){const t=e?wa(e).format("0.0 b"):"";return jl(t,".0")}function jl(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const gK=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:dK,fData:jd,fNumber:fK,fPercent:hK,fShortenNumber:pK},Symbol.toStringTag,{value:"Module"})),i2=({fileRejections:e})=>e.length?y.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>W(t.palette.error.main,.08),borderColor:t=>W(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=Fd(t);return y.jsxs(P.Box,{sx:{my:1},children:[y.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?jd(i):""]}),r.map(o=>y.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,mK=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?y.jsx(h0,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=Fd(i),u=typeof i=="string";return e?y.jsxs(P.Stack,{component:gr.div,...fo().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&y.jsx(P.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>W(l.palette.common.white,.72),bgcolor:l=>W(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>W(l.palette.grey[900],.72)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:16})})]},o):y.jsxs(P.Stack,{component:gr.div,...fo().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{file:i}),y.jsxs(P.Stack,{flexGrow:1,sx:{minWidth:0},children:[y.jsx(P.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:a}),y.jsx(P.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":jd(s)})]}),r&&y.jsx(P.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:y.jsx(Rt,{icon:"eva:close-fill"})})]},o)})}):null,vK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(P.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:y.jsx(vl,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},yK=$t("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${W(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),bK=({header:e,description:t,sx:r,...n})=>y.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[y.jsx(Yq,{sx:{width:220}}),y.jsxs("div",{children:[e||y.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||y.jsxs(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",y.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),o2=({disabled:e,multiple:t=!1,error:r,helperText:n,file:i,onDelete:o,files:a,thumbnail:s,onUpload:u,onRemove:l,onRemoveAll:c,sx:f,dropZoneProps:d,placeholderProps:h,placeholderAlt:m,...p})=>{const{getRootProps:v,getInputProps:x,isDragActive:b,isDragReject:C,fileRejections:E}=Il({multiple:t,disabled:e,...p}),w=!!i&&!t,_=a&&t&&a.length>0,O=C||!!r;return y.jsxs(P.Box,{sx:{width:1,position:"relative",...f},children:[y.jsxs(yK,{...v(),sx:{...b&&{opacity:.72},...O&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"},...d},children:[y.jsx("input",{...x()}),m?y.jsx(P.Stack,{sx:{...w&&{opacity:0}},children:m}):y.jsx(bK,{sx:{...w&&{opacity:0}},header:h==null?void 0:h.title,description:h==null?void 0:h.description}),w&&y.jsx(vK,{file:i})]}),n&&n,y.jsx(i2,{fileRejections:E}),w&&o&&y.jsx(P.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:k=>W(k.palette.common.white,.8),bgcolor:k=>W(k.palette.grey[900],.72),"&:hover":{bgcolor:k=>W(k.palette.grey[900],.48)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:18})}),_&&y.jsxs(y.Fragment,{children:[y.jsx(P.Box,{sx:{my:3},children:y.jsx(mK,{files:a,thumbnail:s,onRemove:l})}),y.jsxs(P.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[c&&y.jsx(P.Button,{color:"inherit",variant:"outlined",size:"small",onClick:c,children:"Remove all"}),u&&y.jsx(P.Button,{size:"small",variant:"contained",onClick:u,children:"Upload files"})]})]})]})},a2=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,u]=cc(),[l,c]=g.useState(o),f=d=>{d||c(""),e(d)};return y.jsxs(y.Fragment,{children:[y.jsxs(P.Stack,{position:"relative",width:1,children:[y.jsx(o2,{...a,onDrop:d=>{if(d.length>0){u(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var p;const m=((p=h.result)==null?void 0:p.toString())||"";c(m)}),h.readAsDataURL(d[0])}}}),l&&y.jsx(P.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:y.jsx(P.IconButton,{color:"primary",onClick:u,children:y.jsx(Rt,{icon:"ic:round-crop"})})})]}),y.jsx(cb,{open:s,onClose:u,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function xK(e,t){const{watch:r,setValue:n}=yt.useFormContext(),[i,o]=g.useState(t),a=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),o(void 0);return}n(e,d),o(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...a,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),o(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=a.filter(m=>m!==d);n(e,h)},file:i}}const wK=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:u}=yt.useFormContext(),{uploadFile:l,file:c}=xK(e);return y.jsx(yt.Controller,{name:e,control:u,rules:t,render:({fieldState:{error:f}})=>y.jsx(a2,{accept:{"image/*":[]},file:c,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&y.jsx(P.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:r}),aspect:n,label:i,size:o,image:a,...s})})},Ll=(e,t=!0)=>{const{pathname:r}=Fr.useLocation(),n=e?!!Fr.matchPath({path:e,end:!0},r):!1,i=e?!!Fr.matchPath({path:e,end:!1},r):!1;return{active:t?i:n,isExternalLink:e.includes("http")}},Rl={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},lo={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},CK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":l,...a&&{flexDirection:"row",padding:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),SK=$t(P.ListItemIcon)({marginRight:0,marginBottom:4,width:lo.NAV_ITEM_MINI,height:lo.NAV_ITEM_MINI}),EK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),s2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(CK,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&y.jsx(SK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...n&&{fontWeight:"fontWeightMedium"},...h&&{fontSize:14,width:"auto",textAlign:"left"}}}}),d&&y.jsx(P.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(Rt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!c&&y.jsx(Rt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:m}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:m}))()});s2.displayName="NavItem";const TK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(l2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),l2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(s2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(EK,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(TK,{data:e.children,depth:t})})]})},_K=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(l2,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(P.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),OK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>y.jsx(_K,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),kK=g.memo(OK),MK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:i})=>{const o=i.palette.mode==="light",a=r!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM,...a&&{height:Rl.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:Rl.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),u2=$t(P.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:lo.NAV_ITEM,height:lo.NAV_ITEM}),PK=$t("span",{shouldForwardProp:e=>e!=="active"})(({active:e,theme:t})=>({width:4,height:4,borderRadius:"50%",backgroundColor:t.palette.text.disabled,transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter}),...e&&{transform:"scale(2)",backgroundColor:t.palette.primary.main}})),AK=$t(P.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),DK=({item:e,depth:t,open:r,active:n,isExternalLink:i,...o})=>{const{title:a,path:s,icon:u,info:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(MK,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[u&&y.jsx(u2,{children:u}),h&&y.jsx(u2,{children:y.jsx(PK,{active:n&&h})}),y.jsx(P.ListItemText,{primary:a,secondary:d&&y.jsx(P.Tooltip,{title:d,placement:"top-start",children:y.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&y.jsx(P.Box,{component:"span",sx:{lineHeight:0},children:l}),!!c&&y.jsx(Rt,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):c?m:y.jsx(P.Link,{component:Fr.Link,to:s,underline:"none",children:m}))()},$K=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(c2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),c2=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=Fr.useLocation(),{active:i,isExternalLink:o}=Ll(e.path),[a,s]=g.useState(i);g.useEffect(()=>{i||l()},[n]);const u=()=>{s(!a)},l=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(DK,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:u}),r&&y.jsx(P.Collapse,{in:a,unmountOnExit:!0,children:y.jsx($K,{data:e.children,depth:t})})]})},IK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return y.jsxs(P.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(AK,{disableSticky:!0,children:n.subheader}),n.items.map(o=>y.jsx(c2,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),FK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":l,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),jK=$t(P.ListItemIcon)({marginRight:8,flexShrink:0,width:lo.NAV_ITEM_HORIZONTAL,height:lo.NAV_ITEM_HORIZONTAL}),LK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),f2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,info:c,children:f,disabled:d,caption:h}=e,m=t!==1,p=y.jsxs(FK,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&y.jsx(jK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),c&&y.jsx(P.Box,{component:"span",sx:{ml:1,lineHeight:0},children:c}),h&&y.jsx(P.Tooltip,{title:h,arrow:!0,children:y.jsx(P.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(Rt,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(Rt,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:p}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:p}))()});f2.displayName="NavItem";const RK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(d2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),d2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(f2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(LK,{open:s,anchorEl:n.current,anchorOrigin:t===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:t===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(RK,{data:e.children,depth:t})})]})},BK=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(d2,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),NK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...e2,...t},...r,children:e.map(n=>y.jsx(BK,{items:n.items},n.subheader))}),zK=g.memo(NK),VK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(vl,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},WK=$t("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${W(e.palette.grey[500],.32)}`})),HK=$t("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),UK=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:u,isDragReject:l,fileRejections:c}=Il({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return y.jsxs(y.Fragment,{children:[y.jsxs(WK,{...a(),sx:{...u&&{opacity:.72},...d&&{borderColor:"error.light",...f&&{bgcolor:"error.lighter"}},...r&&{opacity:.48,pointerEvents:"none"},...f&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[y.jsx("input",{...s()}),f&&y.jsx(VK,{file:t}),y.jsxs(HK,{className:"placeholder",sx:{"&:hover":{opacity:.72},...f&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>W(h.palette.grey[900],.64)},...d&&{color:"error.main",bgcolor:"error.lighter"}},children:[y.jsx(Rt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),y.jsx(P.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,y.jsx(i2,{fileRejections:c})]})},YK=$t("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),GK=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:u}=Il({disabled:r,...i}),l=u||t;return y.jsxs(YK,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[y.jsx("input",{...a()}),e||y.jsx(Rt,{icon:"eva:cloud-upload-fill",width:28})]})},qK=()=>{const[e,t]=g.useState(!1),[r,n]=g.useState(document.activeElement);return g.useEffect(()=>{const i=a=>n(a.target),o=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",o,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",o)}},[]),{activeElement:r,listenersReady:e}};var KK=jc;function XK(e,t){return KK(e,t)}var ZK=XK;const QK=xn(ZK),JK=(e,t)=>QK(e,t),eX=e=>{const t=g.useRef();return JK(e,t.current)||(t.current=e),t.current},tX=(e,t)=>{g.useEffect(e,t.map(eX))},rX=()=>{const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current};function nX(e){const[t,r]=g.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const iX=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),o=`${e.replace(t,"")}.${t}`;i.href=n,i.download=o,i.click()}},Symbol.toStringTag,{value:"Module"}));function oX(e){return id({},e)}var h2=1440,aX=2520,Ld=43200,sX=86400;function lX(e,t,r){var n,i;U(2,arguments);var o=xr(),a=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:ul;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Yi(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=id(oX(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=Y(t),c=Y(e)):(l=Y(e),c=Y(t));var f=iy(c,l),d=(Gi(c)-Gi(l))/1e3,h=Math.round((f-d)/60),m;if(h<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,u):f<10?a.formatDistance("lessThanXSeconds",10,u):f<20?a.formatDistance("lessThanXSeconds",20,u):f<40?a.formatDistance("halfAMinute",0,u):f<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):h===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<h2){var p=Math.round(h/60);return a.formatDistance("aboutXHours",p,u)}else{if(h<aX)return a.formatDistance("xDays",1,u);if(h<Ld){var v=Math.round(h/h2);return a.formatDistance("xDays",v,u)}else if(h<sX)return m=Math.round(h/Ld),a.formatDistance("aboutXMonths",m,u)}if(m=Zf(c,l),m<12){var x=Math.round(h/Ld);return a.formatDistance("xMonths",x,u)}else{var b=m%12,C=Math.floor(m/12);return b<3?a.formatDistance("aboutXYears",C,u):b<9?a.formatDistance("overXYears",C,u):a.formatDistance("almostXYears",C+1,u)}}function uX(e,t){return U(1,arguments),lX(e,Date.now(),t)}function cX(e){U(1,arguments);var t=Y(e),r=t.getTime();return r}function fX(e,t){const r=t||"dd/MM/yyyy";return e?rd(new Date(e),r):null}function dX(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?rd(new Date(e),r):null}function hX(e){return e?cX(new Date(e)):null}function pX(e){return e?uX(new Date(e),{addSuffix:!0}):null}const gX=Object.freeze(Object.defineProperty({__proto__:null,fDate:fX,fDateTime:dX,fTimestamp:hX,fToNow:pX},Symbol.toStringTag,{value:"Module"}));function mX(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const vX=Object.freeze(Object.defineProperty({__proto__:null,getRoot:mX},Symbol.toStringTag,{value:"Module"})),yX=e=>function(r){return y.jsx(g.Suspense,{fallback:y.jsx(P.CircularProgress,{}),children:y.jsx(e,{...r})})},bX=Object.freeze(Object.defineProperty({__proto__:null,default:z3},Symbol.toStringTag,{value:"Module"}));z.Autocomplete=gc,z.AutocompleteField=NG,z.ColorPickerField=zG,z.ColorPickerInput=J1,z.Common=MY,z.CustomAvatar=Hy,z.CustomAvatarGroup=Uy,z.DataGrid=DY,z.DatePicker=VG,z.DateRangePicker=WG,z.DateTimePicker=HG,z.Delayed=$Y,z.DialogAnimate=V3,z.FabButtonAnimate=p0,z.Field=Pb,z.Form=UG,z.IconButtonAnimate=g0,z.Iconify=Rt,z.Image=vl,z.ImageCropModal=cb,z.Label=fb,z.MaskedInput=_d,z.MaskedInputField=YG,z.MenuPopover=MG,z.MotionContainer=LS,z.MotionLazyContainer=BS,z.MotionViewport=jS,z.NavSectionHorizontal=zK,z.NavSectionMini=kK,z.NavSectionVertical=IK,z.PasswordField=GG,z.Portal=PG,z.Scrollbar=BG,z.Switch=qG,z.TRANSITION=Bd,z.TextAnimate=W3,z.ThemeProvider=Wy,z.TimePicker=KG,z.Upload=o2,z.UploadAvatar=UK,z.UploadBox=GK,z.UploadWithCrop=a2,z.UploadWithCropField=wK,z.cssStyles=uK,z.file=iX,z.formatNumber=gK,z.formatTime=gX,z.loadable=yX,z.routes=vX,z.useActiveElement=qK,z.useActiveLink=Ll,z.useDeepCompareEffect=tX,z.useIsMounting=rX,z.useResponsive=yg,z.useTabs=nX,z.useToggle=cc,z.varBgColor=O2,z.varBgKenburns=k2,z.varBgPan=M2,z.varBounce=E2,z.varContainer=Ea,z.varFade=fo,z.varFlip=w2,z.varHover=_2,z.varPath=y2,z.varRotate=T2,z.varScale=S2,z.varSlide=C2,z.varTranEnter=Pe,z.varTranExit=$e,z.varTranHover=b2,z.varZoom=x2,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|
|
248
|
+
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ho,function(){var t,r,n="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(l,c){this._input=l,this._value=c}return t=function(l){var c,f,d,h;if(t.isNumeral(l))c=l.value();else if(l===0||typeof l>"u")c=0;else if(l===null||r.isNaN(l))c=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)c=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)c=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&l.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,c=d(l)}else c=Number(l)||null;return new u(l,c)},t.version=n,t.isNumeral=function(l){return l instanceof u},t._=r={numberToFormat:function(l,c,f){var d=o[t.options.currentLocale],h=!1,m=!1,p=0,v="",x=1e12,b=1e9,C=1e6,E=1e3,w="",_=!1,O,k,D,L,re,pe,se;if(l=l||0,k=Math.abs(l),t._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(re=t._.includes(c,"+")?c.indexOf("+"):l<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(O=c.match(/a(k|m|b|t)?/),O=O?O[1]:!1,t._.includes(c," a")&&(v=" "),c=c.replace(new RegExp(v+"a[kmbt]?"),""),k>=x&&!O||O==="t"?(v+=d.abbreviations.trillion,l=l/x):k<x&&k>=b&&!O||O==="b"?(v+=d.abbreviations.billion,l=l/b):k<b&&k>=C&&!O||O==="m"?(v+=d.abbreviations.million,l=l/C):(k<C&&k>=E&&!O||O==="k")&&(v+=d.abbreviations.thousand,l=l/E)),t._.includes(c,"[.]")&&(m=!0,c=c.replace("[.]",".")),D=l.toString().split(".")[0],L=c.split(".")[1],pe=c.indexOf(","),p=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,L?(t._.includes(L,"[")?(L=L.replace("]",""),L=L.split("["),w=t._.toFixed(l,L[0].length+L[1].length,f,L[1].length)):w=t._.toFixed(l,L.length,f),D=w.split(".")[0],t._.includes(w,".")?w=d.delimiters.decimal+w.split(".")[1]:w="",m&&Number(w.slice(1))===0&&(w="")):D=t._.toFixed(l,0,f),v&&!O&&Number(D)>=1e3&&v!==d.abbreviations.trillion)switch(D=String(Number(D)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(t._.includes(D,"-")&&(D=D.slice(1),_=!0),D.length<p)for(var q=p-D.length;q>0;q--)D="0"+D;return pe>-1&&(D=D.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(D=""),se=D+w+(v||""),h?se=(h&&_?"(":"")+se+(h&&_?")":""):re>=0?se=re===0?(_?"-":"+")+se:se+(_?"-":"+"):_&&(se="-"+se),se},stringToNumber:function(l){var c=o[s.currentLocale],f=l,d={thousand:3,million:6,billion:9,trillion:12},h,m,p;if(s.zeroFormat&&l===s.zeroFormat)m=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)m=null;else{m=1,c.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,d[h]);break}m*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),m*=Number(l)}return m},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,c){return l.indexOf(c)!==-1},insert:function(l,c,f){return l.slice(0,f)+c+l.slice(f)},reduce:function(l,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var f=Object(l),d=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<d;h++)h in f&&(m=c(m,f[h],h,f));return m},multiplier:function(l){var c=l.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(c,f){var d=r.multiplier(f);return c>d?c:d},1)},toFixed:function(l,c,f,d){var h=l.toString().split("."),m=c-(d||0),p,v,x,b;return h.length===2?p=Math.min(Math.max(h[1].length,m),c):p=m,x=Math.pow(10,p),b=(f(l+"e+"+p)/x).toFixed(p),d>c-p&&(v=new RegExp("\\.?0{1,"+(d-(c-p))+"}$"),b=b.replace(v,"")),b}},t.options=s,t.formats=i,t.locales=o,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return o[s.currentLocale];if(l=l.toLowerCase(),!o[l])throw new Error("Unknown locale : "+l);return o[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,c,f){if(c=c.toLowerCase(),this[l+"s"][c])throw new TypeError(c+" "+l+" already registered.");return this[l+"s"][c]=f,f},t.validate=function(l,c){var f,d,h,m,p,v,x,b;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=t.localeData(c)}catch{x=t.localeData(t.locale())}return h=x.currency.symbol,p=x.abbreviations,f=x.delimiters.decimal,x.delimiters.thousands==="."?d="\\.":d=x.delimiters.thousands,b=l.match(/^[^\d]+/),b!==null&&(l=l.substr(1),b[0]!==h)||(b=l.match(/[^\d]+$/),b!==null&&(l=l.slice(0,-1),b[0]!==p.thousand&&b[0]!==p.million&&b[0]!==p.billion&&b[0]!==p.trillion))?!1:(v=new RegExp(d+"{2}"),l.match(/[^\d.,]/g)?!1:(m=l.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(l,c){var f=this._value,d=l||s.defaultFormat,h,m,p;if(c=c||Math.round,f===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(f===null&&s.nullFormat!==null)m=s.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,m=p(f,d,c)}return m},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d+Math.round(c*h)}return this._value=r.reduce([this._value,l],f,0)/c,this},subtract:function(l){var c=r.correctionFactor.call(null,this._value,l);function f(d,h,m,p){return d-Math.round(c*h)}return this._value=r.reduce([l],f,Math.round(this._value*c))/c,this},multiply:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,l],c,1),this},divide:function(l){function c(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,l],c),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var c=l%10;return~~(l%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,c,f){var d=t._.includes(c," BPS")?" ":"",h;return l=l*1e4,c=c.replace(/\s?BPS/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=l.suffixes.concat(c.suffixes.filter(function(h){return l.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,m,p){var v,x=t._.includes(m,"ib")?c:l,b=t._.includes(m," b")||t._.includes(m," ib")?" ":"",C,E,w;for(m=m.replace(/\s?i?b/,""),C=0;C<=x.suffixes.length;C++)if(E=Math.pow(x.base,C),w=Math.pow(x.base,C+1),h===null||h===0||h>=E&&h<w){b+=x.suffixes[C],E>0&&(h=h/E);break}return v=t._.numberToFormat(h,m,p),v+b},unformat:function(h){var m=t._.stringToNumber(h),p,v;if(m){for(p=l.suffixes.length-1;p>=0;p--){if(t._.includes(h,l.suffixes[p])){v=Math.pow(l.base,p);break}if(t._.includes(h,c.suffixes[p])){v=Math.pow(c.base,p);break}}m*=v||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,v;for(c=c.replace(/\s?\$\s?/,""),m=t._.numberToFormat(l,c,f),l>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),v=0;v<h.before.length;v++)switch(p=h.before[v],p){case"$":m=t._.insert(m,d.currency.symbol,v);break;case" ":m=t._.insert(m," ",v+d.currency.symbol.length-1);break}for(v=h.after.length-1;v>=0;v--)switch(p=h.after[v],p){case"$":m=v===h.after.length-1?m+d.currency.symbol:t._.insert(m,d.currency.symbol,-(h.after.length-(1+v)));break;case" ":m=v===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+v)+d.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,c,f){var d,h=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",m=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(m[0]),c,f),d+"e"+m[1]},unformat:function(l){var c=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),f=Number(c[0]),d=Number(c[1]);d=t._.includes(l,"e-")?d*=-1:d;function h(m,p,v,x){var b=t._.correctionFactor(m,p),C=m*b*(p*b)/(b*b);return C}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,c,f){var d=t.locales[t.options.currentLocale],h,m=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),m+=d.ordinal(l),h=t._.numberToFormat(l,c,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,c,f){var d=t._.includes(c," %")?" ":"",h;return t.options.scalePercentBy100&&(l=l*100),c=c.replace(/\s?\%/,""),h=t._.numberToFormat(l,c,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(l){var c=t._.stringToNumber(l);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,c,f){var d=Math.floor(l/60/60),h=Math.floor((l-d*60*60)/60),m=Math.round(l-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(l){var c=l.split(":"),f=0;return c.length===3?(f=f+Number(c[0])*60*60,f=f+Number(c[1])*60,f=f+Number(c[2])):c.length===2&&(f=f+Number(c[0])*60,f=f+Number(c[1])),Number(f)}})}(),t})})(n2);var cK=n2.exports;const wa=xn(cK);function fK(e){return wa(e).format()}function dK(e){const t=e?wa(e).format("$0,0.00"):"";return jl(t,".00")}function hK(e){const t=e?wa(Number(e)/100).format("0.0%"):"";return jl(t,".0")}function pK(e){const t=e?wa(e).format("0.00a"):"";return jl(t,".00")}function jd(e){const t=e?wa(e).format("0.0 b"):"";return jl(t,".0")}function jl(e,t=".00"){return e.includes(t)?e.replace(t,""):e}const gK=Object.freeze(Object.defineProperty({__proto__:null,fCurrency:dK,fData:jd,fNumber:fK,fPercent:hK,fShortenNumber:pK},Symbol.toStringTag,{value:"Module"})),i2=({fileRejections:e})=>e.length?y.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>W(t.palette.error.main,.08),borderColor:t=>W(t.palette.error.main,.24)},children:e.map(({file:t,errors:r})=>{const{path:n,size:i}=Fd(t);return y.jsxs(P.Box,{sx:{my:1},children:[y.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[n," - ",i?jd(i):""]}),r.map(o=>y.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",o.message]},o.code))]},n)})}):null,mK=({thumbnail:e,files:t,onRemove:r,sx:n})=>t!=null&&t.length?y.jsx(h0,{initial:!1,children:t.map(i=>{const{key:o,name:a="",size:s=0}=Fd(i),u=typeof i=="string";return e?y.jsxs(P.Stack,{component:gr.div,...fo().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{tooltip:!0,imageView:!0,file:i,sx:{position:"absolute"},imgSx:{position:"absolute"}}),r&&y.jsx(P.IconButton,{size:"small",onClick:()=>r(i),sx:{top:4,right:4,p:"1px",position:"absolute",color:l=>W(l.palette.common.white,.72),bgcolor:l=>W(l.palette.grey[900],.48),"&:hover":{bgcolor:l=>W(l.palette.grey[900],.72)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:16})})]},o):y.jsxs(P.Stack,{component:gr.div,...fo().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:l=>`solid 1px ${l.palette.divider}`,...n},children:[y.jsx(r2,{file:i}),y.jsxs(P.Stack,{flexGrow:1,sx:{minWidth:0},children:[y.jsx(P.Typography,{variant:"subtitle2",noWrap:!0,children:u?i:a}),y.jsx(P.Typography,{variant:"caption",sx:{color:"text.secondary"},children:u?"":jd(s)})]}),r&&y.jsx(P.IconButton,{edge:"end",size:"small",onClick:()=>r(i),children:y.jsx(Rt,{icon:"eva:close-fill"})})]},o)})}):null,vK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(P.Stack,{position:"absolute",width:1,height:160,alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:y.jsx(vl,{alt:"file preview",src:t,sx:{borderRadius:1,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},yK=$t("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${W(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),bK=({header:e,description:t,sx:r,...n})=>y.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[y.jsx(Yq,{sx:{width:220}}),y.jsxs("div",{children:[e||y.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:"Soltar ou selecionar arquivos"}),t||y.jsxs(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:["Solte os arquivos aqui ou clique",y.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})]})]}),o2=({disabled:e,multiple:t=!1,error:r,helperText:n,file:i,onDelete:o,files:a,thumbnail:s,onUpload:u,onRemove:l,onRemoveAll:c,sx:f,dropZoneProps:d,placeholderProps:h,placeholderAlt:m,...p})=>{const{getRootProps:v,getInputProps:x,isDragActive:b,isDragReject:C,fileRejections:E}=Il({multiple:t,disabled:e,...p}),w=!!i&&!t,_=a&&t&&a.length>0,O=C||!!r;return y.jsxs(P.Box,{sx:{width:1,position:"relative",...f},children:[y.jsxs(yK,{...v(),sx:{...b&&{opacity:.72},...O&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...e&&{opacity:.48,pointerEvents:"none"},...d},children:[y.jsx("input",{...x()}),m?y.jsx(P.Stack,{sx:{...w&&{opacity:0}},children:m}):y.jsx(bK,{sx:{...w&&{opacity:0}},header:h==null?void 0:h.title,description:h==null?void 0:h.description}),w&&y.jsx(vK,{file:i})]}),n&&n,y.jsx(i2,{fileRejections:E}),w&&o&&y.jsx(P.IconButton,{size:"small",onClick:o,sx:{top:16,right:16,zIndex:9,position:"absolute",color:k=>W(k.palette.common.white,.8),bgcolor:k=>W(k.palette.grey[900],.72),"&:hover":{bgcolor:k=>W(k.palette.grey[900],.48)}},children:y.jsx(Rt,{icon:"eva:close-fill",width:18})}),_&&y.jsxs(y.Fragment,{children:[y.jsx(P.Box,{sx:{my:3},children:y.jsx(mK,{files:a,thumbnail:s,onRemove:l})}),y.jsxs(P.Stack,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[c&&y.jsx(P.Button,{color:"inherit",variant:"outlined",size:"small",onClick:c,children:"Remove all"}),u&&y.jsx(P.Button,{size:"small",variant:"contained",onClick:u,children:"Upload files"})]})]})]})},a2=({onFileCropped:e,aspect:t,size:{width:r,height:n},label:i,image:o="",...a})=>{const[s,u]=cc(),[l,c]=g.useState(o),f=d=>{d||c(""),e(d)};return y.jsxs(y.Fragment,{children:[y.jsxs(P.Stack,{position:"relative",width:1,children:[y.jsx(o2,{...a,onDrop:d=>{if(d.length>0){u(),e(void 0);const h=new FileReader;h.addEventListener("load",()=>{var p;const m=((p=h.result)==null?void 0:p.toString())||"";c(m)}),h.readAsDataURL(d[0])}}}),l&&y.jsx(P.Stack,{sx:{position:"absolute",top:12,right:12,zIndex:999},bgcolor:"grey.0",borderRadius:"50%",children:y.jsx(P.IconButton,{color:"primary",onClick:u,children:y.jsx(Rt,{icon:"ic:round-crop"})})})]}),y.jsx(cb,{open:s,onClose:u,title:i,image:{width:r,height:n,aspect:t,imgSrc:l},onFileCropped:f})]})};function xK(e,t){const{watch:r,setValue:n}=yt.useFormContext(),[i,o]=g.useState(t),a=r(e)||[];return{uploadFile:async d=>{if(!d){n(e,void 0),o(void 0);return}n(e,d),o(Object.assign(d,{preview:URL.createObjectURL(d)}))},uploadFiles:async d=>{n(e,[...a,...d.map(h=>Object.assign(h,{preview:URL.createObjectURL(h)}))])},handleDeleteFile:()=>{n(e,void 0),o(void 0)},handleRemoveAll:()=>{n(e,void 0)},handleRemove:d=>{const h=a.filter(m=>m!==d);n(e,h)},file:i}}const wK=({name:e,rules:t,helperText:r,aspect:n,label:i,size:o,image:a,...s})=>{const{control:u}=yt.useFormContext(),{uploadFile:l,file:c}=xK(e);return y.jsx(yt.Controller,{name:e,control:u,rules:t,render:({fieldState:{error:f}})=>y.jsx(a2,{accept:{"image/*":[]},file:c,onFileCropped:l,error:!!f,disableMultiple:!0,helperText:(!!f||r)&&y.jsx(P.FormHelperText,{error:!!f,sx:{px:2},children:f?f==null?void 0:f.message:r}),aspect:n,label:i,size:o,image:a,...s})})},Ll=(e,t=!0)=>{const{pathname:r}=Fr.useLocation(),n=e?!!Fr.matchPath({path:e,end:!0},r):!1,i=e?!!Fr.matchPath({path:e,end:!1},r):!1;return{active:t?i:n,isExternalLink:e.includes("http")}},Rl={W_BASE:260,W_DASHBOARD:280,W_DASHBOARD_MINI:88,H_DASHBOARD_ITEM:48,H_DASHBOARD_ITEM_SUB:36,H_DASHBOARD_ITEM_HORIZONTAL:32},lo={NAV_ITEM:24,NAV_ITEM_HORIZONTAL:22,NAV_ITEM_MINI:22},CK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexDirection:"column",textTransform:"capitalize",padding:i.spacing(1,0,.5,0),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,"&:hover":l,...a&&{flexDirection:"row",padding:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),SK=$t(P.ListItemIcon)({marginRight:0,marginBottom:4,width:lo.NAV_ITEM_MINI,height:lo.NAV_ITEM_MINI}),EK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),s2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(CK,{ref:a,open:r,depth:t,active:n,disabled:f,...o,children:[l&&y.jsx(SK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,sx:{width:72,fontSize:10,lineHeight:"16px",textAlign:"center",...n&&{fontWeight:"fontWeightMedium"},...h&&{fontSize:14,width:"auto",textAlign:"left"}}}}),d&&y.jsx(P.Tooltip,{title:d,arrow:!0,placement:"right",children:y.jsx(Rt,{icon:"eva:info-outline",width:16,sx:{top:11,left:6,position:"absolute"}})}),!!c&&y.jsx(Rt,{width:16,icon:"eva:chevron-right-fill",sx:{top:11,right:6,position:"absolute"}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:m}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:m}))()});s2.displayName="NavItem";const TK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(l2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),l2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(s2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(EK,{open:s,anchorEl:n.current,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(TK,{data:e.children,depth:t})})]})},_K=({items:e,isLastGroup:t})=>y.jsxs(y.Fragment,{children:[e.map(r=>y.jsx(l2,{data:r,depth:1,hasChild:!!r.children},r.title+r.path)),!t&&y.jsx(P.Box,{sx:{width:24,height:"1px",bgcolor:"divider",my:"8px !important"}})]}),OK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{spacing:.5,alignItems:"center",sx:{px:.75,...t},...r,children:e.map((n,i)=>y.jsx(_K,{items:n.items,isLastGroup:i+1===e.length},n.subheader))}),kK=g.memo(OK),MK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="caption"})(({active:e,disabled:t,depth:r,caption:n,theme:i})=>{const o=i.palette.mode==="light",a=r!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"};return{position:"relative",textTransform:"capitalize",paddingLeft:i.spacing(2),paddingRight:i.spacing(1.5),marginBottom:i.spacing(.5),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM,...a&&{height:Rl.H_DASHBOARD_ITEM_SUB,...r>2&&{paddingLeft:i.spacing(r)},...n&&{height:Rl.H_DASHBOARD_ITEM}},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...t&&{"&.Mui-disabled":{opacity:.64}}}}),u2=$t(P.ListItemIcon)({display:"flex",alignItems:"center",justifyContent:"center",width:lo.NAV_ITEM,height:lo.NAV_ITEM}),PK=$t("span",{shouldForwardProp:e=>e!=="active"})(({active:e,theme:t})=>({width:4,height:4,borderRadius:"50%",backgroundColor:t.palette.text.disabled,transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter}),...e&&{transform:"scale(2)",backgroundColor:t.palette.primary.main}})),AK=$t(P.ListSubheader)(({theme:e})=>({...e.typography.overline,fontSize:11,paddingTop:e.spacing(3),paddingBottom:e.spacing(1),color:e.palette.text.secondary})),DK=({item:e,depth:t,open:r,active:n,isExternalLink:i,...o})=>{const{title:a,path:s,icon:u,info:l,children:c,disabled:f,caption:d}=e,h=t!==1,m=y.jsxs(MK,{depth:t,active:n,disabled:f,caption:!!d,...o,children:[u&&y.jsx(u2,{children:u}),h&&y.jsx(u2,{children:y.jsx(PK,{active:n&&h})}),y.jsx(P.ListItemText,{primary:a,secondary:d&&y.jsx(P.Tooltip,{title:d,placement:"top-start",children:y.jsx("span",{children:d})}),primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"},secondaryTypographyProps:{noWrap:!0,variant:"caption"}}),l&&y.jsx(P.Box,{component:"span",sx:{lineHeight:0},children:l}),!!c&&y.jsx(Rt,{width:16,icon:r?"eva:arrow-ios-downward-fill":"eva:arrow-ios-forward-fill",sx:{ml:1,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:s,target:"_blank",rel:"noopener",underline:"none",children:m}):c?m:y.jsx(P.Link,{component:Fr.Link,to:s,underline:"none",children:m}))()},$K=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(c2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),c2=({data:e,depth:t,hasChild:r})=>{const{pathname:n}=Fr.useLocation(),{active:i,isExternalLink:o}=Ll(e.path),[a,s]=g.useState(i);g.useEffect(()=>{i||l()},[n]);const u=()=>{s(!a)},l=()=>{s(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(DK,{item:e,depth:t,open:a,active:i,isExternalLink:o,onClick:u}),r&&y.jsx(P.Collapse,{in:a,unmountOnExit:!0,children:y.jsx($K,{data:e.children,depth:t})})]})},IK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{sx:t,...r,children:e.map(n=>{const i=n.subheader||n.items[0].title;return y.jsxs(P.List,{disablePadding:!0,sx:{px:2},children:[n.subheader&&y.jsx(AK,{disableSticky:!0,children:n.subheader}),n.items.map(o=>y.jsx(c2,{data:o,depth:1,hasChild:!!o.children},o.title+o.path))]},i)})}),FK=$t(P.ListItemButton,{shouldForwardProp:e=>e!=="active"&&e!=="open"})(({active:e,disabled:t,open:r,depth:n,theme:i})=>{const o=i.palette.mode==="light",a=n!==1,s={color:i.palette.primary.main,backgroundColor:W(i.palette.primary.main,i.palette.action.selectedOpacity),...!o&&{color:i.palette.primary.light}},u={color:i.palette.text.primary,backgroundColor:"transparent"},l={color:i.palette.text.primary,backgroundColor:i.palette.action.hover};return{flexShrink:0,display:"inline-flex",textTransform:"capitalize",padding:i.spacing(0,.75),color:i.palette.text.secondary,borderRadius:i.shape.borderRadius,height:Rl.H_DASHBOARD_ITEM_HORIZONTAL,"&:hover":l,...a&&{width:"100%",margin:0,paddingRight:0,paddingLeft:i.spacing(1)},...e&&{...s,"&:hover":{...s}},...a&&e&&{...u,"&:hover":{...u}},...r&&!e&&l,...t&&{"&.Mui-disabled":{opacity:.64}}}}),jK=$t(P.ListItemIcon)({marginRight:8,flexShrink:0,width:lo.NAV_ITEM_HORIZONTAL,height:lo.NAV_ITEM_HORIZONTAL}),LK=$t(P.Popover)(({theme:e})=>({pointerEvents:"none","& .MuiPopover-paper":{width:160,pointerEvents:"auto",padding:e.spacing(1),marginTop:e.spacing(.5),boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5,...Fl({color:e.palette.background.default})}})),f2=g.forwardRef(({item:e,depth:t,open:r,active:n,isExternalLink:i,...o},a)=>{const{title:s,path:u,icon:l,info:c,children:f,disabled:d,caption:h}=e,m=t!==1,p=y.jsxs(FK,{ref:a,open:r,depth:t,active:n,disabled:d,...o,children:[l&&y.jsx(jK,{children:l}),y.jsx(P.ListItemText,{primary:s,primaryTypographyProps:{noWrap:!0,component:"span",variant:n?"subtitle2":"body2"}}),c&&y.jsx(P.Box,{component:"span",sx:{ml:1,lineHeight:0},children:c}),h&&y.jsx(P.Tooltip,{title:h,arrow:!0,children:y.jsx(P.Box,{component:"span",sx:{ml:.5,lineHeight:0},children:y.jsx(Rt,{icon:"eva:info-outline",width:16})})}),!!f&&y.jsx(Rt,{icon:m?"eva:chevron-right-fill":"eva:chevron-down-fill",width:16,sx:{ml:.5,flexShrink:0}})]});return(()=>i?y.jsx(P.Link,{href:u,target:"_blank",rel:"noopener",underline:"none",children:p}):y.jsx(P.Link,{component:Fr.Link,to:u,underline:"none",children:p}))()});f2.displayName="NavItem";const RK=({data:e,depth:t})=>y.jsx(y.Fragment,{children:e.map(r=>y.jsx(d2,{data:r,depth:t+1,hasChild:!!r.children},r.title+r.path))}),d2=({data:e,depth:t,hasChild:r})=>{const n=g.useRef(null),{pathname:i}=Fr.useLocation(),{active:o,isExternalLink:a}=Ll(e.path),[s,u]=g.useState(!1);g.useEffect(()=>{s&&c()},[i]),g.useEffect(()=>{const f=Array.from(document.querySelectorAll(".MuiAppBar-root")),d=()=>{document.body.style.overflow="",document.body.style.padding="",f.forEach(h=>{h.style.padding=""})};d()},[s]);const l=()=>{u(!0)},c=()=>{u(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(f2,{ref:n,item:e,depth:t,open:s,active:o,isExternalLink:a,onMouseEnter:l,onMouseLeave:c}),r&&y.jsx(LK,{open:s,anchorEl:n.current,anchorOrigin:t===1?{vertical:"bottom",horizontal:"left"}:{vertical:"center",horizontal:"right"},transformOrigin:t===1?{vertical:"top",horizontal:"left"}:{vertical:"center",horizontal:"left"},PaperProps:{onMouseEnter:l,onMouseLeave:c},children:y.jsx(RK,{data:e.children,depth:t})})]})},BK=({items:e})=>y.jsx(y.Fragment,{children:e.map(t=>y.jsx(d2,{data:t,depth:1,hasChild:!!t.children},t.title+t.path))}),NK=({data:e,sx:t,...r})=>y.jsx(P.Stack,{direction:"row",spacing:1,sx:{mx:"auto",...e2,...t},...r,children:e.map(n=>y.jsx(BK,{items:n.items},n.subheader))}),zK=g.memo(NK),VK=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return y.jsx(vl,{alt:"avatar",src:t,sx:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},WK=$t("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${W(e.palette.grey[500],.32)}`})),HK=$t("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),UK=({error:e,file:t,disabled:r,helperText:n,sx:i,...o})=>{const{getRootProps:a,getInputProps:s,isDragActive:u,isDragReject:l,fileRejections:c}=Il({multiple:!1,disabled:r,...o}),f=!!t,d=l||!!e;return y.jsxs(y.Fragment,{children:[y.jsxs(WK,{...a(),sx:{...u&&{opacity:.72},...d&&{borderColor:"error.light",...f&&{bgcolor:"error.lighter"}},...r&&{opacity:.48,pointerEvents:"none"},...f&&{"&:hover":{"& .placeholder":{opacity:1}}},...i},children:[y.jsx("input",{...s()}),f&&y.jsx(VK,{file:t}),y.jsxs(HK,{className:"placeholder",sx:{"&:hover":{opacity:.72},...f&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>W(h.palette.grey[900],.64)},...d&&{color:"error.main",bgcolor:"error.lighter"}},children:[y.jsx(Rt,{icon:"ic:round-add-a-photo",width:24,sx:{mb:1}}),y.jsx(P.Typography,{variant:"caption",children:t?"Update photo":"Upload photo"})]})]}),n&&n,y.jsx(i2,{fileRejections:c})]})},YK=$t("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:W(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),GK=({placeholderAlt:e,error:t,disabled:r,sx:n,...i})=>{const{getRootProps:o,getInputProps:a,isDragActive:s,isDragReject:u}=Il({disabled:r,...i}),l=u||t;return y.jsxs(YK,{...o(),sx:{...s&&{opacity:.72},...l&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...r&&{opacity:.48,pointerEvents:"none"},...n},children:[y.jsx("input",{...a()}),e||y.jsx(Rt,{icon:"eva:cloud-upload-fill",width:28})]})},qK=()=>{const[e,t]=g.useState(!1),[r,n]=g.useState(document.activeElement);return g.useEffect(()=>{const i=a=>n(a.target),o=()=>n(null);return window.addEventListener("focus",i,!0),window.addEventListener("blur",o,!0),t(!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("blur",o)}},[]),{activeElement:r,listenersReady:e}};function KK(){const[e,t]=g.useState(null);return{copiedText:e,copy:async n=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(n),t(n),!0}catch{return t(null),!1}}}}var XK=jc;function ZK(e,t){return XK(e,t)}var QK=ZK;const JK=xn(QK),eX=(e,t)=>JK(e,t),tX=e=>{const t=g.useRef();return eX(e,t.current)||(t.current=e),t.current},rX=(e,t)=>{g.useEffect(e,t.map(tX))},nX=()=>{const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current};function iX(e){const[t,r]=g.useState(e||"");return{currentTab:t,onChangeTab:(n,i)=>{r(i)},setCurrentTab:r}}const oX=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:(e,t,r)=>{const n=`data:application/octet-stream;base64,${r}`,i=document.createElement("a"),o=`${e.replace(t,"")}.${t}`;i.href=n,i.download=o,i.click()}},Symbol.toStringTag,{value:"Module"}));function aX(e){return id({},e)}var h2=1440,sX=2520,Ld=43200,lX=86400;function uX(e,t,r){var n,i;U(2,arguments);var o=xr(),a=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:ul;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=Yi(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=id(aX(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=Y(t),c=Y(e)):(l=Y(e),c=Y(t));var f=iy(c,l),d=(Gi(c)-Gi(l))/1e3,h=Math.round((f-d)/60),m;if(h<2)return r!=null&&r.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,u):f<10?a.formatDistance("lessThanXSeconds",10,u):f<20?a.formatDistance("lessThanXSeconds",20,u):f<40?a.formatDistance("halfAMinute",0,u):f<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):h===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",h,u);if(h<45)return a.formatDistance("xMinutes",h,u);if(h<90)return a.formatDistance("aboutXHours",1,u);if(h<h2){var p=Math.round(h/60);return a.formatDistance("aboutXHours",p,u)}else{if(h<sX)return a.formatDistance("xDays",1,u);if(h<Ld){var v=Math.round(h/h2);return a.formatDistance("xDays",v,u)}else if(h<lX)return m=Math.round(h/Ld),a.formatDistance("aboutXMonths",m,u)}if(m=Zf(c,l),m<12){var x=Math.round(h/Ld);return a.formatDistance("xMonths",x,u)}else{var b=m%12,C=Math.floor(m/12);return b<3?a.formatDistance("aboutXYears",C,u):b<9?a.formatDistance("overXYears",C,u):a.formatDistance("almostXYears",C+1,u)}}function cX(e,t){return U(1,arguments),uX(e,Date.now(),t)}function fX(e){U(1,arguments);var t=Y(e),r=t.getTime();return r}function dX(e,t){const r=t||"dd/MM/yyyy";return e?rd(new Date(e),r):null}function hX(e,t){const r=t||"dd/MM/yyyy HH:mm:ss";return e?rd(new Date(e),r):null}function pX(e){return e?fX(new Date(e)):null}function gX(e){return e?cX(new Date(e),{addSuffix:!0}):null}const mX=Object.freeze(Object.defineProperty({__proto__:null,fDate:dX,fDateTime:hX,fTimestamp:pX,fToNow:gX},Symbol.toStringTag,{value:"Module"}));function vX(e){const t=e.match(/\/([^/]+)/);return t?t[0]:e}const yX=Object.freeze(Object.defineProperty({__proto__:null,getRoot:vX},Symbol.toStringTag,{value:"Module"})),bX=e=>function(r){return y.jsx(g.Suspense,{fallback:y.jsx(P.CircularProgress,{}),children:y.jsx(e,{...r})})},xX=Object.freeze(Object.defineProperty({__proto__:null,default:z3},Symbol.toStringTag,{value:"Module"}));N.Autocomplete=gc,N.AutocompleteField=NG,N.ColorPickerField=zG,N.ColorPickerInput=J1,N.Common=MY,N.CustomAvatar=Hy,N.CustomAvatarGroup=Uy,N.DataGrid=DY,N.DatePicker=VG,N.DateRangePicker=WG,N.DateTimePicker=HG,N.Delayed=$Y,N.DialogAnimate=V3,N.FabButtonAnimate=p0,N.Field=Pb,N.Form=UG,N.IconButtonAnimate=g0,N.Iconify=Rt,N.Image=vl,N.ImageCropModal=cb,N.Label=fb,N.MaskedInput=_d,N.MaskedInputField=YG,N.MenuPopover=MG,N.MotionContainer=LS,N.MotionLazyContainer=BS,N.MotionViewport=jS,N.NavSectionHorizontal=zK,N.NavSectionMini=kK,N.NavSectionVertical=IK,N.PasswordField=GG,N.Portal=PG,N.Scrollbar=BG,N.Switch=qG,N.TRANSITION=Bd,N.TextAnimate=W3,N.ThemeProvider=Wy,N.TimePicker=KG,N.Upload=o2,N.UploadAvatar=UK,N.UploadBox=GK,N.UploadWithCrop=a2,N.UploadWithCropField=wK,N.cssStyles=uK,N.file=oX,N.formatNumber=gK,N.formatTime=mX,N.loadable=bX,N.routes=yX,N.useActiveElement=qK,N.useActiveLink=Ll,N.useCopyToClipboard=KK,N.useDeepCompareEffect=rX,N.useIsMounting=nX,N.useResponsive=yg,N.useTabs=iX,N.useToggle=cc,N.varBgColor=O2,N.varBgKenburns=k2,N.varBgPan=M2,N.varBounce=E2,N.varContainer=Ea,N.varFade=fo,N.varFlip=w2,N.varHover=_2,N.varPath=y2,N.varRotate=T2,N.varScale=S2,N.varSlide=C2,N.varTranEnter=Pe,N.varTranExit=$e,N.varTranHover=b2,N.varZoom=x2,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|