UNPKG

mdc-react

Version:

Material Components for the web implemented in React

2 lines 47.8 kB
/*! For license information please see index.js.LICENSE.txt */ (()=>{var e={7704:(e,t,r)=>{"use strict";r.d(t,{Ue:()=>n.createElement,d9:()=>n.cloneElement,oX:()=>u});var n=r(6575),o=r(4184),i=r.n(o),a=["component","fallback","className","children"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=(0,n.forwardRef)((function(e,t){var r=e.component,o=e.fallback,c=e.className,s=e.children,u=void 0===s?r:s,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a);return(0,n.isValidElement)(r)?(0,n.cloneElement)(r,l({ref:t,className:i()(c,r.props.className)},p)):(0,n.isValidElement)(o)?(0,n.cloneElement)(o,l({ref:t,className:i()(c,o.props.className)},p)):o?(0,n.createElement)(o,l({ref:t,className:c},p),u):u}))},8229:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={ROOT:"mdc-icon",LIGHT:"mdc-icon--light",DARK:"mdc-icon--dark",INACTIVE:"mdc-icon--inactive"}},8263:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(6575),o=r(5697),i=r.n(o),a=r(4184),c=r.n(a),l=r(8229),s=r(5893),u=["name","type","size","light","dark","inactive","element","component","children","className"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=(0,n.forwardRef)((function(e,t){var r,n=e.name,o=e.type,i=e.size,a=e.light,p=void 0!==a&&a,b=e.dark,m=void 0!==b&&b,O=e.inactive,y=void 0!==O&&O,g=e.element,h=void 0===g?"i":g,v=e.component,j=void 0===v?h:v,w=e.children,x=void 0===w?n:w,P=e.className,E=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,u),S=c()(l.U.ROOT,(d(r={},"".concat(l.U.ROOT,"--").concat(o),o),d(r,"".concat(l.U.ROOT,"--").concat(i),i),d(r,l.U.LIGHT,p),d(r,l.U.DARK,m),d(r,l.U.INACTIVE,y),r),P);return(0,s.jsx)(j,f(f({ref:t,className:S},E),{},{children:x}))}));b.displayName="MDCIcon",b.propTypes={type:i().oneOf(["","filled","outlined","round","sharp","two-tone"]),size:i().string,light:i().bool,dark:i().bool,inactive:i().bool};const m=b},2380:(e,t,r)=>{"use strict";r.d(t,{HC:()=>L,ZP:()=>B});var n=r(6575),o=r(5697),i=r.n(o),a=r(4184),c=r.n(a),l=r(7704),s=r(8263),u=r(5893),p=["overline","primary","secondary","overlineText","primaryText","secondaryText","element","component","className","children"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=(0,n.forwardRef)((function(e,t){var r=e.overline,n=e.primary,o=e.secondary,i=e.overlineText,a=void 0===i?r:i,s=e.primaryText,f=void 0===s?n:s,b=e.secondaryText,m=void 0===b?o:b,O=e.element,y=void 0===O?"span":O,g=e.component,h=void 0===g?y:g,v=e.className,j=e.children,w=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,p),x=c()("mdc-list-item__content",v);return(0,u.jsxs)(h,d(d({ref:t,className:x},w),{},{children:[a&&(0,u.jsx)(l.oX,{component:a,fallback:"span",className:"mdc-list-item__overline-text"}),f&&(0,u.jsx)(l.oX,{component:f,fallback:"span",className:"mdc-list-item__primary-text"}),m&&(0,u.jsx)(l.oX,{component:m,fallback:"span",className:"mdc-list-item__secondary-text"}),j]}))}));m.displayName="MDCListItemContent",m.propTypes={overlineText:i().node,primaryText:i().node,secondaryText:i().node};const O=m;var y=["element","component","className"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=(0,n.forwardRef)((function(e,t){var r=e.element,n=void 0===r?"span":r,o=e.component,i=void 0===o?n:o,a=e.className,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,y),s=c()("mdc-list-item__end",a);return(0,u.jsx)(i,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:t,className:s},l))}));v.displayName="MDCListItemEnd";const j=v;var w=["element","component","className"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=(0,n.forwardRef)((function(e,t){var r=e.element,n=void 0===r?"span":r,o=e.component,i=void 0===o?n:o,a=e.className,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,w),s=c()("mdc-list-item__start",a);return(0,u.jsx)(i,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:t,className:s},l))}));E.displayName="MDCListItemStart";const S=E;var T=["start","content","end","text","overlineText","primaryText","secondaryText","icon","image","avatar","thumbnail","video","leadingIcon","leadingImage","leadingAvatar","leadingThumbnail","leadingVideo","leadingCheckbox","leadingRadio","leadingSwitch","meta","trailingMeta","trailingIcon","trailingCheckbox","trailingRadio","trailingSwitch","activated","selected","disabled","nonInteractive","oneLine","twoLines","threeLines","withLeadingIcon","withLeadingImage","withLeadingAvatar","withLeadingThumbnail","withLeadingVideo","withLeadingCheckbox","withLeadingRadio","withLeadingSwitch","withTrailingMeta","withTrailingIcon","withTrailingCheckbox","withTrailingRadio","withTrailingSwitch","element","component","className","children"];function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){D(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k=(0,n.forwardRef)((function(e,t){var r,n=e.start,o=e.content,i=e.end,a=e.text,p=e.overlineText,f=e.primaryText,d=void 0===f?a:f,b=e.secondaryText,m=e.icon,y=e.image,g=e.avatar,h=e.thumbnail,v=e.video,w=e.leadingIcon,x=void 0===w?m:w,P=e.leadingImage,E=void 0===P?y:P,N=e.leadingAvatar,k=void 0===N?g:N,L=e.leadingThumbnail,I=void 0===L?h:L,R=e.leadingVideo,_=void 0===R?v:R,A=e.leadingCheckbox,M=e.leadingRadio,B=e.leadingSwitch,U=e.meta,V=e.trailingMeta,W=void 0===V?U:V,G=e.trailingIcon,H=e.trailingCheckbox,F=e.trailingRadio,X=e.trailingSwitch,q=e.activated,$=void 0!==q&&q,K=e.selected,Z=void 0!==K&&K,z=e.disabled,Y=void 0!==z&&z,J=e.nonInteractive,Q=void 0!==J&&J,ee=e.oneLine,te=void 0!==ee&&ee,re=e.twoLines,ne=void 0!==re&&re,oe=e.threeLines,ie=void 0!==oe&&oe,ae=e.withLeadingIcon,ce=void 0===ae?Boolean(x):ae,le=e.withLeadingImage,se=void 0===le?Boolean(E):le,ue=e.withLeadingAvatar,pe=void 0===ue?Boolean(k):ue,fe=e.withLeadingThumbnail,de=void 0===fe?Boolean(I):fe,be=e.withLeadingVideo,me=void 0===be?Boolean(_):be,Oe=e.withLeadingCheckbox,ye=void 0===Oe?Boolean(A):Oe,ge=e.withLeadingRadio,he=void 0===ge?Boolean(M):ge,ve=e.withLeadingSwitch,je=void 0===ve?Boolean(B):ve,we=e.withTrailingMeta,xe=void 0===we?Boolean(W):we,Pe=e.withTrailingIcon,Ee=void 0===Pe?Boolean(G):Pe,Se=e.withTrailingCheckbox,Te=void 0===Se?Boolean(H):Se,Ne=e.withTrailingRadio,Ce=void 0===Ne?Boolean(F):Ne,De=e.withTrailingSwitch,ke=void 0===De?Boolean(X):De,Le=e.element,Ie=void 0===Le?"li":Le,Re=e.component,_e=void 0===Re?Ie:Re,Ae=e.className,Me=e.children,Be=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,T),Ue=Boolean(p)+Boolean(d)+Boolean(b),Ve=Boolean(n||x||E||k||I||_||A||M||B),We=Boolean(o||p||d||b),Ge=Boolean(i||W||G||H||F||X),He=c()("mdc-list-item",(D(r={},"mdc-list-item--activated",$),D(r,"mdc-list-item--selected",Z),D(r,"mdc-list-item--disabled",Y),D(r,"mdc-list-item--with-one-line",te||1===Ue),D(r,"mdc-list-item--with-two-lines",ne||2===Ue),D(r,"mdc-list-item--with-three-lines",ie||3===Ue),D(r,"mdc-list-item--non-interactive",Q),D(r,"mdc-list-item--with-overline",p),D(r,"mdc-list-item--with-leading-icon",ce),D(r,"mdc-list-item--with-leading-image",se),D(r,"mdc-list-item--with-leading-avatar",pe),D(r,"mdc-list-item--with-leading-thumbnail",de),D(r,"mdc-list-item--with-leading-video",me),D(r,"mdc-list-item--with-leading-checkbox",ye),D(r,"mdc-list-item--with-leading-radio",he),D(r,"mdc-list-item--with-leading-switch",je),D(r,"mdc-list-item--with-trailing-icon",Ee),D(r,"mdc-list-item--with-trailing-meta",xe),D(r,"mdc-list-item--with-trailing-checkbox",Te),D(r,"mdc-list-item--with-trailing-radio",Ce),D(r,"mdc-list-item--with-trailing-switch",ke),r),Ae);return(0,u.jsxs)(_e,C(C({ref:t,className:He},Be),{},{children:[(0,u.jsx)("span",{className:"mdc-list-item__ripple"}),Ve&&(0,u.jsxs)(S,{children:[n,x&&(0,u.jsx)(l.oX,{component:x,fallback:s.Z}),E,k,I,_,A,M,B]}),We&&(0,u.jsx)(O,{overlineText:p,primaryText:d,secondaryText:b,children:o}),Ge&&(0,u.jsxs)(j,{children:[i,W,G&&(0,u.jsx)(l.oX,{component:G,fallback:s.Z}),H,F,X]}),Me]}))}));k.displayName="MDCListItem",k.propTypes={start:i().node,content:i().node,end:i().node,text:i().node,overlineText:i().node,primaryText:i().node,secondaryText:i().node,icon:i().node,image:i().element,avatar:i().element,thumbnail:i().element,video:i().element,leadingIcon:i().node,leadingImage:i().element,leadingAvatar:i().element,leadingThumbnail:i().element,leadingVideo:i().element,leadingCheckbox:i().element,leadingRadio:i().element,leadingSwitch:i().element,meta:i().node,trailingMeta:i().node,trailingIcon:i().node,trailingCheckbox:i().element,trailingRadio:i().element,trailingSwitch:i().element,activated:i().bool,selected:i().bool,disabled:i().bool,nonInteractive:i().bool,withLeadingIcon:i().bool,withLeadingImage:i().bool,withLeadingAvatar:i().bool,withLeadingThumbnail:i().bool,withLeadingVideo:i().bool,withLeadingCheckbox:i().bool,withLeadingRadio:i().bool,withLeadingSwitch:i().bool,withTrailingMeta:i().bool,withTrailingIcon:i().bool,withTrailingCheckbox:i().bool,withTrailingRadio:i().bool,withTrailingSwitch:i().bool};const L=k;var I=["items","element","className","children"];function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M=(0,n.forwardRef)((function(e,t){var r=e.items,n=e.element,o=void 0===n?"ul":n,i=e.className,a=e.children,s=void 0===a?null==r?void 0:r.map((function(e){return(0,l.Ue)(L,e)})):a,p=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,I),f=c()("mdc-list",i);return(0,u.jsx)(o,_(_({ref:t,className:f},p),{},{children:s}))}));M.displayName="MDCList",L.propTypes={items:i().array};const B=M;var U=["withLeadingText","withLeadingIcon","withLeadingImage","withLeadingThumbnail","withLeadingVideo","withLeadingCheckbox","withLeadingRadio","withLeadingSwitch","element","className"];function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G=(0,n.forwardRef)((function(e,t){var r,n=e.withLeadingText,o=void 0!==n&&n,i=e.withLeadingIcon,a=void 0!==i&&i,l=e.withLeadingImage,s=void 0!==l&&l,p=e.withLeadingThumbnail,f=void 0!==p&&p,d=e.withLeadingVideo,b=void 0!==d&&d,m=e.withLeadingCheckbox,O=void 0!==m&&m,y=e.withLeadingRadio,g=void 0!==y&&y,h=e.withLeadingSwitch,v=void 0!==h&&h,j=e.element,w=void 0===j?"li":j,x=e.className,P=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,U),E=c()("mdc-list-divider",(W(r={},"mdc-list-divider--with-leading-text",o),W(r,"mdc-list-divider--with-leading-icon",a),W(r,"mdc-list-divider--with-leading-image",s),W(r,"mdc-list-divider--with-leading-thumbnail",f),W(r,"mdc-list-divider--with-leading-video",b),W(r,"mdc-list-divider--with-leading-checkbox",O),W(r,"mdc-list-divider--with-leading-radio",g),W(r,"mdc-list-divider--with-leading-switch",v),r),x);return(0,u.jsx)(w,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:t,className:E,role:"li"===w?"separator":void 0},P))}));G.displayName="MDCListDivider",G.propTypes={withLeadingText:i().bool,withLeadingIcon:i().bool,withLeadingImage:i().bool,withLeadingThumbnail:i().bool,withLeadingVideo:i().bool,withLeadingAvatar:i().bool,withLeadingCheckbox:i().bool,withLeadingSwitch:i().bool,withLeadingRadio:i().bool};const H=G;var F=["element","className"];function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $=(0,n.forwardRef)((function(e,t){var r=e.element,n=void 0===r?"div":r,o=e.className,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,F),a=c()("mdc-list-group",o);return(0,u.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({ref:t,className:a},i))}));$.displayName="MDCListGroup";const K=$;var Z=["title","element","className","children"];function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Q=(0,n.forwardRef)((function(e,t){var r=e.title,n=e.element,o=void 0===n?"h3":n,i=e.className,a=e.children,l=void 0===a?r:a,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Z),p=c()("mdc-list-group__subheader",i);return(0,u.jsx)(o,Y(Y({ref:t,className:p},s),{},{children:l}))}));Q.displayName="MDCListGroupSubheader",Q.propTypes={title:i().string};const ee=Q;B.Item=L,B.Divider=H,B.Group=K,K.Subheader=ee,L.Content=O,L.End=j,L.Start=S},4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,l=o(e),s=1;s<arguments.length;s++){for(var u in a=Object(arguments[s]))r.call(a,u)&&(l[u]=a[u]);if(t){c=t(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(l[c[p]]=a[c[p]])}}return l}},2703:(e,t,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5251:(e,t,r)=>{"use strict";r(7418);var n=r(6575),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,u=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},5893:(e,t,r)=>{"use strict";e.exports=r(5251)},6575:e=>{"use strict";e.exports=void 0}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e="mdc-menu-surface--anchor",t="mdc-menu-surface--open",n="mdc-menu-surface--animating-open",o={TOP_LEFT:"top left",TOP_CENTER:"top center",TOP_RIGHT:"top right",CENTER_LEFT:"center left",CENTER:"center center",CENTER_RIGHT:"center right",BOTTOM_LEFT:"bottom left",BOTTOM_CENTER:"bottom center",BOTTOM_RIGHT:"bottom right"},i=r(6575),a=r.n(i),c=r(5697),l=r.n(c),s=r(4184),u=r.n(s);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){var r,n,o=(r=(0,i.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(r,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1];(0,i.useEffect)((function(){return a?e():c(!0)}),t)}var d=r(7704),b=r(2380),m=r(5893),O=["selected","disabled","className"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=(0,i.forwardRef)((function(e,t){var r=e.selected,n=void 0!==r&&r,o=e.disabled,i=void 0!==o&&o,a=e.className,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,O),l=u()("mdc-menu-item",h({},"mdc-menu-item--selected",n),a);return(0,m.jsx)(b.HC,g({ref:t,role:"menuitem",className:l,selected:n,disabled:i,"data-disabled":i||void 0,tabIndex:i?"-1":void 0},c))}));v.displayName="MDCMenuItem",v.propTypes=g({},b.HC.propTypes);const j=v;function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,P(e,t)}function S(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const T=void 0;var N=r.n(T);const C=a().createContext(null);var D="unmounted",k="exited",L="entering",I="entered",R="exiting",_=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=k,n.appearStatus=L):o=I:o=t.unmountOnExit||t.mountOnEnter?D:k,n.state={status:o},n.nextCallback=null,n}E(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===D?{status:k}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==L&&r!==I&&(t=L):r!==L&&r!==I||(t=R)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===L?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===k&&this.setState({status:D})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[N().findDOMNode(this),n],i=o[0],a=o[1],c=this.getTimeouts(),l=n?c.appear:c.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:L},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:I},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:I},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:N().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:R},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:k},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:k},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:N().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===D)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,x(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(C.Provider,{value:null},"function"==typeof r?r(e,n):a().cloneElement(a().Children.only(r),n))},t}(a().Component);function A(){}_.contextType=C,_.propTypes={},_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:A,onEntering:A,onEntered:A,onExit:A,onExiting:A,onExited:A},_.UNMOUNTED=D,_.EXITED=k,_.ENTERING=L,_.ENTERED=I,_.EXITING=R;const M=_;var B=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=S(r.className,n):r.setAttribute("class",S(r.className&&r.className.baseVal||"",n)));var r,n}))},U=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],i=n[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}E(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&e.scrollTop,n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&B(e,n),o&&B(e,o),i&&B(e,i)},r.render=function(){var e=this.props,t=(e.classNames,x(e,["classNames"]));return a().createElement(M,w({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a().Component);U.defaultProps={classNames:""},U.propTypes={};const V=U;function W(e){var t=e.fixed,r=void 0!==t&&t,n=e.element,o=void 0===n?"div":n,a=e.children,c=(0,i.useRef)(document.createElement(o));return(0,i.useEffect)((function(){var e=c.current,t=document.activeElement;return e.className="mdc-modal",r&&e.classList.add("mdc-modal--fixed"),document.body.appendChild(e),e.firstChild.focus(),function(){t.focus(),document.body.removeChild(e)}}),[r]),(0,T.createPortal)(a,c.current)}W.displayName="MDCModal",W.propTypes={fixed:l().bool,element:l().string,children:l().node.isRequired};var G=["modal","fixed","children"];function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e){var t=e.modal,r=void 0!==t&&t,n=e.fixed,o=void 0!==n&&n,i=e.children,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,G);return(0,m.jsx)(V,F(F({},a),{},{children:r?(0,m.jsx)(W,{fixed:o,children:i}):i}))}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}q.displayName="MDCLayer",q.propTypes={modal:l().bool,fixed:l().bool};var K={top:!1,bottom:!1,center:!1,left:!1,right:!1};function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("object"===$(e))return Object.assign({},K,e);var t=e.split(" "),r=t.reduce((function(e,t){return e[t]=!0,e}),{});return Object.assign({},K,r)}var z=["anchor","anchorRef","anchorOrigin","transformOrigin","open","modal","quick","fixed","persistent","fullWidth","onClose","onKeyDown","className"];function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){Q(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ee=(0,i.forwardRef)((function(e,r){var a,c=e.anchor,l=e.anchorRef,s=e.anchorOrigin,p=void 0===s?o.TOP_LEFT:s,b=e.transformOrigin,O=void 0===b?p:b,y=e.open,g=void 0!==y&&y,h=e.modal,v=void 0!==h&&h,j=e.quick,w=void 0!==j&&j,x=e.fixed,P=void 0!==x&&x,E=e.persistent,S=void 0!==E&&E,T=e.fullWidth,N=void 0!==T&&T,C=e.onClose,D=void 0===C?Function.prototype:C,k=e.onKeyDown,L=void 0===k?Function.prototype:k,I=e.className,R=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,z),_=(0,i.useRef)(),A=(0,i.useRef)(null==l?void 0:l.current);(0,i.useImperativeHandle)(r,(function(){return _.current})),(0,i.useEffect)((function(){l&&(A.current=l.current)}),[l]),f((function(){if(g&&!S)return document.body.addEventListener("click",e,!0),function(){document.body.removeEventListener("click",e,!0)};function e(e){D(e)}}),[g,S,D]),f((function(){if(g&&_.current&&A.current){var e=A.current,t=_.current,r=t.clientWidth,n=t.clientHeight,o=e.getBoundingClientRect(),i=v?o:{top:e.offsetTop,left:e.offsetLeft,bottom:e.offsetTop+e.offsetHeight,right:e.offsetLeft+e.offsetWidth,width:e.offsetWidth,height:e.offsetHeight},a={top:i.top,left:i.left,width:N?"100%":void 0,maxWidth:N?"".concat(i.width,"px"):void 0,position:P?"fixed":"absolute",transformOrigin:O},c=v&&!P?window.scrollY:0,l=v&&!P?window.scrollX:0,s=Z(p),u=Z(O);if(s.top?a.top=i.top:s.bottom&&(a.top=i.bottom),s.left?a.left=i.left:s.right&&(a.left=i.right),u.top){var f=c+a.top,d=c+(s.bottom?o.bottom:o.top)+n-window.innerHeight;a.top=d>0?f-d:f}else if(u.bottom){var b=c+a.top-n,m=c+(s.bottom?o.bottom:o.top)-n;a.top=m>0?b:0}if(u.left){var y=a.left,h=l+window.innerWidth-(s.left?o.left:o.right)+r;a.left=h>0?y:y-Math.abs(h)}else if(u.right){var j=a.left-r,w=l+(s.right?o.right:o.left)-r;a.left=w>0?j:0}_.current.style.top="".concat(a.top,"px"),_.current.style.left="".concat(a.left,"px"),_.current.style.position=a.position,_.current.style.width=a.width,_.current.style.maxWidth=a.maxWidth,_.current.style.transformOrigin=a.transformOrigin}}),[g,v,P,p,O]);var M=(0,i.useCallback)((function(e){"Escape"!==e.key||S||(e.stopPropagation(),D(e)),L(e)}),[S,L,D]),B=p.includes("bottom")&&O.includes("top"),U=u()("mdc-menu-surface",(Q(a={},"mdc-menu-surface--fixed",P),Q(a,"mdc-menu-surface--is-open-below",B),a),I);return(0,m.jsxs)(m.Fragment,{children:[c&&(0,d.d9)(c,{ref:A}),(0,m.jsx)(q,{in:g,modal:v,timeout:w?0:{enter:120,exit:75},classNames:w?{enterDone:t}:{enter:n,enterActive:n,enterDone:t,exit:t,exitActive:"mdc-menu-surface--animating-closed"},mountOnEnter:!0,unmountOnExit:!0,children:(0,m.jsx)("div",J({ref:_,className:U,onKeyDown:M},R))})]})}));ee.displayName="MDCMenuSurface",ee.propTypes={anchor:l().element,anchorRef:l().object,anchorOrigin:l().oneOf(Object.values(o)),open:l().bool,modal:l().bool,quick:l().bool,fixed:l().bool,persistent:l().bool,fullWidth:l().bool,onClose:l().func};const te=ee;var re=["open","items","listProps","children","className"];function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ce=(0,i.forwardRef)((function(e,t){var r,n,o=e.open,a=e.items,c=e.listProps,l=void 0===c?{}:c,s=e.children,p=void 0===s?null==a?void 0:a.map((function(e){return(0,d.Ue)(j,e)})):s,O=e.className,y=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,re),g=(0,i.useRef)(),h=(r=(0,i.useState)(0),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(r,n)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=h[0],w=h[1];(0,i.useEffect)((function(){o&&w(i.Children.toArray(p).findIndex((function(e){return e.props.selected})))}),[o,p]),f((function(){var e;o&&(null===(e=g.current.children[v])||void 0===e||e.focus())}),[v,o]);var x=(0,i.useCallback)((function(e){e.preventDefault(),"ArrowDown"===e.key?w((function(e){var t=e+1;return t<g.current.children.length?t:e})):"ArrowUp"===e.key&&w((function(e){var t=e-1;return t>=0?t:e}))}),[]),P=u()("mdc-menu",O);return(0,m.jsx)(te,oe(oe({ref:t,open:o,className:P,onKeyDown:x},y),{},{children:(0,m.jsx)(b.ZP,oe(oe({ref:g,role:"menu","aria-hidden":"true","aria-orientation":"vertical",tabIndex:o?0:-1},l),{},{children:i.Children.map(p,(function(e,t){return(0,m.jsx)(d.oX,{component:e,tabIndex:t===v?0:-1})}))}))}))}));ce.displayName="MDCMenu",ce.propTypes=oe(oe({},te.propTypes),{},{listProps:l().object});const le=ce;var se=["wrap","element","className","children"];function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var de=(0,i.forwardRef)((function(t,r){var n=t.wrap,o=void 0===n||n,i=t.element,a=void 0===i?"div":i,c=t.className,l=t.children,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,se);return o?(0,d.Ue)(a,pe({ref:r,className:u()(e,c)},s),l):(0,d.d9)(l,pe({ref:r,className:u()(l.props.className,e)},s))}));de.displayName="MDCMenuAnchor";const be=de;var me=["element"];function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var he=(0,i.forwardRef)((function(e,t){var r=e.element,n=void 0===r?"ul":r,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,me);return(0,m.jsx)("li",{ref:t,children:(0,m.jsx)(n,ye({className:"mdc-menu__selection-group"},o))})}));he.displayName="MDCMenuSelectionGroup";const ve=he;var je=r(8263);function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pe(e){return(0,m.jsx)(je.Z,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:"mdc-menu__selection-group-icon"},e))}Pe.displayName="MDCMenuSelectionGroupIcon",le.Anchor=be,le.Item=j,le.Origin=o,le.Surface=te,le.SelectionGroup=ve,le.SelectionGroupIcon=Pe})()})();