@zydon/common 1.3.93 → 1.3.95
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/Confirm/index.d.ts +1 -1
- package/dist/components/Confirm/index.d.ts.map +1 -1
- package/dist/components/Confirm/props.d.ts +2 -0
- package/dist/components/Confirm/props.d.ts.map +1 -1
- package/dist/{features-34b4075f.js → features-73644b31.js} +1 -1
- package/dist/{index-e12518cd.js → index-c21a2bd7.js} +7 -5
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -35379,7 +35379,7 @@ const theme2 = createTheme({ palette: {
|
|
|
35379
35379
|
}
|
|
35380
35380
|
`),o.createElement("div",{style:f.white,className:"saturation-white"},o.createElement("div",{style:f.black,className:"saturation-black"}),o.createElement("div",{style:f.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:f.circle}))))}}]),t}(o.PureComponent||o.Component);function rQo(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var aQo=MTn(Object.keys,Object);const iQo=aQo;var oQo=Object.prototype,uQo=oQo.hasOwnProperty;function cQo(e){if(!yIn(e))return iQo(e);var t=[];for(var n in Object(e))uQo.call(e,n)&&n!="constructor"&&t.push(n);return t}function PIn(e){return ole(e)?xTn(e):cQo(e)}function lQo(e,t){return e&&bTn(e,t,PIn)}function sQo(e,t){return function(n,a){if(n==null)return n;if(!ole(n))return e(n,a);for(var r=n.length,u=t?r:-1,c=Object(n);(t?u--:++u<r)&&a(c[u],u,c)!==!1;);return n}}var fQo=sQo(lQo);const NTn=fQo;function dQo(e){return typeof e=="function"?e:XCt}function gQo(e,t){var n=Ur(e)?rQo:NTn;return n(e,dQo(t))}function qCt(e){"@babel/helpers - typeof";return qCt=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},qCt(e)}var _Qo=/^\s+/,mQo=/\s+$/;function Ie(e,t){if(e=e||"",t=t||{},e instanceof Ie)return e;if(!(this instanceof Ie))return new Ie(e,t);var n=vQo(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.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=n.ok}Ie.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(),n,a,r,u,c,s;return n=t.r/255,a=t.g/255,r=t.b/255,n<=.03928?u=n/12.92:u=Math.pow((n+.055)/1.055,2.4),a<=.03928?c=a/12.92:c=Math.pow((a+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),.2126*u+.7152*c+.0722*s},setAlpha:function(t){return this._a=YTn(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ZTn(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ZTn(this._r,this._g,this._b),n=Math.round(t.h*360),a=Math.round(t.s*100),r=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+a+"%, "+r+"%)":"hsva("+n+", "+a+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=TTn(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=TTn(this._r,this._g,this._b),n=Math.round(t.h*360),a=Math.round(t.s*100),r=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+a+"%, "+r+"%)":"hsla("+n+", "+a+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return UTn(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return yQo(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(Vt(this._r,255)*100)+"%",g:Math.round(Vt(this._g,255)*100)+"%",b:Math.round(Vt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Vt(this._r,255)*100)+"%, "+Math.round(Vt(this._g,255)*100)+"%, "+Math.round(Vt(this._b,255)*100)+"%)":"rgba("+Math.round(Vt(this._r,255)*100)+"%, "+Math.round(Vt(this._g,255)*100)+"%, "+Math.round(Vt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:IQo[UTn(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+GTn(this._r,this._g,this._b,this._a),a=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var u=Ie(t);a="#"+GTn(u._r,u._g,u._b,u._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+a+")"},toString:function(t){var n=!!t;t=t||this._format;var a=!1,r=this._a<1&&this._a>=0,u=!n&&r&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return u?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},clone:function(){return Ie(this.toString())},_applyModification:function(t,n){var a=t.apply(null,[this].concat([].slice.call(n)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(wQo,arguments)},brighten:function(){return this._applyModification(MQo,arguments)},darken:function(){return this._applyModification(LQo,arguments)},desaturate:function(){return this._applyModification(pQo,arguments)},saturate:function(){return this._applyModification(OQo,arguments)},greyscale:function(){return this._applyModification(jQo,arguments)},spin:function(){return this._applyModification(PQo,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(SQo,arguments)},complement:function(){return this._applyCombination(EQo,arguments)},monochromatic:function(){return this._applyCombination(DQo,arguments)},splitcomplement:function(){return this._applyCombination(kQo,arguments)},triad:function(){return this._applyCombination(KTn,[3])},tetrad:function(){return this._applyCombination(KTn,[4])}},Ie.fromRatio=function(e,t){if(qCt(e)=="object"){var n={};for(var a in e)e.hasOwnProperty(a)&&(a==="a"?n[a]=e[a]:n[a]=Xmt(e[a]));e=n}return Ie(e,t)};function vQo(e){var t={r:0,g:0,b:0},n=1,a=null,r=null,u=null,c=!1,s=!1;return typeof e=="string"&&(e=xQo(e)),qCt(e)=="object"&&(d8(e.r)&&d8(e.g)&&d8(e.b)?(t=hQo(e.r,e.g,e.b),c=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):d8(e.h)&&d8(e.s)&&d8(e.v)?(a=Xmt(e.s),r=Xmt(e.v),t=bQo(e.h,a,r),c=!0,s="hsv"):d8(e.h)&&d8(e.s)&&d8(e.l)&&(a=Xmt(e.s),u=Xmt(e.l),t=CQo(e.h,a,u),c=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=YTn(n),{ok:c,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:n}}function hQo(e,t,n){return{r:Vt(e,255)*255,g:Vt(t,255)*255,b:Vt(n,255)*255}}function TTn(e,t,n){e=Vt(e,255),t=Vt(t,255),n=Vt(n,255);var a=Math.max(e,t,n),r=Math.min(e,t,n),u,c,s=(a+r)/2;if(a==r)u=c=0;else{var l=a-r;switch(c=s>.5?l/(2-a-r):l/(a+r),a){case e:u=(t-n)/l+(t<n?6:0);break;case t:u=(n-e)/l+2;break;case n:u=(e-t)/l+4;break}u/=6}return{h:u,s:c,l:s}}function CQo(e,t,n){var a,r,u;e=Vt(e,360),t=Vt(t,100),n=Vt(n,100);function c(d,f,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?d+(f-d)*6*g:g<1/2?f:g<2/3?d+(f-d)*(2/3-g)*6:d}if(t===0)a=r=u=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;a=c(l,s,e+1/3),r=c(l,s,e),u=c(l,s,e-1/3)}return{r:a*255,g:r*255,b:u*255}}function ZTn(e,t,n){e=Vt(e,255),t=Vt(t,255),n=Vt(n,255);var a=Math.max(e,t,n),r=Math.min(e,t,n),u,c,s=a,l=a-r;if(c=a===0?0:l/a,a==r)u=0;else{switch(a){case e:u=(t-n)/l+(t<n?6:0);break;case t:u=(n-e)/l+2;break;case n:u=(e-t)/l+4;break}u/=6}return{h:u,s:c,v:s}}function bQo(e,t,n){e=Vt(e,360)*6,t=Vt(t,100),n=Vt(n,100);var a=Math.floor(e),r=e-a,u=n*(1-t),c=n*(1-r*t),s=n*(1-(1-r)*t),l=a%6,d=[n,c,u,u,s,n][l],f=[s,n,n,c,u,u][l],g=[u,u,s,n,n,c][l];return{r:d*255,g:f*255,b:g*255}}function UTn(e,t,n,a){var r=[Fi(Math.round(e).toString(16)),Fi(Math.round(t).toString(16)),Fi(Math.round(n).toString(16))];return a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function yQo(e,t,n,a,r){var u=[Fi(Math.round(e).toString(16)),Fi(Math.round(t).toString(16)),Fi(Math.round(n).toString(16)),Fi(XTn(a))];return r&&u[0].charAt(0)==u[0].charAt(1)&&u[1].charAt(0)==u[1].charAt(1)&&u[2].charAt(0)==u[2].charAt(1)&&u[3].charAt(0)==u[3].charAt(1)?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function GTn(e,t,n,a){var r=[Fi(XTn(a)),Fi(Math.round(e).toString(16)),Fi(Math.round(t).toString(16)),Fi(Math.round(n).toString(16))];return r.join("")}Ie.equals=function(e,t){return!e||!t?!1:Ie(e).toRgbString()==Ie(t).toRgbString()},Ie.random=function(){return Ie.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function pQo(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.s-=t/100,n.s=ebt(n.s),Ie(n)}function OQo(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.s+=t/100,n.s=ebt(n.s),Ie(n)}function jQo(e){return Ie(e).desaturate(100)}function wQo(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.l+=t/100,n.l=ebt(n.l),Ie(n)}function MQo(e,t){t=t===0?0:t||10;var n=Ie(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),Ie(n)}function LQo(e,t){t=t===0?0:t||10;var n=Ie(e).toHsl();return n.l-=t/100,n.l=ebt(n.l),Ie(n)}function PQo(e,t){var n=Ie(e).toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,Ie(n)}function EQo(e){var t=Ie(e).toHsl();return t.h=(t.h+180)%360,Ie(t)}function KTn(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Ie(e).toHsl(),a=[Ie(e)],r=360/t,u=1;u<t;u++)a.push(Ie({h:(n.h+u*r)%360,s:n.s,l:n.l}));return a}function kQo(e){var t=Ie(e).toHsl(),n=t.h;return[Ie(e),Ie({h:(n+72)%360,s:t.s,l:t.l}),Ie({h:(n+216)%360,s:t.s,l:t.l})]}function SQo(e,t,n){t=t||6,n=n||30;var a=Ie(e).toHsl(),r=360/n,u=[Ie(e)];for(a.h=(a.h-(r*t>>1)+720)%360;--t;)a.h=(a.h+r)%360,u.push(Ie(a));return u}function DQo(e,t){t=t||6;for(var n=Ie(e).toHsv(),a=n.h,r=n.s,u=n.v,c=[],s=1/t;t--;)c.push(Ie({h:a,s:r,v:u})),u=(u+s)%1;return c}Ie.mix=function(e,t,n){n=n===0?0:n||50;var a=Ie(e).toRgb(),r=Ie(t).toRgb(),u=n/100,c={r:(r.r-a.r)*u+a.r,g:(r.g-a.g)*u+a.g,b:(r.b-a.b)*u+a.b,a:(r.a-a.a)*u+a.a};return Ie(c)},Ie.readability=function(e,t){var n=Ie(e),a=Ie(t);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)},Ie.isReadable=function(e,t,n){var a=Ie.readability(e,t),r,u;switch(u=!1,r=AQo(n),r.level+r.size){case"AAsmall":case"AAAlarge":u=a>=4.5;break;case"AAlarge":u=a>=3;break;case"AAAsmall":u=a>=7;break}return u},Ie.mostReadable=function(e,t,n){var a=null,r=0,u,c,s,l;n=n||{},c=n.includeFallbackColors,s=n.level,l=n.size;for(var d=0;d<t.length;d++)u=Ie.readability(e,t[d]),u>r&&(r=u,a=Ie(t[d]));return Ie.isReadable(e,a,{level:s,size:l})||!c?a:(n.includeFallbackColors=!1,Ie.mostReadable(e,["#fff","#000"],n))};var EIn=Ie.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"},IQo=Ie.hexNames=BQo(EIn);function BQo(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function YTn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Vt(e,t){WQo(e)&&(e="100%");var n=$Qo(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ebt(e){return Math.min(1,Math.max(0,e))}function Gr(e){return parseInt(e,16)}function WQo(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function $Qo(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Fi(e){return e.length==1?"0"+e:""+e}function Xmt(e){return e<=1&&(e=e*100+"%"),e}function XTn(e){return Math.round(parseFloat(e)*255).toString(16)}function QTn(e){return Gr(e)/255}var Ni=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+a),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+a),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+a),hsva:new RegExp("hsva"+r),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 d8(e){return!!Ni.CSS_UNIT.exec(e)}function xQo(e){e=e.replace(_Qo,"").replace(mQo,"").toLowerCase();var t=!1;if(EIn[e])e=EIn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ni.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ni.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ni.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ni.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ni.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ni.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ni.hex8.exec(e))?{r:Gr(n[1]),g:Gr(n[2]),b:Gr(n[3]),a:QTn(n[4]),format:t?"name":"hex8"}:(n=Ni.hex6.exec(e))?{r:Gr(n[1]),g:Gr(n[2]),b:Gr(n[3]),format:t?"name":"hex"}:(n=Ni.hex4.exec(e))?{r:Gr(n[1]+""+n[1]),g:Gr(n[2]+""+n[2]),b:Gr(n[3]+""+n[3]),a:QTn(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ni.hex3.exec(e))?{r:Gr(n[1]+""+n[1]),g:Gr(n[2]+""+n[2]),b:Gr(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function AQo(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var JTn=function(t){var n=["r","g","b","a","h","s","l","v"],a=0,r=0;return gQo(n,function(u){if(t[u]&&(a+=1,isNaN(t[u])||(r+=1),u==="s"||u==="l")){var c=/^\d+%$/;c.test(t[u])&&(r+=1)}}),a===r?t:!1},Qmt=function(t,n){var a=t.hex?Ie(t.hex):Ie(t),r=a.toHsl(),u=a.toHsv(),c=a.toRgb(),s=a.toHex();r.s===0&&(r.h=n||0,u.h=n||0);var l=s==="000000"&&c.a===0;return{hsl:r,hex:l?"transparent":"#"+s,rgb:c,hsv:u,oldHue:t.h||n||r.h,source:t.source}},Oj=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Ie(t).isValid()},kIn=function(t){if(!t)return"#fff";var n=Qmt(t);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var a=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return a>=128?"#000":"#fff"},SIn=function(t,n){var a=t.replace("°","");return Ie(n+" ("+a+")")._ok},Jmt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},RQo=function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function zQo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HQo(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 VQo(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 tr=function(t){var n=function(a){VQo(r,a);function r(u){zQo(this,r);var c=HQo(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return c.handleChange=function(s,l){var d=JTn(s);if(d){var f=Qmt(s,s.h||c.state.oldHue);c.setState(f),c.props.onChangeComplete&&c.debounce(c.props.onChangeComplete,f,l),c.props.onChange&&c.props.onChange(f,l)}},c.handleSwatchHover=function(s,l){var d=JTn(s);if(d){var f=Qmt(s,s.h||c.state.oldHue);c.props.onSwatchHover&&c.props.onSwatchHover(f,l)}},c.state=Jmt({},Qmt(u.color,0)),c.debounce=Ymt(function(s,l,d){s(l,d)},100),c}return RQo(r,[{key:"render",value:function(){var c={};return this.props.onSwatchHover&&(c.onSwatchHover=this.handleSwatchHover),o.createElement(t,Jmt({},this.props,this.state,{onChange:this.handleChange},c))}}],[{key:"getDerivedStateFromProps",value:function(c,s){return Jmt({},Qmt(c.color,s.oldHue))}}]),r}(o.PureComponent||o.Component);return n.propTypes=Jmt({},t.propTypes),n.defaultProps=Jmt({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),n},FQo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},NQo=function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function TQo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qTn(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 ZQo(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 UQo=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(a){ZQo(r,a);function r(){var u,c,s,l;TQo(this,r);for(var d=arguments.length,f=Array(d),g=0;g<d;g++)f[g]=arguments[g];return l=(c=(s=qTn(this,(u=r.__proto__||Object.getPrototypeOf(r)).call.apply(u,[this].concat(f))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},c),qTn(s,l)}return NQo(r,[{key:"render",value:function(){return o.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},o.createElement(t,FQo({},this.props,this.state)))}}]),r}(o.Component)},eZn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},GQo=13,KQo=function(t){var n=t.color,a=t.style,r=t.onClick,u=r===void 0?function(){}:r,c=t.onHover,s=t.title,l=s===void 0?n:s,d=t.children,f=t.focus,g=t.focusStyle,_=g===void 0?{}:g,m=n==="transparent",v=Te({default:{swatch:eZn({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},a,f?_:{})}}),h=function(w){return u(n,w)},C=function(w){return w.keyCode===GQo&&u(n,w)},p=function(w){return c(n,w)},y={};return c&&(y.onMouseOver=p),o.createElement("div",eZn({style:v.swatch,onClick:h,title:l,tabIndex:0,onKeyDown:C},y),d,m&&o.createElement(ale,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const zT=UQo(KQo);var YQo=function(t){var n=t.direction,a=Te({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:n==="vertical"});return o.createElement("div",{style:a.picker})},XQo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},tZn=function(t){var n=t.rgb,a=t.hsl,r=t.width,u=t.height,c=t.onChange,s=t.direction,l=t.style,d=t.renderers,f=t.pointer,g=t.className,_=g===void 0?"":g,m=Te({default:{picker:{position:"relative",width:r,height:u},alpha:{radius:"2px",style:l}}});return o.createElement("div",{style:m.picker,className:"alpha-picker "+_},o.createElement(mIn,XQo({},m.alpha,{rgb:n,hsl:a,pointer:f,renderers:d,onChange:c,direction:s})))};tZn.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:YQo},tr(tZn);function nZn(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}var QQo="__lodash_hash_undefined__";function JQo(e){return this.__data__.set(e,QQo),this}function qQo(e){return this.__data__.has(e)}function tbt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new f8;++t<n;)this.add(e[t])}tbt.prototype.add=tbt.prototype.push=JQo,tbt.prototype.has=qQo;function eJo(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}function tJo(e,t){return e.has(t)}var nJo=1,rJo=2;function rZn(e,t,n,a,r,u){var c=n&nJo,s=e.length,l=t.length;if(s!=l&&!(c&&l>s))return!1;var d=u.get(e),f=u.get(t);if(d&&f)return d==t&&f==e;var g=-1,_=!0,m=n&rJo?new tbt:void 0;for(u.set(e,t),u.set(t,e);++g<s;){var v=e[g],h=t[g];if(a)var C=c?a(h,v,g,t,e,u):a(v,h,g,e,t,u);if(C!==void 0){if(C)continue;_=!1;break}if(m){if(!eJo(t,function(p,y){if(!tJo(m,y)&&(v===p||r(v,p,n,a,u)))return m.push(y)})){_=!1;break}}else if(!(v===h||r(v,h,n,a,u))){_=!1;break}}return u.delete(e),u.delete(t),_}function aJo(e){var t=-1,n=Array(e.size);return e.forEach(function(a,r){n[++t]=[r,a]}),n}function iJo(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}var oJo=1,uJo=2,cJo="[object Boolean]",lJo="[object Date]",sJo="[object Error]",fJo="[object Map]",dJo="[object Number]",gJo="[object RegExp]",_Jo="[object Set]",mJo="[object String]",vJo="[object Symbol]",hJo="[object ArrayBuffer]",CJo="[object DataView]",aZn=yj?yj.prototype:void 0,DIn=aZn?aZn.valueOf:void 0;function bJo(e,t,n,a,r,u,c){switch(n){case CJo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hJo:return!(e.byteLength!=t.byteLength||!u(new GCt(e),new GCt(t)));case cJo:case lJo:case dJo:return Nmt(+e,+t);case sJo:return e.name==t.name&&e.message==t.message;case gJo:case mJo:return e==t+"";case fJo:var s=aJo;case _Jo:var l=a&oJo;if(s||(s=iJo),e.size!=t.size&&!l)return!1;var d=c.get(e);if(d)return d==t;a|=uJo,c.set(e,t);var f=rZn(s(e),s(t),a,r,u,c);return c.delete(e),f;case vJo:if(DIn)return DIn.call(e)==DIn.call(t)}return!1}function yJo(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}function pJo(e,t,n){var a=t(e);return Ur(e)?a:yJo(a,n(e))}function OJo(e,t){for(var n=-1,a=e==null?0:e.length,r=0,u=[];++n<a;){var c=e[n];t(c,n,e)&&(u[r++]=c)}return u}function jJo(){return[]}var wJo=Object.prototype,MJo=wJo.propertyIsEnumerable,iZn=Object.getOwnPropertySymbols,LJo=iZn?function(e){return e==null?[]:(e=Object(e),OJo(iZn(e),function(t){return MJo.call(e,t)}))}:jJo;const PJo=LJo;function oZn(e){return pJo(e,PIn,PJo)}var EJo=1,kJo=Object.prototype,SJo=kJo.hasOwnProperty;function DJo(e,t,n,a,r,u){var c=n&EJo,s=oZn(e),l=s.length,d=oZn(t),f=d.length;if(l!=f&&!c)return!1;for(var g=l;g--;){var _=s[g];if(!(c?_ in t:SJo.call(t,_)))return!1}var m=u.get(e),v=u.get(t);if(m&&v)return m==t&&v==e;var h=!0;u.set(e,t),u.set(t,e);for(var C=c;++g<l;){_=s[g];var p=e[_],y=t[_];if(a)var S=c?a(y,p,_,t,e,u):a(p,y,_,e,t,u);if(!(S===void 0?p===y||r(p,y,n,a,u):S)){h=!1;break}C||(C=_=="constructor")}if(h&&!C){var w=e.constructor,j=t.constructor;w!=j&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof j=="function"&&j instanceof j)&&(h=!1)}return u.delete(e),u.delete(t),h}var IJo=AT(Vi,"DataView");const IIn=IJo;var BJo=AT(Vi,"Promise");const BIn=BJo;var WJo=AT(Vi,"Set");const WIn=WJo;var $Jo=AT(Vi,"WeakMap");const $In=$Jo;var uZn="[object Map]",xJo="[object Object]",cZn="[object Promise]",lZn="[object Set]",sZn="[object WeakMap]",fZn="[object DataView]",AJo=xT(IIn),RJo=xT(Zmt),zJo=xT(BIn),HJo=xT(WIn),VJo=xT($In),HT=$T;(IIn&&HT(new IIn(new ArrayBuffer(1)))!=fZn||Zmt&&HT(new Zmt)!=uZn||BIn&&HT(BIn.resolve())!=cZn||WIn&&HT(new WIn)!=lZn||$In&&HT(new $In)!=sZn)&&(HT=function(e){var t=$T(e),n=t==xJo?e.constructor:void 0,a=n?xT(n):"";if(a)switch(a){case AJo:return fZn;case RJo:return uZn;case zJo:return cZn;case HJo:return lZn;case VJo:return sZn}return t});const dZn=HT;var FJo=1,gZn="[object Arguments]",_Zn="[object Array]",nbt="[object Object]",NJo=Object.prototype,mZn=NJo.hasOwnProperty;function TJo(e,t,n,a,r,u){var c=Ur(e),s=Ur(t),l=c?_Zn:dZn(e),d=s?_Zn:dZn(t);l=l==gZn?nbt:l,d=d==gZn?nbt:d;var f=l==nbt,g=d==nbt,_=l==d;if(_&&YCt(e)){if(!YCt(t))return!1;c=!0,f=!1}if(_&&!f)return u||(u=new Jc),c||jIn(e)?rZn(e,t,n,a,r,u):bJo(e,t,l,n,a,r,u);if(!(n&FJo)){var m=f&&mZn.call(e,"__wrapped__"),v=g&&mZn.call(t,"__wrapped__");if(m||v){var h=m?e.value():e,C=v?t.value():t;return u||(u=new Jc),r(h,C,n,a,u)}}return _?(u||(u=new Jc),DJo(e,t,n,a,r,u)):!1}function xIn(e,t,n,a,r){return e===t?!0:e==null||t==null||!pj(e)&&!pj(t)?e!==e&&t!==t:TJo(e,t,n,a,xIn,r)}var ZJo=1,UJo=2;function GJo(e,t,n,a){var r=n.length,u=r,c=!a;if(e==null)return!u;for(e=Object(e);r--;){var s=n[r];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<u;){s=n[r];var l=s[0],d=e[l],f=s[1];if(c&&s[2]){if(d===void 0&&!(l in e))return!1}else{var g=new Jc;if(a)var _=a(d,f,l,e,t,g);if(!(_===void 0?xIn(f,d,ZJo|UJo,a,g):_))return!1}}return!0}function vZn(e){return e===e&&!Qa(e)}function KJo(e){for(var t=PIn(e),n=t.length;n--;){var a=t[n],r=e[a];t[n]=[a,r,vZn(r)]}return t}function hZn(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function YJo(e){var t=KJo(e);return t.length==1&&t[0][2]?hZn(t[0][0],t[0][1]):function(n){return n===e||GJo(n,e,t)}}var XJo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,QJo=/^\w*$/;function AIn(e,t){if(Ur(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||QCt(e)?!0:QJo.test(e)||!XJo.test(e)||t!=null&&e in Object(t)}var JJo="Expected a function";function RIn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JJo);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],u=n.cache;if(u.has(r))return u.get(r);var c=e.apply(this,a);return n.cache=u.set(r,c)||u,c};return n.cache=new(RIn.Cache||f8),n}RIn.Cache=f8;var qJo=500;function eqo(e){var t=RIn(e,function(a){return n.size===qJo&&n.clear(),a}),n=t.cache;return t}var tqo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nqo=/\\(\\)?/g,rqo=eqo(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tqo,function(n,a,r,u){t.push(r?u.replace(nqo,"$1"):a||n)}),t});const aqo=rqo;var iqo=1/0,CZn=yj?yj.prototype:void 0,bZn=CZn?CZn.toString:void 0;function yZn(e){if(typeof e=="string")return e;if(Ur(e))return nZn(e,yZn)+"";if(QCt(e))return bZn?bZn.call(e):"";var t=e+"";return t=="0"&&1/e==-iqo?"-0":t}function oqo(e){return e==null?"":yZn(e)}function pZn(e,t){return Ur(e)?e:AIn(e,t)?[e]:aqo(oqo(e))}var uqo=1/0;function rbt(e){if(typeof e=="string"||QCt(e))return e;var t=e+"";return t=="0"&&1/e==-uqo?"-0":t}function OZn(e,t){t=pZn(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[rbt(t[n++])];return n&&n==a?e:void 0}function cqo(e,t,n){var a=e==null?void 0:OZn(e,t);return a===void 0?n:a}function lqo(e,t){return e!=null&&t in Object(e)}function sqo(e,t,n){t=pZn(t,e);for(var a=-1,r=t.length,u=!1;++a<r;){var c=rbt(t[a]);if(!(u=e!=null&&n(e,c)))break;e=e[c]}return u||++a!=r?u:(r=e==null?0:e.length,!!r&&pIn(r)&&MIn(c,r)&&(Ur(e)||KCt(e)))}function fqo(e,t){return e!=null&&sqo(e,t,lqo)}var dqo=1,gqo=2;function _qo(e,t){return AIn(e)&&vZn(t)?hZn(rbt(e),t):function(n){var a=cqo(n,e);return a===void 0&&a===t?fqo(n,e):xIn(t,a,dqo|gqo)}}function mqo(e){return function(t){return t==null?void 0:t[e]}}function vqo(e){return function(t){return OZn(t,e)}}function hqo(e){return AIn(e)?mqo(rbt(e)):vqo(e)}function Cqo(e){return typeof e=="function"?e:e==null?XCt:typeof e=="object"?Ur(e)?_qo(e[0],e[1]):YJo(e):hqo(e)}function bqo(e,t){var n=-1,a=ole(e)?Array(e.length):[];return NTn(e,function(r,u,c){a[++n]=t(r,u,c)}),a}function VT(e,t){var n=Ur(e)?nZn:bqo;return n(e,Cqo(t))}var yqo=function(t){var n=t.colors,a=t.onClick,r=t.onSwatchHover,u=Te({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return o.createElement("div",{style:u.swatches},VT(n,function(c){return o.createElement(zT,{key:c,color:c,style:u.swatch,onClick:a,onHover:r,focusStyle:{boxShadow:"0 0 4px "+c}})}),o.createElement("div",{style:u.clear}))},zIn=function(t){var n=t.onChange,a=t.onSwatchHover,r=t.hex,u=t.colors,c=t.width,s=t.triangle,l=t.styles,d=l===void 0?{}:l,f=t.className,g=f===void 0?"":f,_=r==="transparent",m=function(C,p){Oj(C)&&n({hex:C,source:"hex"},p)},v=Te(er({default:{card:{width:c,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:kIn(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" 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"}}},d),{"hide-triangle":s==="hide"});return o.createElement("div",{style:v.card,className:"block-picker "+g},o.createElement("div",{style:v.triangle}),o.createElement("div",{style:v.head},_&&o.createElement(ale,{borderRadius:"6px 6px 0 0"}),o.createElement("div",{style:v.label},r)),o.createElement("div",{style:v.body},o.createElement(yqo,{colors:u,onClick:m,onSwatchHover:a}),o.createElement(ct,{style:{input:v.input},value:r,onChange:m})))};zIn.propTypes={width:F.oneOfType([F.string,F.number]),colors:F.arrayOf(F.string),triangle:F.oneOf(["top","hide"]),styles:F.object},zIn.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},tr(zIn);var ule={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"},cle={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"},lle={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"},sle={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"},fle={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"},dle={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"},gle={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"},_le={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"},mle={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"},qmt={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"},vle={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"},hle={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"},Cle={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"},ble={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"},yle={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"},ple={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"},Ole={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},jle={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},jZn=function(t){var n=t.color,a=t.onClick,r=t.onSwatchHover,u=t.hover,c=t.active,s=t.circleSize,l=t.circleSpacing,d=Te({default:{swatch:{width:s,height:s,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+n,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+n}}},{hover:u,active:c});return o.createElement("div",{style:d.swatch},o.createElement(zT,{style:d.Swatch,color:n,onClick:a,onHover:r,focusStyle:{boxShadow:d.Swatch.boxShadow+", 0 0 5px "+n}}))};jZn.defaultProps={circleSize:28,circleSpacing:14};const pqo=gIn(jZn);var HIn=function(t){var n=t.width,a=t.onChange,r=t.onSwatchHover,u=t.colors,c=t.hex,s=t.circleSize,l=t.styles,d=l===void 0?{}:l,f=t.circleSpacing,g=t.className,_=g===void 0?"":g,m=Te(er({default:{card:{width:n,display:"flex",flexWrap:"wrap",marginRight:-f,marginBottom:-f}}},d)),v=function(C,p){return a({hex:C,source:"hex"},p)};return o.createElement("div",{style:m.card,className:"circle-picker "+_},VT(u,function(h){return o.createElement(pqo,{key:h,color:h,onClick:v,onSwatchHover:r,active:c===h.toLowerCase(),circleSize:s,circleSpacing:f})}))};HIn.propTypes={width:F.oneOfType([F.string,F.number]),circleSize:F.number,circleSpacing:F.number,styles:F.object},HIn.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[ule[500],cle[500],lle[500],sle[500],fle[500],dle[500],gle[500],_le[500],mle[500],qmt[500],vle[500],hle[500],Cle[500],ble[500],yle[500],ple[500],Ole[500],jle[500]],styles:{}},tr(HIn);function wZn(e){return e===void 0}var MZn={};Object.defineProperty(MZn,"__esModule",{value:!0});var LZn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Oqo=o,PZn=jqo(Oqo);function jqo(e){return e&&e.__esModule?e:{default:e}}function wqo(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}var abt=24,Mqo=MZn.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,a=e.width,r=a===void 0?abt:a,u=e.height,c=u===void 0?abt:u,s=e.style,l=s===void 0?{}:s,d=wqo(e,["fill","width","height","style"]);return PZn.default.createElement("svg",LZn({viewBox:"0 0 "+abt+" "+abt,style:LZn({fill:n,width:r,height:c},l)},d),PZn.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"}))},Lqo=function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function Pqo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eqo(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 kqo(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 EZn=function(e){kqo(t,e);function t(n){Pqo(this,t);var a=Eqo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.toggleViews=function(){a.state.view==="hex"?a.setState({view:"rgb"}):a.state.view==="rgb"?a.setState({view:"hsl"}):a.state.view==="hsl"&&(a.props.hsl.a===1?a.setState({view:"hex"}):a.setState({view:"rgb"}))},a.handleChange=function(r,u){r.hex?Oj(r.hex)&&a.props.onChange({hex:r.hex,source:"hex"},u):r.r||r.g||r.b?a.props.onChange({r:r.r||a.props.rgb.r,g:r.g||a.props.rgb.g,b:r.b||a.props.rgb.b,source:"rgb"},u):r.a?(r.a<0?r.a=0:r.a>1&&(r.a=1),a.props.onChange({h:a.props.hsl.h,s:a.props.hsl.s,l:a.props.hsl.l,a:Math.round(r.a*100)/100,source:"rgb"},u)):(r.h||r.s||r.l)&&(typeof r.s=="string"&&r.s.includes("%")&&(r.s=r.s.replace("%","")),typeof r.l=="string"&&r.l.includes("%")&&(r.l=r.l.replace("%","")),r.s==1?r.s=.01:r.l==1&&(r.l=.01),a.props.onChange({h:r.h||a.props.hsl.h,s:Number(wZn(r.s)?a.props.hsl.s:r.s),l:Number(wZn(r.l)?a.props.hsl.l:r.l),source:"hsl"},u))},a.showHighlight=function(r){r.currentTarget.style.background="#eee"},a.hideHighlight=function(r){r.currentTarget.style.background="transparent"},n.hsl.a!==1&&n.view==="hex"?a.state={view:"rgb"}:a.state={view:n.view},a}return Lqo(t,[{key:"render",value:function(){var a=this,r=Te({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),u=void 0;return this.state.view==="hex"?u=o.createElement("div",{style:r.fields,className:"flexbox-fix"},o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?u=o.createElement("div",{style:r.fields,className:"flexbox-fix"},o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.createElement("div",{style:r.alpha},o.createElement(ct,{style:{input:r.input,label:r.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(u=o.createElement("div",{style:r.fields,className:"flexbox-fix"},o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),o.createElement("div",{style:r.field},o.createElement(ct,{style:{input:r.input,label:r.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),o.createElement("div",{style:r.alpha},o.createElement(ct,{style:{input:r.input,label:r.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.createElement("div",{style:r.wrap,className:"flexbox-fix"},u,o.createElement("div",{style:r.toggle},o.createElement("div",{style:r.icon,onClick:this.toggleViews,ref:function(s){return a.icon=s}},o.createElement(Mqo,{style:r.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(a,r){return a.hsl.a!==1&&r.view==="hex"?{view:"rgb"}:null}}]),t}(o.Component);EZn.defaultProps={view:"hex"};var kZn=function(){var t=Te({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 o.createElement("div",{style:t.picker})},Sqo=function(){var t=Te({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.createElement("div",{style:t.picker})},VIn=function(t){var n=t.width,a=t.onChange,r=t.disableAlpha,u=t.rgb,c=t.hsl,s=t.hsv,l=t.hex,d=t.renderers,f=t.styles,g=f===void 0?{}:f,_=t.className,m=_===void 0?"":_,v=t.defaultView,h=Te(er({default:{picker:{width:n,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("+u.r+", "+u.g+", "+u.b+", "+u.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"}}},g),{disableAlpha:r});return o.createElement("div",{style:h.picker,className:"chrome-picker "+m},o.createElement("div",{style:h.saturation},o.createElement(JCt,{style:h.Saturation,hsl:c,hsv:s,pointer:Sqo,onChange:a})),o.createElement("div",{style:h.body},o.createElement("div",{style:h.controls,className:"flexbox-fix"},o.createElement("div",{style:h.color},o.createElement("div",{style:h.swatch},o.createElement("div",{style:h.active}),o.createElement(ale,{renderers:d}))),o.createElement("div",{style:h.toggles},o.createElement("div",{style:h.hue},o.createElement(ile,{style:h.Hue,hsl:c,pointer:kZn,onChange:a})),o.createElement("div",{style:h.alpha},o.createElement(mIn,{style:h.Alpha,rgb:u,hsl:c,pointer:kZn,renderers:d,onChange:a})))),o.createElement(EZn,{rgb:u,hsl:c,hex:l,view:v,onChange:a,disableAlpha:r})))};VIn.propTypes={width:F.oneOfType([F.string,F.number]),disableAlpha:F.bool,styles:F.object,defaultView:F.oneOf(["hex","rgb","hsl"])},VIn.defaultProps={width:225,disableAlpha:!1,styles:{}};const Dqo=tr(VIn);var Iqo=function(t){var n=t.color,a=t.onClick,r=a===void 0?function(){}:a,u=t.onSwatchHover,c=t.active,s=Te({default:{color:{background:n,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:kIn(n),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:c,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return o.createElement(zT,{style:s.color,color:n,onClick:r,onHover:u,focusStyle:{boxShadow:"0 0 4px "+n}},o.createElement("div",{style:s.dot}))},Bqo=function(t){var n=t.hex,a=t.rgb,r=t.onChange,u=Te({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:n},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"}}}),c=function(l,d){l.r||l.g||l.b?r({r:l.r||a.r,g:l.g||a.g,b:l.b||a.b,source:"rgb"},d):r({hex:l.hex,source:"hex"},d)};return o.createElement("div",{style:u.fields,className:"flexbox-fix"},o.createElement("div",{style:u.active}),o.createElement(ct,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"hex",value:n,onChange:c}),o.createElement(ct,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:a.r,onChange:c}),o.createElement(ct,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:a.g,onChange:c}),o.createElement(ct,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:a.b,onChange:c}))},FIn=function(t){var n=t.onChange,a=t.onSwatchHover,r=t.colors,u=t.hex,c=t.rgb,s=t.styles,l=s===void 0?{}:s,d=t.className,f=d===void 0?"":d,g=Te(er({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),_=function(v,h){v.hex?Oj(v.hex)&&n({hex:v.hex,source:"hex"},h):n(v,h)};return o.createElement(Kmt,{style:g.Compact,styles:l},o.createElement("div",{style:g.compact,className:"compact-picker "+f},o.createElement("div",null,VT(r,function(m){return o.createElement(Iqo,{key:m,color:m,active:m.toLowerCase()===u,onClick:_,onSwatchHover:a})}),o.createElement("div",{style:g.clear})),o.createElement(Bqo,{hex:u,rgb:c,onChange:_})))};FIn.propTypes={colors:F.arrayOf(F.string),styles:F.object},FIn.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:{}},tr(FIn);var Wqo=function(t){var n=t.hover,a=t.color,r=t.onClick,u=t.onSwatchHover,c={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Te({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:c}},{hover:n});return o.createElement("div",{style:s.swatch},o.createElement(zT,{color:a,onClick:r,onHover:u,focusStyle:c}))};const $qo=gIn(Wqo);var NIn=function(t){var n=t.width,a=t.colors,r=t.onChange,u=t.onSwatchHover,c=t.triangle,s=t.styles,l=s===void 0?{}:s,d=t.className,f=d===void 0?"":d,g=Te(er({default:{card:{width:n,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)"}}},l),{"hide-triangle":c==="hide","top-left-triangle":c==="top-left","top-right-triangle":c==="top-right","bottom-left-triangle":c==="bottom-left","bottom-right-triangle":c==="bottom-right"}),_=function(v,h){return r({hex:v,source:"hex"},h)};return o.createElement("div",{style:g.card,className:"github-picker "+f},o.createElement("div",{style:g.triangleShadow}),o.createElement("div",{style:g.triangle}),VT(a,function(m){return o.createElement($qo,{color:m,key:m,onClick:_,onSwatchHover:u})}))};NIn.propTypes={width:F.oneOfType([F.string,F.number]),colors:F.arrayOf(F.string),triangle:F.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:F.object},NIn.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},tr(NIn);var xqo=function(t){var n=t.direction,a=Te({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:n==="vertical"});return o.createElement("div",{style:a.picker})},Aqo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},TIn=function(t){var n=t.width,a=t.height,r=t.onChange,u=t.hsl,c=t.direction,s=t.pointer,l=t.styles,d=l===void 0?{}:l,f=t.className,g=f===void 0?"":f,_=Te(er({default:{picker:{position:"relative",width:n,height:a},hue:{radius:"2px"}}},d)),m=function(h){return r({a:1,h:h.h,l:.5,s:1})};return o.createElement("div",{style:_.picker,className:"hue-picker "+g},o.createElement(ile,Aqo({},_.hue,{hsl:u,pointer:s,onChange:m,direction:c})))};TIn.propTypes={styles:F.object},TIn.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:xqo,styles:{}},tr(TIn);var Rqo=function(t){var n=t.onChange,a=t.hex,r=t.rgb,u=t.styles,c=u===void 0?{}:u,s=t.className,l=s===void 0?"":s,d=Te(er({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 "+a,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"}}},c)),f=function(_,m){_.hex?Oj(_.hex)&&n({hex:_.hex,source:"hex"},m):(_.r||_.g||_.b)&&n({r:_.r||r.r,g:_.g||r.g,b:_.b||r.b,source:"rgb"},m)};return o.createElement(Kmt,{styles:c},o.createElement("div",{style:d.material,className:"material-picker "+l},o.createElement(ct,{style:{wrap:d.HEXwrap,input:d.HEXinput,label:d.HEXlabel},label:"hex",value:a,onChange:f}),o.createElement("div",{style:d.split,className:"flexbox-fix"},o.createElement("div",{style:d.third},o.createElement(ct,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"r",value:r.r,onChange:f})),o.createElement("div",{style:d.third},o.createElement(ct,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"g",value:r.g,onChange:f})),o.createElement("div",{style:d.third},o.createElement(ct,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"b",value:r.b,onChange:f})))))};tr(Rqo);var zqo=function(t){var n=t.onChange,a=t.rgb,r=t.hsv,u=t.hex,c=Te({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(d,f){d["#"]?Oj(d["#"])&&n({hex:d["#"],source:"hex"},f):d.r||d.g||d.b?n({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},f):(d.h||d.s||d.v)&&n({h:d.h||r.h,s:d.s||r.s,v:d.v||r.v,source:"hsv"},f)};return o.createElement("div",{style:c.fields},o.createElement(ct,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"h",value:Math.round(r.h),onChange:s}),o.createElement(ct,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"s",value:Math.round(r.s*100),onChange:s}),o.createElement(ct,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"v",value:Math.round(r.v*100),onChange:s}),o.createElement("div",{style:c.divider}),o.createElement(ct,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:a.r,onChange:s}),o.createElement(ct,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:a.g,onChange:s}),o.createElement(ct,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:a.b,onChange:s}),o.createElement("div",{style:c.divider}),o.createElement(ct,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"#",value:u.replace("#",""),onChange:s}),o.createElement("div",{style:c.fieldSymbols},o.createElement("div",{style:c.symbol},"°"),o.createElement("div",{style:c.symbol},"%"),o.createElement("div",{style:c.symbol},"%")))},Hqo=function(t){var n=t.hsl,a=Te({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":n.l>.5});return o.createElement("div",{style:a.picker})},Vqo=function(){var t=Te({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 o.createElement("div",{style:t.pointer},o.createElement("div",{style:t.left},o.createElement("div",{style:t.leftInside})),o.createElement("div",{style:t.right},o.createElement("div",{style:t.rightInside})))},SZn=function(t){var n=t.onClick,a=t.label,r=t.children,u=t.active,c=Te({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:u});return o.createElement("div",{style:c.button,onClick:n},a||r)},Fqo=function(t){var n=t.rgb,a=t.currentColor,r=Te({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+n.r+","+n.g+", "+n.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:a,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.createElement("div",null,o.createElement("div",{style:r.label},"new"),o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.new}),o.createElement("div",{style:r.current})),o.createElement("div",{style:r.label},"current"))},Nqo=function(){function e(t,n){for(var a=0;a<n.length;a++){var r=n[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function Tqo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zqo(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 Uqo(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 ZIn=function(e){Uqo(t,e);function t(n){Tqo(this,t);var a=Zqo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.state={currentColor:n.hex},a}return Nqo(t,[{key:"render",value:function(){var a=this.props,r=a.styles,u=r===void 0?{}:r,c=a.className,s=c===void 0?"":c,l=Te(er({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"}}},u));return o.createElement("div",{style:l.picker,className:"photoshop-picker "+s},o.createElement("div",{style:l.head},this.props.header),o.createElement("div",{style:l.body,className:"flexbox-fix"},o.createElement("div",{style:l.saturation},o.createElement(JCt,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Hqo,onChange:this.props.onChange})),o.createElement("div",{style:l.hue},o.createElement(ile,{direction:"vertical",hsl:this.props.hsl,pointer:Vqo,onChange:this.props.onChange})),o.createElement("div",{style:l.controls},o.createElement("div",{style:l.top,className:"flexbox-fix"},o.createElement("div",{style:l.previews},o.createElement(Fqo,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.createElement("div",{style:l.actions},o.createElement(SZn,{label:"OK",onClick:this.props.onAccept,active:!0}),o.createElement(SZn,{label:"Cancel",onClick:this.props.onCancel}),o.createElement(zqo,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.Component);ZIn.propTypes={header:F.string,styles:F.object},ZIn.defaultProps={header:"Color Picker",styles:{}},tr(ZIn);var Gqo=function(t){var n=t.onChange,a=t.rgb,r=t.hsl,u=t.hex,c=t.disableAlpha,s=Te({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:c}),l=function(f,g){f.hex?Oj(f.hex)&&n({hex:f.hex,source:"hex"},g):f.r||f.g||f.b?n({r:f.r||a.r,g:f.g||a.g,b:f.b||a.b,a:a.a,source:"rgb"},g):f.a&&(f.a<0?f.a=0:f.a>100&&(f.a=100),f.a/=100,n({h:r.h,s:r.s,l:r.l,a:f.a,source:"rgb"},g))};return o.createElement("div",{style:s.fields,className:"flexbox-fix"},o.createElement("div",{style:s.double},o.createElement(ct,{style:{input:s.input,label:s.label},label:"hex",value:u.replace("#",""),onChange:l})),o.createElement("div",{style:s.single},o.createElement(ct,{style:{input:s.input,label:s.label},label:"r",value:a.r,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(ct,{style:{input:s.input,label:s.label},label:"g",value:a.g,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(ct,{style:{input:s.input,label:s.label},label:"b",value:a.b,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.alpha},o.createElement(ct,{style:{input:s.input,label:s.label},label:"a",value:Math.round(a.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},Kqo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},DZn=function(t){var n=t.colors,a=t.onClick,r=a===void 0?function(){}:a,u=t.onSwatchHover,c=Te({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":!n||!n.length}),s=function(d,f){r({hex:d,source:"hex"},f)};return o.createElement("div",{style:c.colors,className:"flexbox-fix"},n.map(function(l){var d=typeof l=="string"?{color:l}:l,f=""+d.color+(d.title||"");return o.createElement("div",{key:f,style:c.swatchWrap},o.createElement(zT,Kqo({},d,{style:c.swatch,onClick:s,onHover:u,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+d.color}})))}))};DZn.propTypes={colors:F.arrayOf(F.oneOfType([F.string,F.shape({color:F.string,title:F.string})])).isRequired};var Yqo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},UIn=function(t){var n=t.width,a=t.rgb,r=t.hex,u=t.hsv,c=t.hsl,s=t.onChange,l=t.onSwatchHover,d=t.disableAlpha,f=t.presetColors,g=t.renderers,_=t.styles,m=_===void 0?{}:_,v=t.className,h=v===void 0?"":v,C=Te(er({default:Yqo({picker:{width:n,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("+a.r+","+a.g+","+a.b+","+a.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)"}},m),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},m),{disableAlpha:d});return o.createElement("div",{style:C.picker,className:"sketch-picker "+h},o.createElement("div",{style:C.saturation},o.createElement(JCt,{style:C.Saturation,hsl:c,hsv:u,onChange:s})),o.createElement("div",{style:C.controls,className:"flexbox-fix"},o.createElement("div",{style:C.sliders},o.createElement("div",{style:C.hue},o.createElement(ile,{style:C.Hue,hsl:c,onChange:s})),o.createElement("div",{style:C.alpha},o.createElement(mIn,{style:C.Alpha,rgb:a,hsl:c,renderers:g,onChange:s}))),o.createElement("div",{style:C.color},o.createElement(ale,null),o.createElement("div",{style:C.activeColor}))),o.createElement(Gqo,{rgb:a,hsl:c,hex:r,onChange:s,disableAlpha:d}),o.createElement(DZn,{colors:f,onClick:s,onSwatchHover:l}))};UIn.propTypes={disableAlpha:F.bool,width:F.oneOfType([F.string,F.number]),styles:F.object},UIn.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},tr(UIn);var evt=function(t){var n=t.hsl,a=t.offset,r=t.onClick,u=r===void 0?function(){}:r,c=t.active,s=t.first,l=t.last,d=Te({default:{swatch:{height:"12px",background:"hsl("+n.h+", 50%, "+a*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:c,first:s,last:l}),f=function(_){return u({h:n.h,s:.5,l:a,source:"hsl"},_)};return o.createElement("div",{style:d.swatch,onClick:f})},Xqo=function(t){var n=t.onClick,a=t.hsl,r=Te({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),u=.1;return o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.swatch},o.createElement(evt,{hsl:a,offset:".80",active:Math.abs(a.l-.8)<u&&Math.abs(a.s-.5)<u,onClick:n,first:!0})),o.createElement("div",{style:r.swatch},o.createElement(evt,{hsl:a,offset:".65",active:Math.abs(a.l-.65)<u&&Math.abs(a.s-.5)<u,onClick:n})),o.createElement("div",{style:r.swatch},o.createElement(evt,{hsl:a,offset:".50",active:Math.abs(a.l-.5)<u&&Math.abs(a.s-.5)<u,onClick:n})),o.createElement("div",{style:r.swatch},o.createElement(evt,{hsl:a,offset:".35",active:Math.abs(a.l-.35)<u&&Math.abs(a.s-.5)<u,onClick:n})),o.createElement("div",{style:r.swatch},o.createElement(evt,{hsl:a,offset:".20",active:Math.abs(a.l-.2)<u&&Math.abs(a.s-.5)<u,onClick:n,last:!0})),o.createElement("div",{style:r.clear}))},Qqo=function(){var t=Te({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 o.createElement("div",{style:t.picker})},GIn=function(t){var n=t.hsl,a=t.onChange,r=t.pointer,u=t.styles,c=u===void 0?{}:u,s=t.className,l=s===void 0?"":s,d=Te(er({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},c));return o.createElement("div",{style:d.wrap||{},className:"slider-picker "+l},o.createElement("div",{style:d.hue},o.createElement(ile,{style:d.Hue,hsl:n,pointer:r,onChange:a})),o.createElement("div",{style:d.swatches},o.createElement(Xqo,{hsl:n,onClick:a})))};GIn.propTypes={styles:F.object},GIn.defaultProps={pointer:Qqo,styles:{}},tr(GIn);var IZn={};Object.defineProperty(IZn,"__esModule",{value:!0});var BZn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Jqo=o,WZn=qqo(Jqo);function qqo(e){return e&&e.__esModule?e:{default:e}}function eeu(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}var ibt=24,teu=IZn.default=function(e){var t=e.fill,n=t===void 0?"currentColor":t,a=e.width,r=a===void 0?ibt:a,u=e.height,c=u===void 0?ibt:u,s=e.style,l=s===void 0?{}:s,d=eeu(e,["fill","width","height","style"]);return WZn.default.createElement("svg",BZn({viewBox:"0 0 "+ibt+" "+ibt,style:BZn({fill:n,width:r,height:c},l)},d),WZn.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},neu=function(t){var n=t.color,a=t.onClick,r=a===void 0?function(){}:a,u=t.onSwatchHover,c=t.first,s=t.last,l=t.active,d=Te({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:n,marginBottom:"1px"},check:{color:kIn(n),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:c,last:s,active:l,"color-#FFFFFF":n==="#FFFFFF",transparent:n==="transparent"});return o.createElement(zT,{color:n,style:d.color,onClick:r,onHover:u,focusStyle:{boxShadow:"0 0 4px "+n}},o.createElement("div",{style:d.check},o.createElement(teu,null)))},reu=function(t){var n=t.onClick,a=t.onSwatchHover,r=t.group,u=t.active,c=Te({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return o.createElement("div",{style:c.group},VT(r,function(s,l){return o.createElement(neu,{key:s,color:s,active:s.toLowerCase()===u,first:l===0,last:l===r.length-1,onClick:n,onSwatchHover:a})}))},KIn=function(t){var n=t.width,a=t.height,r=t.onChange,u=t.onSwatchHover,c=t.colors,s=t.hex,l=t.styles,d=l===void 0?{}:l,f=t.className,g=f===void 0?"":f,_=Te(er({default:{picker:{width:n,height:a},overflow:{height:a,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},d)),m=function(h,C){return r({hex:h,source:"hex"},C)};return o.createElement("div",{style:_.picker,className:"swatches-picker "+g},o.createElement(Kmt,null,o.createElement("div",{style:_.overflow},o.createElement("div",{style:_.body},VT(c,function(v){return o.createElement(reu,{key:v.toString(),group:v,active:s,onClick:m,onSwatchHover:u})}),o.createElement("div",{style:_.clear})))))};KIn.propTypes={width:F.oneOfType([F.string,F.number]),height:F.oneOfType([F.string,F.number]),colors:F.arrayOf(F.arrayOf(F.string)),styles:F.object},KIn.defaultProps={width:320,height:240,colors:[[ule[900],ule[700],ule[500],ule[300],ule[100]],[cle[900],cle[700],cle[500],cle[300],cle[100]],[lle[900],lle[700],lle[500],lle[300],lle[100]],[sle[900],sle[700],sle[500],sle[300],sle[100]],[fle[900],fle[700],fle[500],fle[300],fle[100]],[dle[900],dle[700],dle[500],dle[300],dle[100]],[gle[900],gle[700],gle[500],gle[300],gle[100]],[_le[900],_le[700],_le[500],_le[300],_le[100]],[mle[900],mle[700],mle[500],mle[300],mle[100]],["#194D33",qmt[700],qmt[500],qmt[300],qmt[100]],[vle[900],vle[700],vle[500],vle[300],vle[100]],[hle[900],hle[700],hle[500],hle[300],hle[100]],[Cle[900],Cle[700],Cle[500],Cle[300],Cle[100]],[ble[900],ble[700],ble[500],ble[300],ble[100]],[yle[900],yle[700],yle[500],yle[300],yle[100]],[ple[900],ple[700],ple[500],ple[300],ple[100]],[Ole[900],Ole[700],Ole[500],Ole[300],Ole[100]],[jle[900],jle[700],jle[500],jle[300],jle[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},tr(KIn);var YIn=function(t){var n=t.onChange,a=t.onSwatchHover,r=t.hex,u=t.colors,c=t.width,s=t.triangle,l=t.styles,d=l===void 0?{}:l,f=t.className,g=f===void 0?"":f,_=Te(er({default:{card:{width:c,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"}}},d),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),m=function(h,C){Oj(h)&&n({hex:h,source:"hex"},C)};return o.createElement("div",{style:_.card,className:"twitter-picker "+g},o.createElement("div",{style:_.triangleShadow}),o.createElement("div",{style:_.triangle}),o.createElement("div",{style:_.body},VT(u,function(v,h){return o.createElement(zT,{key:h,color:v,hex:v,style:_.swatch,onClick:m,onHover:a,focusStyle:{boxShadow:"0 0 4px "+v}})}),o.createElement("div",{style:_.hash},"#"),o.createElement(ct,{label:null,style:{input:_.input},value:r.replace("#",""),onChange:m}),o.createElement("div",{style:_.clear})))};YIn.propTypes={width:F.oneOfType([F.string,F.number]),triangle:F.oneOf(["hide","top-left","top-right"]),colors:F.arrayOf(F.string),styles:F.object},YIn.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},tr(YIn);var XIn=function(t){var n=Te({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 o.createElement("div",{style:n.picker})};XIn.propTypes={hsl:F.shape({h:F.number,s:F.number,l:F.number,a:F.number})},XIn.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var QIn=function(t){var n=Te({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 o.createElement("div",{style:n.picker})};QIn.propTypes={hsl:F.shape({h:F.number,s:F.number,l:F.number,a:F.number})},QIn.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var aeu=function(t){var n=t.onChange,a=t.rgb,r=t.hsl,u=t.hex,c=t.hsv,s=function(m,v){if(m.hex)Oj(m.hex)&&n({hex:m.hex,source:"hex"},v);else if(m.rgb){var h=m.rgb.split(",");SIn(m.rgb,"rgb")&&n({r:h[0],g:h[1],b:h[2],a:1,source:"rgb"},v)}else if(m.hsv){var C=m.hsv.split(",");SIn(m.hsv,"hsv")&&(C[2]=C[2].replace("%",""),C[1]=C[1].replace("%",""),C[0]=C[0].replace("°",""),C[1]==1?C[1]=.01:C[2]==1&&(C[2]=.01),n({h:Number(C[0]),s:Number(C[1]),v:Number(C[2]),source:"hsv"},v))}else if(m.hsl){var p=m.hsl.split(",");SIn(m.hsl,"hsl")&&(p[2]=p[2].replace("%",""),p[1]=p[1].replace("%",""),p[0]=p[0].replace("°",""),g[1]==1?g[1]=.01:g[2]==1&&(g[2]=.01),n({h:Number(p[0]),s:Number(p[1]),v:Number(p[2]),source:"hsl"},v))}},l=Te({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"}}}),d=a.r+", "+a.g+", "+a.b,f=Math.round(r.h)+"°, "+Math.round(r.s*100)+"%, "+Math.round(r.l*100)+"%",g=Math.round(c.h)+"°, "+Math.round(c.s*100)+"%, "+Math.round(c.v*100)+"%";return o.createElement("div",{style:l.wrap,className:"flexbox-fix"},o.createElement("div",{style:l.fields},o.createElement("div",{style:l.double},o.createElement(ct,{style:{input:l.input,label:l.label},label:"hex",value:u,onChange:s})),o.createElement("div",{style:l.column},o.createElement("div",{style:l.single},o.createElement(ct,{style:{input:l.input2,label:l.label2},label:"rgb",value:d,onChange:s})),o.createElement("div",{style:l.single},o.createElement(ct,{style:{input:l.input2,label:l.label2},label:"hsv",value:g,onChange:s})),o.createElement("div",{style:l.single},o.createElement(ct,{style:{input:l.input2,label:l.label2},label:"hsl",value:f,onChange:s})))))},JIn=function(t){var n=t.width,a=t.onChange,r=t.rgb,u=t.hsl,c=t.hsv,s=t.hex,l=t.header,d=t.styles,f=d===void 0?{}:d,g=t.className,_=g===void 0?"":g,m=Te(er({default:{picker:{width:n,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("+r.r+", "+r.g+", "+r.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"}}},f));return o.createElement("div",{style:m.picker,className:"google-picker "+_},o.createElement("div",{style:m.head},l),o.createElement("div",{style:m.swatch}),o.createElement("div",{style:m.saturation},o.createElement(JCt,{hsl:u,hsv:c,pointer:XIn,onChange:a})),o.createElement("div",{style:m.body},o.createElement("div",{style:m.controls,className:"flexbox-fix"},o.createElement("div",{style:m.hue},o.createElement(ile,{style:m.Hue,hsl:u,radius:"4px",pointer:QIn,onChange:a}))),o.createElement(aeu,{rgb:r,hsl:u,hex:s,hsv:c,onChange:a})))};JIn.propTypes={width:F.oneOfType([F.string,F.number]),styles:F.object,header:F.string},JIn.defaultProps={width:652,styles:{},header:"Color picker"},tr(JIn);const $Zn=({value:e,onChangeColor:t,tabIndex:n,...a})=>{const r=e?"#"+e.replaceAll("#",""):"",u=Amt(),c=(s="")=>{(/^#[0-9a-fA-F]*$/.test(s)||s===""||s==="#")&&t("#"+s.replaceAll("#",""))};return O.jsxs(O.Fragment,{children:[O.jsx(A.TextField,{...a,value:r,onChange:s=>c(s.target.value),InputProps:{inputProps:{...a.inputProps,maxLength:7,tabIndex:n},startAdornment:O.jsx(A.InputAdornment,{position:"start",sx:{ml:2},children:O.jsx(A.IconButton,{edge:"start","aria-label":"Escolher cor",onClick:u.onOpen,children:O.jsx(A.Box,{sx:{minWidth:24,minHeight:24,backgroundColor:r,borderRadius:.5}})})})}}),O.jsx(A.Popover,{open:!!u.open,anchorEl:u.open,onClose:u.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:O.jsx(Dqo,{color:r,onChange:s=>t(s.hex),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};function gt(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 g8(e){"@babel/helpers - typeof";return g8=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},g8(e)}function Ce(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function be(e){Ce(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||g8(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 obt(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function ubt(e,t){Ce(2,arguments);var n=be(e).getTime(),a=gt(t);return new Date(n+a)}function ieu(e,t){Ce(2,arguments);var n=gt(t);return ubt(e,n*1e3)}var oeu=6e4;function ueu(e,t){Ce(2,arguments);var n=gt(t);return ubt(e,n*oeu)}var ceu=36e5;function leu(e,t){Ce(2,arguments);var n=gt(t);return ubt(e,n*ceu)}function seu(e,t){Ce(2,arguments);var n=gt(t),a=n*7;return obt(e,a)}function cbt(e,t){Ce(2,arguments);var n=be(e),a=gt(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var r=n.getDate(),u=new Date(n.getTime());u.setMonth(n.getMonth()+a+1,0);var c=u.getDate();return r>=c?u:(n.setFullYear(u.getFullYear(),u.getMonth(),r),n)}function xZn(e,t){Ce(2,arguments);var n=gt(t);return cbt(e,n*12)}function feu(e,t){Ce(2,arguments);var n=be(e),a=be(t);return n.getFullYear()-a.getFullYear()}function wle(e,t){Ce(2,arguments);var n=be(e),a=be(t),r=n.getTime()-a.getTime();return r<0?-1:r>0?1:r}function deu(e,t){Ce(2,arguments);var n=be(e),a=be(t),r=wle(n,a),u=Math.abs(feu(n,a));n.setFullYear(1584),a.setFullYear(1584);var c=wle(n,a)===-r,s=r*(u-Number(c));return s===0?0:s}function geu(e,t){Ce(2,arguments);var n=be(e),a=be(t),r=n.getFullYear()-a.getFullYear(),u=n.getMonth()-a.getMonth();return r*12+u}function qIn(e){Ce(1,arguments);var t=be(e);return t.setHours(23,59,59,999),t}function eBn(e){Ce(1,arguments);var t=be(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function _eu(e){Ce(1,arguments);var t=be(e);return qIn(t).getTime()===eBn(t).getTime()}function tBn(e,t){Ce(2,arguments);var n=be(e),a=be(t),r=wle(n,a),u=Math.abs(geu(n,a)),c;if(u<1)c=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*u);var s=wle(n,a)===-r;_eu(be(e))&&u===1&&wle(e,a)===1&&(s=!1),c=r*(u-Number(s))}return c===0?0:c}var AZn={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},meu="trunc";function tvt(e){return e?AZn[e]:AZn[meu]}function veu(e,t,n){Ce(2,arguments);var a=tBn(e,t)/3;return tvt(n==null?void 0:n.roundingMethod)(a)}function Mle(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 Lle(e){Ce(1,arguments);var t=be(e);return t.setHours(0,0,0,0),t}var heu=864e5;function Ceu(e,t){Ce(2,arguments);var n=Lle(e),a=Lle(t),r=n.getTime()-Mle(n),u=a.getTime()-Mle(a);return Math.round((r-u)/heu)}function RZn(e,t){var n=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 n<0?-1:n>0?1:n}function zZn(e,t){Ce(2,arguments);var n=be(e),a=be(t),r=RZn(n,a),u=Math.abs(Ceu(n,a));n.setDate(n.getDate()-r*u);var c=+(RZn(n,a)===-r),s=r*(u-c);return s===0?0:s}function beu(e,t,n){Ce(2,arguments);var a=zZn(e,t)/7;return tvt(n==null?void 0:n.roundingMethod)(a)}var lbt=6e4,sbt=36e5,yeu=1e3;function fbt(e,t){return Ce(2,arguments),be(e).getTime()-be(t).getTime()}function peu(e,t,n){Ce(2,arguments);var a=fbt(e,t)/sbt;return tvt(n==null?void 0:n.roundingMethod)(a)}function Oeu(e,t,n){Ce(2,arguments);var a=fbt(e,t)/lbt;return tvt(n==null?void 0:n.roundingMethod)(a)}function HZn(e,t,n){Ce(2,arguments);var a=fbt(e,t)/1e3;return tvt(n==null?void 0:n.roundingMethod)(a)}function jeu(e,t){var n;Ce(1,arguments);var a=e||{},r=be(a.start),u=be(a.end),c=u.getTime();if(!(r.getTime()<=c))throw new RangeError("Invalid interval");var s=[],l=r;l.setHours(0,0,0,0);var d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=c;)s.push(be(l)),l.setDate(l.getDate()+d),l.setHours(0,0,0,0);return s}var weu={};function Ti(){return weu}function nBn(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=Ti(),g=gt((n=(a=(r=(u=t==null?void 0:t.weekStartsOn)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:f.weekStartsOn)!==null&&a!==void 0?a:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=be(e),m=_.getDay(),v=(m<g?-7:0)+6-(m-g);return _.setDate(_.getDate()+v),_.setHours(23,59,59,999),_}function rBn(e){Ce(1,arguments);var t=be(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function Meu(e){return Ce(1,arguments),e instanceof Date||g8(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function aBn(e){if(Ce(1,arguments),!Meu(e)&&typeof e!="number")return!1;var t=be(e);return!isNaN(Number(t))}function VZn(e,t){Ce(2,arguments);var n=gt(t);return ubt(e,-n)}var Leu=864e5;function Peu(e){Ce(1,arguments);var t=be(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),r=n-a;return Math.floor(r/Leu)+1}function Ple(e){Ce(1,arguments);var t=1,n=be(e),a=n.getUTCDay(),r=(a<t?7:0)+a-t;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function FZn(e){Ce(1,arguments);var t=be(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var r=Ple(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=Ple(u);return t.getTime()>=r.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function Eeu(e){Ce(1,arguments);var t=FZn(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=Ple(n);return a}var keu=6048e5;function NZn(e){Ce(1,arguments);var t=be(e),n=Ple(t).getTime()-Eeu(t).getTime();return Math.round(n/keu)+1}function FT(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=Ti(),g=gt((n=(a=(r=(u=t==null?void 0:t.weekStartsOn)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:f.weekStartsOn)!==null&&a!==void 0?a:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=be(e),m=_.getUTCDay(),v=(m<g?7:0)+m-g;return _.setUTCDate(_.getUTCDate()-v),_.setUTCHours(0,0,0,0),_}function iBn(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=be(e),g=f.getUTCFullYear(),_=Ti(),m=gt((n=(a=(r=(u=t==null?void 0:t.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&a!==void 0?a:(l=_.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,m),v.setUTCHours(0,0,0,0);var h=FT(v,t),C=new Date(0);C.setUTCFullYear(g,0,m),C.setUTCHours(0,0,0,0);var p=FT(C,t);return f.getTime()>=h.getTime()?g+1:f.getTime()>=p.getTime()?g:g-1}function Seu(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=Ti(),g=gt((n=(a=(r=(u=t==null?void 0:t.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&a!==void 0?a:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),_=iBn(e,t),m=new Date(0);m.setUTCFullYear(_,0,g),m.setUTCHours(0,0,0,0);var v=FT(m,t);return v}var Deu=6048e5;function TZn(e,t){Ce(1,arguments);var n=be(e),a=FT(n,t).getTime()-Seu(n,t).getTime();return Math.round(a/Deu)+1}function rt(e,t){for(var n=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return n+a}var Ieu={y:function(t,n){var a=t.getUTCFullYear(),r=a>0?a:1-a;return rt(n==="yy"?r%100:r,n.length)},M:function(t,n){var a=t.getUTCMonth();return n==="M"?String(a+1):rt(a+1,2)},d:function(t,n){return rt(t.getUTCDate(),n.length)},a:function(t,n){var a=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,n){return rt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return rt(t.getUTCHours(),n.length)},m:function(t,n){return rt(t.getUTCMinutes(),n.length)},s:function(t,n){return rt(t.getUTCSeconds(),n.length)},S:function(t,n){var a=n.length,r=t.getUTCMilliseconds(),u=Math.floor(r*Math.pow(10,a-3));return rt(u,n.length)}};const jj=Ieu;var Ele={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Beu={G:function(t,n,a){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){var r=t.getUTCFullYear(),u=r>0?r:1-r;return a.ordinalNumber(u,{unit:"year"})}return jj.y(t,n)},Y:function(t,n,a,r){var u=iBn(t,r),c=u>0?u:1-u;if(n==="YY"){var s=c%100;return rt(s,2)}return n==="Yo"?a.ordinalNumber(c,{unit:"year"}):rt(c,n.length)},R:function(t,n){var a=FZn(t);return rt(a,n.length)},u:function(t,n){var a=t.getUTCFullYear();return rt(a,n.length)},Q:function(t,n,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return rt(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return rt(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,a){var r=t.getUTCMonth();switch(n){case"M":case"MM":return jj.M(t,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,a){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return rt(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,a,r){var u=TZn(t,r);return n==="wo"?a.ordinalNumber(u,{unit:"week"}):rt(u,n.length)},I:function(t,n,a){var r=NZn(t);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):rt(r,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):jj.d(t,n)},D:function(t,n,a){var r=Peu(t);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):rt(r,n.length)},E:function(t,n,a){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,a,r){var u=t.getUTCDay(),c=(u-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return rt(c,2);case"eo":return a.ordinalNumber(c,{unit:"day"});case"eee":return a.day(u,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(u,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(u,{width:"short",context:"formatting"});case"eeee":default:return a.day(u,{width:"wide",context:"formatting"})}},c:function(t,n,a,r){var u=t.getUTCDay(),c=(u-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return rt(c,n.length);case"co":return a.ordinalNumber(c,{unit:"day"});case"ccc":return a.day(u,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(u,{width:"narrow",context:"standalone"});case"cccccc":return a.day(u,{width:"short",context:"standalone"});case"cccc":default:return a.day(u,{width:"wide",context:"standalone"})}},i:function(t,n,a){var r=t.getUTCDay(),u=r===0?7:r;switch(n){case"i":return String(u);case"ii":return rt(u,n.length);case"io":return a.ordinalNumber(u,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,a){var r=t.getUTCHours(),u=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(t,n,a){var r=t.getUTCHours(),u;switch(r===12?u=Ele.noon:r===0?u=Ele.midnight:u=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(u,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(u,{width:"wide",context:"formatting"})}},B:function(t,n,a){var r=t.getUTCHours(),u;switch(r>=17?u=Ele.evening:r>=12?u=Ele.afternoon:r>=4?u=Ele.morning:u=Ele.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(u,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(u,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return jj.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):jj.H(t,n)},K:function(t,n,a){var r=t.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):rt(r,n.length)},k:function(t,n,a){var r=t.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):rt(r,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):jj.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):jj.s(t,n)},S:function(t,n){return jj.S(t,n)},X:function(t,n,a,r){var u=r._originalDate||t,c=u.getTimezoneOffset();if(c===0)return"Z";switch(n){case"X":return UZn(c);case"XXXX":case"XX":return NT(c);case"XXXXX":case"XXX":default:return NT(c,":")}},x:function(t,n,a,r){var u=r._originalDate||t,c=u.getTimezoneOffset();switch(n){case"x":return UZn(c);case"xxxx":case"xx":return NT(c);case"xxxxx":case"xxx":default:return NT(c,":")}},O:function(t,n,a,r){var u=r._originalDate||t,c=u.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ZZn(c,":");case"OOOO":default:return"GMT"+NT(c,":")}},z:function(t,n,a,r){var u=r._originalDate||t,c=u.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ZZn(c,":");case"zzzz":default:return"GMT"+NT(c,":")}},t:function(t,n,a,r){var u=r._originalDate||t,c=Math.floor(u.getTime()/1e3);return rt(c,n.length)},T:function(t,n,a,r){var u=r._originalDate||t,c=u.getTime();return rt(c,n.length)}};function ZZn(e,t){var n=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),u=a%60;if(u===0)return n+String(r);var c=t||"";return n+String(r)+c+rt(u,2)}function UZn(e,t){if(e%60===0){var n=e>0?"-":"+";return n+rt(Math.abs(e)/60,2)}return NT(e,t)}function NT(e,t){var n=t||"",a=e>0?"-":"+",r=Math.abs(e),u=rt(Math.floor(r/60),2),c=rt(r%60,2);return a+u+n+c}const Weu=Beu;var GZn=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},KZn=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},$eu=function(t,n){var a=t.match(/(P+)(p+)?/)||[],r=a[1],u=a[2];if(!u)return GZn(t,n);var c;switch(r){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",GZn(r,n)).replace("{{time}}",KZn(u,n))},xeu={p:KZn,P:$eu};const oBn=xeu;var Aeu=["D","DD"],Reu=["YY","YYYY"];function YZn(e){return Aeu.indexOf(e)!==-1}function XZn(e){return Reu.indexOf(e)!==-1}function dbt(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; 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(n,"`; 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(n,"`; 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(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var zeu={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"}},Heu=function(t,n,a){var r,u=zeu[t];return typeof u=="string"?r=u:n===1?r=u.one:r=u.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const Veu=Heu;function kle(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,a=e.formats[n]||e.formats[e.defaultWidth];return a}}var Feu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Neu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Teu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zeu={date:kle({formats:Feu,defaultWidth:"full"}),time:kle({formats:Neu,defaultWidth:"full"}),dateTime:kle({formats:Teu,defaultWidth:"full"})};const Ueu=Zeu;var Geu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Keu=function(t,n,a,r){return Geu[t]};const Yeu=Keu;function qc(e){return function(t,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&e.formattingValues){var u=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):u;r=e.formattingValues[c]||e.formattingValues[u]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[s]}var d=e.argumentCallback?e.argumentCallback(t):t;return r[d]}}var Xeu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qeu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jeu={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"]},qeu={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"]},etu={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"}},ttu={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"}},ntu=function(t,n){var a=Number(t),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},rtu={ordinalNumber:ntu,era:qc({values:Xeu,defaultWidth:"wide"}),quarter:qc({values:Qeu,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qc({values:Jeu,defaultWidth:"wide"}),day:qc({values:qeu,defaultWidth:"wide"}),dayPeriod:qc({values:etu,defaultWidth:"wide",formattingValues:ttu,defaultFormattingWidth:"wide"})};const atu=rtu;function el(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=t.match(r);if(!u)return null;var c=u[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?otu(s,function(g){return g.test(c)}):itu(s,function(g){return g.test(c)}),d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;var f=t.slice(c.length);return{value:d,rest:f}}}function itu(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function otu(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function QZn(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],u=t.match(e.parsePattern);if(!u)return null;var c=e.valueCallback?e.valueCallback(u[0]):u[0];c=n.valueCallback?n.valueCallback(c):c;var s=t.slice(r.length);return{value:c,rest:s}}}var utu=/^(\d+)(th|st|nd|rd)?/i,ctu=/\d+/i,ltu={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},stu={any:[/^b/i,/^(a|c)/i]},ftu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dtu={any:[/1/i,/2/i,/3/i,/4/i]},gtu={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},_tu={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]},mtu={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},vtu={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]},htu={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},Ctu={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}},btu={ordinalNumber:QZn({matchPattern:utu,parsePattern:ctu,valueCallback:function(t){return parseInt(t,10)}}),era:el({matchPatterns:ltu,defaultMatchWidth:"wide",parsePatterns:stu,defaultParseWidth:"any"}),quarter:el({matchPatterns:ftu,defaultMatchWidth:"wide",parsePatterns:dtu,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:el({matchPatterns:gtu,defaultMatchWidth:"wide",parsePatterns:_tu,defaultParseWidth:"any"}),day:el({matchPatterns:mtu,defaultMatchWidth:"wide",parsePatterns:vtu,defaultParseWidth:"any"}),dayPeriod:el({matchPatterns:htu,defaultMatchWidth:"any",parsePatterns:Ctu,defaultParseWidth:"any"})},ytu={code:"en-US",formatDistance:Veu,formatLong:Ueu,formatRelative:Yeu,localize:atu,match:btu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const gbt=ytu;var ptu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Otu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jtu=/^'([^]*?)'?$/,wtu=/''/g,Mtu=/[a-zA-Z]/;function _bt(e,t,n){var a,r,u,c,s,l,d,f,g,_,m,v,h,C,p,y,S,w;Ce(2,arguments);var j=String(t),b=Ti(),M=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:b.locale)!==null&&a!==void 0?a:gbt,P=gt((u=(c=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:b.firstWeekContainsDate)!==null&&c!==void 0?c:(g=b.locale)===null||g===void 0||(_=g.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&u!==void 0?u:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=gt((m=(v=(h=(C=n==null?void 0:n.weekStartsOn)!==null&&C!==void 0?C:n==null||(p=n.locale)===null||p===void 0||(y=p.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:b.weekStartsOn)!==null&&v!==void 0?v:(S=b.locale)===null||S===void 0||(w=S.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&m!==void 0?m:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var W=be(e);if(!aBn(W))throw new RangeError("Invalid time value");var I=Mle(W),D=VZn(W,I),E={firstWeekContainsDate:P,weekStartsOn:k,locale:M,_originalDate:W},L=j.match(Otu).map(function(B){var $=B[0];if($==="p"||$==="P"){var x=oBn[$];return x(B,M.formatLong)}return B}).join("").match(ptu).map(function(B){if(B==="''")return"'";var $=B[0];if($==="'")return Ltu(B);var x=Weu[$];if(x)return!(n!=null&&n.useAdditionalWeekYearTokens)&&XZn(B)&&dbt(B,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&YZn(B)&&dbt(B,t,String(e)),x(D,B,M.localize,E);if($.match(Mtu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return B}).join("");return L}function Ltu(e){var t=e.match(jtu);return t?t[1].replace(wtu,"'"):e}function Ptu(e){Ce(1,arguments);var t=be(e),n=t.getDate();return n}function JZn(e){Ce(1,arguments);var t=be(e),n=t.getFullYear(),a=t.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function Etu(e){Ce(1,arguments);var t=be(e),n=t.getHours();return n}function ktu(e){Ce(1,arguments);var t=be(e),n=t.getMinutes();return n}function Stu(e){Ce(1,arguments);var t=be(e),n=t.getMonth();return n}function Dtu(e){Ce(1,arguments);var t=be(e),n=t.getSeconds();return n}function Itu(e){Ce(1,arguments);var t=be(e),n=t.getMilliseconds();return n}function TT(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=Ti(),g=gt((n=(a=(r=(u=t==null?void 0:t.weekStartsOn)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:f.weekStartsOn)!==null&&a!==void 0?a:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=be(e),m=_.getDay(),v=(m<g?7:0)+m-g;return _.setDate(_.getDate()-v),_.setHours(0,0,0,0),_}function Btu(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=be(e),g=f.getFullYear(),_=Ti(),m=gt((n=(a=(r=(u=t==null?void 0:t.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&a!==void 0?a:(l=_.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(g+1,0,m),v.setHours(0,0,0,0);var h=TT(v,t),C=new Date(0);C.setFullYear(g,0,m),C.setHours(0,0,0,0);var p=TT(C,t);return f.getTime()>=h.getTime()?g+1:f.getTime()>=p.getTime()?g:g-1}function Wtu(e,t){var n,a,r,u,c,s,l,d;Ce(1,arguments);var f=Ti(),g=gt((n=(a=(r=(u=t==null?void 0:t.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(c=t.locale)===null||c===void 0||(s=c.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&a!==void 0?a:(l=f.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),_=Btu(e,t),m=new Date(0);m.setFullYear(_,0,g),m.setHours(0,0,0,0);var v=TT(m,t);return v}var $tu=6048e5;function xtu(e,t){Ce(1,arguments);var n=be(e),a=TT(n,t).getTime()-Wtu(n,t).getTime();return Math.round(a/$tu)+1}function Atu(e){return Ce(1,arguments),be(e).getFullYear()}function uBn(e,t){Ce(2,arguments);var n=be(e),a=be(t);return n.getTime()>a.getTime()}function nvt(e,t){Ce(2,arguments);var n=be(e),a=be(t);return n.getTime()<a.getTime()}function Rtu(e,t){Ce(2,arguments);var n=be(e),a=be(t);return n.getTime()===a.getTime()}function ztu(e,t){Ce(2,arguments);var n=Lle(e),a=Lle(t);return n.getTime()===a.getTime()}function Htu(e,t){Ce(2,arguments);var n=be(e),a=be(t);return n.getFullYear()===a.getFullYear()}function Vtu(e,t){Ce(2,arguments);var n=be(e),a=be(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function qZn(e){Ce(1,arguments);var t=be(e);return t.setMinutes(0,0,0),t}function Ftu(e,t){Ce(2,arguments);var n=qZn(e),a=qZn(t);return n.getTime()===a.getTime()}function eUn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ntu(e,t){if(e){if(typeof e=="string")return eUn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eUn(e,t)}}function tUn(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ntu(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(d){throw d},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
35381
35381
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,c=!1,s;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return u=d.done,d},e:function(d){c=!0,s=d},f:function(){try{!u&&n.return!=null&&n.return()}finally{if(c)throw s}}}}function cBn(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lBn(e,t){return lBn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},lBn(e,t)}function _t(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&&lBn(e,t)}function mbt(e){return mbt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mbt(e)}function Ttu(){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 Ztu(e,t){if(t&&(g8(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(e)}function mt(e){var t=Ttu();return function(){var a=mbt(e),r;if(t){var u=mbt(this).constructor;r=Reflect.construct(a,arguments,u)}else r=a.apply(this,arguments);return Ztu(this,r)}}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Utu(e,t){if(g8(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(g8(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nUn(e){var t=Utu(e,"string");return g8(t)==="symbol"?t:String(t)}function rUn(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,nUn(a.key),a)}}function st(e,t,n){return t&&rUn(e.prototype,t),n&&rUn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function je(e,t,n){return t=nUn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gtu=10,aUn=function(){function e(){lt(this,e),je(this,"priority",void 0),je(this,"subPriority",0)}return st(e,[{key:"validate",value:function(n,a){return!0}}]),e}(),Ktu=function(e){_t(n,e);var t=mt(n);function n(a,r,u,c,s){var l;return lt(this,n),l=t.call(this),l.value=a,l.validateValue=r,l.setValue=u,l.priority=c,s&&(l.subPriority=s),l}return st(n,[{key:"validate",value:function(r,u){return this.validateValue(r,this.value,u)}},{key:"set",value:function(r,u,c){return this.setValue(r,u,this.value,c)}}]),n}(aUn),Ytu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",Gtu),je(Ee(a),"subPriority",-1),a}return st(n,[{key:"set",value:function(r,u){if(u.timestampIsSet)return r;var c=new Date(0);return c.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),c.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),c}}]),n}(aUn),bt=function(){function e(){lt(this,e),je(this,"incompatibleTokens",void 0),je(this,"priority",void 0),je(this,"subPriority",void 0)}return st(e,[{key:"run",value:function(n,a,r,u){var c=this.parse(n,a,r,u);return c?{setter:new Ktu(c.value,this.validate,this.set,this.priority,this.subPriority),rest:c.rest}:null}},{key:"validate",value:function(n,a,r){return!0}}]),e}(),Xtu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",140),je(Ee(a),"incompatibleTokens",["R","u","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"G":case"GG":case"GGG":return c.era(r,{width:"abbreviated"})||c.era(r,{width:"narrow"});case"GGGGG":return c.era(r,{width:"narrow"});case"GGGG":default:return c.era(r,{width:"wide"})||c.era(r,{width:"abbreviated"})||c.era(r,{width:"narrow"})}}},{key:"set",value:function(r,u,c){return u.era=c,r.setUTCFullYear(c,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt),an={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}/},tl={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function on(e,t){return e&&{value:t(e.value),rest:e.rest}}function Yt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function nl(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var a=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,u=n[3]?parseInt(n[3],10):0,c=n[5]?parseInt(n[5],10):0;return{value:a*(r*sbt+u*lbt+c*yeu),rest:t.slice(n[0].length)}}function iUn(e){return Yt(an.anyDigitsSigned,e)}function en(e,t){switch(e){case 1:return Yt(an.singleDigit,t);case 2:return Yt(an.twoDigits,t);case 3:return Yt(an.threeDigits,t);case 4:return Yt(an.fourDigits,t);default:return Yt(new RegExp("^\\d{1,"+e+"}"),t)}}function vbt(e,t){switch(e){case 1:return Yt(an.singleDigitSigned,t);case 2:return Yt(an.twoDigitsSigned,t);case 3:return Yt(an.threeDigitsSigned,t);case 4:return Yt(an.fourDigitsSigned,t);default:return Yt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function sBn(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 oUn(e,t){var n=t>0,a=n?t:1-t,r;if(a<=50)r=e||100;else{var u=a+50,c=Math.floor(u/100)*100,s=e>=u%100;r=e+c-(s?100:0)}return n?r:1-r}function uUn(e){return e%400===0||e%4===0&&e%100!==0}var Qtu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",130),je(Ee(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){var s=function(d){return{year:d,isTwoDigitYear:u==="yy"}};switch(u){case"y":return on(en(4,r),s);case"yo":return on(c.ordinalNumber(r,{unit:"year"}),s);default:return on(en(u.length,r),s)}}},{key:"validate",value:function(r,u){return u.isTwoDigitYear||u.year>0}},{key:"set",value:function(r,u,c){var s=r.getUTCFullYear();if(c.isTwoDigitYear){var l=oUn(c.year,s);return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}var d=!("era"in u)||u.era===1?c.year:1-c.year;return r.setUTCFullYear(d,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt),Jtu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",130),je(Ee(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){var s=function(d){return{year:d,isTwoDigitYear:u==="YY"}};switch(u){case"Y":return on(en(4,r),s);case"Yo":return on(c.ordinalNumber(r,{unit:"year"}),s);default:return on(en(u.length,r),s)}}},{key:"validate",value:function(r,u){return u.isTwoDigitYear||u.year>0}},{key:"set",value:function(r,u,c,s){var l=iBn(r,s);if(c.isTwoDigitYear){var d=oUn(c.year,l);return r.setUTCFullYear(d,0,s.firstWeekContainsDate),r.setUTCHours(0,0,0,0),FT(r,s)}var f=!("era"in u)||u.era===1?c.year:1-c.year;return r.setUTCFullYear(f,0,s.firstWeekContainsDate),r.setUTCHours(0,0,0,0),FT(r,s)}}]),n}(bt),qtu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",130),je(Ee(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u){return vbt(u==="R"?4:u.length,r)}},{key:"set",value:function(r,u,c){var s=new Date(0);return s.setUTCFullYear(c,0,4),s.setUTCHours(0,0,0,0),Ple(s)}}]),n}(bt),enu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",130),je(Ee(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u){return vbt(u==="u"?4:u.length,r)}},{key:"set",value:function(r,u,c){return r.setUTCFullYear(c,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt),tnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",120),je(Ee(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"Q":case"QQ":return en(u.length,r);case"Qo":return c.ordinalNumber(r,{unit:"quarter"});case"QQQ":return c.quarter(r,{width:"abbreviated",context:"formatting"})||c.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return c.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return c.quarter(r,{width:"wide",context:"formatting"})||c.quarter(r,{width:"abbreviated",context:"formatting"})||c.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,u){return u>=1&&u<=4}},{key:"set",value:function(r,u,c){return r.setUTCMonth((c-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt),nnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",120),je(Ee(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"q":case"qq":return en(u.length,r);case"qo":return c.ordinalNumber(r,{unit:"quarter"});case"qqq":return c.quarter(r,{width:"abbreviated",context:"standalone"})||c.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return c.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return c.quarter(r,{width:"wide",context:"standalone"})||c.quarter(r,{width:"abbreviated",context:"standalone"})||c.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,u){return u>=1&&u<=4}},{key:"set",value:function(r,u,c){return r.setUTCMonth((c-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt),rnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),je(Ee(a),"priority",110),a}return st(n,[{key:"parse",value:function(r,u,c){var s=function(d){return d-1};switch(u){case"M":return on(Yt(an.month,r),s);case"MM":return on(en(2,r),s);case"Mo":return on(c.ordinalNumber(r,{unit:"month"}),s);case"MMM":return c.month(r,{width:"abbreviated",context:"formatting"})||c.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return c.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return c.month(r,{width:"wide",context:"formatting"})||c.month(r,{width:"abbreviated",context:"formatting"})||c.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,u){return u>=0&&u<=11}},{key:"set",value:function(r,u,c){return r.setUTCMonth(c,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt),anu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",110),je(Ee(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){var s=function(d){return d-1};switch(u){case"L":return on(Yt(an.month,r),s);case"LL":return on(en(2,r),s);case"Lo":return on(c.ordinalNumber(r,{unit:"month"}),s);case"LLL":return c.month(r,{width:"abbreviated",context:"standalone"})||c.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return c.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return c.month(r,{width:"wide",context:"standalone"})||c.month(r,{width:"abbreviated",context:"standalone"})||c.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,u){return u>=0&&u<=11}},{key:"set",value:function(r,u,c){return r.setUTCMonth(c,1),r.setUTCHours(0,0,0,0),r}}]),n}(bt);function inu(e,t,n){Ce(2,arguments);var a=be(e),r=gt(t),u=TZn(a,n)-r;return a.setUTCDate(a.getUTCDate()-u*7),a}var onu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",100),je(Ee(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"w":return Yt(an.week,r);case"wo":return c.ordinalNumber(r,{unit:"week"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=1&&u<=53}},{key:"set",value:function(r,u,c,s){return FT(inu(r,c,s),s)}}]),n}(bt);function unu(e,t){Ce(2,arguments);var n=be(e),a=gt(t),r=NZn(n)-a;return n.setUTCDate(n.getUTCDate()-r*7),n}var cnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",100),je(Ee(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"I":return Yt(an.week,r);case"Io":return c.ordinalNumber(r,{unit:"week"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=1&&u<=53}},{key:"set",value:function(r,u,c){return Ple(unu(r,c))}}]),n}(bt),lnu=[31,28,31,30,31,30,31,31,30,31,30,31],snu=[31,29,31,30,31,30,31,31,30,31,30,31],fnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",90),je(Ee(a),"subPriority",1),je(Ee(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"d":return Yt(an.date,r);case"do":return c.ordinalNumber(r,{unit:"date"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){var c=r.getUTCFullYear(),s=uUn(c),l=r.getUTCMonth();return s?u>=1&&u<=snu[l]:u>=1&&u<=lnu[l]}},{key:"set",value:function(r,u,c){return r.setUTCDate(c),r.setUTCHours(0,0,0,0),r}}]),n}(bt),dnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",90),je(Ee(a),"subpriority",1),je(Ee(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"D":case"DD":return Yt(an.dayOfYear,r);case"Do":return c.ordinalNumber(r,{unit:"date"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){var c=r.getUTCFullYear(),s=uUn(c);return s?u>=1&&u<=366:u>=1&&u<=365}},{key:"set",value:function(r,u,c){return r.setUTCMonth(0,c),r.setUTCHours(0,0,0,0),r}}]),n}(bt);function fBn(e,t,n){var a,r,u,c,s,l,d,f;Ce(2,arguments);var g=Ti(),_=gt((a=(r=(u=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&u!==void 0?u:g.weekStartsOn)!==null&&r!==void 0?r:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=be(e),v=gt(t),h=m.getUTCDay(),C=v%7,p=(C+7)%7,y=(p<_?7:0)+v-h;return m.setUTCDate(m.getUTCDate()+y),m}var gnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",90),je(Ee(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"E":case"EE":case"EEE":return c.day(r,{width:"abbreviated",context:"formatting"})||c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return c.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return c.day(r,{width:"wide",context:"formatting"})||c.day(r,{width:"abbreviated",context:"formatting"})||c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,u){return u>=0&&u<=6}},{key:"set",value:function(r,u,c,s){return r=fBn(r,c,s),r.setUTCHours(0,0,0,0),r}}]),n}(bt),_nu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",90),je(Ee(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c,s){var l=function(f){var g=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+g};switch(u){case"e":case"ee":return on(en(u.length,r),l);case"eo":return on(c.ordinalNumber(r,{unit:"day"}),l);case"eee":return c.day(r,{width:"abbreviated",context:"formatting"})||c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"});case"eeeee":return c.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return c.day(r,{width:"wide",context:"formatting"})||c.day(r,{width:"abbreviated",context:"formatting"})||c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,u){return u>=0&&u<=6}},{key:"set",value:function(r,u,c,s){return r=fBn(r,c,s),r.setUTCHours(0,0,0,0),r}}]),n}(bt),mnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",90),je(Ee(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c,s){var l=function(f){var g=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+g};switch(u){case"c":case"cc":return on(en(u.length,r),l);case"co":return on(c.ordinalNumber(r,{unit:"day"}),l);case"ccc":return c.day(r,{width:"abbreviated",context:"standalone"})||c.day(r,{width:"short",context:"standalone"})||c.day(r,{width:"narrow",context:"standalone"});case"ccccc":return c.day(r,{width:"narrow",context:"standalone"});case"cccccc":return c.day(r,{width:"short",context:"standalone"})||c.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return c.day(r,{width:"wide",context:"standalone"})||c.day(r,{width:"abbreviated",context:"standalone"})||c.day(r,{width:"short",context:"standalone"})||c.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,u){return u>=0&&u<=6}},{key:"set",value:function(r,u,c,s){return r=fBn(r,c,s),r.setUTCHours(0,0,0,0),r}}]),n}(bt);function vnu(e,t){Ce(2,arguments);var n=gt(t);n%7===0&&(n=n-7);var a=1,r=be(e),u=r.getUTCDay(),c=n%7,s=(c+7)%7,l=(s<a?7:0)+n-u;return r.setUTCDate(r.getUTCDate()+l),r}var hnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",90),je(Ee(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){var s=function(d){return d===0?7:d};switch(u){case"i":case"ii":return en(u.length,r);case"io":return c.ordinalNumber(r,{unit:"day"});case"iii":return on(c.day(r,{width:"abbreviated",context:"formatting"})||c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"}),s);case"iiiii":return on(c.day(r,{width:"narrow",context:"formatting"}),s);case"iiiiii":return on(c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"}),s);case"iiii":default:return on(c.day(r,{width:"wide",context:"formatting"})||c.day(r,{width:"abbreviated",context:"formatting"})||c.day(r,{width:"short",context:"formatting"})||c.day(r,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(r,u){return u>=1&&u<=7}},{key:"set",value:function(r,u,c){return r=vnu(r,c),r.setUTCHours(0,0,0,0),r}}]),n}(bt),Cnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",80),je(Ee(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"a":case"aa":case"aaa":return c.dayPeriod(r,{width:"abbreviated",context:"formatting"})||c.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return c.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return c.dayPeriod(r,{width:"wide",context:"formatting"})||c.dayPeriod(r,{width:"abbreviated",context:"formatting"})||c.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,u,c){return r.setUTCHours(sBn(c),0,0,0),r}}]),n}(bt),bnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",80),je(Ee(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"b":case"bb":case"bbb":return c.dayPeriod(r,{width:"abbreviated",context:"formatting"})||c.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return c.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return c.dayPeriod(r,{width:"wide",context:"formatting"})||c.dayPeriod(r,{width:"abbreviated",context:"formatting"})||c.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,u,c){return r.setUTCHours(sBn(c),0,0,0),r}}]),n}(bt),ynu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",80),je(Ee(a),"incompatibleTokens",["a","b","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"B":case"BB":case"BBB":return c.dayPeriod(r,{width:"abbreviated",context:"formatting"})||c.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return c.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return c.dayPeriod(r,{width:"wide",context:"formatting"})||c.dayPeriod(r,{width:"abbreviated",context:"formatting"})||c.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,u,c){return r.setUTCHours(sBn(c),0,0,0),r}}]),n}(bt),pnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",70),je(Ee(a),"incompatibleTokens",["H","K","k","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"h":return Yt(an.hour12h,r);case"ho":return c.ordinalNumber(r,{unit:"hour"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=1&&u<=12}},{key:"set",value:function(r,u,c){var s=r.getUTCHours()>=12;return s&&c<12?r.setUTCHours(c+12,0,0,0):!s&&c===12?r.setUTCHours(0,0,0,0):r.setUTCHours(c,0,0,0),r}}]),n}(bt),Onu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",70),je(Ee(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"H":return Yt(an.hour23h,r);case"Ho":return c.ordinalNumber(r,{unit:"hour"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=0&&u<=23}},{key:"set",value:function(r,u,c){return r.setUTCHours(c,0,0,0),r}}]),n}(bt),jnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",70),je(Ee(a),"incompatibleTokens",["h","H","k","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"K":return Yt(an.hour11h,r);case"Ko":return c.ordinalNumber(r,{unit:"hour"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=0&&u<=11}},{key:"set",value:function(r,u,c){var s=r.getUTCHours()>=12;return s&&c<12?r.setUTCHours(c+12,0,0,0):r.setUTCHours(c,0,0,0),r}}]),n}(bt),wnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",70),je(Ee(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"k":return Yt(an.hour24h,r);case"ko":return c.ordinalNumber(r,{unit:"hour"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=1&&u<=24}},{key:"set",value:function(r,u,c){var s=c<=24?c%24:c;return r.setUTCHours(s,0,0,0),r}}]),n}(bt),Mnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",60),je(Ee(a),"incompatibleTokens",["t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"m":return Yt(an.minute,r);case"mo":return c.ordinalNumber(r,{unit:"minute"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=0&&u<=59}},{key:"set",value:function(r,u,c){return r.setUTCMinutes(c,0,0),r}}]),n}(bt),Lnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",50),je(Ee(a),"incompatibleTokens",["t","T"]),a}return st(n,[{key:"parse",value:function(r,u,c){switch(u){case"s":return Yt(an.second,r);case"so":return c.ordinalNumber(r,{unit:"second"});default:return en(u.length,r)}}},{key:"validate",value:function(r,u){return u>=0&&u<=59}},{key:"set",value:function(r,u,c){return r.setUTCSeconds(c,0),r}}]),n}(bt),Pnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",30),je(Ee(a),"incompatibleTokens",["t","T"]),a}return st(n,[{key:"parse",value:function(r,u){var c=function(l){return Math.floor(l*Math.pow(10,-u.length+3))};return on(en(u.length,r),c)}},{key:"set",value:function(r,u,c){return r.setUTCMilliseconds(c),r}}]),n}(bt),Enu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",10),je(Ee(a),"incompatibleTokens",["t","T","x"]),a}return st(n,[{key:"parse",value:function(r,u){switch(u){case"X":return nl(tl.basicOptionalMinutes,r);case"XX":return nl(tl.basic,r);case"XXXX":return nl(tl.basicOptionalSeconds,r);case"XXXXX":return nl(tl.extendedOptionalSeconds,r);case"XXX":default:return nl(tl.extended,r)}}},{key:"set",value:function(r,u,c){return u.timestampIsSet?r:new Date(r.getTime()-c)}}]),n}(bt),knu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",10),je(Ee(a),"incompatibleTokens",["t","T","X"]),a}return st(n,[{key:"parse",value:function(r,u){switch(u){case"x":return nl(tl.basicOptionalMinutes,r);case"xx":return nl(tl.basic,r);case"xxxx":return nl(tl.basicOptionalSeconds,r);case"xxxxx":return nl(tl.extendedOptionalSeconds,r);case"xxx":default:return nl(tl.extended,r)}}},{key:"set",value:function(r,u,c){return u.timestampIsSet?r:new Date(r.getTime()-c)}}]),n}(bt),Snu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",40),je(Ee(a),"incompatibleTokens","*"),a}return st(n,[{key:"parse",value:function(r){return iUn(r)}},{key:"set",value:function(r,u,c){return[new Date(c*1e3),{timestampIsSet:!0}]}}]),n}(bt),Dnu=function(e){_t(n,e);var t=mt(n);function n(){var a;lt(this,n);for(var r=arguments.length,u=new Array(r),c=0;c<r;c++)u[c]=arguments[c];return a=t.call.apply(t,[this].concat(u)),je(Ee(a),"priority",20),je(Ee(a),"incompatibleTokens","*"),a}return st(n,[{key:"parse",value:function(r){return iUn(r)}},{key:"set",value:function(r,u,c){return[new Date(c),{timestampIsSet:!0}]}}]),n}(bt),Inu={G:new Xtu,y:new Qtu,Y:new Jtu,R:new qtu,u:new enu,Q:new tnu,q:new nnu,M:new rnu,L:new anu,w:new onu,I:new cnu,d:new fnu,D:new dnu,E:new gnu,e:new _nu,c:new mnu,i:new hnu,a:new Cnu,b:new bnu,B:new ynu,h:new pnu,H:new Onu,K:new jnu,k:new wnu,m:new Mnu,s:new Lnu,S:new Pnu,X:new Enu,x:new knu,t:new Snu,T:new Dnu},Bnu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Wnu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$nu=/^'([^]*?)'?$/,xnu=/''/g,Anu=/\S/,Rnu=/[a-zA-Z]/;function cUn(e,t,n,a){var r,u,c,s,l,d,f,g,_,m,v,h,C,p,y,S,w,j;Ce(3,arguments);var b=String(e),M=String(t),P=Ti(),k=(r=(u=a==null?void 0:a.locale)!==null&&u!==void 0?u:P.locale)!==null&&r!==void 0?r:gbt;if(!k.match)throw new RangeError("locale must contain match property");var W=gt((c=(s=(l=(d=a==null?void 0:a.firstWeekContainsDate)!==null&&d!==void 0?d:a==null||(f=a.locale)===null||f===void 0||(g=f.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&l!==void 0?l:P.firstWeekContainsDate)!==null&&s!==void 0?s:(_=P.locale)===null||_===void 0||(m=_.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&c!==void 0?c:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=gt((v=(h=(C=(p=a==null?void 0:a.weekStartsOn)!==null&&p!==void 0?p:a==null||(y=a.locale)===null||y===void 0||(S=y.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&C!==void 0?C:P.weekStartsOn)!==null&&h!==void 0?h:(w=P.locale)===null||w===void 0||(j=w.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&v!==void 0?v:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(M==="")return b===""?be(n):new Date(NaN);var D={firstWeekContainsDate:W,weekStartsOn:I,locale:k},E=[new Ytu],L=M.match(Wnu).map(function(re){var q=re[0];if(q in oBn){var ie=oBn[q];return ie(re,k.formatLong)}return re}).join("").match(Bnu),B=[],$=tUn(L),x;try{var R=function(){var q=x.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&XZn(q)&&dbt(q,M,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&YZn(q)&&dbt(q,M,e);var ie=q[0],de=Inu[ie];if(de){var oe=de.incompatibleTokens;if(Array.isArray(oe)){var ze=B.find(function(ue){return oe.includes(ue.token)||ue.token===ie});if(ze)throw new RangeError("The format string mustn't contain `".concat(ze.fullToken,"` and `").concat(q,"` at the same time"))}else if(de.incompatibleTokens==="*"&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(q,"` and any other token at the same time"));B.push({token:ie,fullToken:q});var _e=de.run(b,q,k.match,D);if(!_e)return{v:new Date(NaN)};E.push(_e.setter),b=_e.rest}else{if(ie.match(Rnu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");if(q==="''"?q="'":ie==="'"&&(q=znu(q)),b.indexOf(q)===0)b=b.slice(q.length);else return{v:new Date(NaN)}}};for($.s();!(x=$.n()).done;){var H=R();if(g8(H)==="object")return H.v}}catch(re){$.e(re)}finally{$.f()}if(b.length>0&&Anu.test(b))return new Date(NaN);var z=E.map(function(re){return re.priority}).sort(function(re,q){return q-re}).filter(function(re,q,ie){return ie.indexOf(re)===q}).map(function(re){return E.filter(function(q){return q.priority===re}).sort(function(q,ie){return ie.subPriority-q.subPriority})}).map(function(re){return re[0]}),N=be(n);if(isNaN(N.getTime()))return new Date(NaN);var K=VZn(N,Mle(N)),Z={},T=tUn(z),U;try{for(T.s();!(U=T.n()).done;){var Y=U.value;if(!Y.validate(K,D))return new Date(NaN);var te=Y.set(K,Z,D);Array.isArray(te)?(K=te[0],cBn(Z,te[1])):K=te}}catch(re){T.e(re)}finally{T.f()}return K}function znu(e){return e.match($nu)[1].replace(xnu,"'")}function Hnu(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return n.setDate(a),n}function Vnu(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return n.setHours(a),n}function Fnu(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return n.setMinutes(a),n}function Nnu(e,t){Ce(2,arguments);var n=be(e),a=gt(t),r=n.getFullYear(),u=n.getDate(),c=new Date(0);c.setFullYear(r,a,15),c.setHours(0,0,0,0);var s=JZn(c);return n.setMonth(a,Math.min(u,s)),n}function Tnu(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return n.setSeconds(a),n}function Znu(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return n.setMilliseconds(a),n}function Unu(e,t){Ce(2,arguments);var n=be(e),a=gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}function lUn(e){Ce(1,arguments);var t=be(e);return t.setDate(1),t.setHours(0,0,0,0),t}function hbt(e){Ce(1,arguments);var t=be(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Gnu(e,t){var n;Ce(1,arguments);var a=gt((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(a!==2&&a!==1&&a!==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 r=Qnu(e),u;if(r.date){var c=Jnu(r.date,a);u=qnu(c.restDateString,c.year)}if(!u||isNaN(u.getTime()))return new Date(NaN);var s=u.getTime(),l=0,d;if(r.time&&(l=eru(r.time),isNaN(l)))return new Date(NaN);if(r.timezone){if(d=tru(r.timezone),isNaN(d))return new Date(NaN)}else{var f=new Date(s+l),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}return new Date(s+l+d)}var Cbt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Knu=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ynu=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xnu=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qnu(e){var t={},n=e.split(Cbt.dateTimeDelimiter),a;if(n.length>2)return t;if(/:/.test(n[0])?a=n[0]:(t.date=n[0],a=n[1],Cbt.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Cbt.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length))),a){var r=Cbt.timezone.exec(a);r?(t.time=a.replace(r[1],""),t.timezone=r[1]):t.time=a}return t}function Jnu(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(n);if(!a)return{year:NaN,restDateString:""};var r=a[1]?parseInt(a[1]):null,u=a[2]?parseInt(a[2]):null;return{year:u===null?r:u*100,restDateString:e.slice((a[1]||a[2]).length)}}function qnu(e,t){if(t===null)return new Date(NaN);var n=e.match(Knu);if(!n)return new Date(NaN);var a=!!n[4],r=rvt(n[1]),u=rvt(n[2])-1,c=rvt(n[3]),s=rvt(n[4]),l=rvt(n[5])-1;if(a)return oru(t,s,l)?nru(t,s,l):new Date(NaN);var d=new Date(0);return!aru(t,u,c)||!iru(t,r)?new Date(NaN):(d.setUTCFullYear(t,u,Math.max(r,c)),d)}function rvt(e){return e?parseInt(e):1}function eru(e){var t=e.match(Ynu);if(!t)return NaN;var n=dBn(t[1]),a=dBn(t[2]),r=dBn(t[3]);return uru(n,a,r)?n*sbt+a*lbt+r*1e3:NaN}function dBn(e){return e&&parseFloat(e.replace(",","."))||0}function tru(e){if(e==="Z")return 0;var t=e.match(Xnu);if(!t)return 0;var n=t[1]==="+"?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return cru(a,r)?n*(a*sbt+r*lbt):NaN}function nru(e,t,n){var a=new Date(0);a.setUTCFullYear(e,0,4);var r=a.getUTCDay()||7,u=(t-1)*7+n+1-r;return a.setUTCDate(a.getUTCDate()+u),a}var rru=[31,null,31,30,31,30,31,31,30,31,30,31];function sUn(e){return e%400===0||e%4===0&&e%100!==0}function aru(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(rru[t]||(sUn(e)?29:28))}function iru(e,t){return t>=1&&t<=(sUn(e)?366:365)}function oru(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function uru(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function cru(e,t){return t>=0&&t<=59}function lru(e,t){var n,a;Ce(1,arguments);var r=be(e);if(isNaN(r.getTime()))throw new RangeError("Invalid time value");var u=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),c=String((a=t==null?void 0:t.representation)!==null&&a!==void 0?a:"complete");if(u!=="extended"&&u!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(c!=="date"&&c!=="time"&&c!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",d=u==="extended"?"-":"",f=u==="extended"?":":"";if(c!=="time"){var g=rt(r.getDate(),2),_=rt(r.getMonth()+1,2),m=rt(r.getFullYear(),4);s="".concat(m).concat(d).concat(_).concat(d).concat(g)}if(c!=="date"){var v=r.getTimezoneOffset();if(v!==0){var h=Math.abs(v),C=rt(Math.floor(h/60),2),p=rt(h%60,2),y=v<0?"+":"-";l="".concat(y).concat(C,":").concat(p)}else l="Z";var S=rt(r.getHours(),2),w=rt(r.getMinutes(),2),j=rt(r.getSeconds(),2),b=s===""?"":"T",M=[S,w,j].join(f);s="".concat(s).concat(b).concat(M).concat(l)}return s}function sru(e,t){Ce(2,arguments);var n=be(e).getTime(),a=be(t.start).getTime(),r=be(t.end).getTime();if(!(a<=r))throw new RangeError("Invalid interval");return n>=a&&n<=r}var gBn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(l,d){switch(l){case"P":return d.date({width:"short"});case"PP":return d.date({width:"medium"});case"PPP":return d.date({width:"long"});case"PPPP":default:return d.date({width:"full"})}},a=function(l,d){switch(l){case"p":return d.time({width:"short"});case"pp":return d.time({width:"medium"});case"ppp":return d.time({width:"long"});case"pppp":default:return d.time({width:"full"})}},r=function(l,d){var f=l.match(/(P+)(p+)?/)||[],g=f[1],_=f[2];if(!_)return n(l,d);var m;switch(g){case"P":m=d.dateTime({width:"short"});break;case"PP":m=d.dateTime({width:"medium"});break;case"PPP":m=d.dateTime({width:"long"});break;case"PPPP":default:m=d.dateTime({width:"full"});break}return m.replace("{{date}}",n(g,d)).replace("{{time}}",a(_,d))},u={p:a,P:r},c=u;t.default=c,e.exports=t.default})(gBn,gBn.exports);var fru=gBn.exports;const dru=Rj(fru),gru={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"},_ru={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",weekday:"EEEE",weekdayShort:"EEEEEE",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 mru{constructor(t){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib="date-fns",this.locale=void 0,this.formats=void 0,this.formatTokenMap=gru,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=u=>typeof u>"u"?new Date:u===null?null:new Date(u),this.dateWithTimezone=u=>this.date(u),this.getTimezone=()=>"default",this.setTimezone=u=>u,this.toJsDate=u=>u,this.getCurrentLocaleCode=()=>{var u;return((u=this.locale)==null?void 0:u.code)||"en-US"},this.is12HourCycleInCurrentLocale=()=>this.locale?/a/.test(this.locale.formatLong.time({width:"short"})):!0,this.expandFormat=u=>{const c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return u.match(c).map(s=>{const l=s[0];if(l==="p"||l==="P"){const d=this.longFormatters[l];return d(s,this.locale.formatLong)}return s}).join("")},this.getFormatHelperText=u=>this.expandFormat(u).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase(),this.isNull=u=>u===null,this.formatNumber=u=>u,this.getMeridiemText=u=>u==="am"?"AM":"PM";const{locale:n,formats:a,longFormatters:r}=t;this.locale=n,this.formats=ke({},_ru,a),this.longFormatters=r}}class fUn extends mru{constructor({locale:t,formats:n}={}){if(typeof obt!="function")throw new Error(["MUI: The `date-fns` package v3.x is not compatible with this adapter.","Please, install v2.x of the package or use the `AdapterDateFnsV3` instead."].join(`
|
|
35382
|
-
`));super({locale:t??gbt,formats:n,longFormatters:dru}),this.parseISO=a=>Gnu(a),this.toISO=a=>lru(a,{format:"extended"}),this.parse=(a,r)=>a===""?null:cUn(a,r,new Date,{locale:this.locale}),this.isValid=a=>aBn(this.date(a)),this.format=(a,r)=>this.formatByString(a,this.formats[r]),this.formatByString=(a,r)=>_bt(a,r,{locale:this.locale}),this.getDiff=(a,r,u)=>{switch(u){case"years":return deu(a,this.date(r));case"quarters":return veu(a,this.date(r));case"months":return tBn(a,this.date(r));case"weeks":return beu(a,this.date(r));case"days":return zZn(a,this.date(r));case"hours":return peu(a,this.date(r));case"minutes":return Oeu(a,this.date(r));case"seconds":return HZn(a,this.date(r));default:return fbt(a,this.date(r))}},this.isEqual=(a,r)=>a===null&&r===null?!0:Rtu(a,r),this.isSameYear=(a,r)=>Htu(a,r),this.isSameMonth=(a,r)=>Vtu(a,r),this.isSameDay=(a,r)=>ztu(a,r),this.isSameHour=(a,r)=>Ftu(a,r),this.isAfter=(a,r)=>uBn(a,r),this.isAfterYear=(a,r)=>uBn(a,rBn(r)),this.isAfterDay=(a,r)=>uBn(a,qIn(r)),this.isBefore=(a,r)=>nvt(a,r),this.isBeforeYear=(a,r)=>nvt(a,hbt(r)),this.isBeforeDay=(a,r)=>nvt(a,Lle(r)),this.isWithinRange=(a,[r,u])=>sru(a,{start:r,end:u}),this.startOfYear=a=>hbt(a),this.startOfMonth=a=>lUn(a),this.startOfWeek=a=>TT(a,{locale:this.locale}),this.startOfDay=a=>Lle(a),this.endOfYear=a=>rBn(a),this.endOfMonth=a=>eBn(a),this.endOfWeek=a=>nBn(a,{locale:this.locale}),this.endOfDay=a=>qIn(a),this.addYears=(a,r)=>xZn(a,r),this.addMonths=(a,r)=>cbt(a,r),this.addWeeks=(a,r)=>seu(a,r),this.addDays=(a,r)=>obt(a,r),this.addHours=(a,r)=>leu(a,r),this.addMinutes=(a,r)=>ueu(a,r),this.addSeconds=(a,r)=>ieu(a,r),this.getYear=a=>Atu(a),this.getMonth=a=>Stu(a),this.getDate=a=>Ptu(a),this.getHours=a=>Etu(a),this.getMinutes=a=>ktu(a),this.getSeconds=a=>Dtu(a),this.getMilliseconds=a=>Itu(a),this.setYear=(a,r)=>Unu(a,r),this.setMonth=(a,r)=>Nnu(a,r),this.setDate=(a,r)=>Hnu(a,r),this.setHours=(a,r)=>Vnu(a,r),this.setMinutes=(a,r)=>Fnu(a,r),this.setSeconds=(a,r)=>Tnu(a,r),this.setMilliseconds=(a,r)=>Znu(a,r),this.getDaysInMonth=a=>JZn(a),this.getNextMonth=a=>cbt(a,1),this.getPreviousMonth=a=>cbt(a,-1),this.getMonthArray=a=>{const u=[hbt(a)];for(;u.length<12;){const c=u[u.length-1];u.push(this.getNextMonth(c))}return u},this.mergeDateAndTime=(a,r)=>this.setSeconds(this.setMinutes(this.setHours(a,this.getHours(r)),this.getMinutes(r)),this.getSeconds(r)),this.getWeekdays=()=>{const a=new Date;return jeu({start:TT(a,{locale:this.locale}),end:nBn(a,{locale:this.locale})}).map(r=>this.formatByString(r,"EEEEEE"))},this.getWeekArray=a=>{const r=TT(lUn(a),{locale:this.locale}),u=nBn(eBn(a),{locale:this.locale});let c=0,s=r;const l=[];for(;nvt(s,u);){const d=Math.floor(c/7);l[d]=l[d]||[],l[d].push(s),s=obt(s,1),c+=1}return l},this.getWeekNumber=a=>xtu(a,{locale:this.locale}),this.getYearRange=(a,r)=>{const u=hbt(a),c=rBn(r),s=[];let l=u;for(;nvt(l,c);)s.push(l),l=xZn(l,1);return s}}}var vru={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"}},hru=function(t,n,a){var r,u=vru[t];return typeof u=="string"?r=u:n===1?r=u.one:r=u.other.replace("{{count}}",String(n)),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"em "+r:"há "+r:r};const Cru=hru;var bru={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},yru={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pru={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Oru={date:kle({formats:bru,defaultWidth:"full"}),time:kle({formats:yru,defaultWidth:"full"}),dateTime:kle({formats:pru,defaultWidth:"full"})};const jru=Oru;var wru={lastWeek:function(t){var n=t.getUTCDay(),a=n===0||n===6?"último":"última";return"'"+a+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Mru=function(t,n,a,r){var u=wru[t];return typeof u=="function"?u(n):u};const Lru=Mru;var Pru={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Eru={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},kru={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"]},Sru={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"]},Dru={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"}},Iru={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"}},Bru=function(t,n){var a=Number(t);return(n==null?void 0:n.unit)==="week"?a+"ª":a+"º"},Wru={ordinalNumber:Bru,era:qc({values:Pru,defaultWidth:"wide"}),quarter:qc({values:Eru,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qc({values:kru,defaultWidth:"wide"}),day:qc({values:Sru,defaultWidth:"wide"}),dayPeriod:qc({values:Dru,defaultWidth:"wide",formattingValues:Iru,defaultFormattingWidth:"wide"})};const $ru=Wru;var xru=/^(\d+)[ºªo]?/i,Aru=/\d+/i,Rru={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},zru={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Hru={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Vru={any:[/1/i,/2/i,/3/i,/4/i]},Fru={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},Nru={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]},Tru={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},Zru={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]},Uru={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},Gru={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}},Kru={ordinalNumber:QZn({matchPattern:xru,parsePattern:Aru,valueCallback:function(t){return parseInt(t,10)}}),era:el({matchPatterns:Rru,defaultMatchWidth:"wide",parsePatterns:zru,defaultParseWidth:"any"}),quarter:el({matchPatterns:Hru,defaultMatchWidth:"wide",parsePatterns:Vru,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:el({matchPatterns:Fru,defaultMatchWidth:"wide",parsePatterns:Nru,defaultParseWidth:"any"}),day:el({matchPatterns:Tru,defaultMatchWidth:"wide",parsePatterns:Zru,defaultParseWidth:"any"}),dayPeriod:el({matchPatterns:Uru,defaultMatchWidth:"any",parsePatterns:Gru,defaultParseWidth:"any"})},Yru={code:"pt-BR",formatDistance:Cru,formatLong:jru,formatRelative:Lru,localize:$ru,match:Kru,options:{weekStartsOn:0,firstWeekContainsDate:1}};const dUn=Yru;var gUn={exports:{}},_Un={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]},mUn={exports:{}},Xru=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")},Qru=Xru,Jru=Array.prototype.concat,qru=Array.prototype.slice,vUn=mUn.exports=function(t){for(var n=[],a=0,r=t.length;a<r;a++){var u=t[a];Qru(u)?n=Jru.call(n,qru.call(u)):n.push(u)}return n};vUn.wrap=function(e){return function(){return e(vUn(arguments))}};var eau=mUn.exports,avt=_Un,ivt=eau,hUn=Object.hasOwnProperty,CUn=Object.create(null);for(var _Bn in avt)hUn.call(avt,_Bn)&&(CUn[avt[_Bn]]=_Bn);var Kr=gUn.exports={to:{},get:{}};Kr.get=function(e){var t=e.substring(0,3).toLowerCase(),n,a;switch(t){case"hsl":n=Kr.get.hsl(e),a="hsl";break;case"hwb":n=Kr.get.hwb(e),a="hwb";break;default:n=Kr.get.rgb(e),a="rgb";break}return n?{model:a,value:n}:null},Kr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^(\w+)$/,c=[0,0,0,1],s,l,d;if(s=e.match(n)){for(d=s[2],s=s[1],l=0;l<3;l++){var f=l*2;c[l]=parseInt(s.slice(f,f+2),16)}d&&(c[3]=parseInt(d,16)/255)}else if(s=e.match(t)){for(s=s[1],d=s[3],l=0;l<3;l++)c[l]=parseInt(s[l]+s[l],16);d&&(c[3]=parseInt(d+d,16)/255)}else if(s=e.match(a)){for(l=0;l<3;l++)c[l]=parseInt(s[l+1],0);s[4]&&(s[5]?c[3]=parseFloat(s[4])*.01:c[3]=parseFloat(s[4]))}else if(s=e.match(r)){for(l=0;l<3;l++)c[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?c[3]=parseFloat(s[4])*.01:c[3]=parseFloat(s[4]))}else return(s=e.match(u))?s[1]==="transparent"?[0,0,0,0]:hUn.call(avt,s[1])?(c=avt[s[1]],c[3]=1,c):null:null;for(l=0;l<3;l++)c[l]=wj(c[l],0,255);return c[3]=wj(c[3],0,1),c},Kr.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*)?\)$/,n=e.match(t);if(n){var a=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,u=wj(parseFloat(n[2]),0,100),c=wj(parseFloat(n[3]),0,100),s=wj(isNaN(a)?1:a,0,1);return[r,u,c,s]}return null},Kr.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*)?\)$/,n=e.match(t);if(n){var a=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,u=wj(parseFloat(n[2]),0,100),c=wj(parseFloat(n[3]),0,100),s=wj(isNaN(a)?1:a,0,1);return[r,u,c,s]}return null},Kr.to.hex=function(){var e=ivt(arguments);return"#"+bbt(e[0])+bbt(e[1])+bbt(e[2])+(e[3]<1?bbt(Math.round(e[3]*255)):"")},Kr.to.rgb=function(){var e=ivt(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]+")"},Kr.to.rgb.percent=function(){var e=ivt(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},Kr.to.hsl=function(){var e=ivt(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Kr.to.hwb=function(){var e=ivt(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Kr.to.keyword=function(e){return CUn[e.slice(0,3)]};function wj(e,t,n){return Math.min(Math.max(t,e),n)}function bbt(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var tau=gUn.exports;const ovt=_Un,bUn={};for(const e of Object.keys(ovt))bUn[ovt[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 yUn=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:n}=De[e];delete De[e].channels,delete De[e].labels,Object.defineProperty(De[e],"channels",{value:t}),Object.defineProperty(De[e],"labels",{value:n})}De.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),u=Math.max(t,n,a),c=u-r;let s,l;u===r?s=0:t===u?s=(n-a)/c:n===u?s=2+(a-t)/c:a===u&&(s=4+(t-n)/c),s=Math.min(s*60,360),s<0&&(s+=360);const d=(r+u)/2;return u===r?l=0:d<=.5?l=c/(u+r):l=c/(2-u-r),[s,l*100,d*100]},De.rgb.hsv=function(e){let t,n,a,r,u;const c=e[0]/255,s=e[1]/255,l=e[2]/255,d=Math.max(c,s,l),f=d-Math.min(c,s,l),g=function(_){return(d-_)/6/f+1/2};return f===0?(r=0,u=0):(u=f/d,t=g(c),n=g(s),a=g(l),c===d?r=a-n:s===d?r=1/3+t-a:l===d&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[r*360,u*100,d*100]},De.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=De.rgb.hsl(e)[0],u=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,u*100,a*100]},De.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a),u=(1-t-r)/(1-r)||0,c=(1-n-r)/(1-r)||0,s=(1-a-r)/(1-r)||0;return[u*100,c*100,s*100,r*100]};function nau(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=bUn[e];if(t)return t;let n=1/0,a;for(const r of Object.keys(ovt)){const u=ovt[r],c=nau(e,u);c<n&&(n=c,a=r)}return a},De.keyword.rgb=function(e){return ovt[e]},De.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;const r=t*.4124+n*.3576+a*.1805,u=t*.2126+n*.7152+a*.0722,c=t*.0193+n*.1192+a*.9505;return[r*100,u*100,c*100]},De.rgb.lab=function(e){const t=De.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const u=116*a-16,c=500*(n-a),s=200*(a-r);return[u,c,s]},De.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,u,c;if(n===0)return c=a*255,[c,c,c];a<.5?r=a*(1+n):r=a+n-a*n;const s=2*a-r,l=[0,0,0];for(let d=0;d<3;d++)u=t+1/3*-(d-1),u<0&&u++,u>1&&u--,6*u<1?c=s+(r-s)*6*u:2*u<1?c=r:3*u<2?c=s+(r-s)*(2/3-u)*6:c=s,l[d]=c*255;return l},De.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const u=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=u<=1?u:2-u;const c=(a+n)/2,s=a===0?2*r/(u+r):2*n/(a+n);return[t,s*100,c*100]},De.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,u=t-Math.floor(t),c=255*a*(1-n),s=255*a*(1-n*u),l=255*a*(1-n*(1-u));switch(a*=255,r){case 0:return[a,l,c];case 1:return[s,a,c];case 2:return[c,a,l];case 3:return[c,s,a];case 4:return[l,c,a];case 5:return[a,c,s]}},De.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let u,c;c=(2-n)*a;const s=(2-n)*r;return u=n*r,u/=s<=1?s:2-s,u=u||0,c/=2,[t,u*100,c*100]},De.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let u;r>1&&(n/=r,a/=r);const c=Math.floor(6*t),s=1-a;u=6*t-c,c&1&&(u=1-u);const l=n+u*(s-n);let d,f,g;switch(c){default:case 6:case 0:d=s,f=l,g=n;break;case 1:d=l,f=s,g=n;break;case 2:d=n,f=s,g=l;break;case 3:d=n,f=l,g=s;break;case 4:d=l,f=n,g=s;break;case 5:d=s,f=n,g=l;break}return[d*255,f*255,g*255]},De.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100,u=1-Math.min(1,t*(1-r)+r),c=1-Math.min(1,n*(1-r)+r),s=1-Math.min(1,a*(1-r)+r);return[u*255,c*255,s*255]},De.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,u,c;return r=t*3.2406+n*-1.5372+a*-.4986,u=t*-.9689+n*1.8758+a*.0415,c=t*.0557+n*-.204+a*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,r=Math.min(Math.max(0,r),1),u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),[r*255,u*255,c*255]},De.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const r=116*n-16,u=500*(t-n),c=200*(n-a);return[r,u,c]},De.lab.xyz=function(e){const t=e[0],n=e[1],a=e[2];let r,u,c;u=(t+16)/116,r=n/500+u,c=u-a/200;const s=u**3,l=r**3,d=c**3;return u=s>.008856?s:(u-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,c=d>.008856?d:(c-16/116)/7.787,r*=95.047,u*=100,c*=108.883,[r,u,c]},De.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=Math.atan2(a,n)*360/2/Math.PI,r<0&&(r+=360);const c=Math.sqrt(n*n+a*a);return[t,c,r]},De.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,u=n*Math.cos(r),c=n*Math.sin(r);return[t,u,c]},De.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let u=t===null?De.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let c=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return u===2&&(c+=60),c},De.hsv.ansi16=function(e){return De.rgb.ansi16(De.hsv.rgb(e),e[2])},De.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/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 n=(~~(e>50)+1)*.5,a=(t&1)*n*255,r=(t>>1&1)*n*255,u=(t>>2&1)*n*255;return[a,r,u]},De.ansi256.rgb=function(e){if(e>=232){const u=(e-232)*10+8;return[u,u,u]}e-=16;let t;const n=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[n,a,r]},De.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n},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 n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const a=parseInt(n,16),r=a>>16&255,u=a>>8&255,c=a&255;return[r,u,c]},De.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),u=Math.min(Math.min(t,n),a),c=r-u;let s,l;return c<1?s=u/(1-c):s=0,c<=0?l=0:r===t?l=(n-a)/c%6:r===n?l=2+(a-t)/c:l=4+(t-n)/c,l/=6,l%=1,[l*360,c*100,s*100]},De.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],a*100,r*100]},De.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],a*100,r*100]},De.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(n===0)return[a*255,a*255,a*255];const r=[0,0,0],u=t%1*6,c=u%1,s=1-c;let l=0;switch(Math.floor(u)){case 0:r[0]=1,r[1]=c,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=c;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=c,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*a,[(n*r[0]+l)*255,(n*r[1]+l)*255,(n*r[2]+l)*255]},De.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);let r=0;return a>0&&(r=t/a),[e[0],r*100,a*100]},De.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],r*100,a*100]},De.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);return[e[0],(a-t)*100,(1-a)*100]},De.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,r=a-t;let u=0;return r<1&&(u=(a-r)/(1-r)),[e[0],r*100,u*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,a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},De.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const ybt=yUn;function rau(){const e={},t=Object.keys(ybt);for(let n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}function aau(e){const t=rau(),n=[e];for(t[e].distance=0;n.length;){const a=n.pop(),r=Object.keys(ybt[a]);for(let u=r.length,c=0;c<u;c++){const s=r[c],l=t[s];l.distance===-1&&(l.distance=t[a].distance+1,l.parent=a,n.unshift(s))}}return t}function iau(e,t){return function(n){return t(e(n))}}function oau(e,t){const n=[t[e].parent,e];let a=ybt[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),a=iau(ybt[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}var uau=function(e){const t=aau(e),n={},a=Object.keys(t);for(let r=a.length,u=0;u<r;u++){const c=a[u];t[c].parent!==null&&(n[c]=oau(c,t))}return n};const mBn=yUn,cau=uau,Sle={},lau=Object.keys(mBn);function sau(e){const t=function(...n){const a=n[0];return a==null?a:(a.length>1&&(n=a),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function fau(e){const t=function(...n){const a=n[0];if(a==null)return a;a.length>1&&(n=a);const r=e(n);if(typeof r=="object")for(let u=r.length,c=0;c<u;c++)r[c]=Math.round(r[c]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}lau.forEach(e=>{Sle[e]={},Object.defineProperty(Sle[e],"channels",{value:mBn[e].channels}),Object.defineProperty(Sle[e],"labels",{value:mBn[e].labels});const t=cau(e);Object.keys(t).forEach(a=>{const r=t[a];Sle[e][a]=fau(r),Sle[e][a].raw=sau(r)})});var dau=Sle;const Dle=tau,Yr=dau,pUn=["keyword","gray","hex"],vBn={};for(const e of Object.keys(Yr))vBn[[...Yr[e].labels].sort().join("")]=e;const pbt={};function bn(e,t){if(!(this instanceof bn))return new bn(e,t);if(t&&t in pUn&&(t=null),t&&!(t in Yr))throw new Error("Unknown model: "+t);let n,a;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof bn)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const r=Dle.get(e);if(r===null)throw new Error("Unable to parse color from string: "+e);this.model=r.model,a=Yr[this.model].channels,this.color=r.value.slice(0,a),this.valpha=typeof r.value[a]=="number"?r.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=Yr[this.model].channels;const r=Array.prototype.slice.call(e,0,a);this.color=hBn(r,a),this.valpha=typeof e[a]=="number"?e[a]: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 r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const u=r.sort().join("");if(!(u in vBn))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=vBn[u];const{labels:c}=Yr[this.model],s=[];for(n=0;n<c.length;n++)s.push(e[c[n]]);this.color=hBn(s)}if(pbt[this.model])for(a=Yr[this.model].channels,n=0;n<a;n++){const r=pbt[this.model][n];r&&(this.color[n]=r(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}bn.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Dle.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Dle.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Dle.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yr[this.model],{labels:n}=Yr[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];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 bn([...this.color.map(_au(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new bn([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:tn("rgb",0,dn(255)),green:tn("rgb",1,dn(255)),blue:tn("rgb",2,dn(255)),hue:tn(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:tn("hsl",1,dn(100)),lightness:tn("hsl",2,dn(100)),saturationv:tn("hsv",1,dn(100)),value:tn("hsv",2,dn(100)),chroma:tn("hcg",1,dn(100)),gray:tn("hcg",2,dn(100)),white:tn("hwb",1,dn(100)),wblack:tn("hwb",2,dn(100)),cyan:tn("cmyk",0,dn(100)),magenta:tn("cmyk",1,dn(100)),yellow:tn("cmyk",2,dn(100)),black:tn("cmyk",3,dn(100)),x:tn("xyz",0,dn(95.047)),y:tn("xyz",1,dn(100)),z:tn("xyz",2,dn(108.833)),l:tn("lab",0,dn(100)),a:tn("lab",1),b:tn("lab",2),keyword(e){return e!==void 0?new bn(e):Yr[this.model].keyword(this.color)},hex(e){return e!==void 0?new bn(e):Dle.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new bn(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Dle.to.hex(t)+n},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[n,a]of e.entries()){const r=a/255;t[n]=r<=.04045?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.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 bn.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 n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,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 n=e.rgb(),a=this.rgb(),r=t===void 0?.5:t,u=2*r-1,c=n.alpha()-a.alpha(),s=((u*c===-1?u:(u+c)/(1+u*c))+1)/2,l=1-s;return bn.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(Yr)){if(pUn.includes(e))continue;const{channels:t}=Yr[e];bn.prototype[e]=function(...n){return this.model===e?new bn(this):n.length>0?new bn(n,e):new bn([...mau(Yr[this.model][e].raw(this.color)),this.valpha],e)},bn[e]=function(...n){let a=n[0];return typeof a=="number"&&(a=hBn(n,t)),new bn(a,e)}}function gau(e,t){return Number(e.toFixed(t))}function _au(e){return function(t){return gau(t,e)}}function tn(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(pbt[a]||(pbt[a]=[]))[t]=n;return e=e[0],function(a){let r;return a!==void 0?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function dn(e){return function(t){return Math.max(0,Math.min(e,t))}}function mau(e){return Array.isArray(e)?e:[e]}function hBn(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var vau=bn;const hau=Rj(vau),OUn=e=>hau(e).luminosity(),Cau=Object.freeze(Object.defineProperty({__proto__:null,getLuminosity:OUn},Symbol.toStringTag,{value:"Module"})),kt={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},bau={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},yau={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},pau={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},Oau={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},jau={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:kt[800]},Ile={common:{black:"#000",white:"#fff"},primary:bau,secondary:yau,info:pau,success:Oau,warning:jau,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:kt,divider:ve(kt[500],.24),action:{hover:ve(kt[500],.08),selected:ve(kt[500],.16),disabled:ve(kt[500],.8),disabledBackground:ve(kt[500],.24),focus:ve(kt[500],.24),hoverOpacity:.08,disabledOpacity:.48}},Mj=e=>{const t={...Ile,mode:"light",text:{primary:kt[800],secondary:kt[600],disabled:kt[500]},background:{paper:"#fff",default:kt[100],neutral:kt[200]},action:{...Ile.action,active:kt[600]}},n={...Ile,mode:"dark",text:{primary:"#fff",secondary:kt[500],disabled:kt[600]},background:{paper:kt[800],default:kt[900],neutral:ve(kt[500],.16)},action:{...Ile.action,active:kt[500]}};return e==="light"?t:n},wau=e=>({lighter:Hyt(e,.815),light:Hyt(e,.225),main:e,dark:zyt(e,.15),darker:zyt(e,.35)}),Mau=e=>OUn(e)<=.55?"#fff":kt[900],jUn=e=>{const t=wau(e);return{...Ile,primary:{...t,contrastText:Mau(t.main)},mode:"light",text:{primary:kt[800],secondary:kt[600],disabled:kt[500]},background:{paper:"#fff",default:kt[100],neutral:kt[200]},action:{active:kt[600],...Ile.action}}},wUn=Mj("light"),Lau=wUn.grey[500],Pau=wUn.common.black;function MUn(e,t){const n=ve(e,.16);return{z1:`0 1px 2px 0 ${n}`,z4:`0 4px 8px 0 ${n}`,z8:`0 8px 16px 0 ${n}`,z12:`0 12px 24px -4px ${n}`,z16:`0 16px 32px -4px ${n}`,z20:`0 20px 40px -4px ${n}`,z24:`0 24px 48px 0 ${n}`,primary:`0 8px 16px 0 ${ve(t||Mj("light").primary.main,.24)}`,info:`0 8px 16px 0 ${ve(Mj("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${ve(Mj("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${ve(Mj("light").success.main,.24)}`,warning:`0 8px 16px 0 ${ve(Mj("light").warning.main,.24)}`,error:`0 8px 16px 0 ${ve(Mj("light").error.main,.24)}`,card:`0 0 2px 0 ${ve(e,.2)}, 0 12px 24px -4px ${ve(e,.12)}`,dialog:`-40px 40px 80px -8px ${ve(e,.24)}`,dropdown:`0 0 2px 0 ${ve(e,.24)}, -20px 20px 40px -4px ${ve(e,.24)}`}}const LUn=(e,t)=>MUn(e==="light"?Lau:Pau,t),PUn=()=>O.jsx(A.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"}}}}),Eau=["primary","secondary","info","success","warning","error"];function kau(e){const t=e.palette.mode==="light",n=a=>{const r=a.color==="default",u=a.color==="inherit",c=a.variant==="circular",s=a.variant==="extended",l=a.variant==="outlined",d=a.variant==="outlinedExtended",f=a.variant==="soft",g=a.variant==="softExtended",_={"&:hover, &:active":{boxShadow:"none"},...(c||s)&&{...(r||u)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...u&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(l||d)&&{boxShadow:"none",backgroundColor:"transparent",...(r||u)&&{border:`solid 1px ${ve(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...r&&{...!t&&{color:e.palette.text.secondary}}},...(f||g)&&{boxShadow:"none",...r&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...u&&{backgroundColor:ve(e.palette.grey[500],.08),"&:hover":{backgroundColor:ve(e.palette.grey[500],.24)}}}},m=Eau.map(C=>({...a.color===C&&{...(c||s)&&{boxShadow:e.customShadows[C],"&:hover":{backgroundColor:e.palette[C].dark}},...(l||d)&&{color:e.palette[C].main,border:`solid 1px ${ve(e.palette[C].main,.48)}`,"&:hover":{backgroundColor:ve(e.palette[C].main,.08),border:`solid 1px ${e.palette[C].main}`}},...(f||g)&&{color:e.palette[C][t?"dark":"light"],backgroundColor:ve(e.palette[C].main,.16),"&:hover":{backgroundColor:ve(e.palette[C].main,.32)}}}})),v={"&.Mui-disabled":{...(l||d)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},h={...(s||d||g)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...a.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...a.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...a.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...m,_,v,h]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function Sau(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 Dau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 EUn(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Iau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Bau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Wau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 $au(e){return O.jsx(A.SvgIcon,{...e,children:O.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 xau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Aau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Rau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 zau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Hau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Vau(e){return O.jsx(A.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:O.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 Fau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Nau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Tau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Zau=["primary","secondary","info","success","warning","error"];function Uau(e){const t=e.palette.mode==="light",n=a=>{const r=a.color==="default",u=a.variant==="filled",c=a.variant==="outlined",s=a.variant==="soft",l={...r&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:ve(e.palette.grey[500],.48)},...c&&{border:`solid 1px ${ve(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:ve(e.palette.grey[500],.16),"&:hover":{backgroundColor:ve(e.palette.grey[500],.32)}}}};return[...Zau.map(f=>({...a.color===f&&{"& .MuiChip-avatar":{color:e.palette[f].lighter,backgroundColor:e.palette[f].dark},...u&&{"& .MuiChip-deleteIcon":{color:ve(e.palette[f].contrastText,.56),"&:hover":{color:e.palette[f].contrastText}}},...s&&{color:e.palette[f][t?"dark":"light"],backgroundColor:ve(e.palette[f].main,.16),"&:hover":{backgroundColor:ve(e.palette[f].main,.32)},"& .MuiChip-deleteIcon":{color:ve(e.palette[f][t?"dark":"light"],.48),"&:hover":{color:e.palette[f].dark}}}}})),l]};return{MuiChip:{defaultProps:{deleteIcon:O.jsx(Dau,{})},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function Gau(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,textTransform:"none","&: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 Kau(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function Yau(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Xau(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 Qau(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 Jau=["info","success","warning","error"];function qau(e){const t=e.palette.mode==="light",n=a=>{const r=a.variant==="standard",u=a.variant==="filled",c=a.variant==="outlined";return[...Jau.map(l=>({...a.severity===l&&{...r&&{color:e.palette[l][t?"darker":"lighter"],backgroundColor:e.palette[l][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[l][t?"main":"light"]}},...u&&{color:e.palette[l].contrastText,backgroundColor:e.palette[l].main},...c&&{color:e.palette[l][t?"dark":"light"],border:`solid 1px ${e.palette[l].main}`,"& .MuiAlert-icon":{color:e.palette[l].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:O.jsx(Iau,{}),success:O.jsx(Wau,{}),warning:O.jsx(Bau,{}),error:O.jsx($au,{})}},styleOverrides:{root:({ownerState:a})=>n(a),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function e1u(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function t1u(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function n1u(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:ve(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:ve(e.palette.grey[500],.08),"&:hover":{backgroundColor:ve(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:ve(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:ve(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 r1u(e){return{MuiRadio:{defaultProps:{icon:O.jsx(zau,{}),checkedIcon:O.jsx(Hau,{})},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 a1u(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:n})=>({...n.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${ve(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function i1u(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 o1u(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:ve(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 u1u(e){return{MuiRating:{defaultProps:{emptyIcon:O.jsx(EUn,{}),icon:O.jsx(EUn,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:ve(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function c1u(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 l1u=["primary","secondary","info","success","warning","error"];function s1u(e){const t=e.palette.mode==="light",n=a=>{const r=a.color==="inherit",u=a.variant==="contained",c=a.variant==="outlined",s=a.variant==="text",l=a.variant==="soft",d=a.size==="small",f=a.size==="large",g={textTransform:"none",fontFamily:"inherit",...r&&{...u&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...c&&{borderColor:ve(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...l&&{color:e.palette.text.primary,backgroundColor:ve(e.palette.grey[500],.08),"&:hover":{backgroundColor:ve(e.palette.grey[500],.24)}}}},_=l1u.map(h=>({...a.color===h&&{...u&&{"&:hover":{boxShadow:e.customShadows[h]}},...l&&{color:e.palette[h][t?"dark":"light"],backgroundColor:ve(e.palette[h].main,.16),"&:hover":{backgroundColor:ve(e.palette[h].main,.32)}}}})),m={"&.Mui-disabled":{...l&&{backgroundColor:e.palette.action.disabledBackground}}},v={...d&&{height:30,fontSize:13,...l&&{padding:"4px 10px"}},...f&&{height:48,fontSize:15,...l&&{padding:"8px 22px"}}};return[..._,g,m,v]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function f1u(e){const t=e.palette.mode==="light",n=a=>({padding:"9px 13px 9px 12px",width:58,height:38,...a.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`,...a.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:ve(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...a.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...a.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:a})=>n(a)}}}}function d1u(e){return{MuiSelect:{defaultProps:{IconComponent:Vau}}}}function g1u(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function _1u(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 m1u(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function v1u(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function h1u(e){return{MuiDataGrid:{styleOverrides:{root:{border:0,padding:8,"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},main:{backgroundColor:"#F5F5F5",borderRadius:8,outline:"8px solid #F5F5F5"},columnHeader:{fontSize:13,fontWeight:600,color:e.palette.grey[600],padding:"0 16px",borderColor:"transparent"},row:{borderRadius:8,backgroundColor:"#FFFFFF",color:e.palette.grey[800]},rowReorderCell:{color:e.palette.grey[400]},cell:{borderBottom:0,padding:"0 16px"},columnSeparator:{color:e.palette.divider,"&:hover":{color:e.palette.primary.main}},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}}},overlayWrapper:{height:"100% !important"},overlayWrapperInner:{height:"100% !important"}}}}}function C1u(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function b1u(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:ve(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const y1u=["primary","secondary","info","success","warning","error"];function p1u(e){const t=n=>{const a=n.variant==="buffer",r={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...a&&{backgroundColor:"transparent"}};return[...y1u.map(c=>({...n.color===c&&{backgroundColor:A.alpha(e.palette[c].main,.24)}})),r]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:n})=>t(n)}}}}function O1u(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function j1u(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:O.jsx(Fau,{sx:{width:20,height:20}}),defaultExpandIcon:O.jsx(Nau,{sx:{width:20,height:20}}),defaultEndIcon:O.jsx(Tau,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function w1u(e){return{MuiCheckbox:{defaultProps:{icon:O.jsx(xau,{}),checkedIcon:O.jsx(Aau,{}),indeterminateIcon:O.jsx(Rau,{})},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 M1u(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 L1u(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const P1u=["primary","secondary","info","success","warning","error"];function E1u(e){const t=e.palette.mode==="light",n=a=>{const r=a.variant==="outlined",u=a.variant==="soft",c={"& .MuiPaginationItem-root":{...r&&{borderColor:ve(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...P1u.map(l=>({...a.color===l&&{...u&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[l][t?"dark":"light"],backgroundColor:ve(e.palette[l].main,.16),"&:hover":{backgroundColor:ve(e.palette[l].main,.32)}}}}}})),c]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function k1u(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 S1u=["primary","secondary","info","success","warning","error"];function D1u(e){const t=n=>{const a=n.color==="inherit",r=n.variant==="contained",u=n.variant==="outlined",c=n.variant==="text",s=n.variant==="soft",l=n.orientation==="horizontal",d=n.orientation==="vertical",f={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!u&&{borderStyle:"solid",...a&&{borderColor:ve(e.palette.grey[500],.32)},...l&&{borderWidth:"0px 1px 0px 0px"},...d&&{borderWidth:"0px 0px 1px 0px"}}}}},g=S1u.map(m=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!u&&{...n.color===m&&{...r&&{borderColor:ve(e.palette[m].dark,.48)},...c&&{borderColor:ve(e.palette[m].main,.48)},...s&&{borderColor:ve(e.palette[m].dark,.24)}}}}}})),_={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...g,f,_]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>t(n)}}}}function I1u(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:ve(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},noOptions:{height:"154px",textAlign:"center",alignContent:"center"},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const B1u=["primary","secondary","info","success","warning","error"];function W1u(e){const t=n=>{const r={...n.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},u=B1u.map(s=>({...n.color===s&&{"&:hover":{borderColor:ve(e.palette[s].main,.48),backgroundColor:ve(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),c={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...u,r,c]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:n})=>t(n)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${ve(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function $1u(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 x1u(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 kUn(e){return Object.assign(kau(e),Gau(e),Uau(e),Sau(e),Kau(e),Yau(),n1u(e),r1u(e),e1u(),Xau(e),Qau(e),t1u(),qau(e),f1u(e),d1u(),s1u(e),u1u(e),i1u(e),o1u(e),c1u(e),a1u(e),v1u(e),_1u(e),m1u(e),g1u(),w1u(e),h1u(e),C1u(e),O1u(e),j1u(e),b1u(e),p1u(e),M1u(e),L1u(e),E1u(e),D1u(e),k1u(e),I1u(e),$1u(e),W1u(e),x1u())}const SUn=Mj("light"),A1u=SUn.grey[500],R1u=SUn.common.black;function DUn(e){const t=ve(e,.2),n=ve(e,.14),a=ve(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${n},0px 1px 3px 0px ${a}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${n},0px 1px 5px 0px ${a}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${n},0px 1px 8px 0px ${a}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${n},0px 1px 10px 0px ${a}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${n},0px 1px 14px 0px ${a}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${n},0px 1px 18px 0px ${a}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${n},0px 2px 16px 1px ${a}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${n},0px 3px 14px 2px ${a}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${n},0px 3px 16px 2px ${a}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${n},0px 4px 18px 3px ${a}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${n},0px 4px 20px 3px ${a}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${n},0px 5px 22px 4px ${a}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${n},0px 5px 24px 4px ${a}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${n},0px 5px 26px 4px ${a}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${n},0px 6px 28px 5px ${a}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${n},0px 6px 30px 5px ${a}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${n},0px 6px 32px 5px ${a}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${n},0px 7px 34px 6px ${a}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${n},0px 7px 36px 6px ${a}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${n},0px 8px 38px 7px ${a}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${n},0px 8px 40px 7px ${a}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${n},0px 8px 42px 7px ${a}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${n},0px 9px 44px 8px ${a}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${n},0px 9px 46px 8px ${a}`]}const IUn=e=>DUn(e==="light"?A1u:R1u);function En(e){return`${e/16}rem`}function Ble({sm:e,md:t,lg:n}){return{"@media (min-width:600px)":{fontSize:En(e)},"@media (min-width:900px)":{fontSize:En(t)},"@media (min-width:1200px)":{fontSize:En(n)}}}const BUn={fontFamily:"inherit",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:En(40),...Ble({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:En(32),...Ble({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:En(24),...Ble({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:En(20),...Ble({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:En(18),...Ble({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:En(17),...Ble({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:En(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:En(14)},body1:{lineHeight:1.5,fontSize:En(16)},body2:{lineHeight:22/14,fontSize:En(14)},caption:{lineHeight:1.5,fontSize:En(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:En(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:En(14),textTransform:"capitalize"}},WUn=({children:e,color:t,direction:n="ltr",themeMode:a="light"})=>{const r=o.useMemo(()=>({palette:jUn(t),typography:BUn,shape:{borderRadius:8},direction:n,shadows:IUn(a),customShadows:LUn(a,t)}),[t,n,a]),u=dht(r);return u.components=kUn(u),O.jsx(W$n,{injectFirst:!0,children:O.jsxs(Fyt,{theme:u,children:[O.jsx(A.CssBaseline,{}),O.jsx(PUn,{}),e]})})},V82="",F82="",N82="",T82="",Z82="",U82="",z1u=({themeColor:e,children:t})=>O.jsx(_Z.LocalizationProvider,{dateAdapter:fUn,adapterLocale:dUn,children:O.jsx(Tpt,{children:O.jsx(WUn,{color:e,children:O.jsx(Tzn,{children:t})})})}),H1u=({children:e,color:t,direction:n="ltr",themeMode:a="light"})=>{const r=o.useMemo(()=>({palette:jUn(t),typography:BUn,shape:{borderRadius:8},direction:n,shadows:IUn(a),customShadows:LUn(a,t)}),[t,n,a]),u=dht(r);return u.components=kUn(u),O.jsxs(Fyt,{theme:u,children:[O.jsx(A.CssBaseline,{}),O.jsx(PUn,{}),e]})},V1u=({themeColor:e,children:t})=>O.jsx(_Z.LocalizationProvider,{dateAdapter:fUn,adapterLocale:dUn,children:O.jsx(Tpt,{children:O.jsx(H1u,{color:e,children:O.jsx(Tzn,{children:t})})})}),F1u=({modalTitle:e="Tem certeza que deseja excluir?",message:t="Essa ação não poderá ser desfeita.",cancelButtonText:n="Cancelar",confirmButtonText:a="Sim, excluir registro",onClose:r,onConfirm:u,confirming:c,...s})=>O.jsxs(A.Dialog,{fullWidth:!0,maxWidth:"xs",...s,onClose:r,children:[O.jsx(A.DialogTitle,{children:e}),O.jsx(A.DialogContent,{children:t}),O.jsxs(A.DialogActions,{children:[O.jsx(A.Button,{variant:"outlined",color:"inherit",onClick:r,size:"large",children:n}),O.jsx(l$n.LoadingButton,{variant:"contained",onClick:u,size:"large",loading:c,children:a})]})]}),Obt=({sx:e})=>O.jsx(A.LinearProgress,{sx:{position:"absolute",top:0,left:0,width:1,zIndex:9999,...e}}),N1u=({children:e,disableExport:t})=>O.jsx(cr.GridToolbarContainer,{sx:{alignItems:"center",padding:"16px 0"},children:O.jsxs(A.Stack,{direction:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:"center",width:1,gap:2,children:[O.jsxs(A.Stack,{direction:"row",flexWrap:"wrap",alignItems:"center",children:[O.jsx(cr.GridToolbarColumnsButton,{}),O.jsx(cr.GridToolbarFilterButton,{}),O.jsx(cr.GridToolbarDensitySelector,{}),!t&&O.jsx(cr.GridToolbarExport,{})]}),O.jsx(A.Stack,{direction:"row",flexWrap:"wrap",children:e})]})}),$Un=A.styled(A.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),T1u=()=>{var f,g;const e=cr.useGridApiContext(),{rowHeight:t,paginationModel:n,initialState:a}=cr.useGridRootProps(),r=(n==null?void 0:n.pageSize)||((g=(f=a==null?void 0:a.pagination)==null?void 0:f.paginationModel)==null?void 0:g.pageSize)||10,u=cr.gridColumnsTotalWidthSelector(e),c=cr.gridColumnPositionsSelector(e),s=o.useMemo(()=>c.filter(_=>_<=u).length,[u,c]),l=e.current.getVisibleColumns().slice(0,s),d=o.useMemo(()=>{const _=[];for(let m=0;m<r;m+=1){for(const v of l)_.push(O.jsx($Un,{sx:{justifyContent:v.align},children:O.jsx(A.Skeleton,{width:"100%"})},`column-${m}-${v.field}`));_.push(O.jsx($Un,{},`fill-${m}`))}return _},[r,l]);return O.jsx(A.Stack,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${l.map(({computedWidth:_})=>`${_}px`).join(" ")} 1fr`,gridAutoRows:t,backgroundColor:"grey.0",borderRadius:1,overflow:"hidden"},children:d})},uvt=({text:e,sx:t})=>O.jsxs(A.Stack,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"grey.0",padding:2,borderRadius:2,"& svg":{width:"100%"},...t},children:[O.jsx(wxn,{}),O.jsx(A.Typography,{variant:"body1",sx:{color:"text.secondary"},children:e})]}),xUn=()=>{const{localeText:{noRowsLabel:e}}=cr.useGridRootProps();return O.jsx(uvt,{text:e,sx:{"& svg":{height:200}}})},CBn=({columns:e,rows:t,loading:n,fetching:a,localeText:r,paginationModel:u={page:0,pageSize:10},rowHeight:c=72,hideFooter:s,sx:l,showToolbar:d,toolbarContent:f,disableExport:g,..._})=>{const m=[{...cr.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],v=o.useCallback(h=>({bottom:h.isLastVisible?0:8}),[]);return O.jsxs(A.Stack,{position:"relative",borderRadius:2,overflow:"hidden",children:[a&&O.jsx(Obt,{sx:{zIndex:1}}),O.jsx(cr.DataGridPremium,{columns:m,rows:t,loading:n,autoHeight:!0,hideFooter:t.length===0?!0:s,rowHeight:c,getRowSpacing:v,slots:{loadingOverlay:T1u,noRowsOverlay:xUn,noResultsOverlay:xUn,toolbar:()=>d&&O.jsx(N1u,{disableExport:g,children:f})},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",filterOperatorIsEmpty:"Vazio",filterOperatorIsNotEmpty:"Preenchido",filterOperatorIsAnyOf:"Qualquer",filterOperatorContains:"Contém",filterOperatorEquals:"Igual",filterOperatorStartsWith:"Começa com",filterOperatorEndsWith:"Termina com",filterOperatorIs:"É",filterOperatorNot:"Não é",filterOperatorAfter:"Depois de",filterOperatorOnOrAfter:"Depois ou igual a",filterOperatorBefore:"Antes de",filterOperatorOnOrBefore:"Antes ou igual a",groupColumn:h=>`Agrupar por ${h}`,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",unpin:"Desafixar",noRowsLabel:"Nenhum registro para ser apresentado",unGroupColumn:h=>`Parar de agrupar por ${h}`,footerRowSelected:h=>`${h} ${h===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"Itens por página",labelDisplayedRows:h=>`${h.from}-${h.to} de ${h.count}`},...r},sx:{...l,"& .MuiDataGrid-virtualScroller, & .MuiDataGrid-virtualScrollerContent":{minHeight:n?c*u.pageSize:c*t.length,...t.length===0&&{height:400}}},..._})]})},Z1u=({children:e,waitBeforeShow:t=500})=>{const[n,a]=o.useState(!1);return o.useEffect(()=>{const r=setTimeout(()=>a(!0),t);return()=>clearTimeout(r)},[t]),n?e:null};var U1u=!!(typeof window<"u"&&window.document&&window.document.createElement),G1u=U1u;const AUn=Rj(G1u);var Wle=function(){return Wle=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},Wle.apply(this,arguments)},$le=null,RUn=null;AUn&&window.addEventListener("resize",function(){RUn!==window.devicePixelRatio&&(RUn=window.devicePixelRatio,$le=null)});function zUn(){if($le===null){if(typeof document>"u")return $le=0,$le;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),$le=n}return $le}function HUn(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function VUn(e){return!e||!e.ownerDocument?document:e.ownerDocument}var FUn=function(e){var t={},n=Array.prototype.reduce.call(e,function(a,r){var u=r.name.match(/data-simplebar-(.+)/);if(u){var c=u[1].replace(/\W+(.)/g,function(s,l){return l.toUpperCase()});switch(r.value){case"true":a[c]=!0;break;case"false":a[c]=!1;break;case void 0:a[c]=!0;break;default:a[c]=r.value}}return a},t);return n};function NUn(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function TUn(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function ZUn(e){return".".concat(e.split(" ").join("."))}var K1u=Object.freeze({__proto__:null,getElementWindow:HUn,getElementDocument:VUn,getOptions:FUn,addClasses:NUn,removeClasses:TUn,classNamesToQuery:ZUn}),Lj=HUn,bBn=VUn,Y1u=FUn,Pj=NUn,Ej=TUn,nr=ZUn,jbt=function(){function e(t,n){n===void 0&&(n={});var a=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=Lj(a.el);a.scrollXTicking||(r.requestAnimationFrame(a.scrollX),a.scrollXTicking=!0),a.scrollYTicking||(r.requestAnimationFrame(a.scrollY),a.scrollYTicking=!0),a.isScrolling||(a.isScrolling=!0,Pj(a.el,a.classNames.scrolling)),a.showScrollbar("x"),a.showScrollbar("y"),a.onStopScrolling()},this.scrollX=function(){a.axis.x.isOverflowing&&a.positionScrollbar("x"),a.scrollXTicking=!1},this.scrollY=function(){a.axis.y.isOverflowing&&a.positionScrollbar("y"),a.scrollYTicking=!1},this._onStopScrolling=function(){Ej(a.el,a.classNames.scrolling),a.options.autoHide&&(a.hideScrollbar("x"),a.hideScrollbar("y")),a.isScrolling=!1},this.onMouseEnter=function(){a.isMouseEntering||(Pj(a.el,a.classNames.mouseEntered),a.showScrollbar("x"),a.showScrollbar("y"),a.isMouseEntering=!0),a.onMouseEntered()},this._onMouseEntered=function(){Ej(a.el,a.classNames.mouseEntered),a.options.autoHide&&(a.hideScrollbar("x"),a.hideScrollbar("y")),a.isMouseEntering=!1},this._onMouseMove=function(r){a.mouseX=r.clientX,a.mouseY=r.clientY,(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseMoveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseMoveForAxis("y")},this.onMouseLeave=function(){a.onMouseMove.cancel(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseLeaveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseLeaveForAxis("y"),a.mouseX=-1,a.mouseY=-1},this._onWindowResize=function(){a.scrollbarWidth=a.getScrollbarWidth(),a.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!a.axis.x.track.el||!a.axis.y.track.el||!a.axis.x.scrollbar.el||!a.axis.y.scrollbar.el)){var u,c;a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&(u=a.isWithinBounds(a.axis.x.track.rect)),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&(c=a.isWithinBounds(a.axis.y.track.rect)),(u||c)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(u&&(a.axis.x.scrollbar.rect=a.axis.x.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.x.scrollbar.rect)?a.onDragStart(r,"x"):a.onTrackClick(r,"x")),c&&(a.axis.y.scrollbar.rect=a.axis.y.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.scrollbar.rect)?a.onDragStart(r,"y"):a.onTrackClick(r,"y"))))}},this.drag=function(r){var u,c,s,l,d,f,g,_,m,v,h;if(!(!a.draggedAxis||!a.contentWrapperEl)){var C,p=a.axis[a.draggedAxis].track,y=(c=(u=p.rect)===null||u===void 0?void 0:u[a.axis[a.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,S=a.axis[a.draggedAxis].scrollbar,w=(l=(s=a.contentWrapperEl)===null||s===void 0?void 0:s[a.axis[a.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,j=parseInt((f=(d=a.elStyles)===null||d===void 0?void 0:d[a.axis[a.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);r.preventDefault(),r.stopPropagation(),a.draggedAxis==="y"?C=r.pageY:C=r.pageX;var b=C-((_=(g=p.rect)===null||g===void 0?void 0:g[a.axis[a.draggedAxis].offsetAttr])!==null&&_!==void 0?_:0)-a.axis[a.draggedAxis].dragOffset;b=a.draggedAxis==="x"&&a.isRtl?((v=(m=p.rect)===null||m===void 0?void 0:m[a.axis[a.draggedAxis].sizeAttr])!==null&&v!==void 0?v:0)-S.size-b:b;var M=b/(y-S.size),P=M*(w-j);a.draggedAxis==="x"&&a.isRtl&&(P=!((h=e.getRtlHelpers())===null||h===void 0)&&h.isScrollingToNegative?-P:P),a.contentWrapperEl[a.axis[a.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(r){var u=bBn(a.el),c=Lj(a.el);r.preventDefault(),r.stopPropagation(),Ej(a.el,a.classNames.dragging),u.removeEventListener("mousemove",a.drag,!0),u.removeEventListener("mouseup",a.onEndDrag,!0),a.removePreventClickId=c.setTimeout(function(){u.removeEventListener("click",a.preventClick,!0),u.removeEventListener("dblclick",a.preventClick,!0),a.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=t,this.options=Wle(Wle({},e.defaultOptions),n),this.classNames=Wle(Wle({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=FTn(this._onMouseMove,64),this.onWindowResize=Ymt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ymt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ymt(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,a=n==null?void 0:n.firstElementChild;if(!a)return null;document.body.appendChild(n),n.scrollLeft=0;var r=e.getOffset(n),u=e.getOffset(a);n.scrollLeft=-999;var c=e.getOffset(a);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:r.left!==u.left,isScrollingToNegative:u.left!==c.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:zUn()}catch{return zUn()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),a=bBn(t),r=Lj(t);return{top:n.top+(r.pageYOffset||a.documentElement.scrollTop),left:n.left+(r.pageXOffset||a.documentElement.scrollLeft)}},e.prototype.init=function(){AUn&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(nr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(nr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(nr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(nr(this.classNames.offset)),this.maskEl=this.el.querySelector(nr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,nr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(nr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(nr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(nr(this.classNames.track)).concat(nr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(nr(this.classNames.track)).concat(nr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(nr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(nr(this.classNames.scrollbar)))||null,this.options.autoHide||(Pj(this.axis.x.scrollbar.el,this.classNames.visible),Pj(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,a=Lj(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),a.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,u=a.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){r&&a.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),a.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new a.MutationObserver(function(){a.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Lj(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,a=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||n>0,u=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=a?"auto":"100%",this.placeholderEl.style.width=r?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,_=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>u-_,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,a;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[t].scrollSizeAttr],u=(a=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&a!==void 0?a:0,c=u/r,s;return s=Math.max(~~(c*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var n,a,r;t===void 0&&(t="y");var u=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((a=e.getRtlHelpers())===null||a===void 0)&&a.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?d:-d);var f=d/(c-l),g=~~((s-u.size)*f);g=t==="x"&&this.isRtl?-g+(s-u.size):g,u.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,a=this.axis[t].scrollbar.el;!n||!a||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?a.style.display="block":a.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Pj(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ej(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Pj(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Pj(n.scrollbar.el,this.classNames.hover):Ej(n.scrollbar.el,this.classNames.hover)):(Ej(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ej(this.axis[t].track.el,this.classNames.hover),Ej(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var a;n===void 0&&(n="y");var r=bBn(this.el),u=Lj(this.el),c=this.axis[n].scrollbar,s=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=s-(((a=c.rect)===null||a===void 0?void 0:a[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Pj(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var a=this,r,u,c,s;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Lj(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,g=(u=(r=f.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])!==null&&u!==void 0?u:0,_=parseInt((s=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&s!==void 0?s:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],v=n==="y"?this.mouseY-g:this.mouseX-g,h=v<0?-1:1,C=h===-1?m-_:m+_,p=40,y=function(){a.contentWrapperEl&&(h===-1?m>C&&(m-=p,a.contentWrapperEl[a.axis[n].scrollOffsetAttr]=m,d.requestAnimationFrame(y)):m<C&&(m+=p,a.contentWrapperEl[a.axis[n].scrollOffsetAttr]=m,d.requestAnimationFrame(y)))};y()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Lj(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var a=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(r){return a.call(r,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Y1u,e.helpers=K1u,e}(),Xr=function(){return Xr=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},Xr.apply(this,arguments)};function X1u(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}var UUn=V.forwardRef(function(e,t){var n=e.children,a=e.scrollableNodeProps,r=a===void 0?{}:a,u=X1u(e,["children","scrollableNodeProps"]),c=V.useRef(),s=V.useRef(),l=V.useRef(),d={},f={};Object.keys(u).forEach(function(m){Object.prototype.hasOwnProperty.call(jbt.defaultOptions,m)?d[m]=u[m]:f[m]=u[m]});var g=Xr(Xr({},jbt.defaultOptions.classNames),d.classNames),_=Xr(Xr({},r),{className:"".concat(g.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||jbt.defaultOptions.ariaLabel});return V.useEffect(function(){var m;return s.current=_.ref?_.ref.current:s.current,c.current&&(m=new jbt(c.current,Xr(Xr(Xr({},d),s.current&&{scrollableNode:s.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),V.createElement("div",Xr({"data-simplebar":"init",ref:c},f),V.createElement("div",{className:g.wrapper},V.createElement("div",{className:g.heightAutoObserverWrapperEl},V.createElement("div",{className:g.heightAutoObserverEl})),V.createElement("div",{className:g.mask},V.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:s,scrollableNodeProps:Xr(Xr({},_),{ref:s}),contentNodeRef:l,contentNodeProps:{className:g.contentEl,ref:l}}):V.createElement("div",Xr({},_),V.createElement("div",{className:g.contentEl},n)))),V.createElement("div",{className:g.placeholder})),V.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},V.createElement("div",{className:g.scrollbar})),V.createElement("div",{className:"".concat(g.track," simplebar-vertical")},V.createElement("div",{className:g.scrollbar})))});UUn.displayName="SimpleBar";const Q1u=zt("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),J1u=zt(UUn)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:ve(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),q1u=({children:e,sx:t,...n})=>{const a=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)?O.jsx(A.Box,{sx:{overflowX:"auto",...t},...n,children:e}):O.jsx(Q1u,{children:O.jsx(J1u,{clickOnTrack:!1,sx:t,...n,children:e})})},ZT=o.memo(q1u),eiu=A.styled(A.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",borderBottom:`1px solid ${e.palette.grey[300]}`,padding:"22px 20px",gap:16})),tiu=A.styled(A.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",gap:8,flex:1,fontSize:e.typography.subtitle1.fontSize,fontWeight:e.typography.subtitle1.fontWeight,fontFamily:e.typography.fontFamily})),niu=({headerTitle:e,onClose:t,children:n,contentProps:a,maxWidth:r=684,...u})=>O.jsxs(A.Drawer,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:r}},onClose:t,...u,children:[O.jsxs(eiu,{children:[O.jsx(A.IconButton,{size:"small",onClick:t,children:O.jsx(we,{icon:"CLOSE_MARK_BUTTON",width:18})}),O.jsx(tiu,{children:e})]}),O.jsx(ZT,{children:O.jsx(A.Stack,{p:3,...a,children:n})})]}),riu=()=>O.jsxs("svg",{width:"270",height:"240",viewBox:"0 0 270 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M134.533 239.195C60.232 239.195 0 235.603 0 231.173C0 226.744 60.232 223.152 134.533 223.152C208.835 223.152 269.067 226.744 269.067 231.173C269.067 235.603 208.835 239.195 134.533 239.195Z",fill:"#989898"}),O.jsx("path",{d:"M3.30371 156.829V184.359C3.30371 186.993 5.45705 189.141 8.08905 189.141H260.978C263.614 189.141 265.764 186.993 265.764 184.359V156.829H3.30371Z",fill:"#CFCFCF"}),O.jsx("path",{d:"M265.764 4.78535C265.764 2.15202 263.615 0 260.979 0H8.08933C5.45599 0 3.30266 2.15202 3.30266 4.78535V156.829H265.764L265.764 4.78535Z",fill:"#989898"}),O.jsx("path",{d:"M180.226 216.856H89.9502V189.14H180.226V216.856Z",fill:"#D8D7D5"}),O.jsx("path",{d:"M200.68 229.833H68.2568V216.859H200.68V229.833Z",fill:"#CFCFCF"}),O.jsx("path",{d:"M180.226 199.157H89.9502V189.14H180.226V199.157Z",fill:"#BCBBB9"}),O.jsx("path",{d:"M16.872 13.652H252.247V142.804H16.872V13.652Z",fill:"white"}),O.jsx("ellipse",{cx:"95.0798",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),O.jsx("ellipse",{cx:"88.8218",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),O.jsx("ellipse",{cx:"180.614",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),O.jsx("ellipse",{cx:"172.965",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),O.jsx("path",{d:"M122.896 88.4174C128.459 99.5438 140.281 97.4576 145.148 88.4174",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),O.jsx("path",{d:"M168.792 52.952C175.051 57.8198 175.746 58.5152 183.395 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),O.jsx("path",{d:"M99.9473 52.952C93.6887 57.8198 92.9933 58.5152 85.3439 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"})]}),aiu=({title:e,description:t,onClickButton:n,textButton:a="Atualizar"})=>O.jsxs(A.Stack,{height:1,width:1,alignItems:"center",justifyContent:"center",textAlign:"center",gap:3,children:[O.jsx(riu,{}),O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"h5",color:"grey.600",children:e}),O.jsx(A.Typography,{variant:"body1",color:"grey.600",children:t})]}),O.jsx(A.Button,{variant:"contained",size:"large",startIcon:O.jsx(we,{icon:"REFRESH_CHANGE"}),onClick:n,children:a})]}),cvt=/^[a-z0-9]+(-[a-z0-9]+)*$/,wbt=(e,t,n,a="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;a=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const s=r.pop(),l=r.pop(),d={provider:r.length>0?r[0]:a,prefix:l,name:s};return t&&!Mbt(d)?null:d}const u=r[0],c=u.split("-");if(c.length>1){const s={provider:a,prefix:c.shift(),name:c.join("-")};return t&&!Mbt(s)?null:s}if(n&&a===""){const s={provider:a,prefix:"",name:u};return t&&!Mbt(s,n)?null:s}return null},Mbt=(e,t)=>e?!!((e.provider===""||e.provider.match(cvt))&&(t&&e.prefix===""||e.prefix.match(cvt))&&e.name.match(cvt)):!1,GUn=Object.freeze({left:0,top:0,width:16,height:16}),Lbt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),yBn=Object.freeze({...GUn,...Lbt}),pBn=Object.freeze({...yBn,body:"",hidden:!1});function iiu(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const a=((e.rotate||0)+(t.rotate||0))%4;return a&&(n.rotate=a),n}function KUn(e,t){const n=iiu(e,t);for(const a in pBn)a in Lbt?a in e&&!(a in n)&&(n[a]=Lbt[a]):a in t?n[a]=t[a]:a in e&&(n[a]=e[a]);return n}function oiu(e,t){const n=e.icons,a=e.aliases||Object.create(null),r=Object.create(null);function u(c){if(n[c])return r[c]=[];if(!(c in r)){r[c]=null;const s=a[c]&&a[c].parent,l=s&&u(s);l&&(r[c]=[s].concat(l))}return r[c]}return(t||Object.keys(n).concat(Object.keys(a))).forEach(u),r}function uiu(e,t,n){const a=e.icons,r=e.aliases||Object.create(null);let u={};function c(s){u=KUn(a[s]||r[s],u)}return c(t),n.forEach(c),KUn(e,u)}function YUn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const a=oiu(e);for(const r in a){const u=a[r];u&&(t(r,uiu(e,r,u)),n.push(r))}return n}const ciu={provider:"",aliases:{},not_found:{},...GUn};function OBn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function XUn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!OBn(e,ciu))return null;const n=t.icons;for(const r in n){const u=n[r];if(!r.match(cvt)||typeof u.body!="string"||!OBn(u,pBn))return null}const a=t.aliases||Object.create(null);for(const r in a){const u=a[r],c=u.parent;if(!r.match(cvt)||typeof c!="string"||!n[c]&&!a[c]||!OBn(u,pBn))return null}return t}const QUn=Object.create(null);function liu(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function UT(e,t){const n=QUn[e]||(QUn[e]=Object.create(null));return n[t]||(n[t]=liu(e,t))}function jBn(e,t){return XUn(t)?YUn(t,(n,a)=>{a?e.icons[n]=a:e.missing.add(n)}):[]}function siu(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let lvt=!1;function JUn(e){return typeof e=="boolean"&&(lvt=e),lvt}function fiu(e){const t=typeof e=="string"?wbt(e,!0,lvt):e;if(t){const n=UT(t.provider,t.prefix),a=t.name;return n.icons[a]||(n.missing.has(a)?null:void 0)}}function diu(e,t){const n=wbt(e,!0,lvt);if(!n)return!1;const a=UT(n.provider,n.prefix);return siu(a,n.name,t)}function giu(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),lvt&&!t&&!e.prefix){let r=!1;return XUn(e)&&(e.prefix="",YUn(e,(u,c)=>{c&&diu(u,c)&&(r=!0)})),r}const n=e.prefix;if(!Mbt({provider:t,prefix:n,name:"a"}))return!1;const a=UT(t,n);return!!jBn(a,e)}const qUn=Object.freeze({width:null,height:null}),eGn=Object.freeze({...qUn,...Lbt}),_iu=/(-?[0-9.]*[0-9]+[0-9.]*)/g,miu=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function tGn(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const a=e.split(_iu);if(a===null||!a.length)return e;const r=[];let u=a.shift(),c=miu.test(u);for(;;){if(c){const s=parseFloat(u);isNaN(s)?r.push(u):r.push(Math.ceil(s*t*n)/n)}else r.push(u);if(u=a.shift(),u===void 0)return r.join("");c=!c}}const viu=e=>e==="unset"||e==="undefined"||e==="none";function hiu(e,t){const n={...yBn,...e},a={...eGn,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let u=n.body;[n,a].forEach(v=>{const h=[],C=v.hFlip,p=v.vFlip;let y=v.rotate;C?p?y+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):p&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let S;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:S=r.height/2+r.top,h.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:S=r.width/2+r.left,h.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}y%2===1&&(r.left!==r.top&&(S=r.left,r.left=r.top,r.top=S),r.width!==r.height&&(S=r.width,r.width=r.height,r.height=S)),h.length&&(u='<g transform="'+h.join(" ")+'">'+u+"</g>")});const c=a.width,s=a.height,l=r.width,d=r.height;let f,g;c===null?(g=s===null?"1em":s==="auto"?d:s,f=tGn(g,l/d)):(f=c==="auto"?l:c,g=s===null?tGn(f,d/l):s==="auto"?d:s);const _={},m=(v,h)=>{viu(h)||(_[v]=h.toString())};return m("width",f),m("height",g),_.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+d.toString(),{attributes:_,body:u}}const Ciu=/\sid="(\S+)"/g,biu="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yiu=0;function piu(e,t=biu){const n=[];let a;for(;a=Ciu.exec(e);)n.push(a[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(u=>{const c=typeof t=="function"?t(u):t+(yiu++).toString(),s=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+c+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const wBn=Object.create(null);function Oiu(e,t){wBn[e]=t}function MBn(e){return wBn[e]||wBn[""]}function LBn(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 PBn=Object.create(null),svt=["https://api.simplesvg.com","https://api.unisvg.com"],Pbt=[];for(;svt.length>0;)svt.length===1||Math.random()>.5?Pbt.push(svt.shift()):Pbt.push(svt.pop());PBn[""]=LBn({resources:["https://api.iconify.design"].concat(Pbt)});function jiu(e,t){const n=LBn(t);return n===null?!1:(PBn[e]=n,!0)}function EBn(e){return PBn[e]}let nGn=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function wiu(e,t){const n=EBn(e);if(!n)return 0;let a;if(!n.maxURL)a=0;else{let r=0;n.resources.forEach(c=>{r=Math.max(r,c.length)});const u=t+".json?icons=";a=n.maxURL-r-n.path.length-u.length}return a}function Miu(e){return e===404}const Liu=(e,t,n)=>{const a=[],r=wiu(e,t),u="icons";let c={type:u,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,d)=>{s+=l.length+1,s>=r&&d>0&&(a.push(c),c={type:u,provider:e,prefix:t,icons:[]},s=l.length),c.icons.push(l)}),a.push(c),a};function Piu(e){if(typeof e=="string"){const t=EBn(e);if(t)return t.path}return"/"}const Eiu={prepare:Liu,send:(e,t,n)=>{if(!nGn){n("abort",424);return}let a=Piu(t.provider);switch(t.type){case"icons":{const u=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});a+=u+".json?"+l.toString();break}case"custom":{const u=t.uri;a+=u.slice(0,1)==="/"?u.slice(1):u;break}default:n("abort",400);return}let r=503;nGn(e+a).then(u=>{const c=u.status;if(c!==200){setTimeout(()=>{n(Miu(c)?"abort":"next",c)});return}return r=501,u.json()}).then(u=>{if(typeof u!="object"||u===null){setTimeout(()=>{u===404?n("abort",u):n("next",r)});return}setTimeout(()=>{n("success",u)})}).catch(()=>{n("next",r)})}};function kiu(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,u)=>r.provider!==u.provider?r.provider.localeCompare(u.provider):r.prefix!==u.prefix?r.prefix.localeCompare(u.prefix):r.name.localeCompare(u.name));let a={provider:"",prefix:"",name:""};return e.forEach(r=>{if(a.name===r.name&&a.prefix===r.prefix&&a.provider===r.provider)return;a=r;const u=r.provider,c=r.prefix,s=r.name,l=n[u]||(n[u]=Object.create(null)),d=l[c]||(l[c]=UT(u,c));let f;s in d.icons?f=t.loaded:c===""||d.missing.has(s)?f=t.missing:f=t.pending;const g={provider:u,prefix:c,name:s};f.push(g)}),t}function rGn(e,t){e.forEach(n=>{const a=n.loaderCallbacks;a&&(n.loaderCallbacks=a.filter(r=>r.id!==t))})}function Siu(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const a=e.provider,r=e.prefix;t.forEach(u=>{const c=u.icons,s=c.pending.length;c.pending=c.pending.filter(l=>{if(l.prefix!==r)return!0;const d=l.name;if(e.icons[d])c.loaded.push({provider:a,prefix:r,name:d});else if(e.missing.has(d))c.missing.push({provider:a,prefix:r,name:d});else return n=!0,!0;return!1}),c.pending.length!==s&&(n||rGn([e],u.id),u.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),u.abort))})}))}let Diu=0;function Iiu(e,t,n){const a=Diu++,r=rGn.bind(null,n,a);if(!t.pending.length)return r;const u={id:a,icons:t,callback:e,abort:r};return n.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(u)}),r}function Biu(e,t=!0,n=!1){const a=[];return e.forEach(r=>{const u=typeof r=="string"?wbt(r,t,n):r;u&&a.push(u)}),a}var Wiu={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $iu(e,t,n,a){const r=e.resources.length,u=e.random?Math.floor(Math.random()*r):e.index;let c;if(e.random){let b=e.resources.slice(0);for(c=[];b.length>1;){const M=Math.floor(Math.random()*b.length);c.push(b[M]),b=b.slice(0,M).concat(b.slice(M+1))}c=c.concat(b)}else c=e.resources.slice(u).concat(e.resources.slice(0,u));const s=Date.now();let l="pending",d=0,f,g=null,_=[],m=[];typeof a=="function"&&m.push(a);function v(){g&&(clearTimeout(g),g=null)}function h(){l==="pending"&&(l="aborted"),v(),_.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),_=[]}function C(b,M){M&&(m=[]),typeof b=="function"&&m.push(b)}function p(){return{startTime:s,payload:t,status:l,queriesSent:d,queriesPending:_.length,subscribe:C,abort:h}}function y(){l="failed",m.forEach(b=>{b(void 0,f)})}function S(){_.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),_=[]}function w(b,M,P){const k=M!=="success";switch(_=_.filter(W=>W!==b),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(M==="abort"){f=P,y();return}if(k){f=P,_.length||(c.length?j():y());return}if(v(),S(),!e.random){const W=e.resources.indexOf(b.resource);W!==-1&&W!==e.index&&(e.index=W)}l="completed",m.forEach(W=>{W(P)})}function j(){if(l!=="pending")return;v();const b=c.shift();if(b===void 0){if(_.length){g=setTimeout(()=>{v(),l==="pending"&&(S(),y())},e.timeout);return}y();return}const M={status:"pending",resource:b,callback:(P,k)=>{w(M,P,k)}};_.push(M),d++,g=setTimeout(j,e.rotate),n(b,t,M.callback)}return setTimeout(j),p}function aGn(e){const t={...Wiu,...e};let n=[];function a(){n=n.filter(s=>s().status==="pending")}function r(s,l,d){const f=$iu(t,s,l,(g,_)=>{a(),d&&d(g,_)});return n.push(f),f}function u(s){return n.find(l=>s(l))||null}return{query:r,find:u,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:a}}function iGn(){}const kBn=Object.create(null);function xiu(e){if(!kBn[e]){const t=EBn(e);if(!t)return;const n=aGn(t),a={config:t,redundancy:n};kBn[e]=a}return kBn[e]}function Aiu(e,t,n){let a,r;if(typeof e=="string"){const u=MBn(e);if(!u)return n(void 0,424),iGn;r=u.send;const c=xiu(e);c&&(a=c.redundancy)}else{const u=LBn(e);if(u){a=aGn(u);const c=e.resources?e.resources[0]:"",s=MBn(c);s&&(r=s.send)}}return!a||!r?(n(void 0,424),iGn):a.query(t,r,n)().abort}const oGn="iconify2",fvt="iconify",uGn=fvt+"-count",cGn=fvt+"-version",lGn=36e5,Riu=168;function SBn(e,t){try{return e.getItem(t)}catch{}}function DBn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function sGn(e,t){try{e.removeItem(t)}catch{}}function IBn(e,t){return DBn(e,uGn,t.toString())}function BBn(e){return parseInt(SBn(e,uGn))||0}const Ebt={local:!0,session:!0},fGn={local:new Set,session:new Set};let WBn=!1;function ziu(e){WBn=e}let kbt=typeof window>"u"?{}:window;function dGn(e){const t=e+"Storage";try{if(kbt&&kbt[t]&&typeof kbt[t].length=="number")return kbt[t]}catch{}Ebt[e]=!1}function gGn(e,t){const n=dGn(e);if(!n)return;const a=SBn(n,cGn);if(a!==oGn){if(a){const s=BBn(n);for(let l=0;l<s;l++)sGn(n,fvt+l.toString())}DBn(n,cGn,oGn),IBn(n,0);return}const r=Math.floor(Date.now()/lGn)-Riu,u=s=>{const l=fvt+s.toString(),d=SBn(n,l);if(typeof d=="string"){try{const f=JSON.parse(d);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>r&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,s))return!0}catch{}sGn(n,l)}};let c=BBn(n);for(let s=c-1;s>=0;s--)u(s)||(s===c-1?(c--,IBn(n,c)):fGn[e].add(s))}function _Gn(){if(!WBn){ziu(!0);for(const e in Ebt)gGn(e,t=>{const n=t.data,a=t.provider,r=n.prefix,u=UT(a,r);if(!jBn(u,n).length)return!1;const c=n.lastModified||-1;return u.lastModifiedCached=u.lastModifiedCached?Math.min(u.lastModifiedCached,c):c,!0})}}function Hiu(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const a in Ebt)gGn(a,r=>{const u=r.data;return r.provider!==e.provider||u.prefix!==e.prefix||u.lastModified===t});return!0}function Viu(e,t){WBn||_Gn();function n(a){let r;if(!Ebt[a]||!(r=dGn(a)))return;const u=fGn[a];let c;if(u.size)u.delete(c=Array.from(u).shift());else if(c=BBn(r),!IBn(r,c+1))return;const s={cached:Math.floor(Date.now()/lGn),provider:e.provider,data:t};return DBn(r,fvt+c.toString(),JSON.stringify(s))}t.lastModified&&!Hiu(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function mGn(){}function Fiu(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Siu(e)}))}function Niu(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:n,prefix:a}=e,r=e.iconsToLoad;delete e.iconsToLoad;let u;if(!r||!(u=MBn(n)))return;u.prepare(n,a,r).forEach(s=>{Aiu(n,s,l=>{if(typeof l!="object")s.icons.forEach(d=>{e.missing.add(d)});else try{const d=jBn(e,l);if(!d.length)return;const f=e.pendingIcons;f&&d.forEach(g=>{f.delete(g)}),Viu(e,l)}catch(d){console.error(d)}Fiu(e)})})}))}const Tiu=(e,t)=>{const n=Biu(e,!0,JUn()),a=kiu(n);if(!a.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(a.loaded,a.missing,a.pending,mGn)}),()=>{l=!1}}const r=Object.create(null),u=[];let c,s;return a.pending.forEach(l=>{const{provider:d,prefix:f}=l;if(f===s&&d===c)return;c=d,s=f,u.push(UT(d,f));const g=r[d]||(r[d]=Object.create(null));g[f]||(g[f]=[])}),a.pending.forEach(l=>{const{provider:d,prefix:f,name:g}=l,_=UT(d,f),m=_.pendingIcons||(_.pendingIcons=new Set);m.has(g)||(m.add(g),r[d][f].push(g))}),u.forEach(l=>{const{provider:d,prefix:f}=l;r[d][f].length&&Niu(l,r[d][f])}),t?Iiu(t,a,u):mGn};function Ziu(e,t){const n={...e};for(const a in t){const r=t[a],u=typeof r;a in qUn?(r===null||r&&(u==="string"||u==="number"))&&(n[a]=r):u===typeof n[a]&&(n[a]=a==="rotate"?r%4:r)}return n}const Uiu=/[\s,]+/;function Giu(e,t){t.split(Uiu).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Kiu(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function a(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:a(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let u=parseFloat(e.slice(0,e.length-n.length));return isNaN(u)?0:(u=u/r,u%1===0?a(u):0)}}return t}function Yiu(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in t)n+=" "+a+'="'+t[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Xiu(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Qiu(e){return"data:image/svg+xml,"+Xiu(e)}function Jiu(e){return'url("'+Qiu(e)+'")'}let dvt;function qiu(){try{dvt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{dvt=null}}function eou(e){return dvt===void 0&&qiu(),dvt?dvt.createHTML(e):e}const vGn={...eGn,inline:!1},tou={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},nou={display:"inline-block"},$Bn={backgroundColor:"currentColor"},hGn={backgroundColor:"transparent"},CGn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},bGn={WebkitMask:$Bn,mask:$Bn,background:hGn};for(const e in bGn){const t=bGn[e];for(const n in CGn)t[e+n]=CGn[n]}const rou={...vGn,inline:!0};function yGn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const aou=(e,t,n,a)=>{const r=n?rou:vGn,u=Ziu(r,t),c=t.mode||"svg",s={},l=t.style||{},d={...c==="svg"?tou:{},ref:a};for(let p in t){const y=t[p];if(y!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":u[p]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Giu(u,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?u[p]=Kiu(y):typeof y=="number"&&(u[p]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete d["aria-hidden"];break;default:r[p]===void 0&&(d[p]=y)}}const f=hiu(e,u),g=f.attributes;if(u.inline&&(s.verticalAlign="-0.125em"),c==="svg"){d.style={...s,...l},Object.assign(d,g);let p=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:eou(piu(f.body,y?()=>y+"ID"+p++:"iconifyReact"))},o.createElement("svg",d)}const{body:_,width:m,height:v}=e,h=c==="mask"||(c==="bg"?!1:_.indexOf("currentColor")!==-1),C=Yiu(_,{...g,width:m+"",height:v+""});return d.style={...s,"--svg":Jiu(C),width:yGn(g.width),height:yGn(g.height),...nou,...h?$Bn:hGn,...l},o.createElement("span",d)};if(JUn(!0),Oiu("",Eiu),typeof document<"u"&&typeof window<"u"){_Gn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(a=>{try{(typeof a!="object"||a===null||a instanceof Array||typeof a.icons!="object"||typeof a.prefix!="string"||!giu(a))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const a="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;jiu(n,r)||console.error(a)}catch{console.error(a)}}}}class pGn extends o.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 n=this.state,a=this.props.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:a});return}let r;if(typeof a!="string"||(r=wbt(a,!1,!0))===null){this._abortLoading(),this._setData(null);return}const u=fiu(r);if(!u){(!this._loading||this._loading.name!==a)&&(this._abortLoading(),this._icon="",this._setData(null),u!==null&&(this._loading={name:a,abort:Tiu([r],this._checkIcon.bind(this,!1))}));return}if(this._icon!==a||n.icon===null){this._abortLoading(),this._icon=a;const c=["iconify"];r.prefix!==""&&c.push("iconify--"+r.prefix),r.provider!==""&&c.push("iconify--"+r.provider),this._setData({data:u,classes:c}),this.props.onLoad&&this.props.onLoad(a)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:o.createElement("span",{});let a=t;return n.classes&&(a={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),aou({...yBn,...n.data},a,t._inline,t._ref)}}const iou=o.forwardRef(function(t,n){const a={...t,_ref:n,_inline:!1};return o.createElement(pGn,a)});o.forwardRef(function(t,n){const a={...t,_ref:n,_inline:!0};return o.createElement(pGn,a)});const OGn=o.forwardRef(({icon:e,width:t=20,sx:n,...a},r)=>O.jsx(A.Box,{ref:r,component:iou,icon:e,sx:{width:t,height:t,...n},...a}));OGn.displayName="Iconify";/*!
|
|
35382
|
+
`));super({locale:t??gbt,formats:n,longFormatters:dru}),this.parseISO=a=>Gnu(a),this.toISO=a=>lru(a,{format:"extended"}),this.parse=(a,r)=>a===""?null:cUn(a,r,new Date,{locale:this.locale}),this.isValid=a=>aBn(this.date(a)),this.format=(a,r)=>this.formatByString(a,this.formats[r]),this.formatByString=(a,r)=>_bt(a,r,{locale:this.locale}),this.getDiff=(a,r,u)=>{switch(u){case"years":return deu(a,this.date(r));case"quarters":return veu(a,this.date(r));case"months":return tBn(a,this.date(r));case"weeks":return beu(a,this.date(r));case"days":return zZn(a,this.date(r));case"hours":return peu(a,this.date(r));case"minutes":return Oeu(a,this.date(r));case"seconds":return HZn(a,this.date(r));default:return fbt(a,this.date(r))}},this.isEqual=(a,r)=>a===null&&r===null?!0:Rtu(a,r),this.isSameYear=(a,r)=>Htu(a,r),this.isSameMonth=(a,r)=>Vtu(a,r),this.isSameDay=(a,r)=>ztu(a,r),this.isSameHour=(a,r)=>Ftu(a,r),this.isAfter=(a,r)=>uBn(a,r),this.isAfterYear=(a,r)=>uBn(a,rBn(r)),this.isAfterDay=(a,r)=>uBn(a,qIn(r)),this.isBefore=(a,r)=>nvt(a,r),this.isBeforeYear=(a,r)=>nvt(a,hbt(r)),this.isBeforeDay=(a,r)=>nvt(a,Lle(r)),this.isWithinRange=(a,[r,u])=>sru(a,{start:r,end:u}),this.startOfYear=a=>hbt(a),this.startOfMonth=a=>lUn(a),this.startOfWeek=a=>TT(a,{locale:this.locale}),this.startOfDay=a=>Lle(a),this.endOfYear=a=>rBn(a),this.endOfMonth=a=>eBn(a),this.endOfWeek=a=>nBn(a,{locale:this.locale}),this.endOfDay=a=>qIn(a),this.addYears=(a,r)=>xZn(a,r),this.addMonths=(a,r)=>cbt(a,r),this.addWeeks=(a,r)=>seu(a,r),this.addDays=(a,r)=>obt(a,r),this.addHours=(a,r)=>leu(a,r),this.addMinutes=(a,r)=>ueu(a,r),this.addSeconds=(a,r)=>ieu(a,r),this.getYear=a=>Atu(a),this.getMonth=a=>Stu(a),this.getDate=a=>Ptu(a),this.getHours=a=>Etu(a),this.getMinutes=a=>ktu(a),this.getSeconds=a=>Dtu(a),this.getMilliseconds=a=>Itu(a),this.setYear=(a,r)=>Unu(a,r),this.setMonth=(a,r)=>Nnu(a,r),this.setDate=(a,r)=>Hnu(a,r),this.setHours=(a,r)=>Vnu(a,r),this.setMinutes=(a,r)=>Fnu(a,r),this.setSeconds=(a,r)=>Tnu(a,r),this.setMilliseconds=(a,r)=>Znu(a,r),this.getDaysInMonth=a=>JZn(a),this.getNextMonth=a=>cbt(a,1),this.getPreviousMonth=a=>cbt(a,-1),this.getMonthArray=a=>{const u=[hbt(a)];for(;u.length<12;){const c=u[u.length-1];u.push(this.getNextMonth(c))}return u},this.mergeDateAndTime=(a,r)=>this.setSeconds(this.setMinutes(this.setHours(a,this.getHours(r)),this.getMinutes(r)),this.getSeconds(r)),this.getWeekdays=()=>{const a=new Date;return jeu({start:TT(a,{locale:this.locale}),end:nBn(a,{locale:this.locale})}).map(r=>this.formatByString(r,"EEEEEE"))},this.getWeekArray=a=>{const r=TT(lUn(a),{locale:this.locale}),u=nBn(eBn(a),{locale:this.locale});let c=0,s=r;const l=[];for(;nvt(s,u);){const d=Math.floor(c/7);l[d]=l[d]||[],l[d].push(s),s=obt(s,1),c+=1}return l},this.getWeekNumber=a=>xtu(a,{locale:this.locale}),this.getYearRange=(a,r)=>{const u=hbt(a),c=rBn(r),s=[];let l=u;for(;nvt(l,c);)s.push(l),l=xZn(l,1);return s}}}var vru={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"}},hru=function(t,n,a){var r,u=vru[t];return typeof u=="string"?r=u:n===1?r=u.one:r=u.other.replace("{{count}}",String(n)),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"em "+r:"há "+r:r};const Cru=hru;var bru={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},yru={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pru={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Oru={date:kle({formats:bru,defaultWidth:"full"}),time:kle({formats:yru,defaultWidth:"full"}),dateTime:kle({formats:pru,defaultWidth:"full"})};const jru=Oru;var wru={lastWeek:function(t){var n=t.getUTCDay(),a=n===0||n===6?"último":"última";return"'"+a+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Mru=function(t,n,a,r){var u=wru[t];return typeof u=="function"?u(n):u};const Lru=Mru;var Pru={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Eru={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},kru={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"]},Sru={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"]},Dru={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"}},Iru={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"}},Bru=function(t,n){var a=Number(t);return(n==null?void 0:n.unit)==="week"?a+"ª":a+"º"},Wru={ordinalNumber:Bru,era:qc({values:Pru,defaultWidth:"wide"}),quarter:qc({values:Eru,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qc({values:kru,defaultWidth:"wide"}),day:qc({values:Sru,defaultWidth:"wide"}),dayPeriod:qc({values:Dru,defaultWidth:"wide",formattingValues:Iru,defaultFormattingWidth:"wide"})};const $ru=Wru;var xru=/^(\d+)[ºªo]?/i,Aru=/\d+/i,Rru={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},zru={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Hru={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Vru={any:[/1/i,/2/i,/3/i,/4/i]},Fru={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},Nru={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]},Tru={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},Zru={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]},Uru={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},Gru={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}},Kru={ordinalNumber:QZn({matchPattern:xru,parsePattern:Aru,valueCallback:function(t){return parseInt(t,10)}}),era:el({matchPatterns:Rru,defaultMatchWidth:"wide",parsePatterns:zru,defaultParseWidth:"any"}),quarter:el({matchPatterns:Hru,defaultMatchWidth:"wide",parsePatterns:Vru,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:el({matchPatterns:Fru,defaultMatchWidth:"wide",parsePatterns:Nru,defaultParseWidth:"any"}),day:el({matchPatterns:Tru,defaultMatchWidth:"wide",parsePatterns:Zru,defaultParseWidth:"any"}),dayPeriod:el({matchPatterns:Uru,defaultMatchWidth:"any",parsePatterns:Gru,defaultParseWidth:"any"})},Yru={code:"pt-BR",formatDistance:Cru,formatLong:jru,formatRelative:Lru,localize:$ru,match:Kru,options:{weekStartsOn:0,firstWeekContainsDate:1}};const dUn=Yru;var gUn={exports:{}},_Un={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]},mUn={exports:{}},Xru=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")},Qru=Xru,Jru=Array.prototype.concat,qru=Array.prototype.slice,vUn=mUn.exports=function(t){for(var n=[],a=0,r=t.length;a<r;a++){var u=t[a];Qru(u)?n=Jru.call(n,qru.call(u)):n.push(u)}return n};vUn.wrap=function(e){return function(){return e(vUn(arguments))}};var eau=mUn.exports,avt=_Un,ivt=eau,hUn=Object.hasOwnProperty,CUn=Object.create(null);for(var _Bn in avt)hUn.call(avt,_Bn)&&(CUn[avt[_Bn]]=_Bn);var Kr=gUn.exports={to:{},get:{}};Kr.get=function(e){var t=e.substring(0,3).toLowerCase(),n,a;switch(t){case"hsl":n=Kr.get.hsl(e),a="hsl";break;case"hwb":n=Kr.get.hwb(e),a="hwb";break;default:n=Kr.get.rgb(e),a="rgb";break}return n?{model:a,value:n}:null},Kr.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^(\w+)$/,c=[0,0,0,1],s,l,d;if(s=e.match(n)){for(d=s[2],s=s[1],l=0;l<3;l++){var f=l*2;c[l]=parseInt(s.slice(f,f+2),16)}d&&(c[3]=parseInt(d,16)/255)}else if(s=e.match(t)){for(s=s[1],d=s[3],l=0;l<3;l++)c[l]=parseInt(s[l]+s[l],16);d&&(c[3]=parseInt(d+d,16)/255)}else if(s=e.match(a)){for(l=0;l<3;l++)c[l]=parseInt(s[l+1],0);s[4]&&(s[5]?c[3]=parseFloat(s[4])*.01:c[3]=parseFloat(s[4]))}else if(s=e.match(r)){for(l=0;l<3;l++)c[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?c[3]=parseFloat(s[4])*.01:c[3]=parseFloat(s[4]))}else return(s=e.match(u))?s[1]==="transparent"?[0,0,0,0]:hUn.call(avt,s[1])?(c=avt[s[1]],c[3]=1,c):null:null;for(l=0;l<3;l++)c[l]=wj(c[l],0,255);return c[3]=wj(c[3],0,1),c},Kr.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*)?\)$/,n=e.match(t);if(n){var a=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,u=wj(parseFloat(n[2]),0,100),c=wj(parseFloat(n[3]),0,100),s=wj(isNaN(a)?1:a,0,1);return[r,u,c,s]}return null},Kr.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*)?\)$/,n=e.match(t);if(n){var a=parseFloat(n[4]),r=(parseFloat(n[1])%360+360)%360,u=wj(parseFloat(n[2]),0,100),c=wj(parseFloat(n[3]),0,100),s=wj(isNaN(a)?1:a,0,1);return[r,u,c,s]}return null},Kr.to.hex=function(){var e=ivt(arguments);return"#"+bbt(e[0])+bbt(e[1])+bbt(e[2])+(e[3]<1?bbt(Math.round(e[3]*255)):"")},Kr.to.rgb=function(){var e=ivt(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]+")"},Kr.to.rgb.percent=function(){var e=ivt(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+a+"%)":"rgba("+t+"%, "+n+"%, "+a+"%, "+e[3]+")"},Kr.to.hsl=function(){var e=ivt(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},Kr.to.hwb=function(){var e=ivt(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},Kr.to.keyword=function(e){return CUn[e.slice(0,3)]};function wj(e,t,n){return Math.min(Math.max(t,e),n)}function bbt(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var tau=gUn.exports;const ovt=_Un,bUn={};for(const e of Object.keys(ovt))bUn[ovt[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 yUn=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:n}=De[e];delete De[e].channels,delete De[e].labels,Object.defineProperty(De[e],"channels",{value:t}),Object.defineProperty(De[e],"labels",{value:n})}De.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),u=Math.max(t,n,a),c=u-r;let s,l;u===r?s=0:t===u?s=(n-a)/c:n===u?s=2+(a-t)/c:a===u&&(s=4+(t-n)/c),s=Math.min(s*60,360),s<0&&(s+=360);const d=(r+u)/2;return u===r?l=0:d<=.5?l=c/(u+r):l=c/(2-u-r),[s,l*100,d*100]},De.rgb.hsv=function(e){let t,n,a,r,u;const c=e[0]/255,s=e[1]/255,l=e[2]/255,d=Math.max(c,s,l),f=d-Math.min(c,s,l),g=function(_){return(d-_)/6/f+1/2};return f===0?(r=0,u=0):(u=f/d,t=g(c),n=g(s),a=g(l),c===d?r=a-n:s===d?r=1/3+t-a:l===d&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[r*360,u*100,d*100]},De.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=De.rgb.hsl(e)[0],u=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,u*100,a*100]},De.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a),u=(1-t-r)/(1-r)||0,c=(1-n-r)/(1-r)||0,s=(1-a-r)/(1-r)||0;return[u*100,c*100,s*100,r*100]};function nau(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=bUn[e];if(t)return t;let n=1/0,a;for(const r of Object.keys(ovt)){const u=ovt[r],c=nau(e,u);c<n&&(n=c,a=r)}return a},De.keyword.rgb=function(e){return ovt[e]},De.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;const r=t*.4124+n*.3576+a*.1805,u=t*.2126+n*.7152+a*.0722,c=t*.0193+n*.1192+a*.9505;return[r*100,u*100,c*100]},De.rgb.lab=function(e){const t=De.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const u=116*a-16,c=500*(n-a),s=200*(a-r);return[u,c,s]},De.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,u,c;if(n===0)return c=a*255,[c,c,c];a<.5?r=a*(1+n):r=a+n-a*n;const s=2*a-r,l=[0,0,0];for(let d=0;d<3;d++)u=t+1/3*-(d-1),u<0&&u++,u>1&&u--,6*u<1?c=s+(r-s)*6*u:2*u<1?c=r:3*u<2?c=s+(r-s)*(2/3-u)*6:c=s,l[d]=c*255;return l},De.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const u=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=u<=1?u:2-u;const c=(a+n)/2,s=a===0?2*r/(u+r):2*n/(a+n);return[t,s*100,c*100]},De.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,u=t-Math.floor(t),c=255*a*(1-n),s=255*a*(1-n*u),l=255*a*(1-n*(1-u));switch(a*=255,r){case 0:return[a,l,c];case 1:return[s,a,c];case 2:return[c,a,l];case 3:return[c,s,a];case 4:return[l,c,a];case 5:return[a,c,s]}},De.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let u,c;c=(2-n)*a;const s=(2-n)*r;return u=n*r,u/=s<=1?s:2-s,u=u||0,c/=2,[t,u*100,c*100]},De.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let u;r>1&&(n/=r,a/=r);const c=Math.floor(6*t),s=1-a;u=6*t-c,c&1&&(u=1-u);const l=n+u*(s-n);let d,f,g;switch(c){default:case 6:case 0:d=s,f=l,g=n;break;case 1:d=l,f=s,g=n;break;case 2:d=n,f=s,g=l;break;case 3:d=n,f=l,g=s;break;case 4:d=l,f=n,g=s;break;case 5:d=s,f=n,g=l;break}return[d*255,f*255,g*255]},De.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100,u=1-Math.min(1,t*(1-r)+r),c=1-Math.min(1,n*(1-r)+r),s=1-Math.min(1,a*(1-r)+r);return[u*255,c*255,s*255]},De.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,u,c;return r=t*3.2406+n*-1.5372+a*-.4986,u=t*-.9689+n*1.8758+a*.0415,c=t*.0557+n*-.204+a*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,r=Math.min(Math.max(0,r),1),u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),[r*255,u*255,c*255]},De.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;const r=116*n-16,u=500*(t-n),c=200*(n-a);return[r,u,c]},De.lab.xyz=function(e){const t=e[0],n=e[1],a=e[2];let r,u,c;u=(t+16)/116,r=n/500+u,c=u-a/200;const s=u**3,l=r**3,d=c**3;return u=s>.008856?s:(u-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,c=d>.008856?d:(c-16/116)/7.787,r*=95.047,u*=100,c*=108.883,[r,u,c]},De.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=Math.atan2(a,n)*360/2/Math.PI,r<0&&(r+=360);const c=Math.sqrt(n*n+a*a);return[t,c,r]},De.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI,u=n*Math.cos(r),c=n*Math.sin(r);return[t,u,c]},De.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let u=t===null?De.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let c=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return u===2&&(c+=60),c},De.hsv.ansi16=function(e){return De.rgb.ansi16(De.hsv.rgb(e),e[2])},De.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];return t===n&&n===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/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 n=(~~(e>50)+1)*.5,a=(t&1)*n*255,r=(t>>1&1)*n*255,u=(t>>2&1)*n*255;return[a,r,u]},De.ansi256.rgb=function(e){if(e>=232){const u=(e-232)*10+8;return[u,u,u]}e-=16;let t;const n=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[n,a,r]},De.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n},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 n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const a=parseInt(n,16),r=a>>16&255,u=a>>8&255,c=a&255;return[r,u,c]},De.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),u=Math.min(Math.min(t,n),a),c=r-u;let s,l;return c<1?s=u/(1-c):s=0,c<=0?l=0:r===t?l=(n-a)/c%6:r===n?l=2+(a-t)/c:l=4+(t-n)/c,l/=6,l%=1,[l*360,c*100,s*100]},De.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],a*100,r*100]},De.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],a*100,r*100]},De.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(n===0)return[a*255,a*255,a*255];const r=[0,0,0],u=t%1*6,c=u%1,s=1-c;let l=0;switch(Math.floor(u)){case 0:r[0]=1,r[1]=c,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=c;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=c,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*a,[(n*r[0]+l)*255,(n*r[1]+l)*255,(n*r[2]+l)*255]},De.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);let r=0;return a>0&&(r=t/a),[e[0],r*100,a*100]},De.hcg.hsl=function(e){const t=e[1]/100,a=e[2]/100*(1-t)+.5*t;let r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],r*100,a*100]},De.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,a=t+n*(1-t);return[e[0],(a-t)*100,(1-a)*100]},De.hwb.hcg=function(e){const t=e[1]/100,a=1-e[2]/100,r=a-t;let u=0;return r<1&&(u=(a-r)/(1-r)),[e[0],r*100,u*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,a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},De.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const ybt=yUn;function rau(){const e={},t=Object.keys(ybt);for(let n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}function aau(e){const t=rau(),n=[e];for(t[e].distance=0;n.length;){const a=n.pop(),r=Object.keys(ybt[a]);for(let u=r.length,c=0;c<u;c++){const s=r[c],l=t[s];l.distance===-1&&(l.distance=t[a].distance+1,l.parent=a,n.unshift(s))}}return t}function iau(e,t){return function(n){return t(e(n))}}function oau(e,t){const n=[t[e].parent,e];let a=ybt[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),a=iau(ybt[t[r].parent][r],a),r=t[r].parent;return a.conversion=n,a}var uau=function(e){const t=aau(e),n={},a=Object.keys(t);for(let r=a.length,u=0;u<r;u++){const c=a[u];t[c].parent!==null&&(n[c]=oau(c,t))}return n};const mBn=yUn,cau=uau,Sle={},lau=Object.keys(mBn);function sau(e){const t=function(...n){const a=n[0];return a==null?a:(a.length>1&&(n=a),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function fau(e){const t=function(...n){const a=n[0];if(a==null)return a;a.length>1&&(n=a);const r=e(n);if(typeof r=="object")for(let u=r.length,c=0;c<u;c++)r[c]=Math.round(r[c]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}lau.forEach(e=>{Sle[e]={},Object.defineProperty(Sle[e],"channels",{value:mBn[e].channels}),Object.defineProperty(Sle[e],"labels",{value:mBn[e].labels});const t=cau(e);Object.keys(t).forEach(a=>{const r=t[a];Sle[e][a]=fau(r),Sle[e][a].raw=sau(r)})});var dau=Sle;const Dle=tau,Yr=dau,pUn=["keyword","gray","hex"],vBn={};for(const e of Object.keys(Yr))vBn[[...Yr[e].labels].sort().join("")]=e;const pbt={};function bn(e,t){if(!(this instanceof bn))return new bn(e,t);if(t&&t in pUn&&(t=null),t&&!(t in Yr))throw new Error("Unknown model: "+t);let n,a;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof bn)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const r=Dle.get(e);if(r===null)throw new Error("Unable to parse color from string: "+e);this.model=r.model,a=Yr[this.model].channels,this.color=r.value.slice(0,a),this.valpha=typeof r.value[a]=="number"?r.value[a]:1}else if(e.length>0){this.model=t||"rgb",a=Yr[this.model].channels;const r=Array.prototype.slice.call(e,0,a);this.color=hBn(r,a),this.valpha=typeof e[a]=="number"?e[a]: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 r=Object.keys(e);"alpha"in e&&(r.splice(r.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const u=r.sort().join("");if(!(u in vBn))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=vBn[u];const{labels:c}=Yr[this.model],s=[];for(n=0;n<c.length;n++)s.push(e[c[n]]);this.color=hBn(s)}if(pbt[this.model])for(a=Yr[this.model].channels,n=0;n<a;n++){const r=pbt[this.model][n];r&&(this.color[n]=r(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}bn.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in Dle.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return Dle.to[t.model](n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return Dle.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Yr[this.model],{labels:n}=Yr[this.model];for(let a=0;a<t;a++)e[n[a]]=this.color[a];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 bn([...this.color.map(_au(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new bn([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:tn("rgb",0,dn(255)),green:tn("rgb",1,dn(255)),blue:tn("rgb",2,dn(255)),hue:tn(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:tn("hsl",1,dn(100)),lightness:tn("hsl",2,dn(100)),saturationv:tn("hsv",1,dn(100)),value:tn("hsv",2,dn(100)),chroma:tn("hcg",1,dn(100)),gray:tn("hcg",2,dn(100)),white:tn("hwb",1,dn(100)),wblack:tn("hwb",2,dn(100)),cyan:tn("cmyk",0,dn(100)),magenta:tn("cmyk",1,dn(100)),yellow:tn("cmyk",2,dn(100)),black:tn("cmyk",3,dn(100)),x:tn("xyz",0,dn(95.047)),y:tn("xyz",1,dn(100)),z:tn("xyz",2,dn(108.833)),l:tn("lab",0,dn(100)),a:tn("lab",1),b:tn("lab",2),keyword(e){return e!==void 0?new bn(e):Yr[this.model].keyword(this.color)},hex(e){return e!==void 0?new bn(e):Dle.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new bn(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Dle.to.hex(t)+n},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[n,a]of e.entries()){const r=a/255;t[n]=r<=.04045?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.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 bn.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 n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,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 n=e.rgb(),a=this.rgb(),r=t===void 0?.5:t,u=2*r-1,c=n.alpha()-a.alpha(),s=((u*c===-1?u:(u+c)/(1+u*c))+1)/2,l=1-s;return bn.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue(),n.alpha()*r+a.alpha()*(1-r))}};for(const e of Object.keys(Yr)){if(pUn.includes(e))continue;const{channels:t}=Yr[e];bn.prototype[e]=function(...n){return this.model===e?new bn(this):n.length>0?new bn(n,e):new bn([...mau(Yr[this.model][e].raw(this.color)),this.valpha],e)},bn[e]=function(...n){let a=n[0];return typeof a=="number"&&(a=hBn(n,t)),new bn(a,e)}}function gau(e,t){return Number(e.toFixed(t))}function _au(e){return function(t){return gau(t,e)}}function tn(e,t,n){e=Array.isArray(e)?e:[e];for(const a of e)(pbt[a]||(pbt[a]=[]))[t]=n;return e=e[0],function(a){let r;return a!==void 0?(n&&(a=n(a)),r=this[e](),r.color[t]=a,r):(r=this[e]().color[t],n&&(r=n(r)),r)}}function dn(e){return function(t){return Math.max(0,Math.min(e,t))}}function mau(e){return Array.isArray(e)?e:[e]}function hBn(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var vau=bn;const hau=Rj(vau),OUn=e=>hau(e).luminosity(),Cau=Object.freeze(Object.defineProperty({__proto__:null,getLuminosity:OUn},Symbol.toStringTag,{value:"Module"})),kt={0:"#FFFFFF",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#212B36",900:"#161C24"},bau={lighter:"#3aa4f2",light:"#7bc2f6",main:"#0E82D8",dark:"#0b61a2",darker:"#07416c",contrastText:"#fff"},yau={lighter:"#D6E4FF",light:"#84A9FF",main:"#3366FF",dark:"#1939B7",darker:"#091A7A",contrastText:"#fff"},pau={lighter:"#CAFDF5",light:"#61F3F3",main:"#00B8D9",dark:"#006C9C",darker:"#003768",contrastText:"#fff"},Oau={lighter:"#D8FBDE",light:"#86E8AB",main:"#36B37E",dark:"#1B806A",darker:"#0A5554",contrastText:"#fff"},jau={lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#B76E00",darker:"#7A4100",contrastText:kt[800]},Ile={common:{black:"#000",white:"#fff"},primary:bau,secondary:yau,info:pau,success:Oau,warning:jau,error:{lighter:"#FFE9D5",light:"#FFAC82",main:"#FF5630",dark:"#B71D18",darker:"#7A0916",contrastText:"#fff"},grey:kt,divider:ve(kt[500],.24),action:{hover:ve(kt[500],.08),selected:ve(kt[500],.16),disabled:ve(kt[500],.8),disabledBackground:ve(kt[500],.24),focus:ve(kt[500],.24),hoverOpacity:.08,disabledOpacity:.48}},Mj=e=>{const t={...Ile,mode:"light",text:{primary:kt[800],secondary:kt[600],disabled:kt[500]},background:{paper:"#fff",default:kt[100],neutral:kt[200]},action:{...Ile.action,active:kt[600]}},n={...Ile,mode:"dark",text:{primary:"#fff",secondary:kt[500],disabled:kt[600]},background:{paper:kt[800],default:kt[900],neutral:ve(kt[500],.16)},action:{...Ile.action,active:kt[500]}};return e==="light"?t:n},wau=e=>({lighter:Hyt(e,.815),light:Hyt(e,.225),main:e,dark:zyt(e,.15),darker:zyt(e,.35)}),Mau=e=>OUn(e)<=.55?"#fff":kt[900],jUn=e=>{const t=wau(e);return{...Ile,primary:{...t,contrastText:Mau(t.main)},mode:"light",text:{primary:kt[800],secondary:kt[600],disabled:kt[500]},background:{paper:"#fff",default:kt[100],neutral:kt[200]},action:{active:kt[600],...Ile.action}}},wUn=Mj("light"),Lau=wUn.grey[500],Pau=wUn.common.black;function MUn(e,t){const n=ve(e,.16);return{z1:`0 1px 2px 0 ${n}`,z4:`0 4px 8px 0 ${n}`,z8:`0 8px 16px 0 ${n}`,z12:`0 12px 24px -4px ${n}`,z16:`0 16px 32px -4px ${n}`,z20:`0 20px 40px -4px ${n}`,z24:`0 24px 48px 0 ${n}`,primary:`0 8px 16px 0 ${ve(t||Mj("light").primary.main,.24)}`,info:`0 8px 16px 0 ${ve(Mj("light").info.main,.24)}`,secondary:`0 8px 16px 0 ${ve(Mj("light").secondary.main,.24)}`,success:`0 8px 16px 0 ${ve(Mj("light").success.main,.24)}`,warning:`0 8px 16px 0 ${ve(Mj("light").warning.main,.24)}`,error:`0 8px 16px 0 ${ve(Mj("light").error.main,.24)}`,card:`0 0 2px 0 ${ve(e,.2)}, 0 12px 24px -4px ${ve(e,.12)}`,dialog:`-40px 40px 80px -8px ${ve(e,.24)}`,dropdown:`0 0 2px 0 ${ve(e,.24)}, -20px 20px 40px -4px ${ve(e,.24)}`}}const LUn=(e,t)=>MUn(e==="light"?Lau:Pau,t),PUn=()=>O.jsx(A.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"}}}}),Eau=["primary","secondary","info","success","warning","error"];function kau(e){const t=e.palette.mode==="light",n=a=>{const r=a.color==="default",u=a.color==="inherit",c=a.variant==="circular",s=a.variant==="extended",l=a.variant==="outlined",d=a.variant==="outlinedExtended",f=a.variant==="soft",g=a.variant==="softExtended",_={"&:hover, &:active":{boxShadow:"none"},...(c||s)&&{...(r||u)&&{color:e.palette.grey[800],boxShadow:e.customShadows.z8,"&:hover":{backgroundColor:e.palette.grey[400]}},...u&&{...!t&&{color:"inherit",backgroundColor:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[700]}}}},...(l||d)&&{boxShadow:"none",backgroundColor:"transparent",...(r||u)&&{border:`solid 1px ${ve(e.palette.grey[500],.32)}`,"&:hover":{backgroundColor:e.palette.action.hover}},...r&&{...!t&&{color:e.palette.text.secondary}}},...(f||g)&&{boxShadow:"none",...r&&{color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey[400]}},...u&&{backgroundColor:ve(e.palette.grey[500],.08),"&:hover":{backgroundColor:ve(e.palette.grey[500],.24)}}}},m=Eau.map(C=>({...a.color===C&&{...(c||s)&&{boxShadow:e.customShadows[C],"&:hover":{backgroundColor:e.palette[C].dark}},...(l||d)&&{color:e.palette[C].main,border:`solid 1px ${ve(e.palette[C].main,.48)}`,"&:hover":{backgroundColor:ve(e.palette[C].main,.08),border:`solid 1px ${e.palette[C].main}`}},...(f||g)&&{color:e.palette[C][t?"dark":"light"],backgroundColor:ve(e.palette[C].main,.16),"&:hover":{backgroundColor:ve(e.palette[C].main,.32)}}}})),v={"&.Mui-disabled":{...(l||d)&&{backgroundColor:"transparent",border:`solid 1px ${e.palette.action.disabledBackground}`}}},h={...(s||d||g)&&{width:"auto","& svg":{marginRight:e.spacing(1)},...a.size==="small"&&{height:34,minHeight:34,borderRadius:17,padding:e.spacing(0,1)},...a.size==="medium"&&{height:40,minHeight:40,borderRadius:20,padding:e.spacing(0,2)},...a.size==="large"&&{height:48,minHeight:48,borderRadius:24,padding:e.spacing(0,2)}}};return[...m,_,v,h]};return{MuiFab:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function Sau(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 Dau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 EUn(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Iau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Bau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Wau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 $au(e){return O.jsx(A.SvgIcon,{...e,children:O.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 xau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Aau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Rau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 zau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Hau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Vau(e){return O.jsx(A.SvgIcon,{...e,sx:{right:12,fontSize:16,position:"absolute",pointerEvents:"none"},children:O.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 Fau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Nau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Tau(e){return O.jsx(A.SvgIcon,{...e,children:O.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 Zau=["primary","secondary","info","success","warning","error"];function Uau(e){const t=e.palette.mode==="light",n=a=>{const r=a.color==="default",u=a.variant==="filled",c=a.variant==="outlined",s=a.variant==="soft",l={...r&&{"& .MuiChip-avatar":{color:e.palette.text[t?"secondary":"primary"],backgroundColor:ve(e.palette.grey[500],.48)},...c&&{border:`solid 1px ${ve(e.palette.grey[500],.32)}`},...s&&{color:e.palette.text.primary,backgroundColor:ve(e.palette.grey[500],.16),"&:hover":{backgroundColor:ve(e.palette.grey[500],.32)}}}};return[...Zau.map(f=>({...a.color===f&&{"& .MuiChip-avatar":{color:e.palette[f].lighter,backgroundColor:e.palette[f].dark},...u&&{"& .MuiChip-deleteIcon":{color:ve(e.palette[f].contrastText,.56),"&:hover":{color:e.palette[f].contrastText}}},...s&&{color:e.palette[f][t?"dark":"light"],backgroundColor:ve(e.palette[f].main,.16),"&:hover":{backgroundColor:ve(e.palette[f].main,.32)},"& .MuiChip-deleteIcon":{color:ve(e.palette[f][t?"dark":"light"],.48),"&:hover":{color:e.palette[f].dark}}}}})),l]};return{MuiChip:{defaultProps:{deleteIcon:O.jsx(Dau,{})},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function Gau(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,textTransform:"none","&: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 Kau(e){return{MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}}}}}}}function Yau(e){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Xau(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 Qau(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 Jau=["info","success","warning","error"];function qau(e){const t=e.palette.mode==="light",n=a=>{const r=a.variant==="standard",u=a.variant==="filled",c=a.variant==="outlined";return[...Jau.map(l=>({...a.severity===l&&{...r&&{color:e.palette[l][t?"darker":"lighter"],backgroundColor:e.palette[l][t?"lighter":"darker"],"& .MuiAlert-icon":{color:e.palette[l][t?"main":"light"]}},...u&&{color:e.palette[l].contrastText,backgroundColor:e.palette[l].main},...c&&{color:e.palette[l][t?"dark":"light"],border:`solid 1px ${e.palette[l].main}`,"& .MuiAlert-icon":{color:e.palette[l].main}}}}))]};return{MuiAlert:{defaultProps:{iconMapping:{info:O.jsx(Iau,{}),success:O.jsx(Wau,{}),warning:O.jsx(Bau,{}),error:O.jsx($au,{})}},styleOverrides:{root:({ownerState:a})=>n(a),icon:{opacity:1}}},MuiAlertTitle:{styleOverrides:{root:{marginBottom:e.spacing(.5)}}}}}function e1u(e){return{MuiBadge:{styleOverrides:{dot:{width:10,height:10,borderRadius:"50%"}}}}}function t1u(e){return{MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"}}}}}function n1u(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:ve(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:ve(e.palette.grey[500],.08),"&:hover":{backgroundColor:ve(e.palette.grey[500],.16)},"&.Mui-focused":{backgroundColor:ve(e.palette.grey[500],.16)},"&.Mui-disabled":{backgroundColor:e.palette.action.disabledBackground}},underline:{"&:before, :after":{display:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{"& .MuiOutlinedInput-notchedOutline":{borderColor:ve(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 r1u(e){return{MuiRadio:{defaultProps:{icon:O.jsx(zau,{}),checkedIcon:O.jsx(Hau,{})},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 a1u(e){const t=e.palette.mode==="light";return{MuiDrawer:{styleOverrides:{root:({ownerState:n})=>({...n.variant==="temporary"&&{"& .MuiDrawer-paper":{boxShadow:`-40px 40px 80px -8px ${ve(t?e.palette.grey[500]:e.palette.common.black,.24)}`}}})}}}}function i1u(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 o1u(e){return{MuiAvatar:{styleOverrides:{colorDefault:{color:e.palette.text.secondary,backgroundColor:ve(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 u1u(e){return{MuiRating:{defaultProps:{emptyIcon:O.jsx(EUn,{}),icon:O.jsx(EUn,{})},styleOverrides:{root:{"&.Mui-disabled":{opacity:.48}},iconEmpty:{color:ve(e.palette.grey[500],.48)},sizeSmall:{"& svg":{width:20,height:20}},sizeLarge:{"& svg":{width:28,height:28}}}}}}function c1u(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 l1u=["primary","secondary","info","success","warning","error"];function s1u(e){const t=e.palette.mode==="light",n=a=>{const r=a.color==="inherit",u=a.variant==="contained",c=a.variant==="outlined",s=a.variant==="text",l=a.variant==="soft",d=a.size==="small",f=a.size==="large",g={textTransform:"none",fontFamily:"inherit",...r&&{...u&&{color:e.palette.grey[800],"&:hover":{boxShadow:e.customShadows.z8,backgroundColor:e.palette.grey[400]}},...c&&{borderColor:ve(e.palette.grey[500],.32),"&:hover":{borderColor:e.palette.text.primary,backgroundColor:e.palette.action.hover}},...s&&{"&:hover":{backgroundColor:e.palette.action.hover}},...l&&{color:e.palette.text.primary,backgroundColor:ve(e.palette.grey[500],.08),"&:hover":{backgroundColor:ve(e.palette.grey[500],.24)}}}},_=l1u.map(h=>({...a.color===h&&{...u&&{"&:hover":{boxShadow:e.customShadows[h]}},...l&&{color:e.palette[h][t?"dark":"light"],backgroundColor:ve(e.palette[h].main,.16),"&:hover":{backgroundColor:ve(e.palette[h].main,.32)}}}})),m={"&.Mui-disabled":{...l&&{backgroundColor:e.palette.action.disabledBackground}}},v={...d&&{height:30,fontSize:13,...l&&{padding:"4px 10px"}},...f&&{height:48,fontSize:15,...l&&{padding:"8px 22px"}}};return[..._,g,m,v]};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function f1u(e){const t=e.palette.mode==="light",n=a=>({padding:"9px 13px 9px 12px",width:58,height:38,...a.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`,...a.size==="small"&&{width:10,height:10}},"& .MuiSwitch-track":{opacity:1,borderRadius:14,backgroundColor:ve(e.palette.grey[500],.48)},"& .MuiSwitch-switchBase":{left:3,padding:12,...a.size==="small"&&{padding:7},"&.Mui-checked":{transform:"translateX(13px)","&+.MuiSwitch-track":{opacity:1},...a.size==="small"&&{transform:"translateX(9px)"}},"&.Mui-disabled":{"& .MuiSwitch-thumb":{opacity:t?1:.48},"&+.MuiSwitch-track":{opacity:.48}}}});return{MuiSwitch:{styleOverrides:{root:({ownerState:a})=>n(a)}}}}function d1u(e){return{MuiSelect:{defaultProps:{IconComponent:Vau}}}}function g1u(e){return{MuiSvgIcon:{styleOverrides:{fontSizeLarge:{width:32,height:32,fontSize:"inherit"}}}}}function _1u(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 m1u(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.dropdown,borderRadius:Number(e.shape.borderRadius)*1.5}}}}}function v1u(e){return{MuiStepConnector:{styleOverrides:{line:{borderColor:e.palette.divider}}}}}function h1u(e){return{MuiDataGrid:{styleOverrides:{root:{border:0,padding:8,"& .MuiTablePagination-root":{borderTop:0},"& .MuiDataGrid-columnHeader:focus, .MuiDataGrid-cell:focus, .MuiDataGrid-columnHeader:focus-within, .MuiDataGrid-cell:focus-within":{outline:"none"}},main:{backgroundColor:"#F5F5F5",borderRadius:8,outline:"8px solid #F5F5F5"},columnHeader:{fontSize:13,fontWeight:600,color:e.palette.grey[600],padding:"0 16px",borderColor:"transparent"},row:{borderRadius:8,backgroundColor:"#FFFFFF",color:e.palette.grey[800]},rowReorderCell:{color:e.palette.grey[400]},cell:{borderBottom:0,padding:"0 16px"},columnSeparator:{color:e.palette.divider,"&:hover":{color:e.palette.primary.main}},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}}},overlayWrapper:{height:"100% !important"},overlayWrapperInner:{height:"100% !important"}}}}}function C1u(e){return{MuiSkeleton:{defaultProps:{animation:"wave"},styleOverrides:{root:{backgroundColor:e.palette.background.neutral}}}}}function b1u(e){return{MuiBackdrop:{styleOverrides:{root:{backgroundColor:ve(e.palette.grey[800],.8)},invisible:{background:"transparent"}}}}}const y1u=["primary","secondary","info","success","warning","error"];function p1u(e){const t=n=>{const a=n.variant==="buffer",r={borderRadius:4,"& .MuiLinearProgress-bar":{borderRadius:4},...a&&{backgroundColor:"transparent"}};return[...y1u.map(c=>({...n.color===c&&{backgroundColor:A.alpha(e.palette[c].main,.24)}})),r]};return{MuiLinearProgress:{styleOverrides:{root:({ownerState:n})=>t(n)}}}}function O1u(e){return{MuiTimelineDot:{styleOverrides:{root:{boxShadow:"none"}}},MuiTimelineConnector:{styleOverrides:{root:{backgroundColor:e.palette.divider}}}}}function j1u(e){return{MuiTreeView:{defaultProps:{defaultCollapseIcon:O.jsx(Fau,{sx:{width:20,height:20}}),defaultExpandIcon:O.jsx(Nau,{sx:{width:20,height:20}}),defaultEndIcon:O.jsx(Tau,{sx:{color:"text.secondary",width:20,height:20}})}},MuiTreeItem:{styleOverrides:{label:{...e.typography.body2},iconContainer:{width:"auto"}}}}}function w1u(e){return{MuiCheckbox:{defaultProps:{icon:O.jsx(xau,{}),checkedIcon:O.jsx(Aau,{}),indeterminateIcon:O.jsx(Rau,{})},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 M1u(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 L1u(e){return{MuiTypography:{styleOverrides:{paragraph:{marginBottom:e.spacing(2)},gutterBottom:{marginBottom:e.spacing(1)}}}}}const P1u=["primary","secondary","info","success","warning","error"];function E1u(e){const t=e.palette.mode==="light",n=a=>{const r=a.variant==="outlined",u=a.variant==="soft",c={"& .MuiPaginationItem-root":{...r&&{borderColor:ve(e.palette.grey[500],.32)},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium}}};return[...P1u.map(l=>({...a.color===l&&{...u&&{"& .MuiPaginationItem-root":{"&.Mui-selected":{color:e.palette[l][t?"dark":"light"],backgroundColor:ve(e.palette[l].main,.16),"&:hover":{backgroundColor:ve(e.palette[l].main,.32)}}}}}})),c]};return{MuiPagination:{defaultProps:{color:"primary"},styleOverrides:{root:({ownerState:a})=>n(a)}}}}function k1u(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 S1u=["primary","secondary","info","success","warning","error"];function D1u(e){const t=n=>{const a=n.color==="inherit",r=n.variant==="contained",u=n.variant==="outlined",c=n.variant==="text",s=n.variant==="soft",l=n.orientation==="horizontal",d=n.orientation==="vertical",f={"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!u&&{borderStyle:"solid",...a&&{borderColor:ve(e.palette.grey[500],.32)},...l&&{borderWidth:"0px 1px 0px 0px"},...d&&{borderWidth:"0px 0px 1px 0px"}}}}},g=S1u.map(m=>({"& .MuiButtonGroup-grouped":{"&:not(:last-of-type)":{...!u&&{...n.color===m&&{...r&&{borderColor:ve(e.palette[m].dark,.48)},...c&&{borderColor:ve(e.palette[m].main,.48)},...s&&{borderColor:ve(e.palette[m].dark,.24)}}}}}})),_={"& .MuiButtonGroup-grouped.Mui-disabled":{"&:not(:last-of-type)":{borderColor:e.palette.action.disabledBackground}}};return[...g,f,_]};return{MuiButtonGroup:{defaultProps:{disableElevation:!0},styleOverrides:{root:({ownerState:n})=>t(n)}}}}function I1u(e){return{MuiAutocomplete:{styleOverrides:{root:{"& span.MuiAutocomplete-tag":{...e.typography.body2,width:24,height:24,lineHeight:"24px",textAlign:"center",borderRadius:e.shape.borderRadius,backgroundColor:ve(e.palette.grey[500],.16)}},paper:{boxShadow:e.customShadows.dropdown},listbox:{padding:e.spacing(0,1)},noOptions:{height:"154px",textAlign:"center",alignContent:"center"},option:{...e.typography.body2,padding:e.spacing(1),margin:e.spacing(.75,0),borderRadius:e.shape.borderRadius}}}}}const B1u=["primary","secondary","info","success","warning","error"];function W1u(e){const t=n=>{const r={...n.color==="standard"&&{"&.Mui-selected":{borderColor:"inherit"}}},u=B1u.map(s=>({...n.color===s&&{"&:hover":{borderColor:ve(e.palette[s].main,.48),backgroundColor:ve(e.palette[s].main,e.palette.action.hoverOpacity)},"&.Mui-selected":{borderColor:e.palette[s].main}}})),c={"&.Mui-disabled":{"&.Mui-selected":{color:e.palette.action.disabled,backgroundColor:e.palette.action.selected,borderColor:e.palette.action.disabledBackground}}};return[...u,r,c]};return{MuiToggleButton:{styleOverrides:{root:({ownerState:n})=>t(n)}},MuiToggleButtonGroup:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`solid 1px ${ve(e.palette.grey[500],.16)}`},grouped:{margin:4,borderColor:"transparent !important",borderRadius:`${e.shape.borderRadius}px !important`}}}}}function $1u(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 x1u(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 kUn(e){return Object.assign(kau(e),Gau(e),Uau(e),Sau(e),Kau(e),Yau(),n1u(e),r1u(e),e1u(),Xau(e),Qau(e),t1u(),qau(e),f1u(e),d1u(),s1u(e),u1u(e),i1u(e),o1u(e),c1u(e),a1u(e),v1u(e),_1u(e),m1u(e),g1u(),w1u(e),h1u(e),C1u(e),O1u(e),j1u(e),b1u(e),p1u(e),M1u(e),L1u(e),E1u(e),D1u(e),k1u(e),I1u(e),$1u(e),W1u(e),x1u())}const SUn=Mj("light"),A1u=SUn.grey[500],R1u=SUn.common.black;function DUn(e){const t=ve(e,.2),n=ve(e,.14),a=ve(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${n},0px 1px 3px 0px ${a}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${n},0px 1px 5px 0px ${a}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${n},0px 1px 8px 0px ${a}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${n},0px 1px 10px 0px ${a}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${n},0px 1px 14px 0px ${a}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${n},0px 1px 18px 0px ${a}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${n},0px 2px 16px 1px ${a}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${n},0px 3px 14px 2px ${a}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${n},0px 3px 16px 2px ${a}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${n},0px 4px 18px 3px ${a}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${n},0px 4px 20px 3px ${a}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${n},0px 5px 22px 4px ${a}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${n},0px 5px 24px 4px ${a}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${n},0px 5px 26px 4px ${a}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${n},0px 6px 28px 5px ${a}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${n},0px 6px 30px 5px ${a}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${n},0px 6px 32px 5px ${a}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${n},0px 7px 34px 6px ${a}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${n},0px 7px 36px 6px ${a}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${n},0px 8px 38px 7px ${a}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${n},0px 8px 40px 7px ${a}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${n},0px 8px 42px 7px ${a}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${n},0px 9px 44px 8px ${a}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${n},0px 9px 46px 8px ${a}`]}const IUn=e=>DUn(e==="light"?A1u:R1u);function En(e){return`${e/16}rem`}function Ble({sm:e,md:t,lg:n}){return{"@media (min-width:600px)":{fontSize:En(e)},"@media (min-width:900px)":{fontSize:En(t)},"@media (min-width:1200px)":{fontSize:En(n)}}}const BUn={fontFamily:"inherit",fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:En(40),...Ble({sm:52,md:58,lg:64})},h2:{fontWeight:800,lineHeight:64/48,fontSize:En(32),...Ble({sm:40,md:44,lg:48})},h3:{fontWeight:700,lineHeight:1.5,fontSize:En(24),...Ble({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:En(20),...Ble({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:En(18),...Ble({sm:19,md:20,lg:20})},h6:{fontWeight:700,lineHeight:28/18,fontSize:En(17),...Ble({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:En(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:En(14)},body1:{lineHeight:1.5,fontSize:En(16)},body2:{lineHeight:22/14,fontSize:En(14)},caption:{lineHeight:1.5,fontSize:En(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:En(12),textTransform:"uppercase"},button:{fontWeight:700,lineHeight:24/14,fontSize:En(14),textTransform:"capitalize"}},WUn=({children:e,color:t,direction:n="ltr",themeMode:a="light"})=>{const r=o.useMemo(()=>({palette:jUn(t),typography:BUn,shape:{borderRadius:8},direction:n,shadows:IUn(a),customShadows:LUn(a,t)}),[t,n,a]),u=dht(r);return u.components=kUn(u),O.jsx(W$n,{injectFirst:!0,children:O.jsxs(Fyt,{theme:u,children:[O.jsx(A.CssBaseline,{}),O.jsx(PUn,{}),e]})})},V82="",F82="",N82="",T82="",Z82="",U82="",z1u=({themeColor:e,children:t})=>O.jsx(_Z.LocalizationProvider,{dateAdapter:fUn,adapterLocale:dUn,children:O.jsx(Tpt,{children:O.jsx(WUn,{color:e,children:O.jsx(Tzn,{children:t})})})}),H1u=({children:e,color:t,direction:n="ltr",themeMode:a="light"})=>{const r=o.useMemo(()=>({palette:jUn(t),typography:BUn,shape:{borderRadius:8},direction:n,shadows:IUn(a),customShadows:LUn(a,t)}),[t,n,a]),u=dht(r);return u.components=kUn(u),O.jsxs(Fyt,{theme:u,children:[O.jsx(A.CssBaseline,{}),O.jsx(PUn,{}),e]})},V1u=({themeColor:e,children:t})=>O.jsx(_Z.LocalizationProvider,{dateAdapter:fUn,adapterLocale:dUn,children:O.jsx(Tpt,{children:O.jsx(H1u,{color:e,children:O.jsx(Tzn,{children:t})})})}),F1u=({modalTitle:e="Tem certeza que deseja excluir?",message:t="Essa ação não poderá ser desfeita.",cancelButtonText:n="Cancelar",confirmButtonText:a="Sim, excluir registro",onClose:r,onConfirm:u,confirming:c,child:s,...l})=>O.jsxs(A.Dialog,{fullWidth:!0,maxWidth:"xs",...l,onClose:r,children:[O.jsx(A.DialogTitle,{children:e}),O.jsx(A.DialogContent,{children:t}),s,O.jsxs(A.DialogActions,{children:[O.jsx(A.Button,{variant:"outlined",color:"inherit",onClick:r,size:"large",children:n}),O.jsx(l$n.LoadingButton,{variant:"contained",onClick:u,size:"large",loading:c,children:a})]})]}),Obt=({sx:e})=>O.jsx(A.LinearProgress,{sx:{position:"absolute",top:0,left:0,width:1,zIndex:9999,...e}}),N1u=({children:e,disableExport:t})=>O.jsx(cr.GridToolbarContainer,{sx:{alignItems:"center",padding:"16px 0"},children:O.jsxs(A.Stack,{direction:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:"center",width:1,gap:2,children:[O.jsxs(A.Stack,{direction:"row",flexWrap:"wrap",alignItems:"center",children:[O.jsx(cr.GridToolbarColumnsButton,{}),O.jsx(cr.GridToolbarFilterButton,{}),O.jsx(cr.GridToolbarDensitySelector,{}),!t&&O.jsx(cr.GridToolbarExport,{})]}),O.jsx(A.Stack,{direction:"row",flexWrap:"wrap",children:e})]})}),$Un=A.styled(A.Box)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),T1u=()=>{var f,g;const e=cr.useGridApiContext(),{rowHeight:t,paginationModel:n,initialState:a}=cr.useGridRootProps(),r=(n==null?void 0:n.pageSize)||((g=(f=a==null?void 0:a.pagination)==null?void 0:f.paginationModel)==null?void 0:g.pageSize)||10,u=cr.gridColumnsTotalWidthSelector(e),c=cr.gridColumnPositionsSelector(e),s=o.useMemo(()=>c.filter(_=>_<=u).length,[u,c]),l=e.current.getVisibleColumns().slice(0,s),d=o.useMemo(()=>{const _=[];for(let m=0;m<r;m+=1){for(const v of l)_.push(O.jsx($Un,{sx:{justifyContent:v.align},children:O.jsx(A.Skeleton,{width:"100%"})},`column-${m}-${v.field}`));_.push(O.jsx($Un,{},`fill-${m}`))}return _},[r,l]);return O.jsx(A.Stack,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${l.map(({computedWidth:_})=>`${_}px`).join(" ")} 1fr`,gridAutoRows:t,backgroundColor:"grey.0",borderRadius:1,overflow:"hidden"},children:d})},uvt=({text:e,sx:t})=>O.jsxs(A.Stack,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"grey.0",padding:2,borderRadius:2,"& svg":{width:"100%"},...t},children:[O.jsx(wxn,{}),O.jsx(A.Typography,{variant:"body1",sx:{color:"text.secondary"},children:e})]}),xUn=()=>{const{localeText:{noRowsLabel:e}}=cr.useGridRootProps();return O.jsx(uvt,{text:e,sx:{"& svg":{height:200}}})},CBn=({columns:e,rows:t,loading:n,fetching:a,localeText:r,paginationModel:u={page:0,pageSize:10},rowHeight:c=72,hideFooter:s,sx:l,showToolbar:d,toolbarContent:f,disableExport:g,..._})=>{const m=[{...cr.GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e],v=o.useCallback(h=>({bottom:h.isLastVisible?0:8}),[]);return O.jsxs(A.Stack,{position:"relative",borderRadius:2,overflow:"hidden",children:[a&&O.jsx(Obt,{sx:{zIndex:1}}),O.jsx(cr.DataGridPremium,{columns:m,rows:t,loading:n,autoHeight:!0,hideFooter:t.length===0?!0:s,rowHeight:c,getRowSpacing:v,slots:{loadingOverlay:T1u,noRowsOverlay:xUn,noResultsOverlay:xUn,toolbar:()=>d&&O.jsx(N1u,{disableExport:g,children:f})},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",filterOperatorIsEmpty:"Vazio",filterOperatorIsNotEmpty:"Preenchido",filterOperatorIsAnyOf:"Qualquer",filterOperatorContains:"Contém",filterOperatorEquals:"Igual",filterOperatorStartsWith:"Começa com",filterOperatorEndsWith:"Termina com",filterOperatorIs:"É",filterOperatorNot:"Não é",filterOperatorAfter:"Depois de",filterOperatorOnOrAfter:"Depois ou igual a",filterOperatorBefore:"Antes de",filterOperatorOnOrBefore:"Antes ou igual a",groupColumn:h=>`Agrupar por ${h}`,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",unpin:"Desafixar",noRowsLabel:"Nenhum registro para ser apresentado",unGroupColumn:h=>`Parar de agrupar por ${h}`,footerRowSelected:h=>`${h} ${h===1?"linha selecionada":"linhas selecionadas"}`,MuiTablePagination:{labelRowsPerPage:"Itens por página",labelDisplayedRows:h=>`${h.from}-${h.to} de ${h.count}`},...r},sx:{...l,"& .MuiDataGrid-virtualScroller, & .MuiDataGrid-virtualScrollerContent":{minHeight:n?c*u.pageSize:c*t.length,...t.length===0&&{height:400}}},..._})]})},Z1u=({children:e,waitBeforeShow:t=500})=>{const[n,a]=o.useState(!1);return o.useEffect(()=>{const r=setTimeout(()=>a(!0),t);return()=>clearTimeout(r)},[t]),n?e:null};var U1u=!!(typeof window<"u"&&window.document&&window.document.createElement),G1u=U1u;const AUn=Rj(G1u);var Wle=function(){return Wle=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},Wle.apply(this,arguments)},$le=null,RUn=null;AUn&&window.addEventListener("resize",function(){RUn!==window.devicePixelRatio&&(RUn=window.devicePixelRatio,$le=null)});function zUn(){if($le===null){if(typeof document>"u")return $le=0,$le;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),$le=n}return $le}function HUn(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function VUn(e){return!e||!e.ownerDocument?document:e.ownerDocument}var FUn=function(e){var t={},n=Array.prototype.reduce.call(e,function(a,r){var u=r.name.match(/data-simplebar-(.+)/);if(u){var c=u[1].replace(/\W+(.)/g,function(s,l){return l.toUpperCase()});switch(r.value){case"true":a[c]=!0;break;case"false":a[c]=!1;break;case void 0:a[c]=!0;break;default:a[c]=r.value}}return a},t);return n};function NUn(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function TUn(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function ZUn(e){return".".concat(e.split(" ").join("."))}var K1u=Object.freeze({__proto__:null,getElementWindow:HUn,getElementDocument:VUn,getOptions:FUn,addClasses:NUn,removeClasses:TUn,classNamesToQuery:ZUn}),Lj=HUn,bBn=VUn,Y1u=FUn,Pj=NUn,Ej=TUn,nr=ZUn,jbt=function(){function e(t,n){n===void 0&&(n={});var a=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=Lj(a.el);a.scrollXTicking||(r.requestAnimationFrame(a.scrollX),a.scrollXTicking=!0),a.scrollYTicking||(r.requestAnimationFrame(a.scrollY),a.scrollYTicking=!0),a.isScrolling||(a.isScrolling=!0,Pj(a.el,a.classNames.scrolling)),a.showScrollbar("x"),a.showScrollbar("y"),a.onStopScrolling()},this.scrollX=function(){a.axis.x.isOverflowing&&a.positionScrollbar("x"),a.scrollXTicking=!1},this.scrollY=function(){a.axis.y.isOverflowing&&a.positionScrollbar("y"),a.scrollYTicking=!1},this._onStopScrolling=function(){Ej(a.el,a.classNames.scrolling),a.options.autoHide&&(a.hideScrollbar("x"),a.hideScrollbar("y")),a.isScrolling=!1},this.onMouseEnter=function(){a.isMouseEntering||(Pj(a.el,a.classNames.mouseEntered),a.showScrollbar("x"),a.showScrollbar("y"),a.isMouseEntering=!0),a.onMouseEntered()},this._onMouseEntered=function(){Ej(a.el,a.classNames.mouseEntered),a.options.autoHide&&(a.hideScrollbar("x"),a.hideScrollbar("y")),a.isMouseEntering=!1},this._onMouseMove=function(r){a.mouseX=r.clientX,a.mouseY=r.clientY,(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseMoveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseMoveForAxis("y")},this.onMouseLeave=function(){a.onMouseMove.cancel(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseLeaveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseLeaveForAxis("y"),a.mouseX=-1,a.mouseY=-1},this._onWindowResize=function(){a.scrollbarWidth=a.getScrollbarWidth(),a.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!a.axis.x.track.el||!a.axis.y.track.el||!a.axis.x.scrollbar.el||!a.axis.y.scrollbar.el)){var u,c;a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&(u=a.isWithinBounds(a.axis.x.track.rect)),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&(c=a.isWithinBounds(a.axis.y.track.rect)),(u||c)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(u&&(a.axis.x.scrollbar.rect=a.axis.x.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.x.scrollbar.rect)?a.onDragStart(r,"x"):a.onTrackClick(r,"x")),c&&(a.axis.y.scrollbar.rect=a.axis.y.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.scrollbar.rect)?a.onDragStart(r,"y"):a.onTrackClick(r,"y"))))}},this.drag=function(r){var u,c,s,l,d,f,g,_,m,v,h;if(!(!a.draggedAxis||!a.contentWrapperEl)){var C,p=a.axis[a.draggedAxis].track,y=(c=(u=p.rect)===null||u===void 0?void 0:u[a.axis[a.draggedAxis].sizeAttr])!==null&&c!==void 0?c:0,S=a.axis[a.draggedAxis].scrollbar,w=(l=(s=a.contentWrapperEl)===null||s===void 0?void 0:s[a.axis[a.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,j=parseInt((f=(d=a.elStyles)===null||d===void 0?void 0:d[a.axis[a.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);r.preventDefault(),r.stopPropagation(),a.draggedAxis==="y"?C=r.pageY:C=r.pageX;var b=C-((_=(g=p.rect)===null||g===void 0?void 0:g[a.axis[a.draggedAxis].offsetAttr])!==null&&_!==void 0?_:0)-a.axis[a.draggedAxis].dragOffset;b=a.draggedAxis==="x"&&a.isRtl?((v=(m=p.rect)===null||m===void 0?void 0:m[a.axis[a.draggedAxis].sizeAttr])!==null&&v!==void 0?v:0)-S.size-b:b;var M=b/(y-S.size),P=M*(w-j);a.draggedAxis==="x"&&a.isRtl&&(P=!((h=e.getRtlHelpers())===null||h===void 0)&&h.isScrollingToNegative?-P:P),a.contentWrapperEl[a.axis[a.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(r){var u=bBn(a.el),c=Lj(a.el);r.preventDefault(),r.stopPropagation(),Ej(a.el,a.classNames.dragging),u.removeEventListener("mousemove",a.drag,!0),u.removeEventListener("mouseup",a.onEndDrag,!0),a.removePreventClickId=c.setTimeout(function(){u.removeEventListener("click",a.preventClick,!0),u.removeEventListener("dblclick",a.preventClick,!0),a.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=t,this.options=Wle(Wle({},e.defaultOptions),n),this.classNames=Wle(Wle({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=FTn(this._onMouseMove,64),this.onWindowResize=Ymt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ymt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ymt(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,a=n==null?void 0:n.firstElementChild;if(!a)return null;document.body.appendChild(n),n.scrollLeft=0;var r=e.getOffset(n),u=e.getOffset(a);n.scrollLeft=-999;var c=e.getOffset(a);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:r.left!==u.left,isScrollingToNegative:u.left!==c.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:zUn()}catch{return zUn()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),a=bBn(t),r=Lj(t);return{top:n.top+(r.pageYOffset||a.documentElement.scrollTop),left:n.left+(r.pageXOffset||a.documentElement.scrollLeft)}},e.prototype.init=function(){AUn&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(nr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(nr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(nr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(nr(this.classNames.offset)),this.maskEl=this.el.querySelector(nr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,nr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(nr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(nr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(nr(this.classNames.track)).concat(nr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(nr(this.classNames.track)).concat(nr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(nr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(nr(this.classNames.scrollbar)))||null,this.options.autoHide||(Pj(this.axis.x.scrollbar.el,this.classNames.visible),Pj(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,a=Lj(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),a.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,u=a.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){r&&a.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),a.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new a.MutationObserver(function(){a.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Lj(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,a=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||n>0,u=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=a?"auto":"100%",this.placeholderEl.style.width=r?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=s==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,_=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>u-_,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,a;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[t].scrollSizeAttr],u=(a=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&a!==void 0?a:0,c=u/r,s;return s=Math.max(~~(c*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.prototype.positionScrollbar=function(t){var n,a,r;t===void 0&&(t="y");var u=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var c=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((a=e.getRtlHelpers())===null||a===void 0)&&a.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?d:-d);var f=d/(c-l),g=~~((s-u.size)*f);g=t==="x"&&this.isRtl?-g+(s-u.size):g,u.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,a=this.axis[t].scrollbar.el;!n||!a||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?a.style.display="block":a.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Pj(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ej(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Pj(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Pj(n.scrollbar.el,this.classNames.hover):Ej(n.scrollbar.el,this.classNames.hover)):(Ej(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ej(this.axis[t].track.el,this.classNames.hover),Ej(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var a;n===void 0&&(n="y");var r=bBn(this.el),u=Lj(this.el),c=this.axis[n].scrollbar,s=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=s-(((a=c.rect)===null||a===void 0?void 0:a[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Pj(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var a=this,r,u,c,s;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=Lj(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,g=(u=(r=f.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])!==null&&u!==void 0?u:0,_=parseInt((s=(c=this.elStyles)===null||c===void 0?void 0:c[this.axis[n].sizeAttr])!==null&&s!==void 0?s:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],v=n==="y"?this.mouseY-g:this.mouseX-g,h=v<0?-1:1,C=h===-1?m-_:m+_,p=40,y=function(){a.contentWrapperEl&&(h===-1?m>C&&(m-=p,a.contentWrapperEl[a.axis[n].scrollOffsetAttr]=m,d.requestAnimationFrame(y)):m<C&&(m+=p,a.contentWrapperEl[a.axis[n].scrollOffsetAttr]=m,d.requestAnimationFrame(y)))};y()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Lj(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var a=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(r){return a.call(r,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Y1u,e.helpers=K1u,e}(),Xr=function(){return Xr=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},Xr.apply(this,arguments)};function X1u(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}var UUn=V.forwardRef(function(e,t){var n=e.children,a=e.scrollableNodeProps,r=a===void 0?{}:a,u=X1u(e,["children","scrollableNodeProps"]),c=V.useRef(),s=V.useRef(),l=V.useRef(),d={},f={};Object.keys(u).forEach(function(m){Object.prototype.hasOwnProperty.call(jbt.defaultOptions,m)?d[m]=u[m]:f[m]=u[m]});var g=Xr(Xr({},jbt.defaultOptions.classNames),d.classNames),_=Xr(Xr({},r),{className:"".concat(g.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||jbt.defaultOptions.ariaLabel});return V.useEffect(function(){var m;return s.current=_.ref?_.ref.current:s.current,c.current&&(m=new jbt(c.current,Xr(Xr(Xr({},d),s.current&&{scrollableNode:s.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),V.createElement("div",Xr({"data-simplebar":"init",ref:c},f),V.createElement("div",{className:g.wrapper},V.createElement("div",{className:g.heightAutoObserverWrapperEl},V.createElement("div",{className:g.heightAutoObserverEl})),V.createElement("div",{className:g.mask},V.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:s,scrollableNodeProps:Xr(Xr({},_),{ref:s}),contentNodeRef:l,contentNodeProps:{className:g.contentEl,ref:l}}):V.createElement("div",Xr({},_),V.createElement("div",{className:g.contentEl},n)))),V.createElement("div",{className:g.placeholder})),V.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},V.createElement("div",{className:g.scrollbar})),V.createElement("div",{className:"".concat(g.track," simplebar-vertical")},V.createElement("div",{className:g.scrollbar})))});UUn.displayName="SimpleBar";const Q1u=zt("div")(()=>({flexGrow:1,height:"100%",overflow:"hidden"})),J1u=zt(UUn)(({theme:e})=>({maxHeight:"100%","& .simplebar-scrollbar":{"&:before":{backgroundColor:ve(e.palette.grey[600],.48)},"&.simplebar-visible:before":{opacity:1}},"& .simplebar-mask":{zIndex:"inherit"}})),q1u=({children:e,sx:t,...n})=>{const a=typeof navigator>"u"?"SSR":navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)?O.jsx(A.Box,{sx:{overflowX:"auto",...t},...n,children:e}):O.jsx(Q1u,{children:O.jsx(J1u,{clickOnTrack:!1,sx:t,...n,children:e})})},ZT=o.memo(q1u),eiu=A.styled(A.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",borderBottom:`1px solid ${e.palette.grey[300]}`,padding:"22px 20px",gap:16})),tiu=A.styled(A.Stack)(({theme:e})=>({flexDirection:"row",alignItems:"center",gap:8,flex:1,fontSize:e.typography.subtitle1.fontSize,fontWeight:e.typography.subtitle1.fontWeight,fontFamily:e.typography.fontFamily})),niu=({headerTitle:e,onClose:t,children:n,contentProps:a,maxWidth:r=684,...u})=>O.jsxs(A.Drawer,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:r}},onClose:t,...u,children:[O.jsxs(eiu,{children:[O.jsx(A.IconButton,{size:"small",onClick:t,children:O.jsx(we,{icon:"CLOSE_MARK_BUTTON",width:18})}),O.jsx(tiu,{children:e})]}),O.jsx(ZT,{children:O.jsx(A.Stack,{p:3,...a,children:n})})]}),riu=()=>O.jsxs("svg",{width:"270",height:"240",viewBox:"0 0 270 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[O.jsx("path",{d:"M134.533 239.195C60.232 239.195 0 235.603 0 231.173C0 226.744 60.232 223.152 134.533 223.152C208.835 223.152 269.067 226.744 269.067 231.173C269.067 235.603 208.835 239.195 134.533 239.195Z",fill:"#989898"}),O.jsx("path",{d:"M3.30371 156.829V184.359C3.30371 186.993 5.45705 189.141 8.08905 189.141H260.978C263.614 189.141 265.764 186.993 265.764 184.359V156.829H3.30371Z",fill:"#CFCFCF"}),O.jsx("path",{d:"M265.764 4.78535C265.764 2.15202 263.615 0 260.979 0H8.08933C5.45599 0 3.30266 2.15202 3.30266 4.78535V156.829H265.764L265.764 4.78535Z",fill:"#989898"}),O.jsx("path",{d:"M180.226 216.856H89.9502V189.14H180.226V216.856Z",fill:"#D8D7D5"}),O.jsx("path",{d:"M200.68 229.833H68.2568V216.859H200.68V229.833Z",fill:"#CFCFCF"}),O.jsx("path",{d:"M180.226 199.157H89.9502V189.14H180.226V199.157Z",fill:"#BCBBB9"}),O.jsx("path",{d:"M16.872 13.652H252.247V142.804H16.872V13.652Z",fill:"white"}),O.jsx("ellipse",{cx:"95.0798",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),O.jsx("ellipse",{cx:"88.8218",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),O.jsx("ellipse",{cx:"180.614",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),O.jsx("ellipse",{cx:"172.965",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),O.jsx("path",{d:"M122.896 88.4174C128.459 99.5438 140.281 97.4576 145.148 88.4174",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),O.jsx("path",{d:"M168.792 52.952C175.051 57.8198 175.746 58.5152 183.395 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),O.jsx("path",{d:"M99.9473 52.952C93.6887 57.8198 92.9933 58.5152 85.3439 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"})]}),aiu=({title:e,description:t,onClickButton:n,textButton:a="Atualizar"})=>O.jsxs(A.Stack,{height:1,width:1,alignItems:"center",justifyContent:"center",textAlign:"center",gap:3,children:[O.jsx(riu,{}),O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"h5",color:"grey.600",children:e}),O.jsx(A.Typography,{variant:"body1",color:"grey.600",children:t})]}),O.jsx(A.Button,{variant:"contained",size:"large",startIcon:O.jsx(we,{icon:"REFRESH_CHANGE"}),onClick:n,children:a})]}),cvt=/^[a-z0-9]+(-[a-z0-9]+)*$/,wbt=(e,t,n,a="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;a=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const s=r.pop(),l=r.pop(),d={provider:r.length>0?r[0]:a,prefix:l,name:s};return t&&!Mbt(d)?null:d}const u=r[0],c=u.split("-");if(c.length>1){const s={provider:a,prefix:c.shift(),name:c.join("-")};return t&&!Mbt(s)?null:s}if(n&&a===""){const s={provider:a,prefix:"",name:u};return t&&!Mbt(s,n)?null:s}return null},Mbt=(e,t)=>e?!!((e.provider===""||e.provider.match(cvt))&&(t&&e.prefix===""||e.prefix.match(cvt))&&e.name.match(cvt)):!1,GUn=Object.freeze({left:0,top:0,width:16,height:16}),Lbt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),yBn=Object.freeze({...GUn,...Lbt}),pBn=Object.freeze({...yBn,body:"",hidden:!1});function iiu(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const a=((e.rotate||0)+(t.rotate||0))%4;return a&&(n.rotate=a),n}function KUn(e,t){const n=iiu(e,t);for(const a in pBn)a in Lbt?a in e&&!(a in n)&&(n[a]=Lbt[a]):a in t?n[a]=t[a]:a in e&&(n[a]=e[a]);return n}function oiu(e,t){const n=e.icons,a=e.aliases||Object.create(null),r=Object.create(null);function u(c){if(n[c])return r[c]=[];if(!(c in r)){r[c]=null;const s=a[c]&&a[c].parent,l=s&&u(s);l&&(r[c]=[s].concat(l))}return r[c]}return(t||Object.keys(n).concat(Object.keys(a))).forEach(u),r}function uiu(e,t,n){const a=e.icons,r=e.aliases||Object.create(null);let u={};function c(s){u=KUn(a[s]||r[s],u)}return c(t),n.forEach(c),KUn(e,u)}function YUn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const a=oiu(e);for(const r in a){const u=a[r];u&&(t(r,uiu(e,r,u)),n.push(r))}return n}const ciu={provider:"",aliases:{},not_found:{},...GUn};function OBn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function XUn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!OBn(e,ciu))return null;const n=t.icons;for(const r in n){const u=n[r];if(!r.match(cvt)||typeof u.body!="string"||!OBn(u,pBn))return null}const a=t.aliases||Object.create(null);for(const r in a){const u=a[r],c=u.parent;if(!r.match(cvt)||typeof c!="string"||!n[c]&&!a[c]||!OBn(u,pBn))return null}return t}const QUn=Object.create(null);function liu(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function UT(e,t){const n=QUn[e]||(QUn[e]=Object.create(null));return n[t]||(n[t]=liu(e,t))}function jBn(e,t){return XUn(t)?YUn(t,(n,a)=>{a?e.icons[n]=a:e.missing.add(n)}):[]}function siu(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let lvt=!1;function JUn(e){return typeof e=="boolean"&&(lvt=e),lvt}function fiu(e){const t=typeof e=="string"?wbt(e,!0,lvt):e;if(t){const n=UT(t.provider,t.prefix),a=t.name;return n.icons[a]||(n.missing.has(a)?null:void 0)}}function diu(e,t){const n=wbt(e,!0,lvt);if(!n)return!1;const a=UT(n.provider,n.prefix);return siu(a,n.name,t)}function giu(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),lvt&&!t&&!e.prefix){let r=!1;return XUn(e)&&(e.prefix="",YUn(e,(u,c)=>{c&&diu(u,c)&&(r=!0)})),r}const n=e.prefix;if(!Mbt({provider:t,prefix:n,name:"a"}))return!1;const a=UT(t,n);return!!jBn(a,e)}const qUn=Object.freeze({width:null,height:null}),eGn=Object.freeze({...qUn,...Lbt}),_iu=/(-?[0-9.]*[0-9]+[0-9.]*)/g,miu=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function tGn(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const a=e.split(_iu);if(a===null||!a.length)return e;const r=[];let u=a.shift(),c=miu.test(u);for(;;){if(c){const s=parseFloat(u);isNaN(s)?r.push(u):r.push(Math.ceil(s*t*n)/n)}else r.push(u);if(u=a.shift(),u===void 0)return r.join("");c=!c}}const viu=e=>e==="unset"||e==="undefined"||e==="none";function hiu(e,t){const n={...yBn,...e},a={...eGn,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let u=n.body;[n,a].forEach(v=>{const h=[],C=v.hFlip,p=v.vFlip;let y=v.rotate;C?p?y+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):p&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let S;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:S=r.height/2+r.top,h.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:S=r.width/2+r.left,h.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}y%2===1&&(r.left!==r.top&&(S=r.left,r.left=r.top,r.top=S),r.width!==r.height&&(S=r.width,r.width=r.height,r.height=S)),h.length&&(u='<g transform="'+h.join(" ")+'">'+u+"</g>")});const c=a.width,s=a.height,l=r.width,d=r.height;let f,g;c===null?(g=s===null?"1em":s==="auto"?d:s,f=tGn(g,l/d)):(f=c==="auto"?l:c,g=s===null?tGn(f,d/l):s==="auto"?d:s);const _={},m=(v,h)=>{viu(h)||(_[v]=h.toString())};return m("width",f),m("height",g),_.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+d.toString(),{attributes:_,body:u}}const Ciu=/\sid="(\S+)"/g,biu="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yiu=0;function piu(e,t=biu){const n=[];let a;for(;a=Ciu.exec(e);)n.push(a[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(u=>{const c=typeof t=="function"?t(u):t+(yiu++).toString(),s=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+c+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const wBn=Object.create(null);function Oiu(e,t){wBn[e]=t}function MBn(e){return wBn[e]||wBn[""]}function LBn(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 PBn=Object.create(null),svt=["https://api.simplesvg.com","https://api.unisvg.com"],Pbt=[];for(;svt.length>0;)svt.length===1||Math.random()>.5?Pbt.push(svt.shift()):Pbt.push(svt.pop());PBn[""]=LBn({resources:["https://api.iconify.design"].concat(Pbt)});function jiu(e,t){const n=LBn(t);return n===null?!1:(PBn[e]=n,!0)}function EBn(e){return PBn[e]}let nGn=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function wiu(e,t){const n=EBn(e);if(!n)return 0;let a;if(!n.maxURL)a=0;else{let r=0;n.resources.forEach(c=>{r=Math.max(r,c.length)});const u=t+".json?icons=";a=n.maxURL-r-n.path.length-u.length}return a}function Miu(e){return e===404}const Liu=(e,t,n)=>{const a=[],r=wiu(e,t),u="icons";let c={type:u,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,d)=>{s+=l.length+1,s>=r&&d>0&&(a.push(c),c={type:u,provider:e,prefix:t,icons:[]},s=l.length),c.icons.push(l)}),a.push(c),a};function Piu(e){if(typeof e=="string"){const t=EBn(e);if(t)return t.path}return"/"}const Eiu={prepare:Liu,send:(e,t,n)=>{if(!nGn){n("abort",424);return}let a=Piu(t.provider);switch(t.type){case"icons":{const u=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});a+=u+".json?"+l.toString();break}case"custom":{const u=t.uri;a+=u.slice(0,1)==="/"?u.slice(1):u;break}default:n("abort",400);return}let r=503;nGn(e+a).then(u=>{const c=u.status;if(c!==200){setTimeout(()=>{n(Miu(c)?"abort":"next",c)});return}return r=501,u.json()}).then(u=>{if(typeof u!="object"||u===null){setTimeout(()=>{u===404?n("abort",u):n("next",r)});return}setTimeout(()=>{n("success",u)})}).catch(()=>{n("next",r)})}};function kiu(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,u)=>r.provider!==u.provider?r.provider.localeCompare(u.provider):r.prefix!==u.prefix?r.prefix.localeCompare(u.prefix):r.name.localeCompare(u.name));let a={provider:"",prefix:"",name:""};return e.forEach(r=>{if(a.name===r.name&&a.prefix===r.prefix&&a.provider===r.provider)return;a=r;const u=r.provider,c=r.prefix,s=r.name,l=n[u]||(n[u]=Object.create(null)),d=l[c]||(l[c]=UT(u,c));let f;s in d.icons?f=t.loaded:c===""||d.missing.has(s)?f=t.missing:f=t.pending;const g={provider:u,prefix:c,name:s};f.push(g)}),t}function rGn(e,t){e.forEach(n=>{const a=n.loaderCallbacks;a&&(n.loaderCallbacks=a.filter(r=>r.id!==t))})}function Siu(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const a=e.provider,r=e.prefix;t.forEach(u=>{const c=u.icons,s=c.pending.length;c.pending=c.pending.filter(l=>{if(l.prefix!==r)return!0;const d=l.name;if(e.icons[d])c.loaded.push({provider:a,prefix:r,name:d});else if(e.missing.has(d))c.missing.push({provider:a,prefix:r,name:d});else return n=!0,!0;return!1}),c.pending.length!==s&&(n||rGn([e],u.id),u.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),u.abort))})}))}let Diu=0;function Iiu(e,t,n){const a=Diu++,r=rGn.bind(null,n,a);if(!t.pending.length)return r;const u={id:a,icons:t,callback:e,abort:r};return n.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(u)}),r}function Biu(e,t=!0,n=!1){const a=[];return e.forEach(r=>{const u=typeof r=="string"?wbt(r,t,n):r;u&&a.push(u)}),a}var Wiu={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $iu(e,t,n,a){const r=e.resources.length,u=e.random?Math.floor(Math.random()*r):e.index;let c;if(e.random){let b=e.resources.slice(0);for(c=[];b.length>1;){const M=Math.floor(Math.random()*b.length);c.push(b[M]),b=b.slice(0,M).concat(b.slice(M+1))}c=c.concat(b)}else c=e.resources.slice(u).concat(e.resources.slice(0,u));const s=Date.now();let l="pending",d=0,f,g=null,_=[],m=[];typeof a=="function"&&m.push(a);function v(){g&&(clearTimeout(g),g=null)}function h(){l==="pending"&&(l="aborted"),v(),_.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),_=[]}function C(b,M){M&&(m=[]),typeof b=="function"&&m.push(b)}function p(){return{startTime:s,payload:t,status:l,queriesSent:d,queriesPending:_.length,subscribe:C,abort:h}}function y(){l="failed",m.forEach(b=>{b(void 0,f)})}function S(){_.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),_=[]}function w(b,M,P){const k=M!=="success";switch(_=_.filter(W=>W!==b),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(M==="abort"){f=P,y();return}if(k){f=P,_.length||(c.length?j():y());return}if(v(),S(),!e.random){const W=e.resources.indexOf(b.resource);W!==-1&&W!==e.index&&(e.index=W)}l="completed",m.forEach(W=>{W(P)})}function j(){if(l!=="pending")return;v();const b=c.shift();if(b===void 0){if(_.length){g=setTimeout(()=>{v(),l==="pending"&&(S(),y())},e.timeout);return}y();return}const M={status:"pending",resource:b,callback:(P,k)=>{w(M,P,k)}};_.push(M),d++,g=setTimeout(j,e.rotate),n(b,t,M.callback)}return setTimeout(j),p}function aGn(e){const t={...Wiu,...e};let n=[];function a(){n=n.filter(s=>s().status==="pending")}function r(s,l,d){const f=$iu(t,s,l,(g,_)=>{a(),d&&d(g,_)});return n.push(f),f}function u(s){return n.find(l=>s(l))||null}return{query:r,find:u,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:a}}function iGn(){}const kBn=Object.create(null);function xiu(e){if(!kBn[e]){const t=EBn(e);if(!t)return;const n=aGn(t),a={config:t,redundancy:n};kBn[e]=a}return kBn[e]}function Aiu(e,t,n){let a,r;if(typeof e=="string"){const u=MBn(e);if(!u)return n(void 0,424),iGn;r=u.send;const c=xiu(e);c&&(a=c.redundancy)}else{const u=LBn(e);if(u){a=aGn(u);const c=e.resources?e.resources[0]:"",s=MBn(c);s&&(r=s.send)}}return!a||!r?(n(void 0,424),iGn):a.query(t,r,n)().abort}const oGn="iconify2",fvt="iconify",uGn=fvt+"-count",cGn=fvt+"-version",lGn=36e5,Riu=168;function SBn(e,t){try{return e.getItem(t)}catch{}}function DBn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function sGn(e,t){try{e.removeItem(t)}catch{}}function IBn(e,t){return DBn(e,uGn,t.toString())}function BBn(e){return parseInt(SBn(e,uGn))||0}const Ebt={local:!0,session:!0},fGn={local:new Set,session:new Set};let WBn=!1;function ziu(e){WBn=e}let kbt=typeof window>"u"?{}:window;function dGn(e){const t=e+"Storage";try{if(kbt&&kbt[t]&&typeof kbt[t].length=="number")return kbt[t]}catch{}Ebt[e]=!1}function gGn(e,t){const n=dGn(e);if(!n)return;const a=SBn(n,cGn);if(a!==oGn){if(a){const s=BBn(n);for(let l=0;l<s;l++)sGn(n,fvt+l.toString())}DBn(n,cGn,oGn),IBn(n,0);return}const r=Math.floor(Date.now()/lGn)-Riu,u=s=>{const l=fvt+s.toString(),d=SBn(n,l);if(typeof d=="string"){try{const f=JSON.parse(d);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>r&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,s))return!0}catch{}sGn(n,l)}};let c=BBn(n);for(let s=c-1;s>=0;s--)u(s)||(s===c-1?(c--,IBn(n,c)):fGn[e].add(s))}function _Gn(){if(!WBn){ziu(!0);for(const e in Ebt)gGn(e,t=>{const n=t.data,a=t.provider,r=n.prefix,u=UT(a,r);if(!jBn(u,n).length)return!1;const c=n.lastModified||-1;return u.lastModifiedCached=u.lastModifiedCached?Math.min(u.lastModifiedCached,c):c,!0})}}function Hiu(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const a in Ebt)gGn(a,r=>{const u=r.data;return r.provider!==e.provider||u.prefix!==e.prefix||u.lastModified===t});return!0}function Viu(e,t){WBn||_Gn();function n(a){let r;if(!Ebt[a]||!(r=dGn(a)))return;const u=fGn[a];let c;if(u.size)u.delete(c=Array.from(u).shift());else if(c=BBn(r),!IBn(r,c+1))return;const s={cached:Math.floor(Date.now()/lGn),provider:e.provider,data:t};return DBn(r,fvt+c.toString(),JSON.stringify(s))}t.lastModified&&!Hiu(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function mGn(){}function Fiu(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Siu(e)}))}function Niu(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:n,prefix:a}=e,r=e.iconsToLoad;delete e.iconsToLoad;let u;if(!r||!(u=MBn(n)))return;u.prepare(n,a,r).forEach(s=>{Aiu(n,s,l=>{if(typeof l!="object")s.icons.forEach(d=>{e.missing.add(d)});else try{const d=jBn(e,l);if(!d.length)return;const f=e.pendingIcons;f&&d.forEach(g=>{f.delete(g)}),Viu(e,l)}catch(d){console.error(d)}Fiu(e)})})}))}const Tiu=(e,t)=>{const n=Biu(e,!0,JUn()),a=kiu(n);if(!a.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(a.loaded,a.missing,a.pending,mGn)}),()=>{l=!1}}const r=Object.create(null),u=[];let c,s;return a.pending.forEach(l=>{const{provider:d,prefix:f}=l;if(f===s&&d===c)return;c=d,s=f,u.push(UT(d,f));const g=r[d]||(r[d]=Object.create(null));g[f]||(g[f]=[])}),a.pending.forEach(l=>{const{provider:d,prefix:f,name:g}=l,_=UT(d,f),m=_.pendingIcons||(_.pendingIcons=new Set);m.has(g)||(m.add(g),r[d][f].push(g))}),u.forEach(l=>{const{provider:d,prefix:f}=l;r[d][f].length&&Niu(l,r[d][f])}),t?Iiu(t,a,u):mGn};function Ziu(e,t){const n={...e};for(const a in t){const r=t[a],u=typeof r;a in qUn?(r===null||r&&(u==="string"||u==="number"))&&(n[a]=r):u===typeof n[a]&&(n[a]=a==="rotate"?r%4:r)}return n}const Uiu=/[\s,]+/;function Giu(e,t){t.split(Uiu).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Kiu(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function a(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:a(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let u=parseFloat(e.slice(0,e.length-n.length));return isNaN(u)?0:(u=u/r,u%1===0?a(u):0)}}return t}function Yiu(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const a in t)n+=" "+a+'="'+t[a]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Xiu(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Qiu(e){return"data:image/svg+xml,"+Xiu(e)}function Jiu(e){return'url("'+Qiu(e)+'")'}let dvt;function qiu(){try{dvt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{dvt=null}}function eou(e){return dvt===void 0&&qiu(),dvt?dvt.createHTML(e):e}const vGn={...eGn,inline:!1},tou={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},nou={display:"inline-block"},$Bn={backgroundColor:"currentColor"},hGn={backgroundColor:"transparent"},CGn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},bGn={WebkitMask:$Bn,mask:$Bn,background:hGn};for(const e in bGn){const t=bGn[e];for(const n in CGn)t[e+n]=CGn[n]}const rou={...vGn,inline:!0};function yGn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const aou=(e,t,n,a)=>{const r=n?rou:vGn,u=Ziu(r,t),c=t.mode||"svg",s={},l=t.style||{},d={...c==="svg"?tou:{},ref:a};for(let p in t){const y=t[p];if(y!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":u[p]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Giu(u,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?u[p]=Kiu(y):typeof y=="number"&&(u[p]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete d["aria-hidden"];break;default:r[p]===void 0&&(d[p]=y)}}const f=hiu(e,u),g=f.attributes;if(u.inline&&(s.verticalAlign="-0.125em"),c==="svg"){d.style={...s,...l},Object.assign(d,g);let p=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:eou(piu(f.body,y?()=>y+"ID"+p++:"iconifyReact"))},o.createElement("svg",d)}const{body:_,width:m,height:v}=e,h=c==="mask"||(c==="bg"?!1:_.indexOf("currentColor")!==-1),C=Yiu(_,{...g,width:m+"",height:v+""});return d.style={...s,"--svg":Jiu(C),width:yGn(g.width),height:yGn(g.height),...nou,...h?$Bn:hGn,...l},o.createElement("span",d)};if(JUn(!0),Oiu("",Eiu),typeof document<"u"&&typeof window<"u"){_Gn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(a=>{try{(typeof a!="object"||a===null||a instanceof Array||typeof a.icons!="object"||typeof a.prefix!="string"||!giu(a))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const a="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;jiu(n,r)||console.error(a)}catch{console.error(a)}}}}class pGn extends o.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 n=this.state,a=this.props.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:a});return}let r;if(typeof a!="string"||(r=wbt(a,!1,!0))===null){this._abortLoading(),this._setData(null);return}const u=fiu(r);if(!u){(!this._loading||this._loading.name!==a)&&(this._abortLoading(),this._icon="",this._setData(null),u!==null&&(this._loading={name:a,abort:Tiu([r],this._checkIcon.bind(this,!1))}));return}if(this._icon!==a||n.icon===null){this._abortLoading(),this._icon=a;const c=["iconify"];r.prefix!==""&&c.push("iconify--"+r.prefix),r.provider!==""&&c.push("iconify--"+r.provider),this._setData({data:u,classes:c}),this.props.onLoad&&this.props.onLoad(a)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:o.createElement("span",{});let a=t;return n.classes&&(a={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),aou({...yBn,...n.data},a,t._inline,t._ref)}}const iou=o.forwardRef(function(t,n){const a={...t,_ref:n,_inline:!1};return o.createElement(pGn,a)});o.forwardRef(function(t,n){const a={...t,_ref:n,_inline:!0};return o.createElement(pGn,a)});const OGn=o.forwardRef(({icon:e,width:t=20,sx:n,...a},r)=>O.jsx(A.Box,{ref:r,component:iou,icon:e,sx:{width:t,height:t,...n},...a}));OGn.displayName="Iconify";/*!
|
|
35383
35383
|
* Cropper.js v1.6.2
|
|
35384
35384
|
* https://fengyuanchen.github.io/cropperjs
|
|
35385
35385
|
*
|
|
@@ -36628,4 +36628,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36628
36628
|
`&&(u.left++,d--),_=d,_===0&&r.right.push({startLine:u.right,endLine:u.right}),g===`
|
|
36629
36629
|
`&&(_-=1),r.left.push({startLine:u.left,endLine:u.left+_}),u.left+=d;break;case a.DIFF_INSERT:f===`
|
|
36630
36630
|
`&&(u.right++,d--),_=d,_===0&&r.left.push({startLine:u.left,endLine:u.left}),g===`
|
|
36631
|
-
`&&(_-=1),r.right.push({startLine:u.right,endLine:u.right+_}),u.right+=d;break;default:throw new Error("Diff type was not defined.")}}}),r},t.prototype.setCodeMarkers=function(n){n===void 0&&(n={left:[],right:[]});for(var a=[],r={left:[],right:[]},u=0;u<n.left.length;u++){var c={startRow:n.left[u].startLine-1,endRow:n.left[u].endLine,type:"text",className:"codeMarker"};r.left.push(c)}for(var u=0;u<n.right.length;u++){var c={startRow:n.right[u].startLine-1,endRow:n.right[u].endLine,type:"text",className:"codeMarker"};r.right.push(c)}return a[0]=r.left,a[1]=r.right,a},t.prototype.render=function(){var n=this.diff();return SYn.createElement(n5u.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:n})},t.propTypes={cursorStart:Mt.number,editorProps:Mt.object,enableBasicAutocompletion:Mt.bool,enableLiveAutocompletion:Mt.bool,focus:Mt.bool,fontSize:Mt.number,height:Mt.string,highlightActiveLine:Mt.bool,maxLines:Mt.number,minLines:Mt.number,mode:Mt.string,name:Mt.string,className:Mt.string,onLoad:Mt.func,onPaste:Mt.func,onScroll:Mt.func,onChange:Mt.func,orientation:Mt.string,readOnly:Mt.bool,scrollMargin:Mt.array,setOptions:Mt.object,showGutter:Mt.bool,showPrintMargin:Mt.bool,splits:Mt.number,style:Mt.object,tabSize:Mt.number,theme:Mt.string,value:Mt.array,width:Mt.string,wrapEnabled:Mt.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(SYn.Component);jWn.default=a5u,Object.defineProperty(Zle,"__esModule",{value:!0}),Zle.diff=Zle.split=void 0;var i5u=pWn,o5u=jWn;Zle.diff=o5u.default;var u5u=Qbt;Zle.split=u5u.default;var c5u=Zle.default=i5u.default;const DYn=A.styled(A.Stack)(({theme:e})=>({borderBottom:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderTop:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,padding:16})),l5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,padding:12,"& .MuiInputBase-root":{background:e.palette.grey[100]}})),s5u=A.styled(A.Stack)(({theme:e})=>({display:"flex",textAlign:"center",flexDirection:"row",alignItems:"center",width:"100%",gap:8,height:34,backgroundColor:"#fff",padding:"8px 16px",borderRadius:8,border:`1px solid ${A.alpha(e.palette.grey[500],.24)}`,cursor:"pointer",color:e.palette.text.disabled,"&:hover, &:focus":{border:`1px solid ${e.palette.primary.main}`,backgroundColor:A.alpha(e.palette.primary.main,.05)}})),f5u=A.styled(A.Stack)(({theme:e})=>({width:"100%","& fieldset":{border:`1px solid ${A.alpha(e.palette.grey[500],.24)}`,borderRadius:8,"& legend":{color:e.palette.text.disabled,fontSize:12}}})),IYn=A.styled(A.IconButton)({marginLeft:"auto",padding:0}),d5u=({openPopover:e,handleClose:t,addItem:n})=>{const[a,r]=o.useState(""),u=()=>{n(a),t(),r("")};return O.jsxs(A.Popover,{open:!!e,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:e,onClose:t,sx:{maxWidth:464},title:"Novo Argumento",children:[O.jsx(A.Typography,{variant:"subtitle1",color:"text.primary",p:1,children:"Novo Argumento"}),O.jsx(DYn,{children:O.jsx(A.TextField,{value:a,onChange:c=>r(c.target.value),name:"item",label:"Novo argumento",size:"small"})}),O.jsxs(A.Stack,{p:1,direction:"row",justifyContent:"flex-end",spacing:1,children:[O.jsx(A.Button,{variant:"outlined",color:"inherit",size:"small",onClick:t,children:"Cancelar"}),O.jsx(A.Button,{variant:"contained",color:"primary",size:"small",startIcon:O.jsx(we,{icon:"SAVE_MARK"}),disabled:!a||a==="",onClick:u,children:"Salvar"})]})]})},eyt=({label:e,itens:t,argumentsValues:n,fields:a,addItem:r,removeItem:u,insertItemSQL:c})=>{const[s,l]=o.useState(!1),d=Amt(),f=()=>{l(!s)},g=(m,v)=>{m.stopPropagation(),u&&u(v)},_=m=>{c(n?` $ARG[${m}]`:a?` this.${m}`:` ${m}`)};return O.jsxs(A.Stack,{children:[O.jsxs(A.Stack,{direction:"row",alignItems:"center",spacing:1.5,padding:1,paddingLeft:0,children:[O.jsx(IYn,{edge:"end",onClick:f,children:O.jsx(we,{icon:s?"CHEVRON_UP":"CHEVRON_RIGHT"})}),O.jsx(A.Typography,{variant:"overline",color:"text.primary",children:e}),r&&O.jsxs(O.Fragment,{children:[O.jsx(IYn,{edge:"end",onClick:d.onOpen,children:O.jsx(we,{icon:"SIMPLE_ADD"})}),O.jsx(d5u,{addItem:r,handleClose:d.onClose,openPopover:d.open})]})]}),s&&O.jsx(A.Stack,{spacing:.5,children:O.jsx(ZT,{sx:{maxHeight:150},children:t==null?void 0:t.map((m,v)=>O.jsxs(s5u,{direction:"row",justifyContent:"space-between",onClick:()=>_(m),children:[O.jsx(A.Typography,{variant:"caption",textAlign:"center",width:"100%",children:m}),u&&O.jsx(A.IconButton,{edge:"end",onClick:h=>g(h,m),children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]},v))})})]})},g5u=({fieldsSelect:e,argumentsValues:t,onChangeArguments:n,sql:a,setSql:r,setFilterRule:u})=>{const[c,s]=o.useState(),{setValue:l}=Re.useFormContext(),[d,f]=o.useState(1),[g,_]=o.useState(),m=y=>{g.session.insert(d,` ${y} `)},v=y=>{n([...t||[],y])},h=y=>{n(t==null?void 0:t.filter(S=>S!==y))},C=y=>{r(y),u(y),l("groups",void 0)},p=c?e.filter(y=>{var S;return y.id.toString().toLocaleLowerCase().includes(c)||y.description.toString().toLocaleLowerCase().includes(c)||((S=y.name)==null?void 0:S.toString().toLocaleLowerCase().includes(c))}):e;return O.jsxs(A.Stack,{direction:"row",padding:1.5,spacing:1.5,children:[O.jsxs(l5u,{children:[O.jsx(Fle,{value:c,trigger:"change",onSearch:y=>s(y==null?void 0:y.toLocaleLowerCase()),fullWidth:!0,size:"small",placeholder:"Buscar",iconPosition:"start"}),O.jsx(eyt,{label:"Campos",fields:!0,itens:p.map(y=>y.name),insertItemSQL:m}),O.jsx(eyt,{label:"Argumentos",argumentsValues:!0,itens:t,addItem:v,removeItem:h,insertItemSQL:m}),O.jsx(eyt,{label:"Operadores",insertItemSQL:m,itens:["=",">","<","<=",">=","!=","IS NULL","IN","LIKE","NOT IN","NOT LIKE","IS NOT NULL"]}),O.jsx(eyt,{label:"Filtros",fields:!0,insertItemSQL:m,itens:p.map(y=>y.name)})]}),O.jsx(f5u,{children:O.jsxs("fieldset",{children:[O.jsx("legend",{children:"Regras de listagem"}),O.jsx(c5u,{width:"100%",mode:"sql",theme:"chrome",name:"rule",fontSize:14,onChange:C,onCursorChange:y=>f(y.getCursor()),value:a,onLoad:y=>_(y),showPrintMargin:!1,showGutter:!1,highlightActiveLine:!1,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!1,tabSize:2}})]})})]})},_5u=({data:e,fields:t,isLoading:n,isError:a})=>O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"subtitle2",color:"text.secondary",children:"PRÉ VISUALIZAÇÃO DOS RESULTADOS DA LISTAGEM"}),a&&O.jsx(A.Stack,{children:"Falha ao gerar resultado"}),e&&O.jsx(CBn,{columns:t==null?void 0:t.map(r=>({field:r,headerName:r,width:150,type:"string"})),loading:n,rows:e,disableRowSelectionOnClick:!0,disableColumnMenu:!0,disableColumnResize:!0,showColumnVerticalBorder:!0,hideFooter:!0})]}),m5u=({openPopover:e,handleClose:t,argumentsValues:n,filter:a,onExecute:r})=>{const[u,c]=o.useState([]),s=(d,f)=>{if(f&&f!=="")u.filter(_=>_.name===d).length>0?c(u.map(_=>_.name===d?{name:d,value:f}:_)):c([...u||[],{name:d,value:f}]);else{const g=u.filter(_=>_.name===d);c(g)}},l=()=>{let d=a||"";return u.forEach(f=>{d=d.replace(`$ARG[${f.name}]`,`'${f.value}'`)}),d};return O.jsxs(A.Popover,{open:!!e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:e,onClose:t,title:"Pré-visualizar",children:[O.jsx(A.Typography,{variant:"subtitle1",color:"text.primary",p:1,children:"Pré-visualizar"}),O.jsx(DYn,{children:n==null?void 0:n.map((d,f)=>O.jsx(A.TextField,{name:d,label:d,size:"small",onChange:g=>s(d,g.target.value),required:!0},f))}),O.jsxs(A.Stack,{p:2,direction:"row",justifyContent:"flex-end",spacing:1,children:[O.jsx(A.Button,{variant:"outlined",color:"inherit",size:"small",onClick:t,children:"Cancelar"}),O.jsx(A.Button,{variant:"contained",color:"primary",size:"small",startIcon:O.jsx(we,{icon:"PLAY_SIMPLE"}),onClick:()=>r(l()),disabled:u.length<n.length,children:"Executar"})]})]})},v5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center",overflow:"hidden"})),h5u=A.styled(A.Stack)(()=>({backgroundColor:"#F5F5F5",padding:8,width:"100%",justifyContent:"space-between",alignItems:"center",gap:12,"& .MuiInputBase-root":{backgroundColor:"#fff"}}));A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center"}));const C5u=A.styled(A.Collapse)(()=>({width:"100%",padding:"12px 16px"})),BYn=({description:e,name:t,children:n,header:a,onDelete:r})=>{const[u,c]=xmt(!0);return O.jsxs(v5u,{children:[O.jsxs(h5u,{direction:"row",children:[O.jsxs(A.Stack,{direction:"row",alignItems:"center",gap:1.5,flex:1,children:[O.jsx(A.IconButton,{edge:"end",onClick:c,children:O.jsx(we,{icon:u?"CHEVRON_UP":"CHEVRON_RIGHT"})}),O.jsx(A.Typography,{variant:"overline",color:"text.primary",children:t}),O.jsx(A.Typography,{variant:"overline",color:"text.secondary",children:e}),O.jsx(A.Stack,{flex:1,children:a})]}),O.jsx(A.IconButton,{color:"error",onClick:r,children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]}),O.jsx(C5u,{in:u,timeout:"auto",unmountOnExit:!0,children:n})]})},oZ=({name:e,helperText:t,rules:n,onSelectOption:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:s}})=>O.jsx(BDn,{...c,...r,onChange:l=>{a&&a(l,c.value),c.onChange(l)},error:!!s,helperText:(s==null?void 0:s.message)||t})})},pn=({name:e,helperText:t,rules:n,onChange:a,tabIndex:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:n,render:({field:{ref:s,...l},fieldState:{error:d}})=>O.jsx(A.TextField,{...l,onChange:f=>{l.onChange(f),a&&a(f)},inputRef:s,fullWidth:!0,error:!!d,helperText:(d==null?void 0:d.message)||t,...u,inputProps:{...u.inputProps,tabIndex:r}})})},b5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.primary.main,.32)}`,backgroundColor:A.alpha(e.palette.primary.main,.08),borderRadius:8,padding:8,paddingLeft:24,alignItems:"center"})),y5u=A.styled(A.IconButton)(()=>({height:"28px",marginLeft:"16px","&:hover":{backgroundColor:"transparent"}})),WYn=A.styled(oZ)(()=>({width:230})),p5u=({index:e,indexGroup:t,removeConditional:n,fieldsSelect:a})=>{const{watch:r}=Re.useFormContext(),u=`groups.[${t}].conditionals[${e}].field`,c=`groups.[${t}].conditionals[${e}].conditional`,s=`groups.[${t}].conditionals[${e}].type`,l=`groups.[${t}].conditionals[${e}].value`,d=[{value:"=",label:"Igual a"},{value:">",label:"Maior que"},{value:"<",label:"Menor que"},{value:"<=",label:"Menor ou igual a"},{value:">=",label:"Maior ou igual a"},{value:"!=",label:"Diferente de"},{value:"IS NULL",label:"Está vazio"},{value:"IN",label:"Contido em"},{value:"LIKE",label:"Contendo"},{value:"NOT IN",label:"Não contido em"},{value:"NOT LIKE",label:"Não contém"},{value:"IS NOT NULL",label:"Não está vazio"}],f=r(s);return O.jsxs(A.Stack,{direction:"row",spacing:1.5,alignItems:"center",width:1,children:[O.jsx(oZ,{label:"Se",name:u,size:"small",fullWidth:!0,options:a==null?void 0:a.map(g=>({value:g.name,label:g.description}))}),O.jsx(oZ,{label:"Estado",name:c,size:"small",fullWidth:!0,options:d}),O.jsx(oZ,{label:"Objetivo",name:`groups.[${t}].conditionals[${e}].type`,size:"small",fullWidth:!0,options:[{label:"Valor",value:"value"},{label:"Campo",value:"field"}]}),f==="value"?O.jsx(pn,{label:"Valor",name:l,size:"small",fullWidth:!0}):O.jsx(oZ,{label:"Se",name:l,size:"small",fullWidth:!0,options:a==null?void 0:a.map(g=>({value:g.name,label:g.description}))}),O.jsx(y5u,{color:"error",onClick:()=>{n(e)},children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]})},O5u=({index:e,removeGroup:t,fieldsSelect:n})=>{const{control:a}=Re.useFormContext(),r=`groups.[${e}].operator`,{fields:u,append:c,remove:s}=Re.useFieldArray({name:`groups.${e}.conditionals`,control:a});return O.jsx(BYn,{name:`GRUPO ${e+1}`,description:"EXIBIR A LISTAGEM QUANDO ATENDER UMA DAS CONDIÇÕES",header:O.jsx(WYn,{name:r,size:"small",options:[{label:"Qualquer",value:"or"},{label:"Todas as condições",value:"and"}]}),onDelete:()=>t(e),children:O.jsxs(A.Stack,{spacing:1.5,alignItems:"flex-start",children:[u.map((l,d)=>O.jsx(p5u,{index:d,indexGroup:e,removeConditional:f=>s(f),fieldsSelect:n},l.id)),O.jsx(EDn,{actionType:"NEW",onClick:()=>c({field:"",conditional:"=",type:"value",value:""}),variant:"text",size:"small",children:"Adicionar condição"})]})})},j5u=({fieldsSelect:e})=>{const{control:t}=Re.useFormContext(),{fields:n,append:a,remove:r}=Re.useFieldArray({name:"groups",control:t});return O.jsxs(A.Stack,{gap:1.5,children:[O.jsxs(b5u,{direction:"row",spacing:1.5,children:[O.jsx(A.Typography,{variant:"body2",color:"text.light.primary",children:"Se"}),O.jsx(A.Stack,{children:O.jsx(WYn,{size:"small",name:"operator",options:[{label:"Qualquer",value:"or"},{label:"Todas as condições",value:"and"}]})}),O.jsxs(A.Typography,{variant:"body2",color:"text.light.primary",children:["regra de ",O.jsx("strong",{children:"todos os grupos"})," “Se” forem cumpridas,"," ",O.jsx("strong",{children:"irá exibir a listagem."})]})]}),n.map((u,c)=>O.jsx(O5u,{index:c,removeGroup:s=>r(s),fieldsSelect:e},u.id)),O.jsx(A.Button,{size:"large",color:"inherit",startIcon:O.jsx(we,{icon:"SIMPLE_ADD"}),variant:"outlined",fullWidth:!0,onClick:()=>{a({operator:"or",conditionals:[{field:"",conditional:"=",type:"value",value:""}]})},children:"Adicionar grupo"})]})},w5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,marginTop:24})),M5u=A.styled(A.Stack)(()=>({padding:12,borderBottom:"1px solid #e0e0e0"})),$Yn=A.styled(A.ToggleButton)(()=>({lineHeight:"1em"})),L5u=A.styled(A.Stack)(()=>({padding:12})),P5u=({argumentsValues:e,onChangeArguments:t,fieldsSelect:n,onChangeRule:a,onChangeSqlProcessed:r,defaultMode:u,defaultFilter:c,dataPreview:s,errorPreview:l,loadingPreview:d})=>{const[f,g]=o.useState(c||""),[_,m]=xmt(),[v,h]=o.useState(u||"simple"),{watch:C,setValue:p}=Re.useFormContext(),y=Amt(),S=C("operator"),w=C("groups");o.useEffect(()=>()=>{p("config",{})},[]);const j=(P,k)=>{if(k==="advanced"){const W=EKn(w,S);g(W),r(W),a(W)}h(k)},b=P=>{_||v==="simple"||e.length===0?m():y.onOpen(P)},M=P=>{m(),r(P)};return O.jsx(O.Fragment,{children:O.jsxs(w5u,{children:[O.jsxs(M5u,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[O.jsxs(sYn,{color:"primary",value:v,size:"small",exclusive:!0,onChange:j,children:[O.jsx($Yn,{value:"simple",size:"small",children:"Modo simplificado"}),O.jsx($Yn,{value:"advanced",size:"small",children:"Modo avançado"})]}),O.jsx(A.Button,{variant:"outlined",color:"inherit",onClick:P=>b(P),startIcon:!_&&O.jsx(we,{icon:"PLAY_SIMPLE",color:"primary.main"}),children:_?"Voltar":"Executar"}),!!y.open&&O.jsx(m5u,{handleClose:y.onClose,openPopover:y.open,argumentsValues:e,filter:f,onExecute:P=>M(P)})]}),O.jsx(L5u,{children:_?O.jsx(_5u,{fields:n.map(P=>P.name),data:s,isError:l,isLoading:d}):O.jsx(O.Fragment,{children:v==="simple"?O.jsx(j5u,{fieldsSelect:n,sql:f,setSql:g}):O.jsx(g5u,{fieldsSelect:n,argumentsValues:e,onChangeArguments:t,sql:f,setSql:g,setFilterRule:a})})})]})})},xYn=({name:e,helperText:t,onChange:n,tabIndex:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,render:({field:c,fieldState:{error:s}})=>O.jsxs("div",{children:[O.jsx(A.FormControlLabel,{control:O.jsx(A.Switch,{...c,checked:c.value,onChange:(l,d)=>{c.onChange(l),n&&n(l,d)},inputProps:{tabIndex:a}}),...r}),(!!s||t)&&O.jsx(A.FormHelperText,{error:!!s,sx:l=>({mx:"14px",color:r.disabled?l.palette.grey[500]:void 0}),children:s?s==null?void 0:s.message:t})]})})},E5u=[{label:"JSON",value:"JSON"},{label:"XML",value:"XML"},{label:"BINÁRIO",value:"BYTEA"}],k5u=[{label:"PUT",value:"PUT"},{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"DELETE",value:"DELETE"}],S5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.primary.main,.3)}`,backgroundColor:A.alpha(e.palette.primary.main,.05),flexDirection:"row",alignItems:"center",padding:10,gap:10,borderRadius:8,marginBottom:8,svg:{color:e.palette.primary.main}})),D5u=A.styled(A.IconButton)(({theme:e})=>({svg:{color:`${e.palette.primary.main} !important`}})),I5u=A.styled(A.IconButton)(()=>({height:"38px",alignSelf:"center"})),B5u=({webhookData:e,isEditing:t=!1,haveTip:n=!1})=>{const{control:a}=Re.useFormContext(),{fields:r,append:u,remove:c}=Re.useFieldArray({name:"headers",control:a}),s=()=>{u({value:"",name:""})};return O.jsxs(O.Fragment,{children:[n&&O.jsxs(S5u,{children:[O.jsx(we,{icon:"INFO_CIRCLE"}),O.jsx(A.Typography,{variant:"caption",color:"text.secondary",children:"Webhooks permitem que serviços externos sejam notificados quando determinados eventos acontecem. Saiba mais acessando a documentação do Webhook"})]}),t&&O.jsx(pn,{name:"name",label:"Nome do webhook"}),O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsx(pn,{name:"url",label:"URL de endpoint",rules:{required:{value:!0,message:"Url é obrigatório"}}}),O.jsx(pn,{name:"filter",label:"Filtro"})]}),t&&e&&O.jsxs(O.Fragment,{children:[O.jsx(pn,{variant:"filled",name:"solution",label:"Solução",disabled:!0}),O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsx(pn,{variant:"filled",name:"resource",label:"Origem",disabled:!0}),O.jsx(pn,{variant:"filled",name:"resourceID",label:"ID origem",disabled:!0,InputProps:{endAdornment:O.jsx(A.InputAdornment,{position:"end",children:O.jsx(D5u,{onClick:()=>navigator.clipboard.writeText(e.resourceID),children:O.jsx(we,{className:"copyIcon",icon:"COPY_CONTENT"})})})}}),O.jsx(pn,{variant:"filled",name:"event",label:"Evento",disabled:!0})]})]}),O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsxs(A.Stack,{width:"35%",gap:2,children:[O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Tipo de conteúdo:"}),O.jsx(IWn,{name:"content_type",options:E5u,row:!0,decorated:!0})]}),O.jsxs(A.Stack,{gap:2,children:[O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Métodos Http:"}),O.jsx(IWn,{name:"http_method",options:k5u,row:!0,decorated:!0})]})]}),O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Status:"}),O.jsx(xYn,{name:"active",label:"Ativo"}),O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Cabeçalho:"}),r==null?void 0:r.map((l,d)=>O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsx(pn,{name:`headers.${d}.name`,label:"Chave",rules:{required:{value:!0,message:"Chave é obrigatório"}}}),O.jsx(pn,{name:`headers.${d}.value`,label:"Valor",rules:{required:{value:!0,message:"Valor é obrigatório"}}}),O.jsx(I5u,{onClick:()=>c(d),color:"error",children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]},l.id)),O.jsx(EDn,{actionType:"NEW",size:"large",variant:"outlined",color:"inherit",fullWidth:!0,onClick:()=>s(),children:"Adicionar novo cabeçalho"}),O.jsx(A.Divider,{})]})},AYn=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:n,render:({field:{name:u,onChange:c,value:s,ref:l},fieldState:{error:d}})=>O.jsx(lWn,{ref:l,...a,name:u,value:s,error:!!d,helperText:(d==null?void 0:d.message)||t,onChange:({target:{value:f}})=>c(f)})})},W5u=({name:e,containerProps:t,required:n,rules:a,tabIndex:r})=>{const u=`${e}.zipCode`,c=`${e}.publicPlace`,s=`${e}.number`,l=`${e}.district`,d=`${e}.complement`,f=`${e}.state`,g=`${e}.city`,_=m=>{m.key==="Enter"&&m.preventDefault()};return O.jsxs(A.Stack,{gap:1.5,...t,children:[O.jsxs(A.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[O.jsx(AYn,{name:u,label:"CEP",mask:[{mask:"00000-000"}],InputProps:{endAdornment:O.jsx(A.InputAdornment,{position:"end",children:O.jsx(A.CircularProgress,{size:24})})},rules:a,onKeyDown:_,required:n,sx:{width:"auto",flex:1,minWidth:160},tabIndex:r}),O.jsxs(A.Stack,{direction:{xs:"column",sm:"row"},gap:1.5,flex:{xs:1,md:"1 1 50%"},children:[O.jsx(pn,{name:c,label:"Logradouro",onKeyDown:_,inputProps:{maxLength:70},sx:{width:"auto",minWidth:250,flex:1},tabIndex:r}),O.jsx(pn,{name:s,label:"Número",onKeyDown:_,inputProps:{maxLength:6},sx:{width:"auto",minWidth:100},tabIndex:r})]})]}),O.jsxs(A.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[O.jsx(pn,{name:l,label:"Bairro",onKeyDown:_,inputProps:{maxLength:20},sx:{width:"auto",flex:{xs:1,md:"1 1 100px"}},tabIndex:r}),O.jsx(pn,{name:d,label:"Complemento",onKeyDown:_,inputProps:{maxLength:30},sx:{minWidth:200,width:"auto",flex:{xs:1,md:"1 1 500px"}},tabIndex:r})]}),O.jsxs(A.Stack,{gap:1.5,flexWrap:"wrap",direction:{xs:"column",sm:"row"},children:[O.jsx(oZ,{name:f,label:"Estado",options:[],disabled:!0,required:n,sx:{flex:1},tabIndex:r}),O.jsx(pn,{name:g,label:"Cidade",disabled:!0,required:n,sx:{flex:1},tabIndex:r})]})]})},$5u=({name:e,rules:t,helperText:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:t,render:({field:u,fieldState:{error:c}})=>O.jsx($Dn,{...u,...a,onChange:s=>{u.onChange(s)},error:!!c,helperText:(c==null?void 0:c.message)||n})})},x5u=({name:e,rules:t,helperText:n,tabIndex:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,rules:t,render:({field:c,fieldState:{error:s}})=>O.jsxs("div",{children:[O.jsx(A.FormControlLabel,{control:O.jsx(A.Checkbox,{...c,checked:c.value,tabIndex:a}),...r}),(!!s||n)&&O.jsx(A.FormHelperText,{error:!!s,children:s?s==null?void 0:s.message:n})]})})},A5u=({row:e,name:t,rules:n,label:a,options:r,spacing:u,helperText:c,required:s,...l})=>{const{control:d}=Re.useFormContext(),f=(g,_)=>g.includes(_)?g.filter(m=>m!==_):[...g,_];return O.jsx(Re.Controller,{name:t,control:d,rules:n,render:({field:{value:g=[],..._},fieldState:{error:m}})=>O.jsxs(A.FormControl,{component:"fieldset",children:[a&&O.jsx(A.FormLabel,{component:"legend",sx:{typography:"body2"},required:s,children:a}),O.jsx(A.FormGroup,{sx:{...e&&{flexDirection:"row"},"& .MuiFormControlLabel-root":{"&:not(:last-of-type)":{mb:u||0},...e&&{mr:0,"&:not(:last-of-type)":{mr:u||2}}}},children:r.map(v=>O.jsx(A.FormControlLabel,{control:O.jsx(A.Checkbox,{checked:g.includes(v.value),onChange:()=>_.onChange(f(g,v.value))}),label:v.label,...l},v.value))}),(!!m||c)&&O.jsx(A.FormHelperText,{error:!!m,sx:v=>({color:l.disabled?v.palette.grey[500]:void 0}),children:m?m==null?void 0:m.message:c})]})})},R5u=({keyName:e,inputs:t=[],rules:n,tabIndex:a,...r})=>{const u=o.useRef(null),{control:c,setValue:s,formState:{errors:l}}=Re.useFormContext(),d=_=>{const m=_.clipboardData.getData("text").split("");t.map((v,h)=>s(v,m[h])),_.preventDefault()},f=(_,m)=>{const{maxLength:v,value:h,name:C}=_.target,p=C.replace(e,""),y=Number(p),S=document.querySelector(`input[name=${e}${y+1}]`);h.length>v&&(_.target.value=h[0]),h.length>=v&&y<6&&S!==null&&S.focus(),m(_)};nIn("paste",d,u);const g=t.some(_=>l[_]);return O.jsxs(A.Stack,{children:[O.jsx(A.Stack,{direction:"row",spacing:2,justifyContent:"center",ref:u,children:t.map((_,m)=>O.jsx(Re.Controller,{name:`${e}${m+1}`,control:c,rules:n,render:({field:v,fieldState:{error:h}})=>O.jsx(A.TextField,{...r,...v,autoComplete:"none",error:!!h,autoFocus:m===0,placeholder:"-",onChange:C=>{f(C,v.onChange)},onFocus:C=>C.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number",tabIndex:a}})},_))}),g&&O.jsx(A.FormHelperText,{error:!0,sx:{px:2},children:"Código é obrigatório"})]})},z5u=({name:e,rules:t,helperText:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:{...t,validate:{...t==null?void 0:t.validate,validation:u=>{const c="#"+u.replaceAll("#","");return/^#([0-9A-Fa-f]{3}){1,2}$/.test(c)?!0:"Cor inválida"}}},render:({field:{ref:u,onChange:c,...s},fieldState:{error:l}})=>O.jsx($Zn,{...s,onChangeColor:c,inputRef:u,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||n,...a})})},H5u=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:t,render:({field:{ref:s,...l},fieldState:{error:d}})=>{var f;return O.jsx(_Z.DatePicker,{inputRef:s,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...u.localeText},...l,...u,value:l.value?new Date(l.value):null,slotProps:{textField:{...(f=u.slotProps)==null?void 0:f.textField,required:r,error:!!d,helperText:(d==null?void 0:d.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},V5u=({name:e,label:t,rules:n,tabIndex:a,helperText:r,required:u,...c})=>{const{control:s,setError:l}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:s,rules:n,render:({field:{value:d,onChange:f},fieldState:{error:g}})=>O.jsx(_Z.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...c.localeText},value:[(d==null?void 0:d.startDate)||null,(d==null?void 0:d.endDate)||null],onChange:_=>f({startDate:_[0],endDate:_[1]}),onError:_=>{l(e,{message:_[0]||_[1]||void 0})},...c,slotProps:{textField:({position:_})=>{var m;return{...(m=c.slotProps)==null?void 0:m.textField,required:u,error:!!g,helperText:(g==null?void 0:g.message)||r,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:_==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`,inputProps:{tabIndex:a}}}},sx:{width:1}})})},F5u=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:t,render:({field:{ref:s,...l},fieldState:{error:d}})=>{var f;return O.jsx(_Z.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:s,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...l,...u,value:l.value?new Date(l.value):null,slotProps:{textField:{...(f=u.slotProps)==null?void 0:f.textField,required:r,error:!!d,helperText:(d==null?void 0:d.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},N5u=({id:e,children:t,onSubmit:n,methods:a,...r})=>O.jsx(Re.FormProvider,{...a,children:O.jsx(A.Stack,{component:"form",id:e,onSubmit:n,flex:1,width:1,noValidate:!0,...r,children:t})}),T5u=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:n,render:({field:{ref:u,value:c,...s},fieldState:{error:l}})=>O.jsx(aWn,{value:c,inputRef:u,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||t,...a,...s,name:e})})},Z5u=({name:e,label:t="",rules:n,helperText:a,changed:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:n,render:({field:s,fieldState:{error:l}})=>O.jsx(A.Autocomplete,{...s,onChange:(d,f)=>{r&&r(f),s.onChange(f)},renderInput:d=>O.jsx(A.TextField,{label:t,error:!!l,helperText:l?l==null?void 0:l.message:a,...d}),...u})})},U5u=({name:e,helperText:t,rules:n,onChange:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:s}})=>O.jsx(xbt,{...c,onChange:l=>{c.onChange(l),a&&a(l)},fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...r})})},G5u=({name:e,sx:t,rules:n,passwordSize:a,specialCharacter:r,upperCaseChar:u,numberChar:c,showErrorMessage:s,match:l,...d})=>{const{watch:f}=Re.useFormContext(),g=f(e),[_,m]=o.useState(!1),{hasNumberChar:v,hasSpecialCharacter:h,hasUpperCaseChar:C,isLengthValid:p}=Vbt(g,a,c,r,u);return O.jsx(pn,{...d,name:e,type:_?"text":"password",InputProps:{endAdornment:O.jsx(A.InputAdornment,{position:"end",children:O.jsx(A.IconButton,{onClick:()=>m(!_),edge:"end","aria-label":"Mostrar/Ocultar senha",children:O.jsx(we,{icon:_?"VIEW_ON":"VIEW_OFF"})})})},rules:{...n,validate:{...n==null?void 0:n.validate,validationPassword:y=>{const S=Vbt(y,a,c,r,u);return!S.hasNumberChar||!S.hasSpecialCharacter||!S.hasUpperCaseChar||!S.isLengthValid?"Senha inválida":l&&l.fieldPassword&&f(l.fieldPassword)!==y?"As senhas devem ser iguais":!0}}},sx:{...t,"& .MuiFormHelperText-root":{display:(!h||!C||!p||!v)&&!s?"none":void 0}}})},IWn=({name:e,rules:t,row:n,label:a,options:r,spacing:u,helperText:c,decorated:s,onChange:l,tabIndex:d,required:f,disabled:g,..._})=>{const{control:m}=Re.useFormContext(),v=a?`${e}-${a}`:"";return O.jsx(Re.Controller,{name:e,control:m,rules:t,render:({field:h,fieldState:{error:C}})=>O.jsxs(A.FormControl,{component:"fieldset",sx:{...s&&{paddingLeft:1.5}},children:[a&&O.jsx(A.FormLabel,{component:"legend",id:v,sx:{typography:"body2"},required:f,children:a}),O.jsx(A.RadioGroup,{..._,...h,onChange:(p,y)=>{h.onChange(p),l&&l(p,y)},"aria-labelledby":v,row:n,children:r.map(p=>O.jsx(A.FormControlLabel,{value:p.value,control:O.jsx(A.Radio,{inputProps:{tabIndex:d},disabled:g,checked:p.value===h.value}),label:p.label,sx:({palette:y})=>({"&:not(:last-of-type)":{mb:u||0},...n&&{mr:0,"&:not(:last-of-type)":{mr:u||2}},...s&&{border:`1px solid ${A.alpha(y.grey[500],.32)}`,borderRadius:1,padding:.25,paddingRight:(u||0)/2||1,...h.value===p.value&&{borderColor:"primary.main",backgroundColor:A.alpha(y.primary.main,.05)}}})},p.value))}),(!!C||c)&&O.jsx(A.FormHelperText,{error:!!C,sx:p=>({color:g?p.palette.grey[500]:void 0}),children:C?C==null?void 0:C.message:c})]})})},K5u=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:t,render:({field:{ref:s,...l},fieldState:{error:d}})=>{var f;return O.jsx(_Z.TimePicker,{ampm:!1,format:"HH:mm",inputRef:s,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...l,...u,value:l.value?new Date(l.value):null,slotProps:{textField:{...(f=u.slotProps)==null?void 0:f.textField,error:!!d,required:r,helperText:(d==null?void 0:d.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},Y5u=({onFileCropped:e,onImageUploaded:t,onCancel:n,aspect:a,label:r,image:u="",uploading:c,file:s,tabIndex:l,...d})=>{const{id:f,setCropModalOpen:g,handleRemove:_,cropModalOpen:m,cancelChanges:v,saveChanges:h,previewImage:C,setCropper:p,preview:y,closePreviewImage:S}=iYn({onFileCropped:e,onImageUploaded:t,onCancel:n});return O.jsxs(O.Fragment,{children:[O.jsxs(A.Stack,{position:"relative",alignItems:"center",justifyContent:"center",children:[c&&O.jsx(clu,{}),O.jsx(aYn,{...d,id:f,file:s,onDrop:w=>{if(w.length>0){g(!0);const j=new FileReader;j.addEventListener("load",()=>{var M;const b=((M=j.result)==null?void 0:M.toString())||"";t(b),e(void 0)}),j.readAsDataURL(w[0])}},image:u,tabIndex:l})]}),O.jsx(oYn,{id:f,open:m,onClose:v,label:r,aspectRatio:a,imageSrc:u,onRemove:_,onSave:h,onPreview:C,onInitialized:p}),O.jsx(A.Dialog,{open:!!y,onClose:S,scroll:"body",PaperProps:{sx:{p:2}},children:y&&O.jsx("img",{src:y,alt:"Preview"})})]})};function RYn(e,t){const{watch:n,setValue:a}=Re.useFormContext(),[r,u]=o.useState(t),c=n(e)||[];return{uploadFile:async _=>{if(!_){a(e,void 0),u(void 0);return}a(e,_),u(Object.assign(_,{preview:URL.createObjectURL(_)}))},uploadFiles:async _=>{a(e,[...c,..._.map(m=>Object.assign(m,{preview:URL.createObjectURL(m)}))])},handleDeleteFile:()=>{a(e,void 0),u(void 0)},handleRemoveAll:()=>{a(e,void 0)},handleRemove:_=>{const m=c.filter(v=>v!==_);a(e,m)},file:r,setFileValue:u}}const X5u=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:s,onCancel:l,...d})=>{const{control:f}=Re.useFormContext(),{uploadFile:g,file:_,setFileValue:m}=RYn(e);return O.jsx(Re.Controller,{name:e,control:f,rules:t,render:({field:{value:v},fieldState:{error:h}})=>O.jsx(Y5u,{accept:{"image/*":[]},file:v?_:void 0,onFileCropped:C=>{g(C),c&&c(C)},onImageUploaded:s,onCancel:()=>{m(void 0),l&&l()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&O.jsx(A.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...d})})},Q5u=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:s,onCancel:l,...d})=>{const{control:f}=Re.useFormContext(),{uploadFile:g,file:_,setFileValue:m}=RYn(e);return O.jsx(Re.Controller,{name:e,control:f,rules:t,render:({field:{value:v},fieldState:{error:h}})=>O.jsx(uYn,{accept:{"image/*":[]},file:v?_:void 0,onFileCropped:C=>{g(C),c&&c(C)},onImageUploaded:s,onCancel:()=>{m(void 0),l&&l()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&O.jsx(A.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...d})})},zYn=A.styled(A.Button)(({theme:e})=>({borderColor:e.palette.grey[300]})),HYn=A.styled(A.Box)(({theme:e})=>({border:"1.5px solid",borderColor:e.palette.grey[300],height:450,width:"40%",borderRadius:8})),J5u=({selectedItems:e,items:t,loading:n,searchText:a,onAdd:r,onRemove:u,search:c,itemsTitle:s,selectedItemsTitle:l,additionalContent:d,enableSearchInSelectedItems:f,onSearch:g})=>{const[_,m]=o.useState(""),v=A.debounce(g,400),h=t.filter(E=>!e.some(L=>L.id===E.id)),C=e.filter(E=>{var L;return(L=E.name)==null?void 0:L.toLowerCase().includes(_.toLowerCase())}),p=f?C:t.filter(E=>e.some(L=>L.id===E.id)),[y,S]=o.useState([]),[w,j]=o.useState([]),b=()=>{r(y),S([])},M=()=>{u(w),j([])},P=E=>{j(E?p:[])},k=E=>{S(E?h:[])},W=(E,L)=>{j(L?B=>[...B,E]:B=>B.filter($=>$.id!==E.id))},I=(E,L)=>{S(L?B=>[...B,E]:B=>B.filter($=>$.id!==E.id))},D=E=>{E.key==="Enter"&&E.preventDefault()};return O.jsx(A.Stack,{children:O.jsxs(A.Stack,{direction:"row",alignItems:"center",gap:3,children:[O.jsx(HYn,{display:"flex",flex:1,children:O.jsxs(A.Stack,{flex:1,children:[O.jsxs(A.Stack,{direction:"row",gap:1,padding:2,children:[O.jsx(A.Checkbox,{size:"small",indeterminate:y.length>0&&y.length!==h.length,checked:y.length>0&&y.length===h.length,onChange:E=>k(E.target.checked)}),O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"subtitle2",color:"text.primary",children:`${s} cadastrados`}),O.jsx(A.Typography,{variant:"caption",color:"text.disabled",children:`${y.length}/${h.length} selecionados`})]})]}),O.jsx(A.Divider,{}),O.jsxs(A.Stack,{p:2,flex:1,children:[O.jsxs(A.Stack,{direction:"row",gap:1,children:[O.jsx(Fle,{iconPosition:"start",placeholder:"Buscar",onKeyDown:D,size:"small",fullWidth:!0,trigger:"change",onSearch:E=>v(E)}),d]}),O.jsx(sWn,{isLoading:n,loading:O.jsx(A.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:O.jsx(A.CircularProgress,{})}),isEmpty:h.length===0,empty:O.jsx(uvt,{text:c?`Nenhum ${a} encontrado`:`Nenhum ${a} disponível`,sx:{svg:{height:140}}}),children:O.jsx(ZT,{sx:{maxHeight:280},children:h.map(E=>O.jsxs(A.Stack,{gap:1,marginTop:"8px",children:[O.jsxs(A.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[O.jsx(A.Checkbox,{size:"small",checked:y.includes(E),onChange:L=>I(E,L.target.checked)}),E.label]}),O.jsx(A.Divider,{})]},E.id))})})]})]})}),O.jsxs(A.Stack,{gap:3,children:[O.jsx(zYn,{variant:"outlined",onClick:b,children:O.jsx(we,{icon:"ARROW_RIGHT_SIMPLE"})}),O.jsx(zYn,{variant:"outlined",onClick:M,children:O.jsx(we,{icon:"ARROW_LEFT_SIMPLE"})})]}),O.jsx(HYn,{display:"flex",flex:1,children:O.jsxs(A.Stack,{flex:1,children:[O.jsxs(A.Stack,{direction:"row",gap:1,padding:2,children:[O.jsx(A.Checkbox,{size:"small",indeterminate:w.length>0&&w.length!==p.length,checked:w.length>0&&w.length===p.length,onChange:E=>P(E.target.checked)}),O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"subtitle2",color:"text.primary",children:`${l} selecionados`}),O.jsx(A.Typography,{variant:"caption",color:"text.disabled",children:`${w.length}/${p.length} selecionados`})]})]}),O.jsx(A.Divider,{}),O.jsxs(A.Stack,{p:2,gap:1,children:[f&&O.jsx(Fle,{iconPosition:"start",placeholder:"Buscar",size:"small",fullWidth:!0,trigger:"change",onSearch:E=>m(E??""),onKeyDown:D}),O.jsx(sWn,{isLoading:n,loading:O.jsx(A.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:O.jsx(A.CircularProgress,{})}),isEmpty:p.length===0,empty:O.jsx(uvt,{text:_?`Nenhum ${a} encontrado`:`Nenhum ${a} selecionado`,sx:{svg:{height:140},marginTop:"56px",backgroundColor:"transparent"}}),children:O.jsx(ZT,{sx:{maxHeight:280},children:p.map(E=>O.jsxs(A.Stack,{gap:1,children:[O.jsxs(A.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[O.jsx(A.Checkbox,{size:"small",checked:w.includes(E),onChange:L=>W(E,L.target.checked)}),E.label]}),O.jsx(A.Divider,{})]},E.id))})})]})]})})]})})},q5u=Object.freeze(Object.defineProperty({__proto__:null,default:yrr},Symbol.toStringTag,{value:"Module"}));ee.ActionButton=EDn,ee.Address=W5u,ee.AdvancedRule=P5u,ee.Autocomplete=BDn,ee.AutocompleteDetailed=$Dn,ee.AutocompleteDetailedField=$5u,ee.AutocompleteField=oZ,ee.BuilderLayout=qBo,ee.BuilderSidebar=LHo,ee.Carousel=iDo,ee.CarouselArrowIndex=ODo,ee.CarouselArrows=sDo,ee.CarouselDots=lDo,ee.Checkbox=x5u,ee.Codes=R5u,ee.ColorPickerField=z5u,ee.ColorPickerInput=$Zn,ee.Common=z1u,ee.CommonSSR=V1u,ee.Confirm=F1u,ee.CustomAvatar=WDn,ee.CustomAvatarGroup=IFn,ee.DataGrid=CBn,ee.DatePicker=H5u,ee.DateRangePicker=V5u,ee.DateTimePicker=F5u,ee.Delayed=Z1u,ee.DialogAnimate=Urr,ee.Drawer=niu,ee.EmptyContent=qHn,ee.EmptyView=uvt,ee.Error=aiu,ee.ExpandableGroup=BYn,ee.FabButtonAnimate=rzn,ee.Field=pn,ee.FilterRule=xlu,ee.FixedProgressBar=Obt,ee.Form=N5u,ee.FrameSkeleton=Plu,ee.HelpButton=xDn,ee.Icon=we,ee.IconButtonAnimate=azn,ee.Iconify=OGn,ee.IllustrationEmptyContent=wxn,ee.ImageCrop=tKn,ee.Incrementer=aWn,ee.IncrementerField=T5u,ee.Label=iWn,ee.Lightbox=wBo,ee.ListingRules=Hlu,ee.LoadingScreen=Iuu,ee.ManualRule=Alu,ee.MaskedInput=lWn,ee.MaskedInputField=AYn,ee.MaterialDesignContent=qpt,ee.MenuPopover=wKn,ee.Modal=MKn,ee.ModalActions=quu,ee.MotionContainer=oar,ee.MotionLazyContainer=Tpt,ee.MotionViewport=iar,ee.MultiCheckbox=A5u,ee.MultipleChipField=Z5u,ee.NoData=Mxn,ee.NumberInput=xbt,ee.NumberInputField=U5u,ee.PasswordField=G5u,ee.PasswordRules=i2u,ee.PopoverSelect=glu,ee.Portal=LKn,ee.RadioGroupField=IWn,ee.Result=sWn,ee.SavedChanges=P2u,ee.Scrollbar=ZT,ee.SearchInput=Fle,ee.SeoPreview=Blu,ee.SnackbarContent=Jpt,ee.SnackbarProvider=Dzn,ee.SplashScreen=E2u,ee.Steps=D2u,ee.StyledTab=I2u,ee.StyledTabs=B2u,ee.Summary=hlu,ee.SwapList=J5u,ee.Switch=xYn,ee.TRANSITION=Lxn,ee.TabPanel=W2u,ee.TableEmptyRows=kDo,ee.TableHeadCustom=DDo,ee.TableNoData=PDo,ee.TablePaginationCustom=BDo,ee.TableSelectedAction=IDo,ee.TableSkeleton=EDo,ee.TextAnimate=Grr,ee.TextMaxLine=Wj,ee.ThemeProvider=WUn,ee.TimePicker=K5u,ee.ToggleButtonGroup=sYn,ee.Transition=Nht,ee.Upload=rYn,ee.UploadAvatar=aYn,ee.UploadAvatarWithCropField=X5u,ee.UploadBox=ilu,ee.UploadIllustration=jxn,ee.UploadWithCrop=uYn,ee.UploadWithCropField=Q5u,ee.Webhook=B5u,ee.WhiteBox=cYn,ee.color=Cau,ee.compare=dHo,ee.cssStyles=yDo,ee.emptyRows=jDo,ee.file=o2u,ee.formatNumber=ouu,ee.formatTime=C2u,ee.generateQuery=EKn,ee.getComparator=wDo,ee.loadable=L2u,ee.mask=w2u,ee.number=euu,ee.routes=y2u,ee.sort=j2u,ee.useActiveElement=eWo,ee.useApiMessage=pHo,ee.useCarousel=oDo,ee.useCopyToClipboard=tWo,ee.useDatagrid=zFn,ee.useDeepCompareEffect=_Ho,ee.useEventListener=nIn,ee.useIsMounting=vHo,ee.useLightBox=PBo,ee.useOffSetTop=yHo,ee.useOnClickOutside=bHo,ee.usePagination=CHo,ee.usePopover=Amt,ee.useResponsive=Npt,ee.useSnackbar=Izn,ee.useTable=MDo,ee.useTabs=hHo,ee.useToggle=xmt,ee.uuidv4=M2u,ee.validators=n2u,ee.varBgColor=lqn,ee.varBgKenburns=sqn,ee.varBgPan=fqn,ee.varBounce=oqn,ee.varContainer=_ht,ee.varFade=mse,ee.varFlip=rqn,ee.varHover=cqn,ee.varPath=eqn,ee.varRotate=uqn,ee.varScale=iqn,ee.varSlide=aqn,ee.varTranEnter=Xe,ee.varTranExit=at,ee.varTranHover=tqn,ee.varZoom=nqn,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
|
|
36631
|
+
`&&(_-=1),r.right.push({startLine:u.right,endLine:u.right+_}),u.right+=d;break;default:throw new Error("Diff type was not defined.")}}}),r},t.prototype.setCodeMarkers=function(n){n===void 0&&(n={left:[],right:[]});for(var a=[],r={left:[],right:[]},u=0;u<n.left.length;u++){var c={startRow:n.left[u].startLine-1,endRow:n.left[u].endLine,type:"text",className:"codeMarker"};r.left.push(c)}for(var u=0;u<n.right.length;u++){var c={startRow:n.right[u].startLine-1,endRow:n.right[u].endLine,type:"text",className:"codeMarker"};r.right.push(c)}return a[0]=r.left,a[1]=r.right,a},t.prototype.render=function(){var n=this.diff();return SYn.createElement(n5u.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:n})},t.propTypes={cursorStart:Mt.number,editorProps:Mt.object,enableBasicAutocompletion:Mt.bool,enableLiveAutocompletion:Mt.bool,focus:Mt.bool,fontSize:Mt.number,height:Mt.string,highlightActiveLine:Mt.bool,maxLines:Mt.number,minLines:Mt.number,mode:Mt.string,name:Mt.string,className:Mt.string,onLoad:Mt.func,onPaste:Mt.func,onScroll:Mt.func,onChange:Mt.func,orientation:Mt.string,readOnly:Mt.bool,scrollMargin:Mt.array,setOptions:Mt.object,showGutter:Mt.bool,showPrintMargin:Mt.bool,splits:Mt.number,style:Mt.object,tabSize:Mt.number,theme:Mt.string,value:Mt.array,width:Mt.string,wrapEnabled:Mt.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(SYn.Component);jWn.default=a5u,Object.defineProperty(Zle,"__esModule",{value:!0}),Zle.diff=Zle.split=void 0;var i5u=pWn,o5u=jWn;Zle.diff=o5u.default;var u5u=Qbt;Zle.split=u5u.default;var c5u=Zle.default=i5u.default;const DYn=A.styled(A.Stack)(({theme:e})=>({borderBottom:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderTop:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,padding:16})),l5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,padding:12,"& .MuiInputBase-root":{background:e.palette.grey[100]}})),s5u=A.styled(A.Stack)(({theme:e})=>({display:"flex",textAlign:"center",flexDirection:"row",alignItems:"center",width:"100%",gap:8,height:34,backgroundColor:"#fff",padding:"8px 16px",borderRadius:8,border:`1px solid ${A.alpha(e.palette.grey[500],.24)}`,cursor:"pointer",color:e.palette.text.disabled,"&:hover, &:focus":{border:`1px solid ${e.palette.primary.main}`,backgroundColor:A.alpha(e.palette.primary.main,.05)}})),f5u=A.styled(A.Stack)(({theme:e})=>({width:"100%","& fieldset":{border:`1px solid ${A.alpha(e.palette.grey[500],.24)}`,borderRadius:8,"& legend":{color:e.palette.text.disabled,fontSize:12}}})),IYn=A.styled(A.IconButton)({marginLeft:"auto",padding:0}),d5u=({openPopover:e,handleClose:t,addItem:n})=>{const[a,r]=o.useState(""),u=()=>{n(a),t(),r("")};return O.jsxs(A.Popover,{open:!!e,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:e,onClose:t,sx:{maxWidth:464},title:"Novo Argumento",children:[O.jsx(A.Typography,{variant:"subtitle1",color:"text.primary",p:1,children:"Novo Argumento"}),O.jsx(DYn,{children:O.jsx(A.TextField,{value:a,onChange:c=>r(c.target.value),name:"item",label:"Novo argumento",size:"small"})}),O.jsxs(A.Stack,{p:1,direction:"row",justifyContent:"flex-end",spacing:1,children:[O.jsx(A.Button,{variant:"outlined",color:"inherit",size:"small",onClick:t,children:"Cancelar"}),O.jsx(A.Button,{variant:"contained",color:"primary",size:"small",startIcon:O.jsx(we,{icon:"SAVE_MARK"}),disabled:!a||a==="",onClick:u,children:"Salvar"})]})]})},eyt=({label:e,itens:t,argumentsValues:n,fields:a,addItem:r,removeItem:u,insertItemSQL:c})=>{const[s,l]=o.useState(!1),d=Amt(),f=()=>{l(!s)},g=(m,v)=>{m.stopPropagation(),u&&u(v)},_=m=>{c(n?` $ARG[${m}]`:a?` this.${m}`:` ${m}`)};return O.jsxs(A.Stack,{children:[O.jsxs(A.Stack,{direction:"row",alignItems:"center",spacing:1.5,padding:1,paddingLeft:0,children:[O.jsx(IYn,{edge:"end",onClick:f,children:O.jsx(we,{icon:s?"CHEVRON_UP":"CHEVRON_RIGHT"})}),O.jsx(A.Typography,{variant:"overline",color:"text.primary",children:e}),r&&O.jsxs(O.Fragment,{children:[O.jsx(IYn,{edge:"end",onClick:d.onOpen,children:O.jsx(we,{icon:"SIMPLE_ADD"})}),O.jsx(d5u,{addItem:r,handleClose:d.onClose,openPopover:d.open})]})]}),s&&O.jsx(A.Stack,{spacing:.5,children:O.jsx(ZT,{sx:{maxHeight:150},children:t==null?void 0:t.map((m,v)=>O.jsxs(s5u,{direction:"row",justifyContent:"space-between",onClick:()=>_(m),children:[O.jsx(A.Typography,{variant:"caption",textAlign:"center",width:"100%",children:m}),u&&O.jsx(A.IconButton,{edge:"end",onClick:h=>g(h,m),children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]},v))})})]})},g5u=({fieldsSelect:e,argumentsValues:t,onChangeArguments:n,sql:a,setSql:r,setFilterRule:u})=>{const[c,s]=o.useState(),{setValue:l}=Re.useFormContext(),[d,f]=o.useState(1),[g,_]=o.useState(),m=y=>{g.session.insert(d,` ${y} `)},v=y=>{n([...t||[],y])},h=y=>{n(t==null?void 0:t.filter(S=>S!==y))},C=y=>{r(y),u(y),l("groups",void 0)},p=c?e.filter(y=>{var S;return y.id.toString().toLocaleLowerCase().includes(c)||y.description.toString().toLocaleLowerCase().includes(c)||((S=y.name)==null?void 0:S.toString().toLocaleLowerCase().includes(c))}):e;return O.jsxs(A.Stack,{direction:"row",padding:1.5,spacing:1.5,children:[O.jsxs(l5u,{children:[O.jsx(Fle,{value:c,trigger:"change",onSearch:y=>s(y==null?void 0:y.toLocaleLowerCase()),fullWidth:!0,size:"small",placeholder:"Buscar",iconPosition:"start"}),O.jsx(eyt,{label:"Campos",fields:!0,itens:p.map(y=>y.name),insertItemSQL:m}),O.jsx(eyt,{label:"Argumentos",argumentsValues:!0,itens:t,addItem:v,removeItem:h,insertItemSQL:m}),O.jsx(eyt,{label:"Operadores",insertItemSQL:m,itens:["=",">","<","<=",">=","!=","IS NULL","IN","LIKE","NOT IN","NOT LIKE","IS NOT NULL"]}),O.jsx(eyt,{label:"Filtros",fields:!0,insertItemSQL:m,itens:p.map(y=>y.name)})]}),O.jsx(f5u,{children:O.jsxs("fieldset",{children:[O.jsx("legend",{children:"Regras de listagem"}),O.jsx(c5u,{width:"100%",mode:"sql",theme:"chrome",name:"rule",fontSize:14,onChange:C,onCursorChange:y=>f(y.getCursor()),value:a,onLoad:y=>_(y),showPrintMargin:!1,showGutter:!1,highlightActiveLine:!1,setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!1,tabSize:2}})]})})]})},_5u=({data:e,fields:t,isLoading:n,isError:a})=>O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"subtitle2",color:"text.secondary",children:"PRÉ VISUALIZAÇÃO DOS RESULTADOS DA LISTAGEM"}),a&&O.jsx(A.Stack,{children:"Falha ao gerar resultado"}),e&&O.jsx(CBn,{columns:t==null?void 0:t.map(r=>({field:r,headerName:r,width:150,type:"string"})),loading:n,rows:e,disableRowSelectionOnClick:!0,disableColumnMenu:!0,disableColumnResize:!0,showColumnVerticalBorder:!0,hideFooter:!0})]}),m5u=({openPopover:e,handleClose:t,argumentsValues:n,filter:a,onExecute:r})=>{const[u,c]=o.useState([]),s=(d,f)=>{if(f&&f!=="")u.filter(_=>_.name===d).length>0?c(u.map(_=>_.name===d?{name:d,value:f}:_)):c([...u||[],{name:d,value:f}]);else{const g=u.filter(_=>_.name===d);c(g)}},l=()=>{let d=a||"";return u.forEach(f=>{d=d.replace(`$ARG[${f.name}]`,`'${f.value}'`)}),d};return O.jsxs(A.Popover,{open:!!e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:e,onClose:t,title:"Pré-visualizar",children:[O.jsx(A.Typography,{variant:"subtitle1",color:"text.primary",p:1,children:"Pré-visualizar"}),O.jsx(DYn,{children:n==null?void 0:n.map((d,f)=>O.jsx(A.TextField,{name:d,label:d,size:"small",onChange:g=>s(d,g.target.value),required:!0},f))}),O.jsxs(A.Stack,{p:2,direction:"row",justifyContent:"flex-end",spacing:1,children:[O.jsx(A.Button,{variant:"outlined",color:"inherit",size:"small",onClick:t,children:"Cancelar"}),O.jsx(A.Button,{variant:"contained",color:"primary",size:"small",startIcon:O.jsx(we,{icon:"PLAY_SIMPLE"}),onClick:()=>r(l()),disabled:u.length<n.length,children:"Executar"})]})]})},v5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center",overflow:"hidden"})),h5u=A.styled(A.Stack)(()=>({backgroundColor:"#F5F5F5",padding:8,width:"100%",justifyContent:"space-between",alignItems:"center",gap:12,"& .MuiInputBase-root":{backgroundColor:"#fff"}}));A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center"}));const C5u=A.styled(A.Collapse)(()=>({width:"100%",padding:"12px 16px"})),BYn=({description:e,name:t,children:n,header:a,onDelete:r})=>{const[u,c]=xmt(!0);return O.jsxs(v5u,{children:[O.jsxs(h5u,{direction:"row",children:[O.jsxs(A.Stack,{direction:"row",alignItems:"center",gap:1.5,flex:1,children:[O.jsx(A.IconButton,{edge:"end",onClick:c,children:O.jsx(we,{icon:u?"CHEVRON_UP":"CHEVRON_RIGHT"})}),O.jsx(A.Typography,{variant:"overline",color:"text.primary",children:t}),O.jsx(A.Typography,{variant:"overline",color:"text.secondary",children:e}),O.jsx(A.Stack,{flex:1,children:a})]}),O.jsx(A.IconButton,{color:"error",onClick:r,children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]}),O.jsx(C5u,{in:u,timeout:"auto",unmountOnExit:!0,children:n})]})},oZ=({name:e,helperText:t,rules:n,onSelectOption:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:s}})=>O.jsx(BDn,{...c,...r,onChange:l=>{a&&a(l,c.value),c.onChange(l)},error:!!s,helperText:(s==null?void 0:s.message)||t})})},pn=({name:e,helperText:t,rules:n,onChange:a,tabIndex:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:n,render:({field:{ref:s,...l},fieldState:{error:d}})=>O.jsx(A.TextField,{...l,onChange:f=>{l.onChange(f),a&&a(f)},inputRef:s,fullWidth:!0,error:!!d,helperText:(d==null?void 0:d.message)||t,...u,inputProps:{...u.inputProps,tabIndex:r}})})},b5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.primary.main,.32)}`,backgroundColor:A.alpha(e.palette.primary.main,.08),borderRadius:8,padding:8,paddingLeft:24,alignItems:"center"})),y5u=A.styled(A.IconButton)(()=>({height:"28px",marginLeft:"16px","&:hover":{backgroundColor:"transparent"}})),WYn=A.styled(oZ)(()=>({width:230})),p5u=({index:e,indexGroup:t,removeConditional:n,fieldsSelect:a})=>{const{watch:r}=Re.useFormContext(),u=`groups.[${t}].conditionals[${e}].field`,c=`groups.[${t}].conditionals[${e}].conditional`,s=`groups.[${t}].conditionals[${e}].type`,l=`groups.[${t}].conditionals[${e}].value`,d=[{value:"=",label:"Igual a"},{value:">",label:"Maior que"},{value:"<",label:"Menor que"},{value:"<=",label:"Menor ou igual a"},{value:">=",label:"Maior ou igual a"},{value:"!=",label:"Diferente de"},{value:"IS NULL",label:"Está vazio"},{value:"IN",label:"Contido em"},{value:"LIKE",label:"Contendo"},{value:"NOT IN",label:"Não contido em"},{value:"NOT LIKE",label:"Não contém"},{value:"IS NOT NULL",label:"Não está vazio"}],f=r(s);return O.jsxs(A.Stack,{direction:"row",spacing:1.5,alignItems:"center",width:1,children:[O.jsx(oZ,{label:"Se",name:u,size:"small",fullWidth:!0,options:a==null?void 0:a.map(g=>({value:g.name,label:g.description}))}),O.jsx(oZ,{label:"Estado",name:c,size:"small",fullWidth:!0,options:d}),O.jsx(oZ,{label:"Objetivo",name:`groups.[${t}].conditionals[${e}].type`,size:"small",fullWidth:!0,options:[{label:"Valor",value:"value"},{label:"Campo",value:"field"}]}),f==="value"?O.jsx(pn,{label:"Valor",name:l,size:"small",fullWidth:!0}):O.jsx(oZ,{label:"Se",name:l,size:"small",fullWidth:!0,options:a==null?void 0:a.map(g=>({value:g.name,label:g.description}))}),O.jsx(y5u,{color:"error",onClick:()=>{n(e)},children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]})},O5u=({index:e,removeGroup:t,fieldsSelect:n})=>{const{control:a}=Re.useFormContext(),r=`groups.[${e}].operator`,{fields:u,append:c,remove:s}=Re.useFieldArray({name:`groups.${e}.conditionals`,control:a});return O.jsx(BYn,{name:`GRUPO ${e+1}`,description:"EXIBIR A LISTAGEM QUANDO ATENDER UMA DAS CONDIÇÕES",header:O.jsx(WYn,{name:r,size:"small",options:[{label:"Qualquer",value:"or"},{label:"Todas as condições",value:"and"}]}),onDelete:()=>t(e),children:O.jsxs(A.Stack,{spacing:1.5,alignItems:"flex-start",children:[u.map((l,d)=>O.jsx(p5u,{index:d,indexGroup:e,removeConditional:f=>s(f),fieldsSelect:n},l.id)),O.jsx(EDn,{actionType:"NEW",onClick:()=>c({field:"",conditional:"=",type:"value",value:""}),variant:"text",size:"small",children:"Adicionar condição"})]})})},j5u=({fieldsSelect:e})=>{const{control:t}=Re.useFormContext(),{fields:n,append:a,remove:r}=Re.useFieldArray({name:"groups",control:t});return O.jsxs(A.Stack,{gap:1.5,children:[O.jsxs(b5u,{direction:"row",spacing:1.5,children:[O.jsx(A.Typography,{variant:"body2",color:"text.light.primary",children:"Se"}),O.jsx(A.Stack,{children:O.jsx(WYn,{size:"small",name:"operator",options:[{label:"Qualquer",value:"or"},{label:"Todas as condições",value:"and"}]})}),O.jsxs(A.Typography,{variant:"body2",color:"text.light.primary",children:["regra de ",O.jsx("strong",{children:"todos os grupos"})," “Se” forem cumpridas,"," ",O.jsx("strong",{children:"irá exibir a listagem."})]})]}),n.map((u,c)=>O.jsx(O5u,{index:c,removeGroup:s=>r(s),fieldsSelect:e},u.id)),O.jsx(A.Button,{size:"large",color:"inherit",startIcon:O.jsx(we,{icon:"SIMPLE_ADD"}),variant:"outlined",fullWidth:!0,onClick:()=>{a({operator:"or",conditionals:[{field:"",conditional:"=",type:"value",value:""}]})},children:"Adicionar grupo"})]})},w5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.grey[500],.32)}`,borderRadius:8,marginTop:24})),M5u=A.styled(A.Stack)(()=>({padding:12,borderBottom:"1px solid #e0e0e0"})),$Yn=A.styled(A.ToggleButton)(()=>({lineHeight:"1em"})),L5u=A.styled(A.Stack)(()=>({padding:12})),P5u=({argumentsValues:e,onChangeArguments:t,fieldsSelect:n,onChangeRule:a,onChangeSqlProcessed:r,defaultMode:u,defaultFilter:c,dataPreview:s,errorPreview:l,loadingPreview:d})=>{const[f,g]=o.useState(c||""),[_,m]=xmt(),[v,h]=o.useState(u||"simple"),{watch:C,setValue:p}=Re.useFormContext(),y=Amt(),S=C("operator"),w=C("groups");o.useEffect(()=>()=>{p("config",{})},[]);const j=(P,k)=>{if(k==="advanced"){const W=EKn(w,S);g(W),r(W),a(W)}h(k)},b=P=>{_||v==="simple"||e.length===0?m():y.onOpen(P)},M=P=>{m(),r(P)};return O.jsx(O.Fragment,{children:O.jsxs(w5u,{children:[O.jsxs(M5u,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[O.jsxs(sYn,{color:"primary",value:v,size:"small",exclusive:!0,onChange:j,children:[O.jsx($Yn,{value:"simple",size:"small",children:"Modo simplificado"}),O.jsx($Yn,{value:"advanced",size:"small",children:"Modo avançado"})]}),O.jsx(A.Button,{variant:"outlined",color:"inherit",onClick:P=>b(P),startIcon:!_&&O.jsx(we,{icon:"PLAY_SIMPLE",color:"primary.main"}),children:_?"Voltar":"Executar"}),!!y.open&&O.jsx(m5u,{handleClose:y.onClose,openPopover:y.open,argumentsValues:e,filter:f,onExecute:P=>M(P)})]}),O.jsx(L5u,{children:_?O.jsx(_5u,{fields:n.map(P=>P.name),data:s,isError:l,isLoading:d}):O.jsx(O.Fragment,{children:v==="simple"?O.jsx(j5u,{fieldsSelect:n,sql:f,setSql:g}):O.jsx(g5u,{fieldsSelect:n,argumentsValues:e,onChangeArguments:t,sql:f,setSql:g,setFilterRule:a})})})]})})},xYn=({name:e,helperText:t,onChange:n,tabIndex:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,render:({field:c,fieldState:{error:s}})=>O.jsxs("div",{children:[O.jsx(A.FormControlLabel,{control:O.jsx(A.Switch,{...c,checked:c.value,onChange:(l,d)=>{c.onChange(l),n&&n(l,d)},inputProps:{tabIndex:a}}),...r}),(!!s||t)&&O.jsx(A.FormHelperText,{error:!!s,sx:l=>({mx:"14px",color:r.disabled?l.palette.grey[500]:void 0}),children:s?s==null?void 0:s.message:t})]})})},E5u=[{label:"JSON",value:"JSON"},{label:"XML",value:"XML"},{label:"BINÁRIO",value:"BYTEA"}],k5u=[{label:"PUT",value:"PUT"},{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"DELETE",value:"DELETE"}],S5u=A.styled(A.Stack)(({theme:e})=>({border:`1px solid ${A.alpha(e.palette.primary.main,.3)}`,backgroundColor:A.alpha(e.palette.primary.main,.05),flexDirection:"row",alignItems:"center",padding:10,gap:10,borderRadius:8,marginBottom:8,svg:{color:e.palette.primary.main}})),D5u=A.styled(A.IconButton)(({theme:e})=>({svg:{color:`${e.palette.primary.main} !important`}})),I5u=A.styled(A.IconButton)(()=>({height:"38px",alignSelf:"center"})),B5u=({webhookData:e,isEditing:t=!1,haveTip:n=!1})=>{const{control:a}=Re.useFormContext(),{fields:r,append:u,remove:c}=Re.useFieldArray({name:"headers",control:a}),s=()=>{u({value:"",name:""})};return O.jsxs(O.Fragment,{children:[n&&O.jsxs(S5u,{children:[O.jsx(we,{icon:"INFO_CIRCLE"}),O.jsx(A.Typography,{variant:"caption",color:"text.secondary",children:"Webhooks permitem que serviços externos sejam notificados quando determinados eventos acontecem. Saiba mais acessando a documentação do Webhook"})]}),t&&O.jsx(pn,{name:"name",label:"Nome do webhook"}),O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsx(pn,{name:"url",label:"URL de endpoint",rules:{required:{value:!0,message:"Url é obrigatório"}}}),O.jsx(pn,{name:"filter",label:"Filtro"})]}),t&&e&&O.jsxs(O.Fragment,{children:[O.jsx(pn,{variant:"filled",name:"solution",label:"Solução",disabled:!0}),O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsx(pn,{variant:"filled",name:"resource",label:"Origem",disabled:!0}),O.jsx(pn,{variant:"filled",name:"resourceID",label:"ID origem",disabled:!0,InputProps:{endAdornment:O.jsx(A.InputAdornment,{position:"end",children:O.jsx(D5u,{onClick:()=>navigator.clipboard.writeText(e.resourceID),children:O.jsx(we,{className:"copyIcon",icon:"COPY_CONTENT"})})})}}),O.jsx(pn,{variant:"filled",name:"event",label:"Evento",disabled:!0})]})]}),O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsxs(A.Stack,{width:"35%",gap:2,children:[O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Tipo de conteúdo:"}),O.jsx(IWn,{name:"content_type",options:E5u,row:!0,decorated:!0})]}),O.jsxs(A.Stack,{gap:2,children:[O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Métodos Http:"}),O.jsx(IWn,{name:"http_method",options:k5u,row:!0,decorated:!0})]})]}),O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Status:"}),O.jsx(xYn,{name:"active",label:"Ativo"}),O.jsx(A.Typography,{color:"text.secondary",variant:"overline",children:"Cabeçalho:"}),r==null?void 0:r.map((l,d)=>O.jsxs(A.Stack,{direction:"row",gap:2,children:[O.jsx(pn,{name:`headers.${d}.name`,label:"Chave",rules:{required:{value:!0,message:"Chave é obrigatório"}}}),O.jsx(pn,{name:`headers.${d}.value`,label:"Valor",rules:{required:{value:!0,message:"Valor é obrigatório"}}}),O.jsx(I5u,{onClick:()=>c(d),color:"error",children:O.jsx(we,{icon:"DELETE_MARK_BUTTON_02"})})]},l.id)),O.jsx(EDn,{actionType:"NEW",size:"large",variant:"outlined",color:"inherit",fullWidth:!0,onClick:()=>s(),children:"Adicionar novo cabeçalho"}),O.jsx(A.Divider,{})]})},AYn=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:n,render:({field:{name:u,onChange:c,value:s,ref:l},fieldState:{error:d}})=>O.jsx(lWn,{ref:l,...a,name:u,value:s,error:!!d,helperText:(d==null?void 0:d.message)||t,onChange:({target:{value:f}})=>c(f)})})},W5u=({name:e,containerProps:t,required:n,rules:a,tabIndex:r})=>{const u=`${e}.zipCode`,c=`${e}.publicPlace`,s=`${e}.number`,l=`${e}.district`,d=`${e}.complement`,f=`${e}.state`,g=`${e}.city`,_=m=>{m.key==="Enter"&&m.preventDefault()};return O.jsxs(A.Stack,{gap:1.5,...t,children:[O.jsxs(A.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[O.jsx(AYn,{name:u,label:"CEP",mask:[{mask:"00000-000"}],InputProps:{endAdornment:O.jsx(A.InputAdornment,{position:"end",children:O.jsx(A.CircularProgress,{size:24})})},rules:a,onKeyDown:_,required:n,sx:{width:"auto",flex:1,minWidth:160},tabIndex:r}),O.jsxs(A.Stack,{direction:{xs:"column",sm:"row"},gap:1.5,flex:{xs:1,md:"1 1 50%"},children:[O.jsx(pn,{name:c,label:"Logradouro",onKeyDown:_,inputProps:{maxLength:70},sx:{width:"auto",minWidth:250,flex:1},tabIndex:r}),O.jsx(pn,{name:s,label:"Número",onKeyDown:_,inputProps:{maxLength:6},sx:{width:"auto",minWidth:100},tabIndex:r})]})]}),O.jsxs(A.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[O.jsx(pn,{name:l,label:"Bairro",onKeyDown:_,inputProps:{maxLength:20},sx:{width:"auto",flex:{xs:1,md:"1 1 100px"}},tabIndex:r}),O.jsx(pn,{name:d,label:"Complemento",onKeyDown:_,inputProps:{maxLength:30},sx:{minWidth:200,width:"auto",flex:{xs:1,md:"1 1 500px"}},tabIndex:r})]}),O.jsxs(A.Stack,{gap:1.5,flexWrap:"wrap",direction:{xs:"column",sm:"row"},children:[O.jsx(oZ,{name:f,label:"Estado",options:[],disabled:!0,required:n,sx:{flex:1},tabIndex:r}),O.jsx(pn,{name:g,label:"Cidade",disabled:!0,required:n,sx:{flex:1},tabIndex:r})]})]})},$5u=({name:e,rules:t,helperText:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:t,render:({field:u,fieldState:{error:c}})=>O.jsx($Dn,{...u,...a,onChange:s=>{u.onChange(s)},error:!!c,helperText:(c==null?void 0:c.message)||n})})},x5u=({name:e,rules:t,helperText:n,tabIndex:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,rules:t,render:({field:c,fieldState:{error:s}})=>O.jsxs("div",{children:[O.jsx(A.FormControlLabel,{control:O.jsx(A.Checkbox,{...c,checked:c.value,tabIndex:a}),...r}),(!!s||n)&&O.jsx(A.FormHelperText,{error:!!s,children:s?s==null?void 0:s.message:n})]})})},A5u=({row:e,name:t,rules:n,label:a,options:r,spacing:u,helperText:c,required:s,...l})=>{const{control:d}=Re.useFormContext(),f=(g,_)=>g.includes(_)?g.filter(m=>m!==_):[...g,_];return O.jsx(Re.Controller,{name:t,control:d,rules:n,render:({field:{value:g=[],..._},fieldState:{error:m}})=>O.jsxs(A.FormControl,{component:"fieldset",children:[a&&O.jsx(A.FormLabel,{component:"legend",sx:{typography:"body2"},required:s,children:a}),O.jsx(A.FormGroup,{sx:{...e&&{flexDirection:"row"},"& .MuiFormControlLabel-root":{"&:not(:last-of-type)":{mb:u||0},...e&&{mr:0,"&:not(:last-of-type)":{mr:u||2}}}},children:r.map(v=>O.jsx(A.FormControlLabel,{control:O.jsx(A.Checkbox,{checked:g.includes(v.value),onChange:()=>_.onChange(f(g,v.value))}),label:v.label,...l},v.value))}),(!!m||c)&&O.jsx(A.FormHelperText,{error:!!m,sx:v=>({color:l.disabled?v.palette.grey[500]:void 0}),children:m?m==null?void 0:m.message:c})]})})},R5u=({keyName:e,inputs:t=[],rules:n,tabIndex:a,...r})=>{const u=o.useRef(null),{control:c,setValue:s,formState:{errors:l}}=Re.useFormContext(),d=_=>{const m=_.clipboardData.getData("text").split("");t.map((v,h)=>s(v,m[h])),_.preventDefault()},f=(_,m)=>{const{maxLength:v,value:h,name:C}=_.target,p=C.replace(e,""),y=Number(p),S=document.querySelector(`input[name=${e}${y+1}]`);h.length>v&&(_.target.value=h[0]),h.length>=v&&y<6&&S!==null&&S.focus(),m(_)};nIn("paste",d,u);const g=t.some(_=>l[_]);return O.jsxs(A.Stack,{children:[O.jsx(A.Stack,{direction:"row",spacing:2,justifyContent:"center",ref:u,children:t.map((_,m)=>O.jsx(Re.Controller,{name:`${e}${m+1}`,control:c,rules:n,render:({field:v,fieldState:{error:h}})=>O.jsx(A.TextField,{...r,...v,autoComplete:"none",error:!!h,autoFocus:m===0,placeholder:"-",onChange:C=>{f(C,v.onChange)},onFocus:C=>C.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number",tabIndex:a}})},_))}),g&&O.jsx(A.FormHelperText,{error:!0,sx:{px:2},children:"Código é obrigatório"})]})},z5u=({name:e,rules:t,helperText:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:{...t,validate:{...t==null?void 0:t.validate,validation:u=>{const c="#"+u.replaceAll("#","");return/^#([0-9A-Fa-f]{3}){1,2}$/.test(c)?!0:"Cor inválida"}}},render:({field:{ref:u,onChange:c,...s},fieldState:{error:l}})=>O.jsx($Zn,{...s,onChangeColor:c,inputRef:u,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||n,...a})})},H5u=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:t,render:({field:{ref:s,...l},fieldState:{error:d}})=>{var f;return O.jsx(_Z.DatePicker,{inputRef:s,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...u.localeText},...l,...u,value:l.value?new Date(l.value):null,slotProps:{textField:{...(f=u.slotProps)==null?void 0:f.textField,required:r,error:!!d,helperText:(d==null?void 0:d.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},V5u=({name:e,label:t,rules:n,tabIndex:a,helperText:r,required:u,...c})=>{const{control:s,setError:l}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:s,rules:n,render:({field:{value:d,onChange:f},fieldState:{error:g}})=>O.jsx(_Z.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...c.localeText},value:[(d==null?void 0:d.startDate)||null,(d==null?void 0:d.endDate)||null],onChange:_=>f({startDate:_[0],endDate:_[1]}),onError:_=>{l(e,{message:_[0]||_[1]||void 0})},...c,slotProps:{textField:({position:_})=>{var m;return{...(m=c.slotProps)==null?void 0:m.textField,required:u,error:!!g,helperText:(g==null?void 0:g.message)||r,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:_==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`,inputProps:{tabIndex:a}}}},sx:{width:1}})})},F5u=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:t,render:({field:{ref:s,...l},fieldState:{error:d}})=>{var f;return O.jsx(_Z.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:s,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...l,...u,value:l.value?new Date(l.value):null,slotProps:{textField:{...(f=u.slotProps)==null?void 0:f.textField,required:r,error:!!d,helperText:(d==null?void 0:d.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},N5u=({id:e,children:t,onSubmit:n,methods:a,...r})=>O.jsx(Re.FormProvider,{...a,children:O.jsx(A.Stack,{component:"form",id:e,onSubmit:n,flex:1,width:1,noValidate:!0,...r,children:t})}),T5u=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:r,rules:n,render:({field:{ref:u,value:c,...s},fieldState:{error:l}})=>O.jsx(aWn,{value:c,inputRef:u,fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||t,...a,...s,name:e})})},Z5u=({name:e,label:t="",rules:n,helperText:a,changed:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:n,render:({field:s,fieldState:{error:l}})=>O.jsx(A.Autocomplete,{...s,onChange:(d,f)=>{r&&r(f),s.onChange(f)},renderInput:d=>O.jsx(A.TextField,{label:t,error:!!l,helperText:l?l==null?void 0:l.message:a,...d}),...u})})},U5u=({name:e,helperText:t,rules:n,onChange:a,...r})=>{const{control:u}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:s}})=>O.jsx(xbt,{...c,onChange:l=>{c.onChange(l),a&&a(l)},fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...r})})},G5u=({name:e,sx:t,rules:n,passwordSize:a,specialCharacter:r,upperCaseChar:u,numberChar:c,showErrorMessage:s,match:l,...d})=>{const{watch:f}=Re.useFormContext(),g=f(e),[_,m]=o.useState(!1),{hasNumberChar:v,hasSpecialCharacter:h,hasUpperCaseChar:C,isLengthValid:p}=Vbt(g,a,c,r,u);return O.jsx(pn,{...d,name:e,type:_?"text":"password",InputProps:{endAdornment:O.jsx(A.InputAdornment,{position:"end",children:O.jsx(A.IconButton,{onClick:()=>m(!_),edge:"end","aria-label":"Mostrar/Ocultar senha",children:O.jsx(we,{icon:_?"VIEW_ON":"VIEW_OFF"})})})},rules:{...n,validate:{...n==null?void 0:n.validate,validationPassword:y=>{const S=Vbt(y,a,c,r,u);return!S.hasNumberChar||!S.hasSpecialCharacter||!S.hasUpperCaseChar||!S.isLengthValid?"Senha inválida":l&&l.fieldPassword&&f(l.fieldPassword)!==y?"As senhas devem ser iguais":!0}}},sx:{...t,"& .MuiFormHelperText-root":{display:(!h||!C||!p||!v)&&!s?"none":void 0}}})},IWn=({name:e,rules:t,row:n,label:a,options:r,spacing:u,helperText:c,decorated:s,onChange:l,tabIndex:d,required:f,disabled:g,..._})=>{const{control:m}=Re.useFormContext(),v=a?`${e}-${a}`:"";return O.jsx(Re.Controller,{name:e,control:m,rules:t,render:({field:h,fieldState:{error:C}})=>O.jsxs(A.FormControl,{component:"fieldset",sx:{...s&&{paddingLeft:1.5}},children:[a&&O.jsx(A.FormLabel,{component:"legend",id:v,sx:{typography:"body2"},required:f,children:a}),O.jsx(A.RadioGroup,{..._,...h,onChange:(p,y)=>{h.onChange(p),l&&l(p,y)},"aria-labelledby":v,row:n,children:r.map(p=>O.jsx(A.FormControlLabel,{value:p.value,control:O.jsx(A.Radio,{inputProps:{tabIndex:d},disabled:g,checked:p.value===h.value}),label:p.label,sx:({palette:y})=>({"&:not(:last-of-type)":{mb:u||0},...n&&{mr:0,"&:not(:last-of-type)":{mr:u||2}},...s&&{border:`1px solid ${A.alpha(y.grey[500],.32)}`,borderRadius:1,padding:.25,paddingRight:(u||0)/2||1,...h.value===p.value&&{borderColor:"primary.main",backgroundColor:A.alpha(y.primary.main,.05)}}})},p.value))}),(!!C||c)&&O.jsx(A.FormHelperText,{error:!!C,sx:p=>({color:g?p.palette.grey[500]:void 0}),children:C?C==null?void 0:C.message:c})]})})},K5u=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Re.useFormContext();return O.jsx(Re.Controller,{name:e,control:c,rules:t,render:({field:{ref:s,...l},fieldState:{error:d}})=>{var f;return O.jsx(_Z.TimePicker,{ampm:!1,format:"HH:mm",inputRef:s,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...l,...u,value:l.value?new Date(l.value):null,slotProps:{textField:{...(f=u.slotProps)==null?void 0:f.textField,error:!!d,required:r,helperText:(d==null?void 0:d.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},Y5u=({onFileCropped:e,onImageUploaded:t,onCancel:n,aspect:a,label:r,image:u="",uploading:c,file:s,tabIndex:l,...d})=>{const{id:f,setCropModalOpen:g,handleRemove:_,cropModalOpen:m,cancelChanges:v,saveChanges:h,previewImage:C,setCropper:p,preview:y,closePreviewImage:S}=iYn({onFileCropped:e,onImageUploaded:t,onCancel:n});return O.jsxs(O.Fragment,{children:[O.jsxs(A.Stack,{position:"relative",alignItems:"center",justifyContent:"center",children:[c&&O.jsx(clu,{}),O.jsx(aYn,{...d,id:f,file:s,onDrop:w=>{if(w.length>0){g(!0);const j=new FileReader;j.addEventListener("load",()=>{var M;const b=((M=j.result)==null?void 0:M.toString())||"";t(b),e(void 0)}),j.readAsDataURL(w[0])}},image:u,tabIndex:l})]}),O.jsx(oYn,{id:f,open:m,onClose:v,label:r,aspectRatio:a,imageSrc:u,onRemove:_,onSave:h,onPreview:C,onInitialized:p}),O.jsx(A.Dialog,{open:!!y,onClose:S,scroll:"body",PaperProps:{sx:{p:2}},children:y&&O.jsx("img",{src:y,alt:"Preview"})})]})};function RYn(e,t){const{watch:n,setValue:a}=Re.useFormContext(),[r,u]=o.useState(t),c=n(e)||[];return{uploadFile:async _=>{if(!_){a(e,void 0),u(void 0);return}a(e,_),u(Object.assign(_,{preview:URL.createObjectURL(_)}))},uploadFiles:async _=>{a(e,[...c,..._.map(m=>Object.assign(m,{preview:URL.createObjectURL(m)}))])},handleDeleteFile:()=>{a(e,void 0),u(void 0)},handleRemoveAll:()=>{a(e,void 0)},handleRemove:_=>{const m=c.filter(v=>v!==_);a(e,m)},file:r,setFileValue:u}}const X5u=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:s,onCancel:l,...d})=>{const{control:f}=Re.useFormContext(),{uploadFile:g,file:_,setFileValue:m}=RYn(e);return O.jsx(Re.Controller,{name:e,control:f,rules:t,render:({field:{value:v},fieldState:{error:h}})=>O.jsx(Y5u,{accept:{"image/*":[]},file:v?_:void 0,onFileCropped:C=>{g(C),c&&c(C)},onImageUploaded:s,onCancel:()=>{m(void 0),l&&l()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&O.jsx(A.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...d})})},Q5u=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:s,onCancel:l,...d})=>{const{control:f}=Re.useFormContext(),{uploadFile:g,file:_,setFileValue:m}=RYn(e);return O.jsx(Re.Controller,{name:e,control:f,rules:t,render:({field:{value:v},fieldState:{error:h}})=>O.jsx(uYn,{accept:{"image/*":[]},file:v?_:void 0,onFileCropped:C=>{g(C),c&&c(C)},onImageUploaded:s,onCancel:()=>{m(void 0),l&&l()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&O.jsx(A.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...d})})},zYn=A.styled(A.Button)(({theme:e})=>({borderColor:e.palette.grey[300]})),HYn=A.styled(A.Box)(({theme:e})=>({border:"1.5px solid",borderColor:e.palette.grey[300],height:450,width:"40%",borderRadius:8})),J5u=({selectedItems:e,items:t,loading:n,searchText:a,onAdd:r,onRemove:u,search:c,itemsTitle:s,selectedItemsTitle:l,additionalContent:d,enableSearchInSelectedItems:f,onSearch:g})=>{const[_,m]=o.useState(""),v=A.debounce(g,400),h=t.filter(E=>!e.some(L=>L.id===E.id)),C=e.filter(E=>{var L;return(L=E.name)==null?void 0:L.toLowerCase().includes(_.toLowerCase())}),p=f?C:t.filter(E=>e.some(L=>L.id===E.id)),[y,S]=o.useState([]),[w,j]=o.useState([]),b=()=>{r(y),S([])},M=()=>{u(w),j([])},P=E=>{j(E?p:[])},k=E=>{S(E?h:[])},W=(E,L)=>{j(L?B=>[...B,E]:B=>B.filter($=>$.id!==E.id))},I=(E,L)=>{S(L?B=>[...B,E]:B=>B.filter($=>$.id!==E.id))},D=E=>{E.key==="Enter"&&E.preventDefault()};return O.jsx(A.Stack,{children:O.jsxs(A.Stack,{direction:"row",alignItems:"center",gap:3,children:[O.jsx(HYn,{display:"flex",flex:1,children:O.jsxs(A.Stack,{flex:1,children:[O.jsxs(A.Stack,{direction:"row",gap:1,padding:2,children:[O.jsx(A.Checkbox,{size:"small",indeterminate:y.length>0&&y.length!==h.length,checked:y.length>0&&y.length===h.length,onChange:E=>k(E.target.checked)}),O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"subtitle2",color:"text.primary",children:`${s} cadastrados(as)`}),O.jsx(A.Typography,{variant:"caption",color:"text.disabled",children:`${y.length}/${h.length} selecionados`})]})]}),O.jsx(A.Divider,{}),O.jsxs(A.Stack,{p:2,flex:1,children:[O.jsxs(A.Stack,{direction:"row",gap:1,children:[O.jsx(Fle,{iconPosition:"start",placeholder:"Buscar",onKeyDown:D,size:"small",fullWidth:!0,trigger:"change",onSearch:E=>v(E)}),d]}),O.jsx(sWn,{isLoading:n,loading:O.jsx(A.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:O.jsx(A.CircularProgress,{})}),isEmpty:h.length===0,empty:O.jsx(uvt,{text:c?`Nenhum ${a} encontrado`:`Nenhum ${a} disponível`,sx:{svg:{height:140}}}),children:O.jsx(ZT,{sx:{maxHeight:280},children:h.map(E=>O.jsxs(A.Stack,{gap:1,marginTop:"8px",children:[O.jsxs(A.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[O.jsx(A.Checkbox,{size:"small",checked:y.includes(E),onChange:L=>I(E,L.target.checked)}),E.label]}),O.jsx(A.Divider,{})]},E.id))})})]})]})}),O.jsxs(A.Stack,{gap:3,children:[O.jsx(zYn,{variant:"outlined",onClick:b,children:O.jsx(we,{icon:"ARROW_RIGHT_SIMPLE"})}),O.jsx(zYn,{variant:"outlined",onClick:M,children:O.jsx(we,{icon:"ARROW_LEFT_SIMPLE"})})]}),O.jsx(HYn,{display:"flex",flex:1,children:O.jsxs(A.Stack,{flex:1,children:[O.jsxs(A.Stack,{direction:"row",gap:1,padding:2,children:[O.jsx(A.Checkbox,{size:"small",indeterminate:w.length>0&&w.length!==p.length,checked:w.length>0&&w.length===p.length,onChange:E=>P(E.target.checked)}),O.jsxs(A.Stack,{children:[O.jsx(A.Typography,{variant:"subtitle2",color:"text.primary",children:`${l} selecionados(as)`}),O.jsx(A.Typography,{variant:"caption",color:"text.disabled",children:`${w.length}/${p.length} selecionados`})]})]}),O.jsx(A.Divider,{}),O.jsxs(A.Stack,{p:2,gap:1,children:[f&&O.jsx(Fle,{iconPosition:"start",placeholder:"Buscar",size:"small",fullWidth:!0,trigger:"change",onSearch:E=>m(E??""),onKeyDown:D}),O.jsx(sWn,{isLoading:n,loading:O.jsx(A.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:O.jsx(A.CircularProgress,{})}),isEmpty:p.length===0,empty:O.jsx(uvt,{text:_?`Nenhum ${a} encontrado`:`Nenhum ${a} selecionado`,sx:{svg:{height:140},marginTop:"56px",backgroundColor:"transparent"}}),children:O.jsx(ZT,{sx:{maxHeight:280},children:p.map(E=>O.jsxs(A.Stack,{gap:1,children:[O.jsxs(A.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[O.jsx(A.Checkbox,{size:"small",checked:w.includes(E),onChange:L=>W(E,L.target.checked)}),E.label]}),O.jsx(A.Divider,{})]},E.id))})})]})]})})]})})},q5u=Object.freeze(Object.defineProperty({__proto__:null,default:yrr},Symbol.toStringTag,{value:"Module"}));ee.ActionButton=EDn,ee.Address=W5u,ee.AdvancedRule=P5u,ee.Autocomplete=BDn,ee.AutocompleteDetailed=$Dn,ee.AutocompleteDetailedField=$5u,ee.AutocompleteField=oZ,ee.BuilderLayout=qBo,ee.BuilderSidebar=LHo,ee.Carousel=iDo,ee.CarouselArrowIndex=ODo,ee.CarouselArrows=sDo,ee.CarouselDots=lDo,ee.Checkbox=x5u,ee.Codes=R5u,ee.ColorPickerField=z5u,ee.ColorPickerInput=$Zn,ee.Common=z1u,ee.CommonSSR=V1u,ee.Confirm=F1u,ee.CustomAvatar=WDn,ee.CustomAvatarGroup=IFn,ee.DataGrid=CBn,ee.DatePicker=H5u,ee.DateRangePicker=V5u,ee.DateTimePicker=F5u,ee.Delayed=Z1u,ee.DialogAnimate=Urr,ee.Drawer=niu,ee.EmptyContent=qHn,ee.EmptyView=uvt,ee.Error=aiu,ee.ExpandableGroup=BYn,ee.FabButtonAnimate=rzn,ee.Field=pn,ee.FilterRule=xlu,ee.FixedProgressBar=Obt,ee.Form=N5u,ee.FrameSkeleton=Plu,ee.HelpButton=xDn,ee.Icon=we,ee.IconButtonAnimate=azn,ee.Iconify=OGn,ee.IllustrationEmptyContent=wxn,ee.ImageCrop=tKn,ee.Incrementer=aWn,ee.IncrementerField=T5u,ee.Label=iWn,ee.Lightbox=wBo,ee.ListingRules=Hlu,ee.LoadingScreen=Iuu,ee.ManualRule=Alu,ee.MaskedInput=lWn,ee.MaskedInputField=AYn,ee.MaterialDesignContent=qpt,ee.MenuPopover=wKn,ee.Modal=MKn,ee.ModalActions=quu,ee.MotionContainer=oar,ee.MotionLazyContainer=Tpt,ee.MotionViewport=iar,ee.MultiCheckbox=A5u,ee.MultipleChipField=Z5u,ee.NoData=Mxn,ee.NumberInput=xbt,ee.NumberInputField=U5u,ee.PasswordField=G5u,ee.PasswordRules=i2u,ee.PopoverSelect=glu,ee.Portal=LKn,ee.RadioGroupField=IWn,ee.Result=sWn,ee.SavedChanges=P2u,ee.Scrollbar=ZT,ee.SearchInput=Fle,ee.SeoPreview=Blu,ee.SnackbarContent=Jpt,ee.SnackbarProvider=Dzn,ee.SplashScreen=E2u,ee.Steps=D2u,ee.StyledTab=I2u,ee.StyledTabs=B2u,ee.Summary=hlu,ee.SwapList=J5u,ee.Switch=xYn,ee.TRANSITION=Lxn,ee.TabPanel=W2u,ee.TableEmptyRows=kDo,ee.TableHeadCustom=DDo,ee.TableNoData=PDo,ee.TablePaginationCustom=BDo,ee.TableSelectedAction=IDo,ee.TableSkeleton=EDo,ee.TextAnimate=Grr,ee.TextMaxLine=Wj,ee.ThemeProvider=WUn,ee.TimePicker=K5u,ee.ToggleButtonGroup=sYn,ee.Transition=Nht,ee.Upload=rYn,ee.UploadAvatar=aYn,ee.UploadAvatarWithCropField=X5u,ee.UploadBox=ilu,ee.UploadIllustration=jxn,ee.UploadWithCrop=uYn,ee.UploadWithCropField=Q5u,ee.Webhook=B5u,ee.WhiteBox=cYn,ee.color=Cau,ee.compare=dHo,ee.cssStyles=yDo,ee.emptyRows=jDo,ee.file=o2u,ee.formatNumber=ouu,ee.formatTime=C2u,ee.generateQuery=EKn,ee.getComparator=wDo,ee.loadable=L2u,ee.mask=w2u,ee.number=euu,ee.routes=y2u,ee.sort=j2u,ee.useActiveElement=eWo,ee.useApiMessage=pHo,ee.useCarousel=oDo,ee.useCopyToClipboard=tWo,ee.useDatagrid=zFn,ee.useDeepCompareEffect=_Ho,ee.useEventListener=nIn,ee.useIsMounting=vHo,ee.useLightBox=PBo,ee.useOffSetTop=yHo,ee.useOnClickOutside=bHo,ee.usePagination=CHo,ee.usePopover=Amt,ee.useResponsive=Npt,ee.useSnackbar=Izn,ee.useTable=MDo,ee.useTabs=hHo,ee.useToggle=xmt,ee.uuidv4=M2u,ee.validators=n2u,ee.varBgColor=lqn,ee.varBgKenburns=sqn,ee.varBgPan=fqn,ee.varBounce=oqn,ee.varContainer=_ht,ee.varFade=mse,ee.varFlip=rqn,ee.varHover=cqn,ee.varPath=eqn,ee.varRotate=uqn,ee.varScale=iqn,ee.varSlide=aqn,ee.varTranEnter=Xe,ee.varTranExit=at,ee.varTranHover=tqn,ee.varZoom=nqn,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
|