CINXE.COM
Verbatim Report of the proceedings against Edwards and Passingham for conspiracy to blackmail George Townshend Forrester
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Verbatim Report of the proceedings against Edwards and Passingham for conspiracy to blackmail George Townshend Forrester</title> <script async src="https://www.googletagmanager.com/gtag/js?id=G-V9T13P98V7"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-V9T13P98V7'); </script> </head> <body> <div id="mirador-app" dir="ltr" data-language="en" data-endpoint="https://sites.dlib.nyu.edu/viewer" data-type="books" data-sequence="1" data-identifier="fales_sc000021"> </div> <script> /*! For license information please see mirador.js.LICENSE.txt */ (()=>{var e,t,n={63259:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={black:"#000",white:"#fff"}},47559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},70167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},78768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},36594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},83165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={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"}},59009:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(93871),u=i.forwardRef((function(e,t){var n=e.anchorOrigin,s=void 0===n?{vertical:"top",horizontal:"right"}:n,u=e.badgeContent,c=e.children,d=e.classes,f=e.className,p=e.color,h=void 0===p?"default":p,g=e.component,m=void 0===g?"span":g,v=e.invisible,y=e.max,b=void 0===y?99:y,w=e.overlap,E=void 0===w?"rectangle":w,O=e.showZero,x=void 0!==O&&O,S=e.variant,I=void 0===S?"standard":S,C=(0,o.Z)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),_=v;null==v&&(0===u&&!x||null==u&&"dot"!==I)&&(_=!0);var k="";return"dot"!==I&&(k=u>b?"".concat(b,"+"):u),i.createElement(m,(0,r.Z)({className:(0,a.default)(d.root,f),ref:t},C),c,i.createElement("span",{className:(0,a.default)(d.badge,d["".concat(s.horizontal).concat((0,l.Z)(s.vertical),"}")],d["anchorOrigin".concat((0,l.Z)(s.vertical)).concat((0,l.Z)(s.horizontal)).concat((0,l.Z)(E))],"default"!==h&&d["color".concat((0,l.Z)(h))],_&&d.invisible,"dot"===I&&d.dot)},k))}));const c=(0,s.Z)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(u)},282:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(45987),o=n(87462),i=n(67294),a=n(86010),s=n(52543),l=n(59693),u=n(54720),c=n(93871),d=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,g=e.disabled,m=void 0!==g&&g,v=e.disableElevation,y=void 0!==v&&v,b=e.disableFocusRipple,w=void 0!==b&&b,E=e.endIcon,O=e.focusVisibleClassName,x=e.fullWidth,S=void 0!==x&&x,I=e.size,C=void 0===I?"medium":I,_=e.startIcon,k=e.type,T=void 0===k?"button":k,P=e.variant,R=void 0===P?"text":P,A=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=_&&i.createElement("span",{className:(0,a.default)(s.startIcon,s["iconSize".concat((0,c.Z)(C))])},_),N=E&&i.createElement("span",{className:(0,a.default)(s.endIcon,s["iconSize".concat((0,c.Z)(C))])},E);return i.createElement(u.Z,(0,o.Z)({className:(0,a.default)(s.root,s[R],l,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(R).concat((0,c.Z)(f))],"medium"!==C&&[s["".concat(R,"Size").concat((0,c.Z)(C))],s["size".concat((0,c.Z)(C))]],y&&s.disableElevation,m&&s.disabled,S&&s.fullWidth),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:(0,a.default)(s.focusVisible,O),ref:t,type:T},A),i.createElement("span",{className:s.label},j,n,N))}));const f=(0,s.Z)((function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,l.Fq)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,l.Fq)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,l.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},54720:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(87462),o=n(45987),i=n(67294),a=n(73935),s=n(86010),l=n(17294),u=n(55192),c=n(52543),d=n(24896),f=n(93433),p=n(63366),h=n(97326),g=n(94578),m=n(220);function v(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=v(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,u=a in r,c=t[a],d=(0,i.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,i.isValidElement)(c)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:y(s,"exit",e),enter:y(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:y(s,"exit",e),enter:y(s,"enter",e)})}})),o}var w=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},E=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,h.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,g.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,v(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:y(e,"appear",n),enter:y(e,"enter",n),exit:y(e,"exit",n)})}))):b(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=v(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,p.Z)(e,["component","childFactory"]),o=this.state.contextValue,a=w(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(m.Z.Provider,{value:o},a):i.createElement(m.Z.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);E.propTypes={},E.defaultProps={component:"div",childFactory:function(e){return e}};const O=E;var x="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const S=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,l=e.rippleSize,c=e.in,d=e.onExited,f=void 0===d?function(){}:d,p=e.timeout,h=i.useState(!1),g=h[0],m=h[1],v=(0,s.default)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:l,height:l,top:-l/2+a,left:-l/2+o},b=(0,s.default)(t.child,g&&t.childLeaving,r&&t.childPulsate),w=(0,u.Z)(f);return x((function(){if(!c){m(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,c,p]),i.createElement("span",{className:v,style:y},i.createElement("span",{className:b}))};var I=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,l=e.classes,u=e.className,c=(0,o.Z)(e,["center","classes","className"]),d=i.useState([]),p=d[0],h=d[1],g=i.useRef(0),m=i.useRef(null);i.useEffect((function(){m.current&&(m.current(),m.current=null)}),[p]);var v=i.useRef(!1),y=i.useRef(null),b=i.useRef(null),w=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var E=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat((0,f.Z)(e),[i.createElement(S,{key:g.current,classes:l,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),g.current+=1,m.current=a}),[l]),x=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,s=void 0===i?a||t.pulsate:i,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var c,d,f,p=u?null:w.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var g=e.touches?e.touches[0]:e,m=g.clientX,O=g.clientY;c=Math.round(m-h.left),d=Math.round(O-h.top)}if(s)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(f+=1);else{var x=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(x,2)+Math.pow(S,2))}e.touches?null===b.current&&(b.current=function(){E({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):E({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[a,E]),I=i.useCallback((function(){x({},{pulsate:!0})}),[x]),C=i.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){C(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:I,start:x,stop:C}}),[I,x,C]),i.createElement("span",(0,r.Z)({className:(0,s.default)(l.root,u),ref:w},c),i.createElement(O,{component:null,exit:!0},p))}));const C=(0,c.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(I));var _=i.forwardRef((function(e,t){var n=e.action,c=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,g=e.classes,m=e.className,v=e.component,y=void 0===v?"button":v,b=e.disabled,w=void 0!==b&&b,E=e.disableRipple,O=void 0!==E&&E,x=e.disableTouchRipple,S=void 0!==x&&x,I=e.focusRipple,_=void 0!==I&&I,k=e.focusVisibleClassName,T=e.onBlur,P=e.onClick,R=e.onFocus,A=e.onFocusVisible,j=e.onKeyDown,N=e.onKeyUp,D=e.onMouseDown,M=e.onMouseLeave,L=e.onMouseUp,Z=e.onTouchEnd,z=e.onTouchMove,W=e.onTouchStart,F=e.onDragLeave,B=e.tabIndex,U=void 0===B?0:B,H=e.TouchRippleProps,V=e.type,G=void 0===V?"button":V,q=(0,o.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=i.useRef(null),K=i.useRef(null),Y=i.useState(!1),X=Y[0],Q=Y[1];w&&X&&Q(!1);var J=(0,d.Z)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return(0,u.Z)((function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Q(!0),$.current.focus()}}}),[]),i.useEffect((function(){X&&_&&!O&&K.current.pulsate()}),[O,_,X]);var oe=re("start",D),ie=re("stop",F),ae=re("stop",L),se=re("stop",(function(e){X&&e.preventDefault(),M&&M(e)})),le=re("start",W),ue=re("stop",Z),ce=re("stop",z),de=re("stop",(function(e){X&&(te(e),Q(!1)),T&&T(e)}),!1),fe=(0,u.Z)((function(e){$.current||($.current=e.currentTarget),ee(e)&&(Q(!0),A&&A(e)),R&&R(e)})),pe=function(){var e=a.findDOMNode($.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),ge=(0,u.Z)((function(e){_&&!he.current&&X&&K.current&&" "===e.key&&(he.current=!0,e.persist(),K.current.stop(e,(function(){K.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),j&&j(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),me=(0,u.Z)((function(e){_&&" "===e.key&&K.current&&X&&!e.defaultPrevented&&(he.current=!1,e.persist(),K.current.stop(e,(function(){K.current.pulsate(e)}))),N&&N(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ve=y;"button"===ve&&q.href&&(ve="a");var ye={};"button"===ve?(ye.type=G,ye.disabled=w):("a"===ve&&q.href||(ye.role="button"),ye["aria-disabled"]=w);var be=(0,l.Z)(c,t),we=(0,l.Z)(ne,$),Ee=(0,l.Z)(be,we),Oe=i.useState(!1),xe=Oe[0],Se=Oe[1];i.useEffect((function(){Se(!0)}),[]);var Ie=xe&&!O&&!w;return i.createElement(ve,(0,r.Z)({className:(0,s.default)(g.root,m,X&&[g.focusVisible,k],w&&g.disabled),onBlur:de,onClick:P,onFocus:fe,onKeyDown:ge,onKeyUp:me,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ue,onTouchMove:ce,onTouchStart:le,ref:Ee,tabIndex:w?-1:U},ye,q),h,Ie?i.createElement(C,(0,r.Z)({ref:K,center:p},H)):null)}));const k=(0,c.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(_)},71267:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(87462),o=n(45987),i=n(67294),a=n(86010);const s=(0,n(63786).Z)(i.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var l=n(52543),u=n(59693),c=n(17294),d=n(93871),f=n(54720);function p(e){return"Backspace"===e.key||"Delete"===e.key}var h=i.forwardRef((function(e,t){var n=e.avatar,l=e.classes,u=e.className,h=e.clickable,g=e.color,m=void 0===g?"default":g,v=e.component,y=e.deleteIcon,b=e.disabled,w=void 0!==b&&b,E=e.icon,O=e.label,x=e.onClick,S=e.onDelete,I=e.onKeyDown,C=e.onKeyUp,_=e.size,k=void 0===_?"medium":_,T=e.variant,P=void 0===T?"default":T,R=(0,o.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),A=i.useRef(null),j=(0,c.Z)(A,t),N=function(e){e.stopPropagation(),S&&S(e)},D=!(!1===h||!x)||h,M="small"===k,L=v||(D?f.Z:"div"),Z=L===f.Z?{component:"div"}:{},z=null;if(S){var W=(0,a.default)("default"!==m&&("default"===P?l["deleteIconColor".concat((0,d.Z)(m))]:l["deleteIconOutlinedColor".concat((0,d.Z)(m))]),M&&l.deleteIconSmall);z=y&&i.isValidElement(y)?i.cloneElement(y,{className:(0,a.default)(y.props.className,l.deleteIcon,W),onClick:N}):i.createElement(s,{className:(0,a.default)(l.deleteIcon,W),onClick:N})}var F=null;n&&i.isValidElement(n)&&(F=i.cloneElement(n,{className:(0,a.default)(l.avatar,n.props.className,M&&l.avatarSmall,"default"!==m&&l["avatarColor".concat((0,d.Z)(m))])}));var B=null;return E&&i.isValidElement(E)&&(B=i.cloneElement(E,{className:(0,a.default)(l.icon,E.props.className,M&&l.iconSmall,"default"!==m&&l["iconColor".concat((0,d.Z)(m))])})),i.createElement(L,(0,r.Z)({role:D||S?"button":void 0,className:(0,a.default)(l.root,u,"default"!==m&&[l["color".concat((0,d.Z)(m))],D&&l["clickableColor".concat((0,d.Z)(m))],S&&l["deletableColor".concat((0,d.Z)(m))]],"default"!==P&&[l.outlined,{primary:l.outlinedPrimary,secondary:l.outlinedSecondary}[m]],w&&l.disabled,M&&l.sizeSmall,D&&l.clickable,S&&l.deletable),"aria-disabled":!!w||void 0,tabIndex:D||S?0:void 0,onClick:x,onKeyDown:function(e){e.currentTarget===e.target&&p(e)&&e.preventDefault(),I&&I(e)},onKeyUp:function(e){e.currentTarget===e.target&&(S&&p(e)?S(e):"Escape"===e.key&&A.current&&A.current.blur()),C&&C(e)},ref:j},Z,R),F||B,i.createElement("span",{className:(0,a.default)(l.label,M&&l.labelSmall)},O),z)}));const g=(0,l.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,u.Fq)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,u._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,u._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,u._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,u._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,u._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,u._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,u.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,u.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,u.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,u.Fq)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,u.Fq)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,u.Fq)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,u.Fq)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,u.Fq)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(h)},66037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(87462),o=n(29439),i=n(45987),a=n(67294),s=n(86010),l=n(58052),u=n(52543),c=n(43366),d=n(5653),f=n(8920),p=n(17294),h=a.forwardRef((function(e,t){var n=e.children,u=e.classes,h=e.className,g=e.collapsedHeight,m=e.collapsedSize,v=void 0===m?"0px":m,y=e.component,b=void 0===y?"div":y,w=e.disableStrictModeCompat,E=void 0!==w&&w,O=e.in,x=e.onEnter,S=e.onEntered,I=e.onEntering,C=e.onExit,_=e.onExited,k=e.onExiting,T=e.style,P=e.timeout,R=void 0===P?c.x9.standard:P,A=e.TransitionComponent,j=void 0===A?l.ZP:A,N=(0,i.Z)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),D=(0,f.Z)(),M=a.useRef(),L=a.useRef(null),Z=a.useRef(),z="number"==typeof(g||v)?"".concat(g||v,"px"):g||v;a.useEffect((function(){return function(){clearTimeout(M.current)}}),[]);var W=D.unstable_strictMode&&!E,F=a.useRef(null),B=(0,p.Z)(t,W?F:void 0),U=function(e){return function(t,n){if(e){var r=W?[F.current,t]:[t,n],i=(0,o.Z)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},H=U((function(e,t){e.style.height=z,x&&x(e,t)})),V=U((function(e,t){var n=L.current?L.current.clientHeight:0,r=(0,d.C)({style:T,timeout:R},{mode:"enter"}).duration;if("auto"===R){var o=D.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),Z.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),I&&I(e,t)})),G=U((function(e,t){e.style.height="auto",S&&S(e,t)})),q=U((function(e){var t=L.current?L.current.clientHeight:0;e.style.height="".concat(t,"px"),C&&C(e)})),$=U(_),K=U((function(e){var t=L.current?L.current.clientHeight:0,n=(0,d.C)({style:T,timeout:R},{mode:"exit"}).duration;if("auto"===R){var r=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),Z.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=z,k&&k(e)}));return a.createElement(j,(0,r.Z)({in:O,onEnter:H,onEntered:G,onEntering:V,onExit:q,onExited:$,onExiting:K,addEndListener:function(e,t){var n=W?e:t;"auto"===R&&(M.current=setTimeout(n,Z.current||0))},nodeRef:W?F:void 0,timeout:"auto"===R?null:R},N),(function(e,t){return a.createElement(b,(0,r.Z)({className:(0,s.default)(u.root,u.container,h,{entered:u.entered,exited:!O&&"0px"===z&&u.hidden}[e]),style:(0,r.Z)({minHeight:z},T),ref:B},t),a.createElement("div",{className:u.wrapper,ref:L},a.createElement("div",{className:u.wrapperInner},n)))}))}));h.muiSupportAuto=!0;const g=(0,u.Z)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(h)},59446:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(14741),l=n(52543),u=i.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,u=e.fullWidth,c=void 0!==u&&u,d=e.inputComponent,f=void 0===d?"input":d,p=e.multiline,h=void 0!==p&&p,g=e.type,m=void 0===g?"text":g,v=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.Z,(0,r.Z)({classes:(0,r.Z)({},l,{root:(0,a.default)(l.root,!n&&l.underline),underline:null}),fullWidth:c,inputComponent:f,multiline:h,ref:t,type:m},v))}));u.muiName="Input";const c=(0,l.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(u)},64436:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(36519),l=n(52543),u=n(93871),c=n(83711),d=n(15736),f=i.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,p=e.color,h=void 0===p?"primary":p,g=e.component,m=void 0===g?"div":g,v=e.disabled,y=void 0!==v&&v,b=e.error,w=void 0!==b&&b,E=e.fullWidth,O=void 0!==E&&E,x=e.focused,S=e.hiddenLabel,I=void 0!==S&&S,C=e.margin,_=void 0===C?"none":C,k=e.required,T=void 0!==k&&k,P=e.size,R=e.variant,A=void 0===R?"standard":R,j=(0,o.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),N=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if((0,c.Z)(t,["Input","Select"])){var n=(0,c.Z)(t,["Select"])?t.props.input:t;n&&(0,s.B7)(n.props)&&(e=!0)}})),e})),D=N[0],M=N[1],L=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){(0,c.Z)(t,["Input","Select"])&&(0,s.vd)(t.props,!0)&&(e=!0)})),e})),Z=L[0],z=L[1],W=i.useState(!1),F=W[0],B=W[1],U=void 0!==x?x:F;y&&U&&B(!1);var H=i.useCallback((function(){z(!0)}),[]),V={adornedStart:D,setAdornedStart:M,color:h,disabled:y,error:w,filled:Z,focused:U,fullWidth:O,hiddenLabel:I,margin:("small"===P?"dense":void 0)||_,onBlur:function(){B(!1)},onEmpty:i.useCallback((function(){z(!1)}),[]),onFilled:H,onFocus:function(){B(!0)},registerEffect:void 0,required:T,variant:A};return i.createElement(d.Z.Provider,{value:V},i.createElement(m,(0,r.Z)({className:(0,a.default)(l.root,f,"none"!==_&&l["margin".concat((0,u.Z)(_))],O&&l.fullWidth),ref:t},j),n))}));const p=(0,l.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(f)},15736:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,Z:()=>a});var r=n(67294),o=r.createContext();function i(){return r.useContext(o)}const a=o},89345:(e,t,n)=>{"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{Z:()=>r})},22601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(67294),o=n(15736);function i(){return r.useContext(o.Z)}},20170:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(87462),o=n(29439),i=n(45987),a=n(67294),s=n(58052),l=n(8920),u=n(5653),c=n(17294);function d(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,g=e.in,m=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,w=e.onExited,E=e.onExiting,O=e.style,x=e.timeout,S=void 0===x?"auto":x,I=e.TransitionComponent,C=void 0===I?s.ZP:I,_=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=a.useRef(),T=a.useRef(),P=(0,l.Z)(),R=P.unstable_strictMode&&!h,A=a.useRef(null),j=(0,c.Z)(n.ref,t),N=(0,c.Z)(R?A:void 0,j),D=function(e){return function(t,n){if(e){var r=R?[A.current,t]:[t,n],i=(0,o.Z)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},M=D(y),L=D((function(e,t){(0,u.n)(e);var n,r=(0,u.C)({style:O,timeout:S},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===S?(n=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=n):n=o,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:i}),P.transitions.create("transform",{duration:.666*n,delay:i})].join(","),m&&m(e,t)})),Z=D(v),z=D(E),W=D((function(e){var t,n=(0,u.C)({style:O,timeout:S},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===S?(t=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:o}),P.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=d(.75),b&&b(e)})),F=D(w);return a.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),a.createElement(C,(0,r.Z)({appear:!0,in:g,nodeRef:R?A:void 0,onEnter:L,onEntered:Z,onEntering:M,onExit:W,onExited:F,onExiting:z,addEndListener:function(e,t){var n=R?e:t;"auto"===S&&(k.current=setTimeout(n,T.current||0))},timeout:"auto"===S?null:S},_),(function(e,t){return a.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:d(.75),visibility:"exited"!==e||g?void 0:"hidden"},f[e],O,n.props.style),ref:N},t))}))}));p.muiSupportAuto=!0;const h=p},17812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(59693),u=n(54720),c=n(93871),d=i.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,l=e.children,d=e.classes,f=e.className,p=e.color,h=void 0===p?"default":p,g=e.disabled,m=void 0!==g&&g,v=e.disableFocusRipple,y=void 0!==v&&v,b=e.size,w=void 0===b?"medium":b,E=(0,o.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(u.Z,(0,r.Z)({className:(0,a.default)(d.root,f,"default"!==h&&d["color".concat((0,c.Z)(h))],m&&d.disabled,"small"===w&&d["size".concat((0,c.Z)(w))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:m,ref:t},E),i.createElement("span",{className:d.label},l))}));const f=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,l.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},38799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(14741),l=n(52543),u=i.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,u=e.fullWidth,c=void 0!==u&&u,d=e.inputComponent,f=void 0===d?"input":d,p=e.multiline,h=void 0!==p&&p,g=e.type,m=void 0===g?"text":g,v=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.Z,(0,r.Z)({classes:(0,r.Z)({},l,{root:(0,a.default)(l.root,!n&&l.underline),underline:null}),fullWidth:c,inputComponent:f,multiline:h,ref:t,type:m},v))}));u.muiName="Input";const c=(0,l.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(u)},14741:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(45987),o=n(87462),i=n(60288),a=n(67294),s=n(86010),l=n(89345),u=n(15736),c=n(52543),d=n(93871),f=n(17294),p=n(79437);function h(e,t){return parseInt(e[t],10)||0}var g="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const v=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,s=e.rowsMax,l=e.rowsMin,u=e.maxRows,c=e.minRows,d=void 0===c?1:c,v=e.style,y=e.value,b=(0,r.Z)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=u||s,E=i||l||d,O=a.useRef(null!=y).current,x=a.useRef(null),S=(0,f.Z)(t,x),I=a.useRef(null),C=a.useRef(0),_=a.useState({}),k=_[0],T=_[1],P=a.useCallback((function(){var t=x.current,n=window.getComputedStyle(t),r=I.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var l=r.scrollHeight-i,u=s;E&&(u=Math.max(Number(E)*l,u)),w&&(u=Math.min(Number(w)*l,u));var c=(u=Math.max(u,l))+("border-box"===o?i+a:0),d=Math.abs(u-s)<=1;T((function(e){return C.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(C.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[w,E,e.placeholder]);return a.useEffect((function(){var e=(0,p.Z)((function(){C.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),g((function(){P()})),a.useEffect((function(){C.current=0}),[y]),a.createElement(a.Fragment,null,a.createElement("textarea",(0,o.Z)({value:y,onChange:function(e){C.current=0,O||P(),n&&n(e)},ref:S,rows:E,style:(0,o.Z)({height:k.outerHeightStyle,overflow:k.overflow?"hidden":null},v)},b)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:I,tabIndex:-1,style:(0,o.Z)({},m,v)}))}));var y=n(36519),b="undefined"==typeof window?a.useEffect:a.useLayoutEffect,w=a.forwardRef((function(e,t){var n=e["aria-describedby"],c=e.autoComplete,p=e.autoFocus,h=e.classes,g=e.className,m=(e.color,e.defaultValue),w=e.disabled,E=e.endAdornment,O=(e.error,e.fullWidth),x=void 0!==O&&O,S=e.id,I=e.inputComponent,C=void 0===I?"input":I,_=e.inputProps,k=void 0===_?{}:_,T=e.inputRef,P=(e.margin,e.multiline),R=void 0!==P&&P,A=e.name,j=e.onBlur,N=e.onChange,D=e.onClick,M=e.onFocus,L=e.onKeyDown,Z=e.onKeyUp,z=e.placeholder,W=e.readOnly,F=e.renderSuffix,B=e.rows,U=e.rowsMax,H=e.rowsMin,V=e.maxRows,G=e.minRows,q=e.startAdornment,$=e.type,K=void 0===$?"text":$,Y=e.value,X=(0,r.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Q=null!=k.value?k.value:Y,J=a.useRef(null!=Q).current,ee=a.useRef(),te=a.useCallback((function(e){}),[]),ne=(0,f.Z)(k.ref,te),re=(0,f.Z)(T,ne),oe=(0,f.Z)(ee,re),ie=a.useState(!1),ae=ie[0],se=ie[1],le=(0,u.Y)(),ue=(0,l.Z)({props:e,muiFormControl:le,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ue.focused=le?le.focused:ae,a.useEffect((function(){!le&&w&&ae&&(se(!1),j&&j())}),[le,w,ae,j]);var ce=le&&le.onFilled,de=le&&le.onEmpty,fe=a.useCallback((function(e){(0,y.vd)(e)?ce&&ce():de&&de()}),[ce,de]);b((function(){J&&fe({value:Q})}),[Q,fe,J]),a.useEffect((function(){fe(ee.current)}),[]);var pe=C,he=(0,o.Z)({},k,{ref:oe});return"string"!=typeof pe?he=(0,o.Z)({inputRef:oe,type:K},he,{ref:null}):R?!B||V||G||U||H?(he=(0,o.Z)({minRows:B||G,rowsMax:U,maxRows:V},he),pe=v):pe="textarea":he=(0,o.Z)({type:K},he),a.useEffect((function(){le&&le.setAdornedStart(Boolean(q))}),[le,q]),a.createElement("div",(0,o.Z)({className:(0,s.default)(h.root,h["color".concat((0,d.Z)(ue.color||"primary"))],g,ue.disabled&&h.disabled,ue.error&&h.error,x&&h.fullWidth,ue.focused&&h.focused,le&&h.formControl,R&&h.multiline,q&&h.adornedStart,E&&h.adornedEnd,"dense"===ue.margin&&h.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),D&&D(e)},ref:t},X),q,a.createElement(u.Z.Provider,{value:null},a.createElement(pe,(0,o.Z)({"aria-invalid":ue.error,"aria-describedby":n,autoComplete:c,autoFocus:p,defaultValue:m,disabled:ue.disabled,id:S,onAnimationStart:function(e){fe("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:A,placeholder:z,readOnly:W,required:ue.required,rows:B,value:Q,onKeyDown:L,onKeyUp:Z},he,{className:(0,s.default)(h.input,k.className,ue.disabled&&h.disabled,R&&h.inputMultiline,ue.hiddenLabel&&h.inputHiddenLabel,q&&h.inputAdornedStart,E&&h.inputAdornedEnd,"search"===K&&h.inputTypeSearch,"dense"===ue.margin&&h.inputMarginDense),onBlur:function(e){j&&j(e),k.onBlur&&k.onBlur(e),le&&le.onBlur?le.onBlur(e):se(!1)},onChange:function(e){if(!J){var t=e.target||ee.current;if(null==t)throw new Error((0,i.Z)(1));fe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];k.onChange&&k.onChange.apply(k,[e].concat(r)),N&&N.apply(void 0,[e].concat(r))},onFocus:function(e){ue.disabled?e.stopPropagation():(M&&M(e),k.onFocus&&k.onFocus(e),le&&le.onFocus?le.onFocus(e):se(!0))}}))),E,F?F((0,o.Z)({},ue,{startAdornment:q})):null)}));const E=(0,c.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,o.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(w)},36519:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{B7:()=>i,vd:()=>o})},89659:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(93871),l=n(52543),u=n(24896),c=n(17294),d=n(22318),f=i.forwardRef((function(e,t){var n=e.classes,l=e.className,f=e.color,p=void 0===f?"primary":f,h=e.component,g=void 0===h?"a":h,m=e.onBlur,v=e.onFocus,y=e.TypographyClasses,b=e.underline,w=void 0===b?"hover":b,E=e.variant,O=void 0===E?"inherit":E,x=(0,o.Z)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),S=(0,u.Z)(),I=S.isFocusVisible,C=S.onBlurVisible,_=S.ref,k=i.useState(!1),T=k[0],P=k[1],R=(0,c.Z)(t,_);return i.createElement(d.Z,(0,r.Z)({className:(0,a.default)(n.root,n["underline".concat((0,s.Z)(w))],l,T&&n.focusVisible,"button"===g&&n.button),classes:y,color:p,component:g,onBlur:function(e){T&&(C(),P(!1)),m&&m(e)},onFocus:function(e){I(e)&&P(!0),v&&v(e)},ref:R,variant:O},x))}));const p=(0,l.Z)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(f)},62822:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(66987),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.component,d=void 0===c?"ul":c,f=e.dense,p=void 0!==f&&f,h=e.disablePadding,g=void 0!==h&&h,m=e.subheader,v=(0,o.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=i.useMemo((function(){return{dense:p}}),[p]);return i.createElement(l.Z.Provider,{value:y},i.createElement(d,(0,r.Z)({className:(0,a.default)(s.root,u,p&&s.dense,!g&&s.padding,m&&s.subheader),ref:t},v),m,n))}));const c=(0,s.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(u)},66987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(67294).createContext({})},50998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(54720),u=n(83711),c=n(17294),d=n(66987),f=n(73935),p="undefined"==typeof window?i.useEffect:i.useLayoutEffect,h=i.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,g=void 0!==h&&h,m=e.button,v=void 0!==m&&m,y=e.children,b=e.classes,w=e.className,E=e.component,O=e.ContainerComponent,x=void 0===O?"li":O,S=e.ContainerProps,I=(S=void 0===S?{}:S).className,C=(0,o.Z)(S,["className"]),_=e.dense,k=void 0!==_&&_,T=e.disabled,P=void 0!==T&&T,R=e.disableGutters,A=void 0!==R&&R,j=e.divider,N=void 0!==j&&j,D=e.focusVisibleClassName,M=e.selected,L=void 0!==M&&M,Z=(0,o.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),z=i.useContext(d.Z),W={dense:k||z.dense||!1,alignItems:s},F=i.useRef(null);p((function(){g&&F.current&&F.current.focus()}),[g]);var B=i.Children.toArray(y),U=B.length&&(0,u.Z)(B[B.length-1],["ListItemSecondaryAction"]),H=i.useCallback((function(e){F.current=f.findDOMNode(e)}),[]),V=(0,c.Z)(H,t),G=(0,r.Z)({className:(0,a.default)(b.root,w,W.dense&&b.dense,!A&&b.gutters,N&&b.divider,P&&b.disabled,v&&b.button,"center"!==s&&b.alignItemsFlexStart,U&&b.secondaryAction,L&&b.selected),disabled:P},Z),q=E||"li";return v&&(G.component=E||"div",G.focusVisibleClassName=(0,a.default)(b.focusVisible,D),q=l.Z),U?(q=G.component||E?q:"div","li"===x&&("li"===q?q="div":"li"===G.component&&(G.component="div")),i.createElement(d.Z.Provider,{value:W},i.createElement(x,(0,r.Z)({className:(0,a.default)(b.container,I),ref:V},C),i.createElement(q,G,B),B.pop()))):i.createElement(d.Z.Provider,{value:W},i.createElement(q,(0,r.Z)({ref:V},G),B))}));const g=(0,s.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},46869:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(66987),u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=(0,o.Z)(e,["classes","className"]),c=i.useContext(l.Z);return i.createElement("div",(0,r.Z)({className:(0,a.default)(n.root,s,"flex-start"===c.alignItems&&n.alignItemsFlexStart),ref:t},u))}));const c=(0,s.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(u)},95757:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(22318),u=n(66987),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.disableTypography,f=void 0!==d&&d,p=e.inset,h=void 0!==p&&p,g=e.primary,m=e.primaryTypographyProps,v=e.secondary,y=e.secondaryTypographyProps,b=(0,o.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),w=i.useContext(u.Z).dense,E=null!=g?g:n;null==E||E.type===l.Z||f||(E=i.createElement(l.Z,(0,r.Z)({variant:w?"body2":"body1",className:s.primary,component:"span",display:"block"},m),E));var O=v;return null==O||O.type===l.Z||f||(O=i.createElement(l.Z,(0,r.Z)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},y),O)),i.createElement("div",(0,r.Z)({className:(0,a.default)(s.root,c,w&&s.dense,h&&s.inset,E&&O&&s.multiline),ref:t},b),E,O)}));const d=(0,s.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(c)},96837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(93871),u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,c=void 0===u?"default":u,d=e.component,f=void 0===d?"li":d,p=e.disableGutters,h=void 0!==p&&p,g=e.disableSticky,m=void 0!==g&&g,v=e.inset,y=void 0!==v&&v,b=(0,o.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return i.createElement(f,(0,r.Z)({className:(0,a.default)(n.root,s,"default"!==c&&n["color".concat((0,l.Z)(c))],y&&n.inset,!m&&n.sticky,!h&&n.gutters),ref:t},b))}));const c=(0,s.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(u)},99050:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(87462),o=n(45987),i=n(67294),a=(n(59864),n(86010)),s=n(52543),l=n(73935),u=n(79437),c=n(30626),d=n(80713),f=n(82568),p=n(1182),h=n(20170),g=n(79895);function m(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function v(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function y(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function b(e){return"function"==typeof e?e():e}var w=i.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,w=e.anchorOrigin,E=void 0===w?{vertical:"top",horizontal:"left"}:w,O=e.anchorPosition,x=e.anchorReference,S=void 0===x?"anchorEl":x,I=e.children,C=e.classes,_=e.className,k=e.container,T=e.elevation,P=void 0===T?8:T,R=e.getContentAnchorEl,A=e.marginThreshold,j=void 0===A?16:A,N=e.onEnter,D=e.onEntered,M=e.onEntering,L=e.onExit,Z=e.onExited,z=e.onExiting,W=e.open,F=e.PaperProps,B=void 0===F?{}:F,U=e.transformOrigin,H=void 0===U?{vertical:"top",horizontal:"left"}:U,V=e.TransitionComponent,G=void 0===V?h.Z:V,q=e.transitionDuration,$=void 0===q?"auto":q,K=e.TransitionProps,Y=void 0===K?{}:K,X=(0,o.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Q=i.useRef(),J=i.useCallback((function(e){if("anchorPosition"===S)return O;var t=b(s),n=(t&&1===t.nodeType?t:(0,c.Z)(Q.current).body).getBoundingClientRect(),r=0===e?E.vertical:"center";return{top:n.top+m(n,r),left:n.left+v(n,E.horizontal)}}),[s,E.horizontal,E.vertical,O,S]),ee=i.useCallback((function(e){var t=0;if(R&&"anchorEl"===S){var n=R(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[E.vertical,S,R]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:m(e,H.vertical)+t,horizontal:v(e,H.horizontal)}}),[H.horizontal,H.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===S)return{top:null,left:null,transformOrigin:y(r)};var o=J(t),i=o.top-r.vertical,a=o.left-r.horizontal,l=i+n.height,u=a+n.width,c=(0,d.Z)(b(s)),f=c.innerHeight-j,p=c.innerWidth-j;if(i<j){var h=i-j;i-=h,r.vertical+=h}else if(l>f){var g=l-f;i-=g,r.vertical+=g}if(a<j){var m=a-j;a-=m,r.horizontal+=m}else if(u>p){var v=u-p;a-=v,r.horizontal+=v}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:y(r)}}),[s,S,J,ee,te,j]),re=i.useCallback((function(){var e=Q.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){Q.current=l.findDOMNode(e)}),[]);i.useEffect((function(){W&&re()})),i.useImperativeHandle(n,(function(){return W?{updatePosition:function(){re()}}:null}),[W,re]),i.useEffect((function(){if(W){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[W,re]);var ie=$;"auto"!==$||G.muiSupportAuto||(ie=void 0);var ae=k||(s?(0,c.Z)(b(s)).body:void 0);return i.createElement(p.Z,(0,r.Z)({container:ae,open:W,ref:t,BackdropProps:{invisible:!0},className:(0,a.default)(C.root,_)},X),i.createElement(G,(0,r.Z)({appear:!0,in:W,onEnter:N,onEntered:D,onExit:L,onExited:Z,onExiting:z,timeout:ie},Y,{onEntering:(0,f.Z)((function(e,t){M&&M(e,t),re()}),Y.onEntering)}),i.createElement(g.Z,(0,r.Z)({elevation:P,ref:oe},B,{className:(0,a.default)(C.paper,B.className)}),I)))}));const E=(0,s.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(w);var O=n(29829),x=n(34236),S=n(8920),I={vertical:"top",horizontal:"right"},C={vertical:"top",horizontal:"left"},_=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,u=e.children,c=e.classes,d=e.disableAutoFocusItem,f=void 0!==d&&d,p=e.MenuListProps,h=void 0===p?{}:p,g=e.onClose,m=e.onEntering,v=e.open,y=e.PaperProps,b=void 0===y?{}:y,w=e.PopoverClasses,_=e.transitionDuration,k=void 0===_?"auto":_,T=e.TransitionProps,P=(T=void 0===T?{}:T).onEntering,R=(0,o.Z)(T,["onEntering"]),A=e.variant,j=void 0===A?"selectedMenu":A,N=(0,o.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),D=(0,S.Z)(),M=s&&!f&&v,L=i.useRef(null),Z=i.useRef(null),z=-1;i.Children.map(u,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==j&&e.props.selected||-1===z)&&(z=t))}));var W=i.Children.map(u,(function(e,t){return t===z?i.cloneElement(e,{ref:function(t){Z.current=l.findDOMNode(t),(0,x.Z)(e.ref,t)}}):e}));return i.createElement(E,(0,r.Z)({getContentAnchorEl:function(){return Z.current},classes:w,onClose:g,TransitionProps:(0,r.Z)({onEntering:function(e,t){L.current&&L.current.adjustStyleForScrollbar(e,D),m&&m(e,t),P&&P(e,t)}},R),anchorOrigin:"rtl"===D.direction?I:C,transformOrigin:"rtl"===D.direction?I:C,PaperProps:(0,r.Z)({},b,{classes:(0,r.Z)({},b.classes,{root:c.paper})}),open:v,ref:t,transitionDuration:k},N),i.createElement(O.Z,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:L,autoFocus:s&&(-1===z||f),autoFocusItem:M,variant:j},h,{className:(0,a.default)(c.list,h.className)}),W))}));const k=(0,s.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(_)},85639:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(45987),o=n(4942),i=n(87462),a=n(67294),s=n(86010),l=n(52543),u=n(50998),c=a.forwardRef((function(e,t){var n,o=e.classes,l=e.className,c=e.component,d=void 0===c?"li":c,f=e.disableGutters,p=void 0!==f&&f,h=e.ListItemClasses,g=e.role,m=void 0===g?"menuitem":g,v=e.selected,y=e.tabIndex,b=(0,r.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==y?y:-1),a.createElement(u.Z,(0,i.Z)({button:!0,role:m,tabIndex:n,component:d,selected:v,disableGutters:p,classes:(0,i.Z)({dense:o.dense},h),className:(0,s.default)(o.root,l,v&&o.selected,!p&&o.gutters),ref:t},b))}));const d=(0,l.Z)((function(e){return{root:(0,i.Z)({},e.typography.body1,(0,o.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,i.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(c)},29829:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(87462),o=n(45987),i=n(67294),a=(n(59864),n(73935)),s=n(30626),l=n(62822),u=n(75840),c=n(17294);function d(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function p(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function h(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&p(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var g="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const m=i.forwardRef((function(e,t){var n=e.actions,m=e.autoFocus,v=void 0!==m&&m,y=e.autoFocusItem,b=void 0!==y&&y,w=e.children,E=e.className,O=e.disabledItemsFocusable,x=void 0!==O&&O,S=e.disableListWrap,I=void 0!==S&&S,C=e.onKeyDown,_=e.variant,k=void 0===_?"selectedMenu":_,T=(0,o.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),P=i.useRef(null),R=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});g((function(){v&&P.current.focus()}),[v]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!P.current.style.width;if(e.clientHeight<P.current.clientHeight&&n){var r="".concat((0,u.Z)(!0),"px");P.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,P.current.style.width="calc(100% + ".concat(r,")")}return P.current}}}),[]);var A=i.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),j=(0,c.Z)(A,t),N=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===k&&e.props.selected||-1===N)&&(N=t))}));var D=i.Children.map(w,(function(e,t){if(t===N){var n={};return b&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===k&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(l.Z,(0,r.Z)({role:"menu",ref:j,className:E,onKeyDown:function(e){var t=P.current,n=e.key,r=(0,s.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),h(t,r,I,x,d);else if("ArrowUp"===n)e.preventDefault(),h(t,r,I,x,f);else if("Home"===n)e.preventDefault(),h(t,null,I,x,d);else if("End"===n)e.preventDefault(),h(t,null,I,x,f);else if(1===n.length){var o=R.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&p(r,o);o.previousKeyMatched&&(l||h(t,r,!1,x,d,o))?e.preventDefault():o.previousKeyMatched=!1}C&&C(e)},tabIndex:v?0:-1},T),D)}))},1182:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});var r=n(45987),o=n(87462),i=n(67294),a=n(73935),s=n(159),l=n(93869),u=n(30626),c=n(76234),d=n(82568),f=n(17294),p=n(55192),h=n(92781),g=n(15671),m=n(43144),v=n(93433),y=n(75840),b=n(80713);function w(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function E(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,v.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&w(e,o)}))}function x(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}var S=function(){function e(){(0,g.Z)(this,e),this.modals=[],this.containers=[]}return(0,m.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&w(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);O(t,e.mountNode,e.modalRef,r,!0);var o=x(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=x(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,u.Z)(e);return t.body===e?(0,b.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=(0,y.Z)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(E(i)+a,"px"),n=(0,u.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(E(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=x(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&w(e.modalRef,!0),O(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&w(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const I=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,s=void 0!==o&&o,l=e.disableRestoreFocus,c=void 0!==l&&l,d=e.getDoc,p=e.isEnabled,h=e.open,g=i.useRef(),m=i.useRef(null),v=i.useRef(null),y=i.useRef(),b=i.useRef(null),w=i.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),E=(0,f.Z)(t.ref,w),O=i.useRef();return i.useEffect((function(){O.current=h}),[h]),!O.current&&h&&"undefined"!=typeof window&&(y.current=d().activeElement),i.useEffect((function(){if(h){var e=(0,u.Z)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!s&&p()&&!g.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():g.current=!1)},n=function(t){!s&&p()&&9===t.keyCode&&e.activeElement===b.current&&(g.current=!0,t.shiftKey?v.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,s,c,p,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:E}),i.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))};var C={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const _=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=(0,r.Z)(e,["invisible","open"]);return s?i.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},l,{style:(0,o.Z)({},C.root,a?C.invisible:{},l.style)})):null}));var k=new S;const T=i.forwardRef((function(e,t){var n=(0,s.Z)(),g=(0,l.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),m=g.BackdropComponent,v=void 0===m?_:m,y=g.BackdropProps,b=g.children,E=g.closeAfterTransition,O=void 0!==E&&E,x=g.container,S=g.disableAutoFocus,C=void 0!==S&&S,T=g.disableBackdropClick,P=void 0!==T&&T,R=g.disableEnforceFocus,A=void 0!==R&&R,j=g.disableEscapeKeyDown,N=void 0!==j&&j,D=g.disablePortal,M=void 0!==D&&D,L=g.disableRestoreFocus,Z=void 0!==L&&L,z=g.disableScrollLock,W=void 0!==z&&z,F=g.hideBackdrop,B=void 0!==F&&F,U=g.keepMounted,H=void 0!==U&&U,V=g.manager,G=void 0===V?k:V,q=g.onBackdropClick,$=g.onClose,K=g.onEscapeKeyDown,Y=g.onRendered,X=g.open,Q=(0,r.Z)(g,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=i.useState(!0),ee=J[0],te=J[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=(0,f.Z)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(g),se=function(){return(0,u.Z)(re.current)},le=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},ue=function(){G.mount(le(),{disableScrollLock:W}),oe.current.scrollTop=0},ce=(0,p.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,a.findDOMNode(e)}(x)||se().body;G.add(le(),e),oe.current&&ue()})),de=i.useCallback((function(){return G.isTopModal(le())}),[G]),fe=(0,p.Z)((function(e){re.current=e,e&&(Y&&Y(),X&&de()?ue():w(oe.current,!0))})),pe=i.useCallback((function(){G.remove(le())}),[G]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){X?ce():ae&&O||pe()}),[X,pe,ae,O,ce]),!H&&!X&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.Z}),ge={};return void 0===b.props.tabIndex&&(ge.tabIndex=b.props.tabIndex||"-1"),ae&&(ge.onEnter=(0,d.Z)((function(){te(!1)}),b.props.onEnter),ge.onExited=(0,d.Z)((function(){te(!0),O&&pe()}),b.props.onExited)),i.createElement(c.Z,{ref:fe,container:x,disablePortal:M},i.createElement("div",(0,o.Z)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&de()&&(K&&K(e),N||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},role:"presentation"},Q,{style:(0,o.Z)({},he.root,!X&&ee?he.hidden:{},Q.style)}),B?null:i.createElement(v,(0,o.Z)({open:X,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!P&&$&&$(e,"backdropClick"))}},y)),i.createElement(I,{disableEnforceFocus:A,disableAutoFocus:C,disableRestoreFocus:Z,getDoc:se,isEnabled:de,open:X},i.cloneElement(b,ge))))}))},66718:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(14741),l=n(4942),u=n(52543),c=n(8920),d=n(93871),f=i.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,u=e.label,f=e.labelWidth,p=e.notched,h=e.style,g=(0,o.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),m="rtl"===(0,c.Z)().direction?"right":"left";if(void 0!==u)return i.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,className:(0,a.default)(n.root,s),ref:t,style:h},g),i.createElement("legend",{className:(0,a.default)(n.legendLabelled,p&&n.legendNotched)},u?i.createElement("span",null,u):i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var v=f>0?.75*f+8:.01;return i.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,style:(0,r.Z)((0,l.Z)({},"padding".concat((0,d.Z)(m)),8),h),className:(0,a.default)(n.root,s),ref:t},g),i.createElement("legend",{className:n.legend,style:{width:p?v:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const p=(0,u.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(f);var h=i.forwardRef((function(e,t){var n=e.classes,l=e.fullWidth,u=void 0!==l&&l,c=e.inputComponent,d=void 0===c?"input":c,f=e.label,h=e.labelWidth,g=void 0===h?0:h,m=e.multiline,v=void 0!==m&&m,y=e.notched,b=e.type,w=void 0===b?"text":b,E=(0,o.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(s.Z,(0,r.Z)({renderSuffix:function(e){return i.createElement(p,{className:n.notchedOutline,label:f,labelWidth:g,notched:void 0!==y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.Z)({},n,{root:(0,a.default)(n.root,n.underline),notchedOutline:null}),fullWidth:u,inputComponent:d,multiline:v,ref:t,type:w},E))}));h.muiName="Input";const g=(0,u.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)},79895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(45987),o=n(87462),i=n(67294),a=n(86010),s=n(52543),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,u=void 0===l?"div":l,c=e.square,d=void 0!==c&&c,f=e.elevation,p=void 0===f?1:f,h=e.variant,g=void 0===h?"elevation":h,m=(0,r.Z)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(u,(0,o.Z)({className:(0,a.default)(n.root,s,"outlined"===g?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},m))}));const u=(0,s.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(l)},96617:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ye});var r=n(87462),o=n(45987),i=n(67294),a="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,s=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(a&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),l=a&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),s))}};function u(e){return e&&"[object Function]"==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function d(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=c(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:f(d(e))}function p(e){return e&&e.referenceNode?e.referenceNode:e}var h=a&&!(!window.MSInputMethodContext||!document.documentMode),g=a&&/MSIE 10/.test(navigator.userAgent);function m(e){return 11===e?h:10===e?g:h||g}function v(e){if(!e)return document.documentElement;for(var t=m(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?v(n):n:e?e.ownerDocument.documentElement:document.documentElement}function y(e){return null!==e.parentNode?y(e.parentNode):e}function b(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&v(a.firstElementChild)!==a?v(l):l;var u=y(e);return u.host?b(u.host,t):b(e,y(t).host)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=w(t,"top"),o=w(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function O(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function x(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],m(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function S(e){var t=e.body,n=e.documentElement,r=m(10)&&getComputedStyle(n);return{height:x("Height",t,n,r),width:x("Width",t,n,r)}}var I=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function T(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(m(10)){t=e.getBoundingClientRect();var n=w(e,"top"),r=w(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?S(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var d=c(e);l-=O(d,"x"),u-=O(d,"y"),o.width-=l,o.height-=u}return T(o)}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(10),o="HTML"===t.nodeName,i=P(e),a=P(t),s=f(e),l=c(t),u=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=T({top:i.top-a.top-u,left:i.left-a.left-d,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var h=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);p.top-=u-h,p.bottom-=u-h,p.left-=d-g,p.right-=d-g,p.marginTop=h,p.marginLeft=g}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=E(p,t)),p}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=R(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:w(n),s=t?0:w(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return T(l)}function j(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===c(e,"position"))return!0;var n=d(e);return!!n&&j(n)}function N(e){if(!e||!e.parentElement||m())return document.documentElement;for(var t=e.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function D(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?N(e):b(e,p(t));if("viewport"===r)i=A(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=f(d(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=R(s,a,o);if("HTML"!==s.nodeName||j(a))i=l;else{var u=S(e.ownerDocument),c=u.height,h=u.width;i.top+=l.top-l.marginTop,i.bottom=c+l.top,i.left+=l.left-l.marginLeft,i.right=h+l.left}}var g="number"==typeof(n=n||0);return i.left+=g?n:n.left||0,i.top+=g?n:n.top||0,i.right-=g?n:n.right||0,i.bottom-=g?n:n.bottom||0,i}function M(e){return e.width*e.height}function L(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=D(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return k({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function Z(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?N(t):b(t,p(n));return R(n,o,r)}function z(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function W(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function F(e,t,n){n=n.split("-")[0];var r=z(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[u]:t[W(s)],o}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var r=B(e,(function(e){return e.name===n}));return e.indexOf(r)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&u(n)&&(t.offsets.popper=T(t.offsets.popper),t.offsets.reference=T(t.offsets.reference),t=n(t,e))})),t}function H(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Z(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=F(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function G(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function q(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[G("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $(e){var t=e.ownerDocument;return t?t.defaultView:window}function K(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||K(f(i.parentNode),t,n,r),r.push(i)}function Y(e,t,n,r){n.updateBound=r,$(e).addEventListener("resize",n.updateBound,{passive:!0});var o=f(e);return K(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function X(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,$(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function J(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ee(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&J(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var te=a&&/Firefox/i.test(navigator.userAgent);function ne(e,t,n){var r=B(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var re=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],oe=re.slice(3);function ie(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=oe.indexOf(e),r=oe.slice(n+1).concat(oe.slice(0,n));return t?r.reverse():r}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:_({},l,i[l]),end:_({},l,i[l]+i[u]-a[u])};e.offsets.popper=k({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,o=e.placement,i=e.offsets,a=i.popper,s=i.reference,l=o.split("-")[0];return n=J(+r)?[+r,0]:function(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(B(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];return i?0===a.indexOf("%")?T("%p"===a?n:r)[t]/100*i:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,o,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){J(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}(r,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||v(e.instance.popper);e.instance.reference===n&&(n=v(n));var r=G("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=D(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),_({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),_({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=k({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[u]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ne(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",g=z(r)[u];s[h]-g<a[f]&&(e.offsets.popper[f]-=a[f]-(s[h]-g)),s[f]+g>a[h]&&(e.offsets.popper[f]+=s[f]+g-a[h]),e.offsets.popper=T(e.offsets.popper);var m=s[f]+s[u]/2-g/2,v=c(e.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),w=m-e.offsets.popper[f]-y-b;return w=Math.max(Math.min(a[u]-g,w),0),e.arrowElement=r,e.offsets.arrow=(_(n={},f,Math.round(w)),_(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=D(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=W(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,o];break;case"clockwise":a=ie(r);break;case"counterclockwise":a=ie(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=W(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),p=d(u.left)<d(n.left),h=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&g||!y&&"end"===i&&m),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&m||!y&&"end"===i&&g),E=b||w;(f||v||E)&&(e.flipped=!0,(f||v)&&(r=a[l+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,F(e.instance.popper,e.offsets.reference,e.placement)),e=U(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=W(t),e.offsets.popper=T(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ne(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=B(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=B(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==i?i:t.gpuAcceleration,u=v(e.instance.popper),c=P(u),d={position:o.position},f=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),u=i(r.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?c||d||l%2==u%2?i:a:s,p=t?i:s;return{left:f(l%2==1&&u%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!te),p="bottom"===n?"top":"bottom",h="right"===r?"left":"right",g=G("transform");if(s="bottom"===p?"HTML"===u.nodeName?-u.clientHeight+f.bottom:-c.height+f.bottom:f.top,a="right"===h?"HTML"===u.nodeName?-u.clientWidth+f.right:-c.width+f.right:f.left,l&&g)d[g]="translate3d("+a+"px, "+s+"px, 0)",d[p]=0,d[h]=0,d.willChange="transform";else{var m="bottom"===p?-1:1,y="right"===h?-1:1;d[p]=s*m,d[h]=a*y,d.willChange=p+", "+h}var b={"x-placement":e.placement};return e.attributes=k({},b,e.attributes),e.styles=k({},d,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ee(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ee(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Z(o,t,e,n.positionFixed),a=L(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),ee(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},se=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};I(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=l(this.update.bind(this)),this.options=k({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&u(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return C(e,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return q.call(this)}},{key:"enableEventListeners",value:function(){return X.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,se.placements=re,se.Defaults=ae;const le=se;var ue=n(159),ce=n(76234),de=n(82568),fe=n(34236),pe=n(17294);function he(e){return"function"==typeof e?e():e}var ge="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,me={},ve=i.forwardRef((function(e,t){var n=e.anchorEl,a=e.children,s=e.container,l=e.disablePortal,u=void 0!==l&&l,c=e.keepMounted,d=void 0!==c&&c,f=e.modifiers,p=e.open,h=e.placement,g=void 0===h?"bottom":h,m=e.popperOptions,v=void 0===m?me:m,y=e.popperRef,b=e.style,w=e.transition,E=void 0!==w&&w,O=(0,o.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),x=i.useRef(null),S=(0,pe.Z)(x,t),I=i.useRef(null),C=(0,pe.Z)(I,y),_=i.useRef(C);ge((function(){_.current=C}),[C]),i.useImperativeHandle(y,(function(){return I.current}),[]);var k=i.useState(!0),T=k[0],P=k[1],R=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,(0,ue.Z)()),A=i.useState(R),j=A[0],N=A[1];i.useEffect((function(){I.current&&I.current.update()}));var D=i.useCallback((function(){if(x.current&&n&&p){I.current&&(I.current.destroy(),_.current(null));var e=function(e){N(e.placement)},t=(he(n),new le(he(n),x.current,(0,r.Z)({placement:R},v,{modifiers:(0,r.Z)({},u?{}:{preventOverflow:{boundariesElement:"window"}},f,v.modifiers),onCreate:(0,de.Z)(e,v.onCreate),onUpdate:(0,de.Z)(e,v.onUpdate)})));_.current(t)}}),[n,u,f,p,R,v]),M=i.useCallback((function(e){(0,fe.Z)(S,e),D()}),[S,D]),L=function(){I.current&&(I.current.destroy(),_.current(null))};if(i.useEffect((function(){return function(){L()}}),[]),i.useEffect((function(){p||E||L()}),[p,E]),!d&&!p&&(!E||T))return null;var Z={placement:j};return E&&(Z.TransitionProps={in:p,onEnter:function(){P(!1)},onExited:function(){P(!0),L()}}),i.createElement(ce.Z,{disablePortal:u,container:s},i.createElement("div",(0,r.Z)({ref:M,role:"tooltip"},O,{style:(0,r.Z)({position:"fixed",top:0,left:0,display:p||!d||E?null:"none"},b)}),"function"==typeof a?a(Z):a))}));const ye=ve},76234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(67294),o=n(73935),i=n(34236),a=n(17294),s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;const l=r.forwardRef((function(e,t){var n=e.children,l=e.container,u=e.disablePortal,c=void 0!==u&&u,d=e.onRendered,f=r.useState(null),p=f[0],h=f[1],g=(0,a.Z)(r.isValidElement(n)?n.ref:null,t);return s((function(){c||h(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(l)||document.body)}),[l,c]),s((function(){if(p&&!c)return(0,i.Z)(t,p),function(){(0,i.Z)(t,null)}}),[t,p,c]),s((function(){d&&(p||c)&&d()}),[d,p,c]),c?r.isValidElement(n)?r.cloneElement(n,{ref:g}):n:p?o.createPortal(n,p):p}))},26209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(87462),o=n(45987),i=n(67294),a=n(65835),s=n(29439),l=n(71002),u=n(60288),c=(n(59864),n(86010)),d=n(30626),f=n(93871),p=n(99050),h=n(36519),g=n(17294),m=n(22775);function v(e,t){return"object"===(0,l.Z)(t)&&null!==t?e===t:String(e)===String(t)}const y=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,l=e.autoWidth,y=e.children,b=e.classes,w=e.className,E=e.defaultValue,O=e.disabled,x=e.displayEmpty,S=e.IconComponent,I=e.inputRef,C=e.labelId,_=e.MenuProps,k=void 0===_?{}:_,T=e.multiple,P=e.name,R=e.onBlur,A=e.onChange,j=e.onClose,N=e.onFocus,D=e.onOpen,M=e.open,L=e.readOnly,Z=e.renderValue,z=e.SelectDisplayProps,W=void 0===z?{}:z,F=e.tabIndex,B=(e.type,e.value),U=e.variant,H=void 0===U?"standard":U,V=(0,o.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),G=(0,m.Z)({controlled:B,default:E,name:"Select"}),q=(0,s.Z)(G,2),$=q[0],K=q[1],Y=i.useRef(null),X=i.useState(null),Q=X[0],J=X[1],ee=i.useRef(null!=M).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],se=(0,g.Z)(t,I);i.useImperativeHandle(se,(function(){return{focus:function(){Q.focus()},node:Y.current,value:$}}),[Q,$]),i.useEffect((function(){a&&Q&&Q.focus()}),[a,Q]),i.useEffect((function(){if(Q){var e=(0,d.Z)(Q).getElementById(C);if(e){var t=function(){getSelection().isCollapsed&&Q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[C,Q]);var le,ue,ce=function(e,t){e?D&&D(t):j&&j(t),ee||(re(l?null:Q.clientWidth),ae(e))},de=i.Children.toArray(y),fe=function(e){return function(t){var n;if(T||ce(!1,t),T){n=Array.isArray($)?$.slice():[];var r=$.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),$!==n&&(K(n),A&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:P}}),A(t,e)))}},pe=null!==Q&&(ee?M:ie);delete V["aria-invalid"];var he=[],ge=!1;((0,h.vd)({value:$})||x)&&(Z?le=Z($):ge=!0);var me=de.map((function(e){if(!i.isValidElement(e))return null;var t;if(T){if(!Array.isArray($))throw new Error((0,u.Z)(2));(t=$.some((function(t){return v(t,e.props.value)})))&&ge&&he.push(e.props.children)}else(t=v($,e.props.value))&&ge&&(ue=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:fe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ge&&(le=T?he.join(", "):ue);var ve,ye=ne;!l&&ee&&Q&&(ye=Q.clientWidth),ve=void 0!==F?F:O?null:0;var be=W.id||(P?"mui-component-select-".concat(P):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,r.Z)({className:(0,c.default)(b.root,b.select,b.selectMenu,b[H],w,O&&b.disabled),ref:J,tabIndex:ve,role:"button","aria-disabled":O?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[C,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){L||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))},onMouseDown:O||L?null:function(e){0===e.button&&(e.preventDefault(),Q.focus(),ce(!0,e))},onBlur:function(e){!pe&&R&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:$,name:P}}),R(e))},onFocus:N},W,{id:be}),function(e){return null==e||"string"==typeof e&&!e.trim()}(le)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):le),i.createElement("input",(0,r.Z)({value:Array.isArray($)?$.join(","):$,name:P,ref:Y,"aria-hidden":!0,onChange:function(e){var t=de.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=de[t];K(n.props.value),A&&A(e,n)}},tabIndex:-1,className:b.nativeInput,autoFocus:a},V)),i.createElement(S,{className:(0,c.default)(b.icon,b["icon".concat((0,f.Z)(H))],pe&&b.iconOpen,O&&b.disabled)}),i.createElement(p.Z,(0,r.Z)({id:"menu-".concat(P||""),anchorEl:Q,open:pe,onClose:function(e){ce(!1,e)}},k,{MenuListProps:(0,r.Z)({"aria-labelledby":C,role:"listbox",disableListWrap:!0},k.MenuListProps),PaperProps:(0,r.Z)({},k.PaperProps,{style:(0,r.Z)({minWidth:ye},null!=k.PaperProps?k.PaperProps.style:null)})}),me))}));var b=n(89345),w=n(22601),E=n(52543);const O=(0,n(63786).Z)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var x=n(38799);const S=i.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,l=e.IconComponent,u=e.inputRef,d=e.variant,p=void 0===d?"standard":d,h=(0,o.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",(0,r.Z)({className:(0,c.default)(n.root,n.select,n[p],a,s&&n.disabled),disabled:s,ref:u||t},h)),e.multiple?null:i.createElement(l,{className:(0,c.default)(n.icon,n["icon".concat((0,f.Z)(p))],s&&n.disabled)}))}));var I=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},C=i.createElement(x.Z,null),_=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,l=void 0===s?O:s,u=e.input,c=void 0===u?C:u,d=e.inputProps,f=(e.variant,(0,o.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=(0,w.Z)(),h=(0,b.Z)({props:e,muiFormControl:p,states:["variant"]});return i.cloneElement(c,(0,r.Z)({inputComponent:S,inputProps:(0,r.Z)({children:n,classes:a,IconComponent:l,variant:h.variant,type:void 0},d,c?c.props.inputProps:{}),ref:t},f))}));_.muiName="Select",(0,E.Z)(I,{name:"MuiNativeSelect"})(_);var k=n(59446),T=n(66718),P=I,R=i.createElement(x.Z,null),A=i.createElement(k.Z,null),j=i.forwardRef((function e(t,n){var s=t.autoWidth,l=void 0!==s&&s,u=t.children,c=t.classes,d=t.displayEmpty,f=void 0!==d&&d,p=t.IconComponent,h=void 0===p?O:p,g=t.id,m=t.input,v=t.inputProps,E=t.label,x=t.labelId,I=t.labelWidth,C=void 0===I?0:I,_=t.MenuProps,k=t.multiple,P=void 0!==k&&k,j=t.native,N=void 0!==j&&j,D=t.onClose,M=t.onOpen,L=t.open,Z=t.renderValue,z=t.SelectDisplayProps,W=t.variant,F=void 0===W?"standard":W,B=(0,o.Z)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),U=N?S:y,H=(0,w.Z)(),V=(0,b.Z)({props:t,muiFormControl:H,states:["variant"]}).variant||F,G=m||{standard:R,outlined:i.createElement(T.Z,{label:E,labelWidth:C}),filled:A}[V];return i.cloneElement(G,(0,r.Z)({inputComponent:U,inputProps:(0,r.Z)({children:u,IconComponent:h,variant:V,type:void 0,multiple:P},N?{id:g}:{autoWidth:l,displayEmpty:f,labelId:x,MenuProps:_,onClose:D,onOpen:M,open:L,renderValue:Z,SelectDisplayProps:(0,r.Z)({id:g},z)},v,{classes:v?(0,a.Z)({baseClasses:c,newClasses:v.classes,Component:e}):c},m?m.props.inputProps:{}),ref:n},B))}));j.muiName="Select";const N=(0,E.Z)(P,{name:"MuiSelect"})(j)},44845:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(93433),o=n(29439),i=n(45987),a=n(87462),s=n(67294),l=n(86010),u=n(52543),c=n(8920),d=n(59693),f=n(24896),p=n(30626),h=n(55192),g=n(17294),m=n(93871),v=n(22775);const y=(0,u.Z)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:(0,a.Z)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,o=e.open,i=e.value,a=e.valueLabelDisplay;return"off"===a?t:s.cloneElement(t,{className:(0,l.default)(t.props.className,(o||"on"===a)&&n.open,n.thumb)},s.createElement("span",{className:(0,l.default)(n.offset,r)},s.createElement("span",{className:n.circle},s.createElement("span",{className:n.label},i))))}));function b(e,t){return e-t}function w(e,t,n){return Math.min(Math.max(t,e),n)}function E(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function O(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function x(e,t,n){return 100*(e-t)/(n-t)}function S(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function I(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=t.slice();return i[o]=r,i}function C(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var _={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},k=function(e){return e},T=s.forwardRef((function(e,t){var n=e["aria-label"],u=e["aria-labelledby"],d=e["aria-valuetext"],T=e.classes,P=e.className,R=e.color,A=void 0===R?"primary":R,j=e.component,N=void 0===j?"span":j,D=e.defaultValue,M=e.disabled,L=void 0!==M&&M,Z=e.getAriaLabel,z=e.getAriaValueText,W=e.marks,F=void 0!==W&&W,B=e.max,U=void 0===B?100:B,H=e.min,V=void 0===H?0:H,G=e.name,q=e.onChange,$=e.onChangeCommitted,K=e.onMouseDown,Y=e.orientation,X=void 0===Y?"horizontal":Y,Q=e.scale,J=void 0===Q?k:Q,ee=e.step,te=void 0===ee?1:ee,ne=e.ThumbComponent,re=void 0===ne?"span":ne,oe=e.track,ie=void 0===oe?"normal":oe,ae=e.value,se=e.ValueLabelComponent,le=void 0===se?y:se,ue=e.valueLabelDisplay,ce=void 0===ue?"off":ue,de=e.valueLabelFormat,fe=void 0===de?k:de,pe=(0,i.Z)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),he=(0,c.Z)(),ge=s.useRef(),me=s.useState(-1),ve=me[0],ye=me[1],be=s.useState(-1),we=be[0],Ee=be[1],Oe=(0,v.Z)({controlled:ae,default:D,name:"Slider"}),xe=(0,o.Z)(Oe,2),Se=xe[0],Ie=xe[1],Ce=Array.isArray(Se),_e=Ce?Se.slice().sort(b):[Se];_e=_e.map((function(e){return w(e,V,U)}));var ke=!0===F&&null!==te?(0,r.Z)(Array(Math.floor((U-V)/te)+1)).map((function(e,t){return{value:V+te*t}})):F||[],Te=(0,f.Z)(),Pe=Te.isFocusVisible,Re=Te.onBlurVisible,Ae=Te.ref,je=s.useState(-1),Ne=je[0],De=je[1],Me=s.useRef(),Le=(0,g.Z)(Ae,Me),Ze=(0,g.Z)(t,Le),ze=(0,h.Z)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Pe(e)&&De(t),Ee(t)})),We=(0,h.Z)((function(){-1!==Ne&&(De(-1),Re()),Ee(-1)})),Fe=(0,h.Z)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Ee(t)})),Be=(0,h.Z)((function(){Ee(-1)})),Ue="rtl"===he.direction,He=(0,h.Z)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=_e[n],o=(U-V)/10,i=ke.map((function(e){return e.value})),a=i.indexOf(r),s=Ue?"ArrowLeft":"ArrowRight",l=Ue?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=V;break;case"End":t=U;break;case"PageUp":te&&(t=r+o);break;case"PageDown":te&&(t=r-o);break;case s:case"ArrowUp":t=te?r+te:i[a+1]||i[i.length-1];break;case l:case"ArrowDown":t=te?r-te:i[a-1]||i[0];break;default:return}if(e.preventDefault(),te&&(t=S(t,te,V)),t=w(t,V,U),Ce){var u=t;t=I({values:_e,source:Se,newValue:t,index:n}).sort(b),C({sliderRef:Me,activeIndex:t.indexOf(u)})}Ie(t),De(n),q&&q(e,t),$&&$(e,t)})),Ve=s.useRef(),Ge=X;Ue&&"vertical"!==X&&(Ge+="-reverse");var qe=function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,s=e.source,l=Me.current.getBoundingClientRect(),u=l.width,c=l.height,d=l.bottom,f=l.left;if(t=0===Ge.indexOf("vertical")?(d-r.y)/c:(r.x-f)/u,-1!==Ge.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,V,U),te)n=S(n,te,V);else{var p=ke.map((function(e){return e.value}));n=p[E(p,n)]}n=w(n,V,U);var h=0;if(Ce){var g=n;h=(n=I({values:a,source:s,newValue:n,index:h=i?Ve.current:E(a,n)}).sort(b)).indexOf(g),Ve.current=h}return{newValue:n,activeIndex:h}},$e=(0,h.Z)((function(e){var t=O(e,ge);if(t){var n=qe({finger:t,move:!0,values:_e,source:Se}),r=n.newValue,o=n.activeIndex;C({sliderRef:Me,activeIndex:o,setActive:ye}),Ie(r),q&&q(e,r)}})),Ke=(0,h.Z)((function(e){var t=O(e,ge);if(t){var n=qe({finger:t,values:_e,source:Se}).newValue;ye(-1),"touchend"===e.type&&Ee(-1),$&&$(e,n),ge.current=void 0;var r=(0,p.Z)(Me.current);r.removeEventListener("mousemove",$e),r.removeEventListener("mouseup",Ke),r.removeEventListener("touchmove",$e),r.removeEventListener("touchend",Ke)}})),Ye=(0,h.Z)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(ge.current=t.identifier);var n=O(e,ge),r=qe({finger:n,values:_e,source:Se}),o=r.newValue,i=r.activeIndex;C({sliderRef:Me,activeIndex:i,setActive:ye}),Ie(o),q&&q(e,o);var a=(0,p.Z)(Me.current);a.addEventListener("touchmove",$e),a.addEventListener("touchend",Ke)}));s.useEffect((function(){var e=Me.current;e.addEventListener("touchstart",Ye);var t=(0,p.Z)(e);return function(){e.removeEventListener("touchstart",Ye),t.removeEventListener("mousemove",$e),t.removeEventListener("mouseup",Ke),t.removeEventListener("touchmove",$e),t.removeEventListener("touchend",Ke)}}),[Ke,$e,Ye]);var Xe=(0,h.Z)((function(e){K&&K(e),e.preventDefault();var t=O(e,ge),n=qe({finger:t,values:_e,source:Se}),r=n.newValue,o=n.activeIndex;C({sliderRef:Me,activeIndex:o,setActive:ye}),Ie(r),q&&q(e,r);var i=(0,p.Z)(Me.current);i.addEventListener("mousemove",$e),i.addEventListener("mouseup",Ke)})),Qe=x(Ce?_e[0]:V,V,U),Je=x(_e[_e.length-1],V,U)-Qe,et=(0,a.Z)({},_[Ge].offset(Qe),_[Ge].leap(Je));return s.createElement(N,(0,a.Z)({ref:Ze,className:(0,l.default)(T.root,T["color".concat((0,m.Z)(A))],P,L&&T.disabled,ke.length>0&&ke.some((function(e){return e.label}))&&T.marked,!1===ie&&T.trackFalse,"vertical"===X&&T.vertical,"inverted"===ie&&T.trackInverted),onMouseDown:Xe},pe),s.createElement("span",{className:T.rail}),s.createElement("span",{className:T.track,style:et}),s.createElement("input",{value:_e.join(","),name:G,type:"hidden"}),ke.map((function(e,t){var n,r=x(e.value,V,U),o=_[Ge].offset(r);return n=!1===ie?-1!==_e.indexOf(e.value):"normal"===ie&&(Ce?e.value>=_e[0]&&e.value<=_e[_e.length-1]:e.value<=_e[0])||"inverted"===ie&&(Ce?e.value<=_e[0]||e.value>=_e[_e.length-1]:e.value>=_e[0]),s.createElement(s.Fragment,{key:e.value},s.createElement("span",{style:o,"data-index":t,className:(0,l.default)(T.mark,n&&T.markActive)}),null!=e.label?s.createElement("span",{"aria-hidden":!0,"data-index":t,style:o,className:(0,l.default)(T.markLabel,n&&T.markLabelActive)},e.label):null)})),_e.map((function(e,t){var r=x(e,V,U),o=_[Ge].offset(r);return s.createElement(le,{key:t,valueLabelFormat:fe,valueLabelDisplay:ce,className:T.valueLabel,value:"function"==typeof fe?fe(J(e),t):fe,index:t,open:we===t||ve===t||"on"===ce,disabled:L},s.createElement(re,{className:(0,l.default)(T.thumb,T["thumbColor".concat((0,m.Z)(A))],ve===t&&T.active,L&&T.disabled,Ne===t&&T.focusVisible),tabIndex:L?null:0,role:"slider",style:o,"data-index":t,"aria-label":Z?Z(t):n,"aria-labelledby":u,"aria-orientation":X,"aria-valuemax":J(U),"aria-valuemin":J(V),"aria-valuenow":J(e),"aria-valuetext":z?z(J(e),t):d,onKeyDown:He,onFocus:ze,onBlur:We,onMouseOver:Fe,onMouseLeave:Be}))})))}));const P=(0,u.Z)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?(0,d.$n)(e.palette.primary.main,.62):(0,d._j)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,d.Fq)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,d.Fq)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,d.Fq)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,d.Fq)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:(0,a.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(T)},62087:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(93871),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.color,d=void 0===c?"inherit":c,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,g=void 0===h?"medium":h,m=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,o.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.Z)({className:(0,a.default)(s.root,u,"inherit"!==d&&s["color".concat((0,l.Z)(d))],"default"!==g&&"medium"!==g&&s["fontSize".concat((0,l.Z)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},w),n,v?i.createElement("title",null,v):null)}));u.muiName="SvgIcon";const c=(0,s.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u)},41423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(45987),o=n(4942),i=n(87462),a=n(67294),s=n(86010),l=n(52543),u=n(54720),c=n(93871),d=a.forwardRef((function(e,t){var n=e.classes,o=e.className,l=e.disabled,d=void 0!==l&&l,f=e.disableFocusRipple,p=void 0!==f&&f,h=e.fullWidth,g=e.icon,m=e.indicator,v=e.label,y=e.onChange,b=e.onClick,w=e.onFocus,E=e.selected,O=e.selectionFollowsFocus,x=e.textColor,S=void 0===x?"inherit":x,I=e.value,C=e.wrapped,_=void 0!==C&&C,k=(0,r.Z)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return a.createElement(u.Z,(0,i.Z)({focusRipple:!p,className:(0,s.default)(n.root,n["textColor".concat((0,c.Z)(S))],o,d&&n.disabled,E&&n.selected,v&&g&&n.labelIcon,h&&n.fullWidth,_&&n.wrapped),ref:t,role:"tab","aria-selected":E,disabled:d,onClick:function(e){y&&y(e,I),b&&b(e)},onFocus:function(e){O&&!E&&y&&y(e,I),w&&w(e)},tabIndex:E?0:-1},k),a.createElement("span",{className:n.wrapper},g,v),m)}));const f=(0,l.Z)((function(e){var t;return{root:(0,i.Z)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},(0,o.Z)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),(0,o.Z)(t,"overflow","hidden"),(0,o.Z)(t,"whiteSpace","normal"),(0,o.Z)(t,"textAlign","center"),(0,o.Z)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(d)},70065:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r,o=n(87462),i=n(45987),a=n(4942),s=n(67294),l=(n(59864),n(86010)),u=n(79437),c=n(80713);function d(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function f(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(d()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function p(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function g(e){var t=e.onChange,n=(0,i.Z)(e,["onChange"]),r=s.useRef(),a=s.useRef(null),l=function(){r.current=a.current.offsetHeight-a.current.clientHeight};return s.useEffect((function(){var e=(0,u.Z)((function(){var e=r.current;l(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),s.useEffect((function(){l(),t(r.current)}),[t]),s.createElement("div",(0,o.Z)({style:h,ref:a},n))}var m=n(52543),v=n(93871),y=s.forwardRef((function(e,t){var n=e.classes,r=e.className,a=e.color,u=e.orientation,c=(0,i.Z)(e,["classes","className","color","orientation"]);return s.createElement("span",(0,o.Z)({className:(0,l.default)(n.root,n["color".concat((0,v.Z)(a))],r,"vertical"===u&&n.vertical),ref:t},c))}));const b=(0,m.Z)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(y);var w=n(63786);const E=(0,w.Z)(s.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),O=(0,w.Z)(s.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var x=n(54720),S=s.createElement(E,{fontSize:"small"}),I=s.createElement(O,{fontSize:"small"}),C=s.forwardRef((function(e,t){var n=e.classes,r=e.className,a=e.direction,u=e.orientation,c=e.disabled,d=(0,i.Z)(e,["classes","className","direction","orientation","disabled"]);return s.createElement(x.Z,(0,o.Z)({component:"div",className:(0,l.default)(n.root,r,c&&n.disabled,"vertical"===u&&n.vertical),ref:t,role:null,tabIndex:null},d),"left"===a?S:I)}));const _=(0,m.Z)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(C);var k=n(55192),T=n(8920),P=s.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],h=e.action,m=e.centered,v=void 0!==m&&m,y=e.children,w=e.classes,E=e.className,O=e.component,x=void 0===O?"div":O,S=e.indicatorColor,I=void 0===S?"secondary":S,C=e.onChange,P=e.orientation,R=void 0===P?"horizontal":P,A=e.ScrollButtonComponent,j=void 0===A?_:A,N=e.scrollButtons,D=void 0===N?"auto":N,M=e.selectionFollowsFocus,L=e.TabIndicatorProps,Z=void 0===L?{}:L,z=e.TabScrollButtonProps,W=e.textColor,F=void 0===W?"inherit":W,B=e.value,U=e.variant,H=void 0===U?"standard":U,V=(0,i.Z)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),G=(0,T.Z)(),q="scrollable"===H,$="rtl"===G.direction,K="vertical"===R,Y=K?"scrollTop":"scrollLeft",X=K?"top":"left",Q=K?"bottom":"right",J=K?"clientHeight":"clientWidth",ee=K?"height":"width",te=s.useState(!1),ne=te[0],re=te[1],oe=s.useState({}),ie=oe[0],ae=oe[1],se=s.useState({start:!1,end:!1}),le=se[0],ue=se[1],ce=s.useState({overflow:"hidden",marginBottom:null}),de=ce[0],fe=ce[1],pe=new Map,he=s.useRef(null),ge=s.useRef(null),me=function(){var e,t,n=he.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:f(n,G.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==B){var o=ge.current.children;if(o.length>0){var i=o[pe.get(B)];t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ve=(0,k.Z)((function(){var e,t=me(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(K)o=r.top-n.top+n.scrollTop;else{var i=$?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var s=(e={},(0,a.Z)(e,X,o),(0,a.Z)(e,ee,r?r[ee]:0),e);if(isNaN(ie[X])||isNaN(ie[ee]))ae(s);else{var l=Math.abs(ie[X]-s[X]),u=Math.abs(ie[ee]-s[ee]);(l>=1||u>=1)&&ae(s)}})),ye=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?p:i,s=r.duration,l=void 0===s?300:s,u=null,c=t[e],d=!1,f=function r(i){if(d)o(new Error("Animation cancelled"));else{null===u&&(u=i);var s=Math.min(1,(i-u)/l);t[e]=a(s)*(n-c)+c,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};c===n?o(new Error("Element already at target position")):requestAnimationFrame(f)}(Y,he.current,e)},be=function(e){var t=he.current[Y];K?t+=e:(t+=e*($?-1:1),t*=$&&"reverse"===d()?-1:1),ye(t)},we=function(){be(-he.current[J])},Ee=function(){be(he.current[J])},Oe=s.useCallback((function(e){fe({overflow:null,marginBottom:-e})}),[]),xe=(0,k.Z)((function(){var e=me(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[X]<t[X]){var r=t[Y]+(n[X]-t[X]);ye(r)}else if(n[Q]>t[Q]){var o=t[Y]+(n[Q]-t[Q]);ye(o)}})),Se=(0,k.Z)((function(){if(q&&"off"!==D){var e,t,n=he.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(K)e=r>1,t=r<o-i-1;else{var l=f(he.current,G.direction);e=$?l<a-s-1:l>1,t=$?l>1:l<a-s-1}e===le.start&&t===le.end||ue({start:e,end:t})}}));s.useEffect((function(){var e=(0,u.Z)((function(){ve(),Se()})),t=(0,c.Z)(he.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[ve,Se]);var Ie=s.useCallback((0,u.Z)((function(){Se()})));s.useEffect((function(){return function(){Ie.clear()}}),[Ie]),s.useEffect((function(){re(!0)}),[]),s.useEffect((function(){ve(),Se()})),s.useEffect((function(){xe()}),[xe,ie]),s.useImperativeHandle(h,(function(){return{updateIndicator:ve,updateScrollButtons:Se}}),[ve,Se]);var Ce=s.createElement(b,(0,o.Z)({className:w.indicator,orientation:R,color:I},Z,{style:(0,o.Z)({},ie,Z.style)})),_e=0,ke=s.Children.map(y,(function(e){if(!s.isValidElement(e))return null;var t=void 0===e.props.value?_e:e.props.value;pe.set(t,_e);var n=t===B;return _e+=1,s.cloneElement(e,{fullWidth:"fullWidth"===H,indicator:n&&!ne&&Ce,selected:n,selectionFollowsFocus:M,onChange:C,textColor:F,value:t})})),Te=function(){var e={};e.scrollbarSizeListener=q?s.createElement(g,{className:w.scrollable,onChange:Oe}):null;var t=le.start||le.end,n=q&&("auto"===D&&t||"desktop"===D||"on"===D);return e.scrollButtonStart=n?s.createElement(j,(0,o.Z)({orientation:R,direction:$?"right":"left",onClick:we,disabled:!le.start,className:(0,l.default)(w.scrollButtons,"on"!==D&&w.scrollButtonsDesktop)},z)):null,e.scrollButtonEnd=n?s.createElement(j,(0,o.Z)({orientation:R,direction:$?"left":"right",onClick:Ee,disabled:!le.end,className:(0,l.default)(w.scrollButtons,"on"!==D&&w.scrollButtonsDesktop)},z)):null,e}();return s.createElement(x,(0,o.Z)({className:(0,l.default)(w.root,E,K&&w.vertical),ref:t},V),Te.scrollButtonStart,Te.scrollbarSizeListener,s.createElement("div",{className:(0,l.default)(w.scroller,q?w.scrollable:w.fixed),style:de,ref:he,onScroll:Ie},s.createElement("div",{"aria-label":n,"aria-labelledby":r,className:(0,l.default)(w.flexContainer,K&&w.flexContainerVertical,v&&!q&&w.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==R?"ArrowLeft":"ArrowUp",o="vertical"!==R?"ArrowRight":"ArrowDown";switch("vertical"!==R&&"rtl"===G.direction&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:n=t.previousElementSibling||ge.current.lastChild;break;case o:n=t.nextElementSibling||ge.current.firstChild;break;case"Home":n=ge.current.firstChild;break;case"End":n=ge.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:ge,role:"tablist"},ke),ne&&Ce),Te.scrollButtonEnd)}));const R=(0,m.Z)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:(0,a.Z)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(P)},7784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(38799),l=n(59446),u=n(66718),c=n(89345),d=n(22601),f=n(52543),p=n(93871),h=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=(e.color,e.component),f=void 0===u?"label":u,h=(e.disabled,e.error,e.filled,e.focused,e.required,(0,o.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),g=(0,d.Z)(),m=(0,c.Z)({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return i.createElement(f,(0,r.Z)({className:(0,a.default)(s.root,s["color".concat((0,p.Z)(m.color||"primary"))],l,m.disabled&&s.disabled,m.error&&s.error,m.filled&&s.filled,m.focused&&s.focused,m.required&&s.required),ref:t},h),n,m.required&&i.createElement("span",{"aria-hidden":!0,className:(0,a.default)(s.asterisk,m.error&&s.error)}," ","*"))}));const g=(0,f.Z)((function(e){return{root:(0,r.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(h);var m=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.disableAnimation,u=void 0!==l&&l,f=(e.margin,e.shrink),p=(e.variant,(0,o.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),h=(0,d.Z)(),m=f;void 0===m&&h&&(m=h.filled||h.focused||h.adornedStart);var v=(0,c.Z)({props:e,muiFormControl:h,states:["margin","variant"]});return i.createElement(g,(0,r.Z)({"data-shrink":m,className:(0,a.default)(n.root,s,h&&n.formControl,!u&&n.animated,m&&n.shrink,"dense"===v.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[v.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))}));const v=(0,f.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(m);var y=n(64436),b=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.component,f=void 0===u?"p":u,p=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,o.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=(0,d.Z)(),g=(0,c.Z)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(f,(0,r.Z)({className:(0,a.default)(s.root,("filled"===g.variant||"outlined"===g.variant)&&s.contained,l,g.disabled&&s.disabled,g.error&&s.error,g.filled&&s.filled,g.focused&&s.focused,g.required&&s.required,"dense"===g.margin&&s.marginDense),ref:t},p)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const w=(0,f.Z)((function(e){return{root:(0,r.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(b);var E=n(26209),O={standard:s.Z,filled:l.Z,outlined:u.Z},x=i.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,l=void 0!==s&&s,u=e.children,c=e.classes,d=e.className,f=e.color,p=void 0===f?"primary":f,h=e.defaultValue,g=e.disabled,m=void 0!==g&&g,b=e.error,x=void 0!==b&&b,S=e.FormHelperTextProps,I=e.fullWidth,C=void 0!==I&&I,_=e.helperText,k=e.hiddenLabel,T=e.id,P=e.InputLabelProps,R=e.inputProps,A=e.InputProps,j=e.inputRef,N=e.label,D=e.multiline,M=void 0!==D&&D,L=e.name,Z=e.onBlur,z=e.onChange,W=e.onFocus,F=e.placeholder,B=e.required,U=void 0!==B&&B,H=e.rows,V=e.rowsMax,G=e.maxRows,q=e.minRows,$=e.select,K=void 0!==$&&$,Y=e.SelectProps,X=e.type,Q=e.value,J=e.variant,ee=void 0===J?"standard":J,te=(0,o.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),ne={};if("outlined"===ee&&(P&&void 0!==P.shrink&&(ne.notched=P.shrink),N)){var re,oe=null!==(re=null==P?void 0:P.required)&&void 0!==re?re:U;ne.label=i.createElement(i.Fragment,null,N,oe&&" *")}K&&(Y&&Y.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ie=_&&T?"".concat(T,"-helper-text"):void 0,ae=N&&T?"".concat(T,"-label"):void 0,se=O[ee],le=i.createElement(se,(0,r.Z)({"aria-describedby":ie,autoComplete:n,autoFocus:l,defaultValue:h,fullWidth:C,multiline:M,name:L,rows:H,rowsMax:V,maxRows:G,minRows:q,type:X,value:Q,id:T,inputRef:j,onBlur:Z,onChange:z,onFocus:W,placeholder:F,inputProps:R},ne,A));return i.createElement(y.Z,(0,r.Z)({className:(0,a.default)(c.root,d),disabled:m,error:x,fullWidth:C,hiddenLabel:k,ref:t,required:U,color:p,variant:ee},te),N&&i.createElement(v,(0,r.Z)({htmlFor:T,id:ae},P),N),K?i.createElement(E.Z,(0,r.Z)({"aria-describedby":ie,id:T,labelId:ae,value:Q,input:le},Y),u):le,_&&i.createElement(w,(0,r.Z)({id:ie},S),_))}));const S=(0,f.Z)({root:{}},{name:"MuiTextField"})(x)},28358:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(4942),a=n(67294),s=n(86010),l=n(52543),u=a.forwardRef((function(e,t){var n=e.classes,i=e.className,l=e.component,u=void 0===l?"div":l,c=e.disableGutters,d=void 0!==c&&c,f=e.variant,p=void 0===f?"regular":f,h=(0,o.Z)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(u,(0,r.Z)({className:(0,s.default)(n.root,n[p],i,!d&&n.gutters),ref:t},h))}));const c=(0,l.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,i.Z)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(u)},868:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>C});var r=n(87462),o=n(29439),i=n(45987),a=n(4942),s=n(67294),l=n(73935),u=n(86010),c=n(35953),d=n(59693),f=n(52543),p=n(93871),h=n(20170),g=n(96617),m=n(17294),v=n(95001),y=n(34236),b=n(24896),w=n(22775),E=n(8920);function O(e){return Math.round(1e5*e)/1e5}var x=!1,S=null,I=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,d=e.children,f=e.classes,O=e.disableFocusListener,I=void 0!==O&&O,C=e.disableHoverListener,_=void 0!==C&&C,k=e.disableTouchListener,T=void 0!==k&&k,P=e.enterDelay,R=void 0===P?100:P,A=e.enterNextDelay,j=void 0===A?0:A,N=e.enterTouchDelay,D=void 0===N?700:N,M=e.id,L=e.interactive,Z=void 0!==L&&L,z=e.leaveDelay,W=void 0===z?0:z,F=e.leaveTouchDelay,B=void 0===F?1500:F,U=e.onClose,H=e.onOpen,V=e.open,G=e.placement,q=void 0===G?"bottom":G,$=e.PopperComponent,K=void 0===$?g.Z:$,Y=e.PopperProps,X=e.title,Q=e.TransitionComponent,J=void 0===Q?h.Z:Q,ee=e.TransitionProps,te=(0,i.Z)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=(0,E.Z)(),re=s.useState(),oe=re[0],ie=re[1],ae=s.useState(null),se=ae[0],le=ae[1],ue=s.useRef(!1),ce=s.useRef(),de=s.useRef(),fe=s.useRef(),pe=s.useRef(),he=(0,w.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"}),ge=(0,o.Z)(he,2),me=ge[0],ve=ge[1],ye=me,be=(0,v.Z)(M);s.useEffect((function(){return function(){clearTimeout(ce.current),clearTimeout(de.current),clearTimeout(fe.current),clearTimeout(pe.current)}}),[]);var we=function(e){clearTimeout(S),x=!0,ve(!0),H&&H(e)},Ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=d.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ue.current&&"touchstart"!==t.type||(oe&&oe.removeAttribute("title"),clearTimeout(de.current),clearTimeout(fe.current),R||x&&j?(t.persist(),de.current=setTimeout((function(){we(t)}),x?j:R)):we(t))}},Oe=(0,b.Z)(),xe=Oe.isFocusVisible,Se=Oe.onBlurVisible,Ie=Oe.ref,Ce=s.useState(!1),_e=Ce[0],ke=Ce[1],Te=function(){_e&&(ke(!1),Se())},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){oe||ie(t.currentTarget),xe(t)&&(ke(!0),Ee()(t));var n=d.props;n.onFocus&&e&&n.onFocus(t)}},Re=function(e){clearTimeout(S),S=setTimeout((function(){x=!1}),800+W),ve(!1),U&&U(e),clearTimeout(ce.current),ce.current=setTimeout((function(){ue.current=!1}),ne.transitions.duration.shortest)},Ae=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=d.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Te()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===oe&&n.onMouseLeave(t),clearTimeout(de.current),clearTimeout(fe.current),t.persist(),fe.current=setTimeout((function(){Re(t)}),W)}},je=function(e){ue.current=!0;var t=d.props;t.onTouchStart&&t.onTouchStart(e)},Ne=(0,m.Z)(ie,t),De=(0,m.Z)(Ie,Ne),Me=s.useCallback((function(e){(0,y.Z)(De,l.findDOMNode(e))}),[De]),Le=(0,m.Z)(d.ref,Me);""===X&&(ye=!1);var Ze=!ye&&!_,ze=(0,r.Z)({"aria-describedby":ye?be:null,title:Ze&&"string"==typeof X?X:null},te,d.props,{className:(0,u.default)(te.className,d.props.className),onTouchStart:je,ref:Le}),We={};T||(ze.onTouchStart=function(e){je(e),clearTimeout(fe.current),clearTimeout(ce.current),clearTimeout(pe.current),e.persist(),pe.current=setTimeout((function(){Ee()(e)}),D)},ze.onTouchEnd=function(e){d.props.onTouchEnd&&d.props.onTouchEnd(e),clearTimeout(pe.current),clearTimeout(fe.current),e.persist(),fe.current=setTimeout((function(){Re(e)}),B)}),_||(ze.onMouseOver=Ee(),ze.onMouseLeave=Ae(),Z&&(We.onMouseOver=Ee(!1),We.onMouseLeave=Ae(!1))),I||(ze.onFocus=Pe(),ze.onBlur=Ae(),Z&&(We.onFocus=Pe(!1),We.onBlur=Ae(!1)));var Fe=s.useMemo((function(){return(0,c.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},Y)}),[se,Y]);return s.createElement(s.Fragment,null,s.cloneElement(d,ze),s.createElement(K,(0,r.Z)({className:(0,u.default)(f.popper,Z&&f.popperInteractive,a&&f.popperArrow),placement:q,anchorEl:oe,open:!!oe&&ye,id:ze["aria-describedby"],transition:!0},We,Fe),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(J,(0,r.Z)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:(0,u.default)(f.tooltip,f["tooltipPlacement".concat((0,p.Z)(t.split("-")[0]))],ue.current&&f.touch,a&&f.tooltipArrow)},X,a?s.createElement("span",{className:f.arrow,ref:le}):null))})))}));const C=(0,f.Z)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,d.Fq)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(O(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,d.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(O(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,a.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,a.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,a.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,a.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(I)},22318:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(52543),l=n(93871),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},c=i.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,c=e.classes,d=e.className,f=e.color,p=void 0===f?"initial":f,h=e.component,g=e.display,m=void 0===g?"initial":g,v=e.gutterBottom,y=void 0!==v&&v,b=e.noWrap,w=void 0!==b&&b,E=e.paragraph,O=void 0!==E&&E,x=e.variant,S=void 0===x?"body1":x,I=e.variantMapping,C=void 0===I?u:I,_=(0,o.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=h||(O?"p":C[S]||u[S])||"span";return i.createElement(k,(0,r.Z)({className:(0,a.default)(c.root,d,"inherit"!==S&&c[S],"initial"!==p&&c["color".concat((0,l.Z)(p))],w&&c.noWrap,y&&c.gutterBottom,O&&c.paragraph,"inherit"!==s&&c["align".concat((0,l.Z)(s))],"initial"!==m&&c["display".concat((0,l.Z)(m))]),ref:t},_))}));const d=(0,s.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(c)},88105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"}},59693:(e,t,n)=>{"use strict";n.d(t,{$n:()=>f,Fq:()=>c,_4:()=>u,_j:()=>d,mi:()=>s});var r=n(60288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):f(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},34549:(e,t,n)=>{"use strict";n.d(t,{A:()=>K,Z:()=>Y});var r=n(45987),o=n(35953),i=n(87462),a=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,s=void 0===o?"px":o,l=e.step,u=void 0===l?5:l,c=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(s,")")}return(0,i.Z)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}var l=n(4942);function u(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,l.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,l.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,l.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288);const d={black:"#000",white:"#fff"};var f=n(88105);const p="#7986cb",h="#3f51b5",g="#303f9f",m="#ff4081",v="#f50057",y="#c51162",b="#e57373",w="#f44336",E="#d32f2f",O="#ffb74d",x="#ff9800",S="#f57c00",I="#64b5f6",C="#2196f3",_="#1976d2",k="#81c784",T="#4caf50",P="#388e3c";var R=n(59693),A={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f.Z[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},j={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.Z[800],default:"#303030"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function N(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,R.$n)(e.main,o):"dark"===t&&(e.dark=(0,R._j)(e.main,i)))}function D(e){var t=e.primary,n=void 0===t?{light:p,main:h,dark:g}:t,a=e.secondary,s=void 0===a?{light:m,main:v,dark:y}:a,l=e.error,u=void 0===l?{light:b,main:w,dark:E}:l,D=e.warning,M=void 0===D?{light:O,main:x,dark:S}:D,L=e.info,Z=void 0===L?{light:I,main:C,dark:_}:L,z=e.success,W=void 0===z?{light:k,main:T,dark:P}:z,F=e.type,B=void 0===F?"light":F,U=e.contrastThreshold,H=void 0===U?3:U,V=e.tonalOffset,G=void 0===V?.2:V,q=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function $(e){return(0,R.mi)(e,j.text.primary)>=H?j.text.primary:A.text.primary}var K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return N(e,"light",n,G),N(e,"dark",r,G),e.contrastText||(e.contrastText=$(e.main)),e},Y={dark:j,light:A};return(0,o.Z)((0,i.Z)({common:d,type:B,primary:K(n),secondary:K(s,"A400","A200","A700"),error:K(u),warning:K(M),info:K(Z),success:K(W),grey:f.Z,contrastThreshold:H,getContrastText:$,augmentColor:K,tonalOffset:G},Y[B]),q)}function M(e){return Math.round(1e5*e)/1e5}function L(e){return M(e)}var Z={textTransform:"uppercase"},z='"Roboto", "Helvetica", "Arial", sans-serif';function W(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,s=void 0===a?z:a,l=n.fontSize,u=void 0===l?14:l,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,g=void 0===h?500:h,m=n.fontWeightBold,v=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,E=n.pxToRem,O=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=u/14,S=E||function(e){return"".concat(e/b*x,"rem")},I=function(e,t,n,r,o){return(0,i.Z)({fontFamily:s,fontWeight:e,fontSize:S(t),lineHeight:n},s===z?{letterSpacing:"".concat(M(r/t),"em")}:{},o,w)},C={h1:I(d,96,1.167,-1.5),h2:I(d,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(g,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(g,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(g,14,1.75,.4,Z),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,Z)};return(0,o.Z)((0,i.Z)({htmlFontSize:b,pxToRem:S,round:L,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:g,fontWeightBold:v},C),O,{clone:!1})}function F(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const B=["none",F(0,2,1,-1,0,1,1,0,0,1,3,0),F(0,3,1,-2,0,2,2,0,0,1,5,0),F(0,3,3,-2,0,3,4,0,0,1,8,0),F(0,2,4,-1,0,4,5,0,0,1,10,0),F(0,3,5,-1,0,5,8,0,0,1,14,0),F(0,3,5,-1,0,6,10,0,0,1,18,0),F(0,4,5,-2,0,7,10,1,0,2,16,1),F(0,5,5,-3,0,8,10,1,0,3,14,2),F(0,5,6,-3,0,9,12,1,0,3,16,2),F(0,6,6,-3,0,10,14,1,0,4,18,3),F(0,6,7,-4,0,11,15,1,0,4,20,3),F(0,7,8,-4,0,12,17,2,0,5,22,4),F(0,7,8,-4,0,13,19,2,0,5,24,4),F(0,7,9,-4,0,14,21,2,0,5,26,4),F(0,8,9,-5,0,15,22,2,0,6,28,5),F(0,8,10,-5,0,16,24,2,0,6,30,5),F(0,8,11,-5,0,17,26,2,0,6,32,5),F(0,9,11,-5,0,18,28,2,0,7,34,6),F(0,9,12,-6,0,19,29,2,0,7,36,6),F(0,10,13,-6,0,20,31,3,0,8,38,7),F(0,10,13,-6,0,21,33,3,0,8,40,7),F(0,10,14,-6,0,22,35,3,0,8,42,7),F(0,11,14,-7,0,23,36,3,0,9,44,8),F(0,11,15,-7,0,24,38,3,0,9,46,8)],U={borderRadius:4};var H=n(38681);function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,H.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var G=n(43366),q=n(92781);function $(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,l=e.palette,c=void 0===l?{}:l,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),g=D(c),m=s(n),v=V(d),y=(0,o.Z)({breakpoints:m,direction:"ltr",mixins:u(m,v,a),overrides:{},palette:g,props:{},shadows:B,typography:W(g,p),spacing:v,shape:U,transitions:G.ZP,zIndex:q.Z},h),b=arguments.length,w=new Array(b>1?b-1:0),E=1;E<b;E++)w[E-1]=arguments[E];return w.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}function K(){return $.apply(void 0,arguments)}const Y=$},99700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(34549).Z)()},43366:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,x9:()=>i});var r=n(45987),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,l=t.easing,u=void 0===l?o.easeInOut:l,c=t.delay,d=void 0===c?0:c;return(0,r.Z)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(u," ").concat("string"==typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},8920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(159),o=(n(67294),n(99700));function i(){return(0,r.Z)()||o.Z}},52543:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(87462),o=n(38920),i=n(99700);const a=function(e,t){return(0,o.Z)(e,(0,r.Z)({defaultTheme:i.Z},t))}},92781:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},5653:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,n:()=>r});var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},93871:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(60288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82568:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:()=>r})},63786:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(87462),o=n(67294),i=n(62087);function a(e,t){var n=function(t,n){return o.createElement(i.Z,(0,r.Z)({ref:n},t),e)};return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},79437:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,s=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:()=>r})},75840:(e,t,n)=>{"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,{Z:()=>r})},28546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.Z,createChainedFunction:()=>o.Z,createSvgIcon:()=>i.Z,debounce:()=>a.Z,deprecatedPropType:()=>s,isMuiElement:()=>l.Z,ownerDocument:()=>u.Z,ownerWindow:()=>c.Z,requirePropFactory:()=>d,setRef:()=>f.Z,unstable_useId:()=>v.Z,unsupportedProp:()=>p,useControlled:()=>h.Z,useEventCallback:()=>g.Z,useForkRef:()=>m.Z,useIsFocusVisible:()=>y.Z});var r=n(93871),o=n(82568),i=n(63786),a=n(79437);function s(e,t){return function(){return null}}var l=n(83711),u=n(30626),c=n(80713);function d(e){return function(){return null}}var f=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),g=n(55192),m=n(17294),v=n(95001),y=n(24896)},83711:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},80713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}},34236:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},95001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67294);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},22775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67294);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},55192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},17294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(67294),o=n(34236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},24896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(67294),o=n(73935),i=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!l[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:f,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},58884:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var r=n(87462),o=n(45987),i=n(67294),a=n(93869),s=n(8679),l=n.n(s),u=n(8920),c=n(159);function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,c.Z)(),o=(0,a.Z)({theme:n,name:"MuiUseMediaQuery",props:{}}),s="function"==typeof e?e(n):e;s=s.replace(/^@media( ?)/m,"");var l="undefined"!=typeof window&&void 0!==window.matchMedia,u=(0,r.Z)({},o,t),d=u.defaultMatches,f=void 0!==d&&d,p=u.matchMedia,h=void 0===p?l?window.matchMedia:null:p,g=u.noSsr,m=void 0!==g&&g,v=u.ssrMatchMedia,y=void 0===v?null:v,b=i.useState((function(){return m&&l?h(s).matches:y?y(s).matches:f})),w=b[0],E=b[1];return i.useEffect((function(){var e=!0;if(l){var t=h(s),n=function(){e&&E(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[s,h,l]),w}var f="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,s=void 0!==n&&n,c=e.noSSR,p=void 0!==c&&c,h=e.initialWidth;function g(e){var n=(0,u.Z)(),l=e.theme||n,c=(0,a.Z)({theme:l,name:"MuiWithWidth",props:(0,r.Z)({},e)}),g=c.initialWidth,m=c.width,v=(0,o.Z)(c,["initialWidth","width"]),y=i.useState(!1),b=y[0],w=y[1];f((function(){w(!0)}),[]);var E=l.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=d(l.breakpoints.up(t));return!e&&n?t:e}),null),O=(0,r.Z)({width:m||(b||p?E:void 0)||g||h},s?{theme:l}:{},v);return void 0===O.width?null:i.createElement(t,O)}return l()(g,t),g}}},59114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=i,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=s(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))},t.hslToRgb=a,t.decomposeColor=s,t.recomposeColor=l,t.getContrastRatio=function(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=u,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?d(e,t):f(e,t)},t.fade=function(e,t){return c(e,t)},t.alpha=c,t.darken=d,t.lighten=f;var r=n(75218);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){var t=(e=s(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),l({type:u,values:c})}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(i(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.formatMuiErrorMessage)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function l(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function u(e){var t="hsl"===(e=s(e)).type?s(a(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=s(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,l(e)}function d(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return l(e)}},94811:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,s=void 0===r?"px":r,l=e.step,u=void 0===l?5:l,c=(0,i.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(s,")")}return(0,o.default)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)},t.keys=void 0;var o=r(n(10434)),i=r(n(70215)),a=["xs","sm","md","lg","xl"];t.keys=a},40226:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return(0,i.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,i.default)({paddingLeft:t(2),paddingRight:t(2)},n,(0,o.default)({},e.up("sm"),(0,i.default)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,o.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(r,e.up("sm"),{minHeight:64}),r)},n)};var o=r(n(38416)),i=r(n(10434))},21091:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:u.default[300],main:u.default[500],dark:u.default[700]}:t,r=e.secondary,b=void 0===r?{light:c.default.A200,main:c.default.A400,dark:c.default.A700}:r,w=e.error,E=void 0===w?{light:d.default[300],main:d.default[500],dark:d.default[700]}:w,O=e.warning,x=void 0===O?{light:f.default[300],main:f.default[500],dark:f.default[700]}:O,S=e.info,I=void 0===S?{light:p.default[300],main:p.default[500],dark:p.default[700]}:S,C=e.success,_=void 0===C?{light:h.default[300],main:h.default[500],dark:h.default[700]}:C,k=e.type,T=void 0===k?"light":k,P=e.contrastThreshold,R=void 0===P?3:P,A=e.tonalOffset,j=void 0===A?.2:A,N=(0,i.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,g.getContrastRatio)(e,v.text.primary)>=R?v.text.primary:m.text.primary}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.default)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,a.formatMuiErrorMessage)(4,t));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return y(e,"light",n,j),y(e,"dark",r,j),e.contrastText||(e.contrastText=D(e.main)),e},L={dark:v,light:m};return(0,a.deepmerge)((0,o.default)({common:s.default,type:T,primary:M(n),secondary:M(b,"A400","A200","A700"),error:M(E),warning:M(x),info:M(I),success:M(_),grey:l.default,contrastThreshold:R,getContrastText:D,augmentColor:M,tonalOffset:j},L[T]),N)},t.dark=t.light=void 0;var o=r(n(10434)),i=r(n(70215)),a=n(75218),s=r(n(515)),l=r(n(70167)),u=r(n(78768)),c=r(n(124)),d=r(n(83165)),f=r(n(36594)),p=r(n(63259)),h=r(n(47559)),g=n(59114),m={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.default.white,default:l.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};t.light=m;var v={text:{primary:s.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:l.default[800],default:"#303030"},action:{active:s.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,g.lighten)(e.main,o):"dark"===t&&(e.dark=(0,g.darken)(e.main,i)))}t.dark=v},83498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,r.createUnarySpacing)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n};var r=n(13312)},86002:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.createMuiTheme=function(){return g.apply(void 0,arguments)},t.default=void 0,r(n(38416));var o=r(n(70215)),i=n(75218),a=r(n(94811)),s=r(n(40226)),l=r(n(21091)),u=r(n(45184)),c=r(n(80743)),d=r(n(59591)),f=r(n(83498)),p=r(n(15406)),h=r(n(88676));function g(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,g=void 0===r?{}:r,m=e.palette,v=void 0===m?{}:m,y=e.spacing,b=e.typography,w=void 0===b?{}:b,E=(0,o.default)(e,["breakpoints","mixins","palette","spacing","typography"]),O=(0,l.default)(v),x=(0,a.default)(n),S=(0,f.default)(y),I=(0,i.deepmerge)({breakpoints:x,direction:"ltr",mixins:(0,s.default)(x,S,g),overrides:{},palette:O,props:{},shadows:c.default,typography:(0,u.default)(O,w),spacing:S,shape:d.default,transitions:p.default,zIndex:h.default},E),C=arguments.length,_=new Array(C>1?C-1:0),k=1;k<C;k++)_[k-1]=arguments[k];return _.reduce((function(e,t){return(0,i.deepmerge)(e,t)}),I)}var m=g;t.default=m},45184:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,d=void 0===r?c:r,f=n.fontSize,p=void 0===f?14:f,h=n.fontWeightLight,g=void 0===h?300:h,m=n.fontWeightRegular,v=void 0===m?400:m,y=n.fontWeightMedium,b=void 0===y?500:y,w=n.fontWeightBold,E=void 0===w?700:w,O=n.htmlFontSize,x=void 0===O?16:O,S=n.allVariants,I=n.pxToRem,C=(0,i.default)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),_=p/14,k=I||function(e){return"".concat(e/x*_,"rem")},T=function(e,t,n,r,i){return(0,o.default)({fontFamily:d,fontWeight:e,fontSize:k(t),lineHeight:n},d===c?{letterSpacing:"".concat(s(r/t),"em")}:{},i,S)},P={h1:T(g,96,1.167,-1.5),h2:T(g,60,1.2,-.5),h3:T(v,48,1.167,0),h4:T(v,34,1.235,.25),h5:T(v,24,1.334,0),h6:T(b,20,1.6,.15),subtitle1:T(v,16,1.75,.15),subtitle2:T(b,14,1.57,.1),body1:T(v,16,1.5,.15),body2:T(v,14,1.43,.15),button:T(b,14,1.75,.4,u),caption:T(v,12,1.66,.4),overline:T(v,12,2.66,1,u)};return(0,a.deepmerge)((0,o.default)({htmlFontSize:x,pxToRem:k,round:l,fontFamily:d,fontSize:p,fontWeightLight:g,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:E},P),C,{clone:!1})};var o=r(n(10434)),i=r(n(70215)),a=n(75218);function s(e){return Math.round(1e5*e)/1e5}function l(e){return s(e)}var u={textTransform:"uppercase"},c='"Roboto", "Helvetica", "Arial", sans-serif'},22719:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,r(n(86002)).default)();t.default=o},80743:(e,t)=>{"use strict";function n(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["none",n(0,2,1,-1,0,1,1,0,0,1,3,0),n(0,3,1,-2,0,2,2,0,0,1,5,0),n(0,3,3,-2,0,3,4,0,0,1,8,0),n(0,2,4,-1,0,4,5,0,0,1,10,0),n(0,3,5,-1,0,5,8,0,0,1,14,0),n(0,3,5,-1,0,6,10,0,0,1,18,0),n(0,4,5,-2,0,7,10,1,0,2,16,1),n(0,5,5,-3,0,8,10,1,0,3,14,2),n(0,5,6,-3,0,9,12,1,0,3,16,2),n(0,6,6,-3,0,10,14,1,0,4,18,3),n(0,6,7,-4,0,11,15,1,0,4,20,3),n(0,7,8,-4,0,12,17,2,0,5,22,4),n(0,7,8,-4,0,13,19,2,0,5,24,4),n(0,7,9,-4,0,14,21,2,0,5,26,4),n(0,8,9,-5,0,15,22,2,0,6,28,5),n(0,8,10,-5,0,16,24,2,0,6,30,5),n(0,8,11,-5,0,17,26,2,0,6,32,5),n(0,9,11,-5,0,18,28,2,0,7,34,6),n(0,9,12,-6,0,19,29,2,0,7,36,6),n(0,10,13,-6,0,20,31,3,0,8,38,7),n(0,10,13,-6,0,21,33,3,0,8,40,7),n(0,10,14,-6,0,22,35,3,0,8,42,7),n(0,11,14,-7,0,23,36,3,0,9,44,8),n(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=r},59591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={borderRadius:4}},15406:(e,t,n)=>{"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.duration=t.easing=void 0;var o=r(n(70215)),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};t.easing=i;var a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(e){return"".concat(Math.round(e),"ms")}t.duration=a;var l={easing:i,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?a.standard:n,l=t.easing,u=void 0===l?i.easeInOut:l,c=t.delay,d=void 0===c?0:c;return(0,o.default)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:s(r)," ").concat(u," ").concat("string"==typeof d?d:s(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=l},78252:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(10434)),i=n(14894),a=r(n(22719));t.Z=function(e,t){return(0,i.withStyles)(e,(0,o.default)({defaultTheme:a.default},t))}},82313:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=n(14894),i=r(n(22719)),a=(0,o.withThemeCreator)({defaultTheme:i.default});t.Z=a},88676:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},1753:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBackSharp");t.Z=a},49024:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}),"ArrowForwardSharp");t.Z=a},992:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpwardSharp");t.Z=a},88943:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}),"Brightness5");t.Z=a},3409:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"}),"CheckSharp");t.Z=a},80589:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}),"ChevronLeftSharp");t.Z=a},66735:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.Z=a},2814:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightSharp");t.Z=a},95378:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"CloseSharp");t.Z=a},44570:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleSharp");t.Z=a},45470:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicatorSharp");t.Z=a},64566:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},18646:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M21 3H3v18h18V3zM6 7h5v1.5H6V7zm13 12H5L19 5v14zm-4.5-3v2H16v-2h2v-1.5h-2v-2h-1.5v2h-2V16h2z"}),"ExposureSharp");t.Z=a},32892:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-7h-2v2h2v2h-2v-2h-2v2h-2v-2h-2v2H9v-2H7v2H5v-2h2v-2H5V5h14v6z"}),"Gradient");t.Z=a},76861:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"}),"InvertColors");t.Z=a},78536:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownSharp");t.Z=a},9942:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"}),"KeyboardArrowUpSharp");t.Z=a},70823:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}),"OpacitySharp");t.Z=a},87337:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M19 19H5V5h7V3H3v18h18v-9h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNewSharp");t.Z=a},67411:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"}),"ReorderSharp");t.Z=a},33038:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplaySharp");t.Z=a},44779:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z"}),"RotateLeft");t.Z=a},97419:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42l1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z"}),"RotateRight");t.Z=a},75421:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchSharp");t.Z=a},34113:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortSharp");t.Z=a},60796:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}),"SwapHoriz");t.Z=a},39324:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}),"Tonality");t.Z=a},23221:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"TuneSharp");t.Z=a},2056:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTopSharp");t.Z=a},19252:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h12v-4H8v4zm0 5h12v-4H8v4zM8 5v4h12V5H8z"}),"ViewListSharp");t.Z=a},77748:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM3.42 2.45L2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l3.43 3.43 1.41-1.41L3.42 2.45zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffSharp");t.Z=a},18e3:(e,t,n)=>{"use strict";var r=n(64836),o=n(75263);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilitySharp");t.Z=a},2108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28546)},58365:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(59693),l=n(52543),u=i.forwardRef((function(e,t){var n=e.animation,s=void 0===n?"pulse":n,l=e.classes,u=e.className,c=e.component,d=void 0===c?"span":c,f=e.height,p=e.variant,h=void 0===p?"text":p,g=e.width,m=(0,o.Z)(e,["animation","classes","className","component","height","variant","width"]),v=Boolean(m.children);return i.createElement(d,(0,r.Z)({ref:t,className:(0,a.default)(l.root,l[h],u,v&&[l.withChildren,!g&&l.fitContent,!f&&l.heightAuto],!1!==s&&l[s])},m,{style:(0,r.Z)({width:g,height:f},m.style)}))}));const c=(0,l.Z)((function(e){return{root:{display:"block",backgroundColor:(0,s.Fq)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(u)},17694:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67294);const o=(0,n(63786).Z)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},26975:(e,t,n)=>{"use strict";n.d(t,{NU:()=>h,ZP:()=>g,tP:()=>f});var r,o=n(87462),i=n(45987),a=n(67294),s=n(5034),l=n(54013),u=n(60246),c=(0,l.Ue)((0,u.Z)()),d=(0,s.Z)(),f=new Map,p={disableGeneration:!1,generateClassName:d,jss:c,sheetsCache:null,sheetsManager:f,sheetsRegistry:null},h=a.createContext(p);function g(e){var t=e.children,n=e.injectFirst,s=void 0!==n&&n,c=e.disableGeneration,d=void 0!==c&&c,f=(0,i.Z)(e,["children","injectFirst","disableGeneration"]),p=a.useContext(h),g=(0,o.Z)({},p,{disableGeneration:d},f);if(!g.jss.options.insertionPoint&&s&&"undefined"!=typeof window){if(!r){var m=document.head;r=document.createComment("mui-inject-first"),m.insertBefore(r,m.firstChild)}g.jss=(0,l.Ue)({plugins:(0,u.Z)().plugins,insertionPoint:r})}return a.createElement(h.Provider,{value:g},t)}},13457:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(87462),o=n(67294),i=n(83800),a=n(159),s=n(17076);const l=function(e){var t=e.children,n=e.theme,l=(0,a.Z)(),u=o.useMemo((function(){var e=null===l?n:function(e,t){return"function"==typeof t?t(e):(0,r.Z)({},e,t)}(l,n);return null!=e&&(e[s.Z]=null!==l),e}),[n,l]);return o.createElement(i.Z.Provider,{value:u},t)}},17076:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},5034:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(17076),o=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,a=void 0===i?"jss":i,s=e.seed,l=void 0===s?"":s,u=""===l?"":"".concat(l,"-"),c=0,d=function(){return c+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==o.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(u).concat(i,"-").concat(e.key);return t.options.theme[r.Z]&&""===l?"".concat(s,"-").concat(d()):s}return"".concat(u).concat(a).concat(d())}}},93869:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:()=>r})},14894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheets:()=>g,StylesContext:()=>h.NU,StylesProvider:()=>h.ZP,ThemeProvider:()=>O.Z,createGenerateClassName:()=>r.Z,createStyles:()=>o,getThemeProps:()=>i.Z,jssPreset:()=>a.Z,makeStyles:()=>s.Z,mergeClasses:()=>l.Z,sheetsManager:()=>h.tP,styled:()=>E,useTheme:()=>x.Z,withStyles:()=>S.Z,withTheme:()=>C,withThemeCreator:()=>I});var r=n(5034);function o(e){return e}var i=n(93869),a=n(60246),s=n(73914),l=n(65835),u=n(87462),c=n(15671),d=n(43144),f=n(67294),p=n(54013),h=n(26975),g=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.Z)(this,e),this.options=t}return(0,d.Z)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new p.xE;var n=(0,r.Z)();return f.createElement(h.ZP,(0,u.Z)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return f.createElement("style",(0,u.Z)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),m=n(45987),v=n(86010),y=n(8679),b=n.n(y);function w(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function E(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=(0,m.Z)(r,["name"]),a=o,l="function"==typeof t?function(e){return{root:function(n){return t((0,u.Z)({theme:e},n))}}}:{root:t},c=(0,s.Z)(l,(0,u.Z)({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var d=f.forwardRef((function(t,r){var o=t.children,i=t.className,a=t.clone,s=t.component,l=(0,m.Z)(t,["children","className","clone","component"]),d=c(t),p=(0,v.default)(d.root,i),h=l;if(n&&(h=w(h,n)),a)return f.cloneElement(o,(0,u.Z)({className:(0,v.default)(o.props.className,p)},h));if("function"==typeof o)return o((0,u.Z)({className:p},h));var g=s||e;return f.createElement(g,(0,u.Z)({ref:r,className:p},h),o)}));return b()(d,e),d}}var O=n(13457),x=n(159),S=n(38920);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=f.forwardRef((function(n,r){var o=n.innerRef,i=(0,m.Z)(n,["innerRef"]),a=(0,x.Z)()||t;return f.createElement(e,(0,u.Z)({theme:a,ref:o||r},i))}));return b()(n,e),n};return n}const C=I()},60246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Re});var r=n(54013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o;var s=n(87462),l="@global",u="@global ",c=function(){function e(e,t,n){for(var o in this.type="global",this.at=l,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,s.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),d=function(){function e(e,t,n){this.type="global",this.at=l,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(u.length);this.rule=n.jss.createRule(r,t,(0,s.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),f=/\s*,\s*/g;function p(e,t){for(var n=e.split(f),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=/\s*,\s*/g,g=/&/g,m=/\$([\w-]+)/g;const v=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(h),r=e.split(h),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(g,a):a+" "+l}return o}function n(e,t,n){if(n)return(0,s.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,s.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,u=o,c=u.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(a=n(u,c,a),f){var h=t(d,u.selector);l||(l=e(c,i)),h=h.replace(m,l);var g=u.key+"-"+d;"replaceRule"in c?c.replaceRule(g,r[d],(0,s.Z)({},a,{selector:h})):c.addRule(g,r[d],(0,s.Z)({},a,{selector:h}))}else p&&c.addRule(d,{},a).addRule(u.key,r[d],{selector:u.selector});delete r[d]}}return r}}};var y=/[A-Z]/g,b=/^ms-/,w={};function E(e){return"-"+e.toLowerCase()}const O=function(e){if(w.hasOwnProperty(e))return w[e];var t=e.replace(y,E);return w[e]=b.test(t)?"-"+t:t};function x(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:O(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(x):t.fallbacks=x(e.fallbacks)),t}var S=r.HZ&&CSS?CSS.px:"px",I=r.HZ&&CSS?CSS.ms:"ms",C=r.HZ&&CSS?CSS.percent:"%";function _(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var k=_({"animation-delay":I,"animation-duration":I,"background-position":S,"background-position-x":S,"background-position-y":S,"background-size":S,border:S,"border-bottom":S,"border-bottom-left-radius":S,"border-bottom-right-radius":S,"border-bottom-width":S,"border-left":S,"border-left-width":S,"border-radius":S,"border-right":S,"border-right-width":S,"border-top":S,"border-top-left-radius":S,"border-top-right-radius":S,"border-top-width":S,"border-width":S,"border-block":S,"border-block-end":S,"border-block-end-width":S,"border-block-start":S,"border-block-start-width":S,"border-block-width":S,"border-inline":S,"border-inline-end":S,"border-inline-end-width":S,"border-inline-start":S,"border-inline-start-width":S,"border-inline-width":S,"border-start-start-radius":S,"border-start-end-radius":S,"border-end-start-radius":S,"border-end-end-radius":S,margin:S,"margin-bottom":S,"margin-left":S,"margin-right":S,"margin-top":S,"margin-block":S,"margin-block-end":S,"margin-block-start":S,"margin-inline":S,"margin-inline-end":S,"margin-inline-start":S,padding:S,"padding-bottom":S,"padding-left":S,"padding-right":S,"padding-top":S,"padding-block":S,"padding-block-end":S,"padding-block-start":S,"padding-inline":S,"padding-inline-end":S,"padding-inline-start":S,"mask-position-x":S,"mask-position-y":S,"mask-size":S,height:S,width:S,"min-height":S,"max-height":S,"min-width":S,"max-width":S,bottom:S,left:S,top:S,right:S,inset:S,"inset-block":S,"inset-block-end":S,"inset-block-start":S,"inset-inline":S,"inset-inline-end":S,"inset-inline-start":S,"box-shadow":S,"text-shadow":S,"column-gap":S,"column-rule":S,"column-rule-width":S,"column-width":S,"font-size":S,"font-size-delta":S,"letter-spacing":S,"text-decoration-thickness":S,"text-indent":S,"text-stroke":S,"text-stroke-width":S,"word-spacing":S,motion:S,"motion-offset":S,outline:S,"outline-offset":S,"outline-width":S,perspective:S,"perspective-origin-x":C,"perspective-origin-y":C,"transform-origin":C,"transform-origin-x":C,"transform-origin-y":C,"transform-origin-z":C,"transition-delay":I,"transition-duration":I,"vertical-align":S,"flex-basis":S,"shape-margin":S,size:S,gap:S,grid:S,"grid-gap":S,"row-gap":S,"grid-row-gap":S,"grid-column-gap":S,"grid-template-rows":S,"grid-template-columns":S,"grid-auto-rows":S,"grid-auto-columns":S,"box-shadow-x":S,"box-shadow-y":S,"box-shadow-blur":S,"box-shadow-spread":S,"font-line-height":S,"text-shadow-x":S,"text-shadow-y":S,"text-shadow-blur":S});function T(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=T(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=T(o,t[o],n);else for(var i in t)t[i]=T(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||k[e];return!a||0===t&&a===S?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const P=function(e){void 0===e&&(e={});var t=_(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=T(r,e[r],t);return e},onChangeValue:function(e,n){return T(n,e,t)}}};var R=n(33827),A=n(93433),j="",N="",D="",M="",L=R.Z&&"ontouchstart"in document.documentElement;if(R.Z){var Z={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},z=document.createElement("p").style;for(var W in Z)if(W+"Transform"in z){j=W,N=Z[W];break}"Webkit"===j&&"msHyphens"in z&&(j="ms",N=Z.ms,M="edge"),"Webkit"===j&&"-apple-trailing-word"in z&&(D="apple")}var F=j,B=N,U=D,H=M,V=L,G={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===F?"-webkit-"+e:B+e)}},q={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===F?B+"print-"+e:e)}},$=/[-\s]+(.)?/g;function K(e,t){return t?t.toUpperCase():""}function Y(e){return e.replace($,K)}function X(e){return Y("-"+e)}var Q,J={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===F){var n="mask-image";if(Y(n)in t)return e;if(F+X(n)in t)return B+e}return e}},ee={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==U||V?e:B+e)}},te={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:B+e)}},ne={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:B+e)}},re={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===F||"ms"===F&&"edge"!==H?B+e:e)}},oe={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===F||"ms"===F||"apple"===U?B+e:e)}},ie={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===F?"WebkitColumn"+X(e)in t&&B+"column-"+e:"Moz"===F&&"page"+X(e)in t&&"page-"+e)}},ae={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===F)return e;var n=e.replace("-inline","");return F+X(n)in t&&B+n}},se={supportedProperty:function(e,t){return Y(e)in t&&e}},le={supportedProperty:function(e,t){var n=X(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:F+n in t?B+e:"Webkit"!==F&&"Webkit"+n in t&&"-webkit-"+e}},ue={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===F?""+B+e:e)}},ce={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===F?B+"scroll-chaining":e)}},de={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},fe={supportedProperty:function(e,t){var n=de[e];return!!n&&F+X(n)in t&&B+n}},pe={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},he=Object.keys(pe),ge=function(e){return B+e},me={supportedProperty:function(e,t,n){var r=n.multiple;if(he.indexOf(e)>-1){var o=pe[e];if(!Array.isArray(o))return F+X(o)in t&&B+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(F+X(o[0])in t))return!1;return o.map(ge)}return!1}},ve=[G,q,J,ee,te,ne,re,oe,ie,ae,se,le,ue,ce,fe,me],ye=ve.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),be=ve.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,A.Z)(t.noPrefill)),e}),[]),we={};if(R.Z){Q=document.createElement("p");var Ee=window.getComputedStyle(document.documentElement,"");for(var Oe in Ee)isNaN(Oe)||(we[Ee[Oe]]=Ee[Oe]);be.forEach((function(e){return delete we[e]}))}function xe(e,t){if(void 0===t&&(t={}),!Q)return e;if(null!=we[e])return we[e];"transition"!==e&&"transform"!==e||(t[e]=e in Q.style);for(var n=0;n<ye.length&&(we[e]=ye[n](e,Q.style,t),!we[e]);n++);try{Q.style[e]=""}catch(e){return!1}return we[e]}var Se,Ie={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},_e=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ke(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?xe(t):", "+xe(n))||t||n}function Te(e,t){var n=t;if(!Se||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ie[r])return Ie[r];try{Se.style[e]=n}catch(e){return Ie[r]=!1,!1}if(Ce[e])n=n.replace(_e,ke);else if(""===Se.style[e]&&("-ms-flex"===(n=B+n)&&(Se.style[e]="-ms-flexbox"),Se.style[e]=n,""===Se.style[e]))return Ie[r]=!1,!1;return Se.style[e]="",Ie[r]=n,Ie[r]}R.Z&&(Se=document.createElement("p"));const Pe=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=xe(n);a&&a!==n&&(i=!0);var s=!1,l=Te(a,(0,r.EK)(o));l&&l!==o&&(s=!0),(i||s)&&(i&&delete t[n],t[a||n]=l||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===F?e:"@"+B+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,(0,r.EK)(e))||e}}};function Re(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,s=o[a];s&&(o.style=s(e)||{});var l=o[i];if(l)for(var u in l)o.prop(u,l[u](e),r)}},{onCreateRule:function(e,t,n){if(!e)return null;if(e===l)return new c(e,t,n);if("@"===e[0]&&e.substr(0,u.length)===u)return new d(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[l]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,s.Z)({},n,{selector:p(i,e.selector)}));delete r[l]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,l.length)===l){var i=p(o.substr(l.length),e.selector);t.addRule(i,r[o],(0,s.Z)({},n,{selector:i})),delete r[o]}}(e,t))}},v(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=x(e[t]);return e}return x(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=O(t);return t===r?e:(n.prop(r,e),null)}},P(),"undefined"==typeof window?null:Pe(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}},73914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(45987),o=n(87462),i=n(67294),a=n(54013),s=n(65835);const l=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},u=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},c=function(e,t,n){e.get(t).delete(n)};var d=n(159),f=n(26975),p=-1e9;function h(){return p+=1}var g=n(35953);function m(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,g.Z)(s[e],a[e])})),s},options:{}}}const v={};function y(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,s.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function b(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,c=e.stylesCreator,d=e.name;if(!i.disableGeneration){var f=u(i.sheetsManager,c,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},l(i.sheetsManager,c,r,f));var p=(0,o.Z)({},c.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});p.generateId=p.serverGenerateClassName||p.generateClassName;var h=i.sheetsRegistry;if(0===f.refs){var g;i.sheetsCache&&(g=u(i.sheetsCache,c,r));var m=c.create(r,d);g||((g=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},p))).attach(),i.sheetsCache&&l(i.sheetsCache,c,r,g)),h&&h.add(g),f.staticSheet=g,f.dynamicStyles=(0,a._$)(m)}if(f.dynamicStyles){var v=i.jss.createStyleSheet(f.dynamicStyles,(0,o.Z)({link:!0},p));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,s.Z)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),h&&h.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}function w(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function E(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=u(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(c(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function O(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,u=void 0===l?v:l,c=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),p=m(e),g=n||a||"makeStyles";p.options={index:h(),name:n,meta:g,classNamePrefix:g};var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d.Z)()||u,r=(0,o.Z)({},i.useContext(f.NU),c),a=i.useRef(),l=i.useRef();O((function(){var o={name:n,state:{},stylesCreator:p,stylesOptions:r,theme:t};return b(o,e),l.current=!1,a.current=o,function(){E(o)}}),[t,p]),i.useEffect((function(){l.current&&w(a.current,e),l.current=!0}));var h=y(a.current,e.classes,s);return h};return x}},65835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(87462);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(67294).createContext(null)},159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},38920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(87462),o=n(45987),i=n(67294),a=n(8679),s=n.n(a),l=n(73914),u=n(93869),c=n(159);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]),g=p,m=(0,l.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:g},h)),v=i.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,o.Z)(e,["classes","innerRef"]),h=m((0,r.Z)({},n.defaultProps,e)),g=d;return("string"==typeof p||f)&&(s=(0,c.Z)()||a,p&&(g=(0,u.Z)({theme:s,name:p,props:d})),f&&!g.theme&&(g.theme=s)),i.createElement(n,(0,r.Z)({ref:l||t,classes:h},g))}));return s()(v,n),v}}},71410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,k:()=>u});var r=n(93433),o=n(87462),i=n(71002),a=n(19668),s={xs:0,sm:600,md:960,lg:1280,xl:1920},l={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(s[e],"px)")}};function u(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||l;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,i.Z)(t)){var o=e.theme.breakpoints||l;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}const c=function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||l,i=r.keys.reduce((function(n,i){return t[i]&&((n=n||{})[r.up(i)]=e((0,o.Z)({theme:t.theme},t[i]))),n}),null);return(0,a.Z)(n,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat((0,r.Z)(e.filterProps)),t}},13312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{alignContent:()=>M,alignItems:()=>D,alignSelf:()=>F,bgcolor:()=>ie,border:()=>c,borderBottom:()=>p,borderColor:()=>g,borderLeft:()=>h,borderRadius:()=>m,borderRight:()=>f,borderTop:()=>d,borders:()=>v,bottom:()=>de,boxSizing:()=>Se,breakpoints:()=>o.Z,color:()=>oe,compose:()=>l,createUnarySpacing:()=>Ce.h,css:()=>O,display:()=>P,flex:()=>Z,flexBasis:()=>R,flexDirection:()=>A,flexGrow:()=>z,flexShrink:()=>W,flexWrap:()=>j,flexbox:()=>H,fontFamily:()=>_e,fontSize:()=>ke,fontStyle:()=>Te,fontWeight:()=>Pe,grid:()=>re,gridArea:()=>ne,gridAutoColumns:()=>X,gridAutoFlow:()=>Y,gridAutoRows:()=>Q,gridColumn:()=>$,gridColumnGap:()=>G,gridGap:()=>V,gridRow:()=>K,gridRowGap:()=>q,gridTemplateAreas:()=>te,gridTemplateColumns:()=>J,gridTemplateRows:()=>ee,height:()=>be,justifyContent:()=>N,justifyItems:()=>B,justifySelf:()=>U,left:()=>fe,letterSpacing:()=>Re,lineHeight:()=>Ae,maxHeight:()=>we,maxWidth:()=>ve,minHeight:()=>Ee,minWidth:()=>ye,order:()=>L,palette:()=>ae,position:()=>se,positions:()=>pe,right:()=>ce,shadows:()=>he,sizeHeight:()=>xe,sizeWidth:()=>Oe,sizing:()=>Ie,spacing:()=>Ce.Z,style:()=>a,styleFunctionSx:()=>x,textAlign:()=>je,top:()=>ue,typography:()=>Ne,width:()=>me,zIndex:()=>le});var r=n(4942),o=n(71410);function i(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}const a=function(e){var t=e.prop,n=e.cssProperty,a=void 0===n?e.prop:n,s=e.themeKey,l=e.transform,u=function(e){if(null==e[t])return null;var n=e[t],u=i(e.theme,s)||{};return(0,o.k)(e,n,(function(e){var t;return"function"==typeof u?t=u(e):Array.isArray(u)?t=u[e]||e:(t=i(u,e)||e,l&&(t=l(t))),!1===a?t:(0,r.Z)({},a,t)}))};return u.propTypes={},u.filterProps=[t],u};var s=n(19668);const l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?(0,s.Z)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r};function u(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var c=a({prop:"border",themeKey:"borders",transform:u}),d=a({prop:"borderTop",themeKey:"borders",transform:u}),f=a({prop:"borderRight",themeKey:"borders",transform:u}),p=a({prop:"borderBottom",themeKey:"borders",transform:u}),h=a({prop:"borderLeft",themeKey:"borders",transform:u}),g=a({prop:"borderColor",themeKey:"palette"}),m=a({prop:"borderRadius",themeKey:"shape"});const v=l(c,d,f,p,h,g,m);var y=n(93433),b=n(87462);function w(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function E(e){var t=function(t){var n=e(t);return t.css?(0,b.Z)({},(0,s.Z)(n,e((0,b.Z)({theme:t.theme},t.css))),w(t.css,[e.filterProps])):t.sx?(0,b.Z)({},(0,s.Z)(n,e((0,b.Z)({theme:t.theme},t.sx))),w(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,y.Z)(e.filterProps)),t}function O(e){return E(e)}const x=E;var S=a({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),I=a({prop:"display"}),C=a({prop:"overflow"}),_=a({prop:"textOverflow"}),k=a({prop:"visibility"}),T=a({prop:"whiteSpace"});const P=l(S,I,C,_,k,T);var R=a({prop:"flexBasis"}),A=a({prop:"flexDirection"}),j=a({prop:"flexWrap"}),N=a({prop:"justifyContent"}),D=a({prop:"alignItems"}),M=a({prop:"alignContent"}),L=a({prop:"order"}),Z=a({prop:"flex"}),z=a({prop:"flexGrow"}),W=a({prop:"flexShrink"}),F=a({prop:"alignSelf"}),B=a({prop:"justifyItems"}),U=a({prop:"justifySelf"});const H=l(R,A,j,N,D,M,L,Z,z,W,F,B,U);var V=a({prop:"gridGap"}),G=a({prop:"gridColumnGap"}),q=a({prop:"gridRowGap"}),$=a({prop:"gridColumn"}),K=a({prop:"gridRow"}),Y=a({prop:"gridAutoFlow"}),X=a({prop:"gridAutoColumns"}),Q=a({prop:"gridAutoRows"}),J=a({prop:"gridTemplateColumns"}),ee=a({prop:"gridTemplateRows"}),te=a({prop:"gridTemplateAreas"}),ne=a({prop:"gridArea"});const re=l(V,G,q,$,K,Y,X,Q,J,ee,te,ne);var oe=a({prop:"color",themeKey:"palette"}),ie=a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"});const ae=l(oe,ie);var se=a({prop:"position"}),le=a({prop:"zIndex",themeKey:"zIndex"}),ue=a({prop:"top"}),ce=a({prop:"right"}),de=a({prop:"bottom"}),fe=a({prop:"left"});const pe=l(se,le,ue,ce,de,fe),he=a({prop:"boxShadow",themeKey:"shadows"});function ge(e){return e<=1?"".concat(100*e,"%"):e}var me=a({prop:"width",transform:ge}),ve=a({prop:"maxWidth",transform:ge}),ye=a({prop:"minWidth",transform:ge}),be=a({prop:"height",transform:ge}),we=a({prop:"maxHeight",transform:ge}),Ee=a({prop:"minHeight",transform:ge}),Oe=a({prop:"size",cssProperty:"width",transform:ge}),xe=a({prop:"size",cssProperty:"height",transform:ge}),Se=a({prop:"boxSizing"});const Ie=l(me,ve,ye,be,we,Ee,Se);var Ce=n(38681),_e=a({prop:"fontFamily",themeKey:"typography"}),ke=a({prop:"fontSize",themeKey:"typography"}),Te=a({prop:"fontStyle",themeKey:"typography"}),Pe=a({prop:"fontWeight",themeKey:"typography"}),Re=a({prop:"letterSpacing"}),Ae=a({prop:"lineHeight"}),je=a({prop:"textAlign"});const Ne=l(_e,ke,Te,Pe,Re,Ae,je)},19668:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35953);const o=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},38681:(e,t,n)=>{"use strict";n.d(t,{h:()=>p,Z:()=>g});var r,o,i=n(29439),a=n(71410),s=n(19668),l={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(r=function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=(0,i.Z)(t,2),r=n[0],o=n[1],a=l[r],s=u[o]||"";return Array.isArray(s)?s.map((function(e){return a+e})):[a+s]},o={},function(e){return void 0===o[e]&&(o[e]=r(e)),o[e]}),f=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function h(e){var t=p(e.theme);return Object.keys(e).map((function(n){if(-1===f.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(d(n),t),o=e[n];return(0,a.k)(e,o,r)})).reduce(s.Z,{})}h.propTypes={},h.filterProps=f;const g=h},35953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(87462),o=n(71002);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},60288:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},75218:(e,t,n)=>{"use strict";function r(e,t){return function(){return null}}n.r(t),n.d(t,{HTMLElementType:()=>b,chainPropTypes:()=>r,deepmerge:()=>o.Z,elementAcceptingRef:()=>l,elementTypeAcceptingRef:()=>u,exactProp:()=>c,formatMuiErrorMessage:()=>d.Z,getDisplayName:()=>y,ponyfillGlobal:()=>w,refType:()=>E});var o=n(35953),i=n(45697),a=n.n(i),s=(a().element,function(){return null});s.isRequired=(a().element.isRequired,function(){return null});const l=s,u=(i.elementType,function(){return null});function c(e){return e}n(4942),n(87462);var d=n(60288),f=n(71002),p=n(59864),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function g(e){var t="".concat(e).match(h);return t&&t[1]||""}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||g(e)||t}function v(e,t,n){var r=m(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function y(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return m(e,"Component");if("object"===(0,f.Z)(e))switch(e.$$typeof){case p.ForwardRef:return v(e,e.render,"ForwardRef");case p.Memo:return v(e,e.type,"memo");default:return}}}function b(e,t,n,r,o){return null}const w="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E=a().oneOfType([a().func,a().object])},28195:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,{k:()=>r})},15047:(e,t,n)=>{"use strict";function r(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}n.d(t,{w:()=>r})},9361:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>O});var r,o=n(67294),i=n(73935),a=/^-?\d*\.?\d+(px|%)$/;function s(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length?e.some((function(n,r){return s(e[r],t[r])})):e!==t}var l=(r=Object.prototype).hasOwnProperty,u=r.toString;function c(e){return e&&l.call(e,"ref")}var d=new Map;function f(e,t){var n=d.get(e);if(n)for(var r=n.values(),o=void 0;o=r.next().value;)if(o.target===t.target)return o;return null}function p(e,t){for(var n=0;n<e.length;n++){var r=f(t,e[n]);r&&r.handleChange(e[n])}}function h(e){var t=function(e){void 0===e&&(e={});for(var t,n=e.root||null,r=function(e){var t=(e?e.trim():"0px").split(/\s+/).map((function(e){if(!a.test(e))throw new Error("rootMargin must be a string literal containing pixels and/or percent values");return e})),n=t.shift(),r=t[0],o=void 0===r?n:r,i=t[1],s=void 0===i?n:i,l=t[2];return n+" "+o+" "+s+" "+(void 0===l?o:l)}(e.rootMargin),o=Array.isArray(e.threshold)?e.threshold:[null!=e.threshold?e.threshold:0],i=d.keys();t=i.next().value;)if(n===t.root&&r===t.rootMargin&&!s(o,t.thresholds))return t;return null}(e);if(t)return t;var n=new IntersectionObserver(p,e);return d.set(n,new Set),n}function g(e){var t;e.observer&&!d.has(e.observer)&&d.set(e.observer,new Set),null===(t=d.get(e.observer))||void 0===t||t.add(e),e.observer.observe(e.target)}function m(e,t){if(d.has(e.observer)){var n=d.get(e.observer);(null==n?void 0:n.delete(e))&&(n.size>0?e.observer.unobserve(t):(e.observer.disconnect(),d.delete(e.observer)))}}var v,y=(v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)},function(e,t){function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=["root","rootMargin","threshold"],w=["root","rootMargin","threshold","disabled"],E=function(e){return b.reduce((function(t,n){var r,o="root"===n&&"[object String]"===u.call(e.root);return Object.assign(t,((r={})[n]=o?document.querySelector(e[n]):e[n],r))}),{})};const O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleChange=function(e){t.props.onChange(e,t.externalUnobserve)},t.handleNode=function(e){var n=t.props.children;if(c(n)){var r=n.ref;"function"==typeof r?r(e):r&&l.call(r,"current")&&(r.current=e)}if(t.targetNode=void 0,e){var o=(0,i.findDOMNode)(e);o&&1===o.nodeType&&(t.targetNode=o)}},t.observe=function(){if(null==t.props.children||t.props.disabled)return!1;if(!t.targetNode)throw new Error("ReactIntersectionObserver: Can't find DOM node in the provided children. Make sure to render at least one DOM node in the tree.");return t.observer=h(E(t.props)),t.target=t.targetNode,g(t),!0},t.unobserve=function(e){m(t,e)},t.externalUnobserve=function(){t.targetNode&&t.unobserve(t.targetNode)},t}return y(t,e),t.prototype.getSnapshotBeforeUpdate=function(e){var t=this;this.prevTargetNode=this.targetNode;var n=w.some((function(n){return s(t.props[n],e[n])}));return n&&this.prevTargetNode&&(e.disabled||this.unobserve(this.prevTargetNode)),n},t.prototype.componentDidUpdate=function(e,t,n){var r=!1;n||(r=this.prevTargetNode!==this.targetNode)&&null!=this.prevTargetNode&&this.unobserve(this.prevTargetNode),(n||r)&&this.observe()},t.prototype.componentDidMount=function(){this.observe()},t.prototype.componentWillUnmount=function(){this.targetNode&&this.unobserve(this.targetNode)},t.prototype.render=function(){var e=this.props.children;return null!=e?o.cloneElement(o.Children.only(e),{ref:this.handleNode}):null},t.displayName="IntersectionObserver",t}(o.Component)},98129:(e,t,n)=>{"use strict";var r=n(60690);function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++)(0,o[i])()},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=o(),l=!1;function u(){for(l=!0;s.size();){var e=s;s=o(),e.process()}l=!1}function c(){a=setTimeout(u,0)}return{add:function(e,t){!l&&i&&n&&0===s.size()&&c(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?c():u())}}}},60690:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}},94184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},86010:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{clsx:()=>o,default:()=>i});const i=o},85426:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8081),o=n.n(r),i=n(23645),a=n.n(i)()(o());a.push([e.id,'.MuiTypography-body1 span {\n padding-left: 0;\n}\n\nh5[id$="-related-heading"] {\n display: none;\n visibility: hidden;\n}\n\n.MuiToolbar-root.mirador-companion-window-header {\n opacity: 0.5;\n display: none;\n}\n\n.mirador-osd-info {\n background-color: rgb(22 22 22);\n padding: 5px;\n}\n\n.mirador-thumbnail-nav-canvas img ~ div {\n background: transparent;\n}\n\n.mirador-thumbnail-nav-canvas .MuiTypography-caption {\n background-color: rgb(62 61 61);\n padding: 5px;\n border-radius: 50%;\n min-width: 1rem;\n display: inline-block;\n text-align: center;\n}\n\n.mosaic-root {\n top: 0 !important;\n left: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n}\n\n.mosaic-tile {\n margin: 0 !important;\n}\n',""]);const s=a},23645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;e.exports=l},88460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HTML5DragTransition:()=>i,MouseTransition:()=>a,MultiBackend:()=>c,PreviewList:()=>l,TouchTransition:()=>o,createTransition:()=>r,default:()=>d});const r=function(e,t){return{_isMBTransition:!0,event:e,check:t}};var o=r("touchstart",(function(e){return null!=e.touches})),i=r("dragstart",(function(e){return!!e.type&&(-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop"))})),a=r("mousedown",(function(e){return!!e.type&&-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")}));function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){t.previews.push(e)},this.unregister=function(e){for(var n;-1!==(n=t.previews.indexOf(e));)t.previews.splice(n,1)},this.backendChanged=function(e){var n,r=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(t.previews);try{for(r.s();!(n=r.n()).done;)n.value.backendChanged(e)}catch(e){r.e(e)}finally{r.f()}},this.previews=[]};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setup=function(){if("undefined"!=typeof window){if(o.constructor.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");o.constructor.isSetUp=!0,o.addEventListeners(window),o.backends[o.current].instance.setup()}},this.teardown=function(){"undefined"!=typeof window&&(o.constructor.isSetUp=!1,o.removeEventListeners(window),o.backends[o.current].instance.teardown())},this.connectDragSource=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDragSource",t)},this.connectDragPreview=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDragPreview",t)},this.connectDropTarget=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.connectBackend("connectDropTarget",t)},this.previewEnabled=function(){return o.backends[o.current].preview},this.addEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.addEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.removeEventListeners=function(e){o.backends.forEach((function(t){t.transition&&e.removeEventListener(t.transition.event,o.backendSwitcher,!0)}))},this.backendSwitcher=function(e){var t=o.current,n=0;if(o.backends.some((function(t){return n!==o.current&&t.transition&&t.transition.check(e)?(o.current=n,!0):(n+=1,!1)})),o.current!==t){o.backends[t].instance.teardown(),Object.keys(o.nodes).forEach((function(e){var t=o.nodes[e];t.handler(),t.handler=o.callBackend(t.func,t.args)})),o.previews.backendChanged(o);var r=o.backends[o.current];if(r.instance.setup(),r.skipDispatchOnTransition)return;var i=null;try{i=new e.constructor(e.type,e)}catch(t){(i=document.createEvent("Event")).initEvent(e.type,e.bubbles,e.cancelable)}e.target.dispatchEvent(i)}},this.callBackend=function(e,t){var n,r;return(n=o.backends[o.current].instance)[e].apply(n,function(e){if(Array.isArray(e))return u(e)}(r=t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},this.connectBackend=function(e,t){var n="".concat(e,"_").concat(t[0]),r=o.callBackend(e,t);return o.nodes[n]={func:e,args:t,handler:r},function(){var e,t=(e=o.nodes[n]).handler.apply(e,arguments);return delete o.nodes[n],t}};var i=Object.assign({backends:[]},r||{});if(i.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");this.current=0,this.previews=new l,this.backends=[],i.backends.forEach((function(e){if(!e.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(e));var r=e.transition;if(r&&!r._isMBTransition)throw new Error("You must specify a valid 'transition' property (either undefined or the return of 'createTransition') in your Backend entry: ".concat(e));o.backends.push({instance:e.backend(t,n,e.options),preview:e.preview||!1,transition:r,skipDispatchOnTransition:Boolean(e.skipDispatchOnTransition)})})),this.nodes={}};const d=function(e,t,n){return new c(e,t,n)}},27856:function(e){e.exports=function(){"use strict";function e(t){return e="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(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,l=Object.isFrozen,u=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,d=Object.freeze,f=Object.seal,p=Object.create,h="undefined"!=typeof Reflect&&Reflect,g=h.apply,m=h.construct;g||(g=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),f||(f=function(e){return e}),m||(m=function(e,t){return r(e,o(t))});var v,y=T(Array.prototype.forEach),b=T(Array.prototype.pop),w=T(Array.prototype.push),E=T(String.prototype.toLowerCase),O=T(String.prototype.toString),x=T(String.prototype.match),S=T(String.prototype.replace),I=T(String.prototype.indexOf),C=T(String.prototype.trim),_=T(RegExp.prototype.test),k=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(v,t)});function T(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return g(e,t,r)}}function P(e,t,n){n=n||E,s&&s(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(l(t)||(t[r]=i),o=i)}e[o]=!0}return e}function R(e){var t,n=p(null);for(t in e)!0===g(a,e,[t])&&(n[t]=e[t]);return n}function A(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}e=u(e)}return function(e){return console.warn("fallback value for",e),null}}var j=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=d(["#text"]),W=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),F=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=f(/<%[\w\W]*|[\w\W]*%>/gm),G=f(/\${[\w\W]*}/gm),q=f(/^data-[\-\w.\u00B7-\uFFFF]/),$=f(/^aria-[\-\w]+$/),K=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=f(/^(?:\w+script|data):/i),X=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=f(/^html$/i),J=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(e){return t(e)};if(r.version="2.4.5",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,l=n.HTMLTemplateElement,u=n.Node,c=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,g=n.HTMLFormElement,m=n.DOMParser,v=n.trustedTypes,T=c.prototype,te=A(T,"cloneNode"),ne=A(T,"nextSibling"),re=A(T,"childNodes"),oe=A(T,"parentNode");if("function"==typeof l){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=ee(v,i),se=ae?ae.createHTML(""):"",le=a,ue=le.implementation,ce=le.createNodeIterator,de=le.createDocumentFragment,fe=le.getElementsByTagName,pe=i.importNode,he={};try{he=R(a).documentMode?a.documentMode:{}}catch(e){}var ge={};r.isSupported="function"==typeof oe&&ue&&void 0!==ue.createHTMLDocument&&9!==he;var me,ve,ye=H,be=V,we=G,Ee=q,Oe=$,xe=Y,Se=X,Ie=K,Ce=null,_e=P({},[].concat(o(j),o(N),o(D),o(L),o(z))),ke=null,Te=P({},[].concat(o(W),o(F),o(B),o(U))),Pe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,Ae=null,je=!0,Ne=!0,De=!1,Me=!0,Le=!1,Ze=!1,ze=!1,We=!1,Fe=!1,Be=!1,Ue=!1,He=!0,Ve=!1,Ge="user-content-",qe=!0,$e=!1,Ke={},Ye=null,Xe=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,Je=P({},["audio","video","img","source","image","track"]),et=null,tt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",it=ot,at=!1,st=null,lt=P({},[nt,rt,ot],O),ut=["application/xhtml+xml","text/html"],ct="text/html",dt=null,ft=a.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=R(t),me=me=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===me?O:E,Ce="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,ve):_e,ke="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,ve):Te,st="ALLOWED_NAMESPACES"in t?P({},t.ALLOWED_NAMESPACES,O):lt,et="ADD_URI_SAFE_ATTR"in t?P(R(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Qe="ADD_DATA_URI_TAGS"in t?P(R(Je),t.ADD_DATA_URI_TAGS,ve):Je,Ye="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,ve):Xe,Re="FORBID_TAGS"in t?P({},t.FORBID_TAGS,ve):{},Ae="FORBID_ATTR"in t?P({},t.FORBID_ATTR,ve):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,De=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Le=t.SAFE_FOR_TEMPLATES||!1,Ze=t.WHOLE_DOCUMENT||!1,Fe=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,We=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,qe=!1!==t.KEEP_CONTENT,$e=t.IN_PLACE||!1,Ie=t.ALLOWED_URI_REGEXP||Ie,it=t.NAMESPACE||ot,Pe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ne=!1),Be&&(Fe=!0),Ke&&(Ce=P({},o(z)),ke=[],!0===Ke.html&&(P(Ce,j),P(ke,W)),!0===Ke.svg&&(P(Ce,N),P(ke,F),P(ke,U)),!0===Ke.svgFilters&&(P(Ce,D),P(ke,F),P(ke,U)),!0===Ke.mathMl&&(P(Ce,L),P(ke,B),P(ke,U))),t.ADD_TAGS&&(Ce===_e&&(Ce=R(Ce)),P(Ce,t.ADD_TAGS,ve)),t.ADD_ATTR&&(ke===Te&&(ke=R(ke)),P(ke,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&P(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ye===Xe&&(Ye=R(Ye)),P(Ye,t.FORBID_CONTENTS,ve)),qe&&(Ce["#text"]=!0),Ze&&P(Ce,["html","head","body"]),Ce.table&&(P(Ce,["tbody"]),delete Re.tbody),d&&d(t),dt=t)},gt=P({},["mi","mo","mn","ms","mtext"]),mt=P({},["foreignobject","desc","title","annotation-xml"]),vt=P({},["title","style","font","a","script"]),yt=P({},N);P(yt,D),P(yt,M);var bt=P({},L);P(bt,Z);var wt=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||gt[r]):Boolean(yt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&mt[r]:Boolean(bt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!mt[r])&&!(t.namespaceURI===nt&&!gt[r])&&!bt[n]&&(vt[n]||!yt[n]):!("application/xhtml+xml"!==me||!st[e.namespaceURI]))},Et=function(e){w(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Ot=function(e,t){try{w(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Fe||Be)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){var t,n;if(We)e="<remove></remove>"+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(it===ot)try{t=(new m).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),it===ot?fe.call(t,Ze?"html":"body")[0]:Ze?t.documentElement:i},St=function(e){return ce.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},It=function(e){return e instanceof g&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){ge[e]&&y(ge[e],(function(e){e.call(r,t,n,dt)}))},kt=function(e){var t;if(_t("beforeSanitizeElements",e,null),It(e))return Et(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var n=ve(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===n&&_(/<template/i,e.innerHTML))return Et(e),!0;if(!Ce[n]||Re[n]){if(!Re[n]&&Pt(n)){if(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,n))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))return!1}if(qe&&!Ye[n]){var o=oe(e)||e.parentNode,i=re(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(te(i[a],!0),ne(e))}return Et(e),!0}return e instanceof c&&!wt(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n||!_(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=S(t,ye," "),t=S(t,be," "),t=S(t,we," "),e.textContent!==t&&(w(r.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(Et(e),!0)},Tt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in a||n in ft))return!1;if(Ne&&!Ae[t]&&_(Ee,t));else if(je&&_(Oe,t));else if(!ke[t]||Ae[t]){if(!(Pt(e)&&(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&_(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||"is"===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,n)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))))return!1}else if(et[t]);else if(_(Ie,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==I(n,"data:")||!Qe[e])if(De&&!_(xe,S(n,Se,"")));else if(n)return!1;return!0},Pt=function(e){return e.indexOf("-")>0},Rt=function(t){var n,o,i,a;_t("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=s.length;a--;){var u=n=s[a],c=u.name,d=u.namespaceURI;if(o="value"===c?n.value:C(n.value),i=ve(c),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(Ot(c,t),l.keepAttr))if(Me||!_(/\/>/i,o)){Le&&(o=S(o,ye," "),o=S(o,be," "),o=S(o,we," "));var f=ve(t.nodeName);if(Tt(f,i,o)){if(!Ve||"id"!==i&&"name"!==i||(Ot(c,t),o=Ge+o),ae&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(f,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{d?t.setAttributeNS(d,c,o):t.setAttribute(c,o),b(r.removed)}catch(e){}}}else Ot(c,t)}_t("afterSanitizeAttributes",t,null)}},At=function e(t){var n,r=St(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof s&&e(n.content),Rt(n));_t("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t){var o,a,l,c,d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((at=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ct(t)){if("function"!=typeof t.toString)throw k("toString is not a function");if("string"!=typeof(t=t.toString()))throw k("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Ct(t))return n.toStaticHTML(t.outerHTML)}return t}if(ze||ht(f),r.removed=[],"string"==typeof t&&($e=!1),$e){if(t.nodeName){var p=ve(t.nodeName);if(!Ce[p]||Re[p])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(a=(o=xt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Fe&&!Le&&!Ze&&-1===t.indexOf("<"))return ae&&Ue?ae.createHTML(t):t;if(!(o=xt(t)))return Fe?null:Ue?se:""}o&&We&&Et(o.firstChild);for(var h=St($e?t:o);l=h.nextNode();)3===l.nodeType&&l===c||kt(l)||(l.content instanceof s&&At(l.content),Rt(l),c=l);if(c=null,$e)return t;if(Fe){if(Be)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(ke.shadowroot||ke.shadowrootmod)&&(d=pe.call(i,d,!0)),d}var g=Ze?o.outerHTML:o.innerHTML;return Ze&&Ce["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&_(Q,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),Le&&(g=S(g,ye," "),g=S(g,be," "),g=S(g,we," ")),ae&&Ue?ae.createHTML(g):g},r.setConfig=function(e){ht(e),ze=!0},r.clearConfig=function(){dt=null,ze=!1},r.isValidAttribute=function(e,t,n){dt||ht({});var r=ve(e),o=ve(t);return Tt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],w(ge[e],t))},r.removeHook=function(e){if(ge[e])return b(ge[e])},r.removeHooks=function(e){ge[e]&&(ge[e]=[])},r.removeAllHooks=function(){ge={}},r}()}()},2268:e=>{"use strict";var t=e.exports={};t.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},t.isLegacyOpera=function(){return!!window.opera}},17900:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},58229:(e,t,n)=>{"use strict";var r=n(2268);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function a(e){return o(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,r.isIE(8)?s(a):function(a,s){var l=i(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(a),d=a.offsetWidth,f=a.offsetHeight;function p(){function n(){if("static"===c.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,o){var i=r[o];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+o+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",e.important?"important":""))};n(t,a,c,"top"),n(t,a,c,"right"),n(t,a,c,"bottom"),n(t,a,c,"left")}}""!==c.position&&(n(),u=!0);var i=document.createElement("object");i.style.cssText=l,i.tabIndex=-1,i.type="text/html",i.setAttribute("aria-hidden","true"),i.onload=function(){u||n(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},r.isIE()||(i.data="about:blank"),o(a)&&(a.appendChild(i),o(a).object=i,r.isIE()&&(i.data="about:blank"))}o(a).startSize={width:d,height:f},n?n.add(p):p()}(a,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var i=a(e);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=a(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},60787:(e,t,n)=>{"use strict";var r=n(17900).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=document.createElement("div");e.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),s="erd_scroll_detection_container";function l(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",o+=".erd_scroll_detection_container_animation_active { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function u(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function c(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function d(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function f(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,d){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function g(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(h("storeStyle invoked."),o(l)){var e=m();o(l).style=e}else h("Aborting because element has been uninstalled")}function y(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function b(){return 2*a.width+1}function w(){return 2*a.height+1}function E(e){return e+10+b()}function O(e){return e+10+w()}function x(e,t,n){var r=f(e),o=p(e),i=E(t),a=O(n),s=function(e){return 2*e+b()}(t),l=function(e){return 2*e+w()}(n);r.scrollLeft=i,r.scrollTop=a,o.scrollLeft=s,o.scrollTop=l}function S(){var e=o(l).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e);var t=function(){o(l).onRendered&&o(l).onRendered()};c(e,"animationstart",t),o(l).onAnimationStart=t}return e}function I(){if(h("Injecting elements"),o(l)){!function(){var n=o(l).style;if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,l,n,"top"),r(t,l,n,"right"),r(t,l,n,"bottom"),r(t,l,n,"left")}}();var n=o(l).container;n||(n=S());var r,i,d,f,p=a.width,g=a.height,m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(i=(i=-(1+g))?i+"px":"0"),"right: "+(f=(f=-p)?f+"px":"0"),"bottom: "+(d=(d=-g)?d+"px":"0")])),y=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=u(["position: absolute","left: 0","top: 0"]),E=u(["position: absolute","width: 200%","height: 200%"]),O=document.createElement("div"),x=document.createElement("div"),I=document.createElement("div"),C=document.createElement("div"),_=document.createElement("div"),k=document.createElement("div");O.dir="ltr",O.style.cssText=m,O.className=s,x.className=s,x.style.cssText=v,I.style.cssText=y,C.style.cssText=w,_.style.cssText=b,k.style.cssText=E,I.appendChild(C),_.appendChild(k),x.appendChild(I),x.appendChild(_),O.appendChild(x),n.appendChild(O),c(I,"scroll",T),c(_,"scroll",P),o(l).onExpandScroll=T,o(l).onShrinkScroll=P}else h("Aborting because element has been uninstalled");function T(){var e=o(l);e&&e.onExpand?e.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function P(){var e=o(l);e&&e.onShrink?e.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function C(){function a(t,n,r){var o=function(e){return f(e).childNodes[0]}(t),i=E(n),a=O(r);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",a+"px",e.important?"important":"")}function s(r){var s=l.offsetWidth,c=l.offsetHeight,d=s!==o(l).lastWidth||c!==o(l).lastHeight;h("Storing current size",s,c),y(l,s,c),n.add(0,(function(){if(d)if(o(l))if(u()){if(e.debug){var n=l.offsetWidth,r=l.offsetHeight;n===s&&r===c||t.warn(i.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){o(l)?u()?x(l,s,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&r&&n.add(2,(function(){o(l)?u()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function u(){return!!o(l).container}function c(){h("notifyListenersIfNeeded invoked");var e=o(l);return void 0===o(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(l).listeners,(function(e){e(l)})))}function d(){h("Scroll detected."),g(l)?h("Scroll event fired while unrendered. Ignoring..."):s(c)}if(h("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(h("startanimation triggered."),g(l))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=f(l),t=p(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),s(c))}},o(l).onExpand=d,o(l).onShrink=d;var m=o(l).style;a(l,m.width,m.height)}else h("Aborting because element has been uninstalled")}function _(){if(h("finalizeDomMutation invoked."),o(l)){var e=o(l).style;y(l,e.width,e.height),x(l,e.width,e.height)}else h("Aborting because element has been uninstalled")}function k(){d(l)}function T(){var e;h("Installing..."),o(l).listeners=[],e=m(),o(l).startSize={width:e.width,height:e.height},h("Element start size",o(l).startSize),n.add(0,v),n.add(1,I),n.add(2,C),n.add(3,_),n.add(4,k)}d||(d=l,l=e,e=null),e=e||{},h("Making detectable..."),function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?(h("Element is detached"),S(),h("Waiting until element is attached..."),o(l).onRendered=function(){h("Element is now attached"),T()}):T()},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&d(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&d(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&d(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},63844:(e,t,n)=>{"use strict";var r=n(17900).forEach,o=n(68452),i=n(96199),a=n(75805),s=n(79799),l=n(71724),u=n(2268),c=n(98129),d=n(21931),f=n(58229),p=n(60787);function h(e){return Array.isArray(e)||void 0!==e.length}function g(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:d});t=y}var b=e.reporter;b||(b=l(!1===b));var w=v(e,"batchProcessor",c({reporter:b})),E={};E.callOnAdd=!!v(e,"callOnAdd",!0),E.debug=!!v(e,"debug",!1);var O,x=i(t),S=o({stateHandler:d}),I=v(e,"strategy","object"),C=v(e,"important",!1),_={reporter:b,batchProcessor:w,stateHandler:d,idHandler:t,important:C};if("scroll"===I&&(u.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),I="object"):u.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),I="object")),"scroll"===I)O=p(_);else{if("object"!==I)throw new Error("Invalid strategy name: "+I);O=f(_)}var k={};return{listenTo:function(e,n,o){function i(e){var t=x.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){x.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(m(n))n=[n];else{if(!h(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=v(e,"callOnAdd",E.callOnAdd),u=v(e,"onReady",(function(){})),c=v(e,"debug",E.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var f=t.get(e);if(c&&b.log("Attaching listener to element",f,e),!S.isDetectable(e))return c&&b.log(f,"Not detectable."),S.isBusy(e)?(c&&b.log(f,"System busy making it detectable"),a(l,e,o),k[f]=k[f]||[],void k[f].push((function(){++s===n.length&&u()}))):(c&&b.log(f,"Making detectable..."),S.markBusy(e,!0),O.makeDetectable({debug:c,important:C},e,(function(e){if(c&&b.log(f,"onElementDetectable"),d.getState(e)){S.markAsDetectable(e),S.markBusy(e,!1),O.addListener(e,i),a(l,e,o);var t=d.getState(e);if(t&&t.startSize){var p=e.offsetWidth,h=e.offsetHeight;t.startSize.width===p&&t.startSize.height===h||i(e)}k[f]&&r(k[f],(function(e){e()}))}else c&&b.log(f,"Element uninstalled before being detectable.");delete k[f],++s===n.length&&u()})));c&&b.log(f,"Already detecable, adding listener."),a(l,e,o),s++})),s===n.length&&u()},removeListener:x.removeListener,removeAllListeners:x.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(m(e))e=[e];else{if(!h(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=g(e)}r(e,(function(e){x.removeAllListeners(e),O.uninstall(e),d.cleanState(e)}))},initDocument:function(e){O.initDocument&&O.initDocument(e)}}}},68452:e=>{"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},75805:e=>{"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},79799:e=>{"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},96199:e=>{"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},71724:e=>{"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},21931:e=>{"use strict";function t(e){return e._erd}e.exports={initState:function(e){return e._erd={},t(e)},getState:t,cleanState:function(e){delete e._erd}}},53316:e=>{function t(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function r(e,t,n,r,o){return n.bind(t,e,r,o)}function o(e,o){return r(e,this,1===e.length?t:n,o.cache.create(),o.serializer)}function i(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},22007:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},o=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],i=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],a=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],s="undefined"!=typeof window&&void 0!==window.document?window.document:{},l="fullscreenEnabled"in s&&Object.keys(r)||o[0]in s&&o||i[0]in s&&i||a[0]in s&&a||[];const u={requestFullscreen:function(e){return e[l[r.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[l[r.requestFullscreen]]},get exitFullscreen(){return s[l[r.exitFullscreen]].bind(s)},get fullscreenPseudoClass(){return":"+l[r.fullscreen]},addEventListener:function(e,t,n){return s.addEventListener(l[r[e]],t,n)},removeEventListener:function(e,t,n){return s.removeEventListener(l[r[e]],t,n)},get fullscreenEnabled(){return Boolean(s[l[r.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return s[l[r.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return s[("on"+l[r.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return s[("on"+l[r.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return s[("on"+l[r.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return s[("on"+l[r.fullscreenerror]).toLowerCase()]=e}}},8679:(e,t,n)=>{"use strict";var r=n(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},96103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function O(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||E(e)===c},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},21296:(e,t,n)=>{"use strict";e.exports=n(96103)},66337:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[],n=null,r=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?c(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},i._resetCrossOriginUpdater=function(){n=null,r=null},i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,i=null;if(this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(a(n,"resize",r,!0),a(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(i=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),s(e,"resize",r,!0)),s(t,"scroll",r,!0),i&&i.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var l=p(t);l&&this._monitorIntersections(l.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e,o=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=p(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}));if(!o){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=r){var a=p(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,a=l(i),s=this._rootContainsTarget(i),u=r.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,a,t),d=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n&&!this.root?null:t,intersectionRect:c});u?e&&s?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,u,d,p,h,g,m,v=o,y=f(t),b=!1;!b&&y;){var w=null,E=1==y.nodeType?window.getComputedStyle(y):{};if("none"==E.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,w=null,v=null):w=r:w=i;else{var O=f(y),x=O&&l(O),S=O&&this._computeTargetAndRootIntersection(O,x,i);x&&S?(y=O,w=c(x,S)):(y=null,v=null)}else{var I=y.ownerDocument;y!=I.body&&y!=I.documentElement&&"visible"!=E.overflow&&(w=l(y))}if(w&&(a=w,s=v,void 0,void 0,void 0,void 0,void 0,void 0,u=Math.max(a.top,s.top),d=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),m=d-u,v=(g=(h=Math.min(a.right,s.right))-p)>=0&&m>=0&&{top:u,bottom:d,left:p,right:h,width:g,height:m}||null),!v)break;y=y&&f(y)}return v}},i.prototype._getRootRect=function(){var t;if(this.root)t=l(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){return d(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=o}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=u(e.rootBounds),this.boundingClientRect=u(e.boundingClientRect),this.intersectionRect=u(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,r,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function l(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function c(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?p(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function p(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}}()},41143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},33827:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r="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};const o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType},80204:(e,t,n)=>{e.exports=self.fetch||(self.fetch=n(25869).default||n(25869))},45448:(e,t,n)=>{"use strict";var r=n(85658),o=r.default||r;t.Z=function(e){var t=void 0===e?{}:e,n=t.enabled,r=void 0===n||n,i=t.opt,a=void 0===i?"out":i;return{onProcessStyle:function(e,t,n){if("font-face"===t.type)return e;if(!r)return"boolean"==typeof e.flip&&delete e.flip,e;var i="out"===a;return"boolean"==typeof n.options.flip&&(i=n.options.flip),"boolean"==typeof e.flip&&(i=e.flip,delete e.flip),i?o("function"==typeof t.toJSON?t.toJSON():e):e}}}},54013:(e,t,n)=>{"use strict";n.d(t,{EK:()=>p,HZ:()=>me,JH:()=>d,RB:()=>$,Ue:()=>ge,_$:()=>ve,xE:()=>X});var r=n(87462),o=n(33827),i=n(43144),a=n(94578),s=n(97326),l=n(63366),u={}.constructor;function c(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(c);if(e.constructor!==u)return e;var t={};for(var n in e)t[n]=c(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=c(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},p=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=f(e[n]," ");else t=f(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function h(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function g(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function m(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=h(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var m=d[f];null!=m&&(r&&(r+=l),r+=g(f+":"+u+p(m)+";",i))}}else for(var v in a){var y=a[v];null!=y&&(r&&(r+=l),r+=g(v+":"+u+p(y)+";",i))}for(var b in t){var w=t[b];null!=w&&"fallbacks"!==b&&(r&&(r+=l),r+=g(b+":"+u+p(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),g(""+e+u+"{"+r,--i)+g("}",i)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,y="undefined"!=typeof CSS&&CSS.escape,b=function(e){return y?y(e):e.replace(v,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),E=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u((0,s.Z)((0,s.Z)(o)),l),o.selectorText="."+b(o.id)),o}(0,a.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return m(this.selectorText,this.style,n)},(0,i.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(w),O={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new E(e,t,n)}},x={indent:1,children:!0},S=/@([\w-]+)/,I=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(S);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $((0,r.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=x);var t=h(e).linebreak;if(null==e.indent&&(e.indent=x.indent),null==e.children&&(e.children=x.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),C=/@container|@media|@supports\s+/,_={onCreateRule:function(e,t,n){return C.test(e)?new I(e,t,n):null}},k={indent:1,children:!0},T=/@keyframes\s+([\w-]+)/,P=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(T);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:b(s(this,a)),this.rules=new $((0,r.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=k);var t=h(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),R=/@keyframes\s+/,A=/\$([\w-]+)/g,j=function(e,t){return"string"==typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},N=function(e,t,n){var r=e[t],o=j(r,n);o!==r&&(e[t]=o)},D={onCreateRule:function(e,t,n){return"string"==typeof e&&R.test(e)?new P(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&N(e,"animation-name",n.keyframes),"animation"in e&&N(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return j(e,r.keyframes);default:return e}}},M=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return m(this.key,this.style,n)},t}(w),L={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new M(e,t,n):null}},Z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=m(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return m(this.at,this.style,e)},e}(),z=/@font-face/,W={onCreateRule:function(e,t,n){return z.test(e)?new Z(e,t,n):null}},F=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return m(this.key,this.style,e)},e}(),B={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new F(e,t,n):null}},U=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),H={"@charset":!0,"@import":!0,"@namespace":!0},V=[O,_,D,L,W,B,{onCreateRule:function(e,t,n){return e in H?new U(e,t,n):null}}],G={process:!0},q={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,l=o.Renderer,u=o.generateId,c=o.scoped,f=(0,r.Z)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(f.selector="."+b(this.classes[p]));var h=d(p,t,f);if(!h)return null;this.register(h);var g=void 0===f.index?this.index.length:f.index;return this.index.splice(g,0,h),h},t.replace=function(e,t,n){var o=this.get(e),i=this.index.indexOf(o);o&&this.remove(o);var a=n;return-1!==i&&(a=(0,r.Z)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof E?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof P&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof E?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof P&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=G);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,q)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=h(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),K=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Y=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),X=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,l.Z)(t,["attached"]),o=h(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},(0,i.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Q=new X,J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==J[ee]&&(J[ee]=0);var te=J[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+te+o+t:i+n.key+"-"+te+(o?"-"+o:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},oe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=p(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},le=re((function(){return document.querySelector("head")}));var ue=re((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ce=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fe=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ie,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=ue();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Q.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=le(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else le().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=de(n,t);if(!1===(o=ce(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=de(n,t),l=ce(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof K&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,he=function(){function e(e){this.id=pe++,this.version="10.10.0",this.plugins=new Y,this.options={id:{minify:!1},createGenerateId:ne,Renderer:o.Z?fe:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<V.length;t++)this.plugins.use(V[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Q.index?0:Q.index+1);var o=new K(e,(0,r.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),Q.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var o=(0,r.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=d(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),ge=function(e){return new he(e)},me="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ve(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=ve(r);i&&(t||(t={}),t[n]=i)}}return t}ge()},18552:(e,t,n)=>{var r=n(10852)(n(55639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(51789),o=n(80401),i=n(57667),a=n(21327),s=n(81866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},96425:(e,t,n)=>{var r=n(3118),o=n(9435);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},38407:(e,t,n)=>{var r=n(27040),o=n(14125),i=n(82117),a=n(67518),s=n(54705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},7548:(e,t,n)=>{var r=n(3118),o=n(9435);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},57071:(e,t,n)=>{var r=n(10852)(n(55639),"Map");e.exports=r},83369:(e,t,n)=>{var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),s=n(95265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:(e,t,n)=>{var r=n(10852)(n(55639),"Promise");e.exports=r},58525:(e,t,n)=>{var r=n(10852)(n(55639),"Set");e.exports=r},88668:(e,t,n)=>{var r=n(83369),o=n(90619),i=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:(e,t,n)=>{var r=n(38407),o=n(37465),i=n(63779),a=n(67599),s=n(44758),l=n(34309);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},62705:(e,t,n)=>{var r=n(55639).Symbol;e.exports=r},11149:(e,t,n)=>{var r=n(55639).Uint8Array;e.exports=r},70577:(e,t,n)=>{var r=n(10852)(n(55639),"WeakMap");e.exports=r},96874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},44174:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},77412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},34963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},47443:(e,t,n)=>{var r=n(42118);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},1196:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},14636:(e,t,n)=>{var r=n(22545),o=n(35694),i=n(1469),a=n(44144),s=n(65776),l=n(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),p=n||c||d||f,h=p?r(e.length,String):[],g=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},29932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},62488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},82908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},34865:(e,t,n)=>{var r=n(89465),o=n(77813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:(e,t,n)=>{var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},81119:(e,t,n)=>{var r=n(89881);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},44037:(e,t,n)=>{var r=n(98363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},63886:(e,t,n)=>{var r=n(98363),o=n(81704);e.exports=function(e,t){return e&&r(t,o(t),e)}},89465:(e,t,n)=>{var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:(e,t,n)=>{var r=n(46384),o=n(77412),i=n(34865),a=n(44037),s=n(63886),l=n(64626),u=n(278),c=n(18805),d=n(1911),f=n(58234),p=n(46904),h=n(64160),g=n(43824),m=n(29148),v=n(38517),y=n(1469),b=n(44144),w=n(56688),E=n(13218),O=n(72928),x=n(3674),S=n(81704),I="[object Arguments]",C="[object Function]",_="[object Object]",k={};k[I]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[_]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[C]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,T,P,R,A){var j,N=1&n,D=2&n,M=4&n;if(T&&(j=R?T(t,P,R,A):T(t)),void 0!==j)return j;if(!E(t))return t;var L=y(t);if(L){if(j=g(t),!N)return u(t,j)}else{var Z=h(t),z=Z==C||"[object GeneratorFunction]"==Z;if(b(t))return l(t,N);if(Z==_||Z==I||z&&!R){if(j=D||z?{}:v(t),!N)return D?d(t,s(j,t)):c(t,a(j,t))}else{if(!k[Z])return R?t:{};j=m(t,Z,N)}}A||(A=new r);var W=A.get(t);if(W)return W;A.set(t,j),O(t)?t.forEach((function(r){j.add(e(r,n,T,r,t,A))})):w(t)&&t.forEach((function(r,o){j.set(o,e(r,n,T,o,t,A))}));var F=L?void 0:(M?D?p:f:D?S:x)(t);return o(F||t,(function(r,o){F&&(r=t[o=r]),i(j,o,e(r,n,T,o,t,A))})),j}},3118:(e,t,n)=>{var r=n(13218),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},20731:(e,t,n)=>{var r=n(88668),o=n(47443),i=n(1196),a=n(29932),s=n(7518),l=n(74757);e.exports=function(e,t,n,u){var c=-1,d=o,f=!0,p=e.length,h=[],g=t.length;if(!p)return h;n&&(t=a(t,s(n))),u?(d=i,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++c<p;){var m=e[c],v=null==n?m:n(m);if(m=u||0!==m?m:0,f&&v==v){for(var y=g;y--;)if(t[y]===v)continue e;h.push(m)}else d(t,v,u)||h.push(m)}return h}},89881:(e,t,n)=>{var r=n(47816),o=n(99291)(r);e.exports=o},80760:(e,t,n)=>{var r=n(89881);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},41848:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},21078:(e,t,n)=>{var r=n(62488),o=n(37285);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},28483:(e,t,n)=>{var r=n(25063)();e.exports=r},47816:(e,t,n)=>{var r=n(28483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},97786:(e,t,n)=>{var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},68866:(e,t,n)=>{var r=n(62488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},44239:(e,t,n)=>{var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},42118:(e,t,n)=>{var r=n(41848),o=n(62722),i=n(42351);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},9454:(e,t,n)=>{var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},90939:(e,t,n)=>{var r=n(2492),o=n(37005);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},2492:(e,t,n)=>{var r=n(46384),o=n(67114),i=n(18351),a=n(16096),s=n(64160),l=n(1469),u=n(44144),c=n(36719),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?f:s(e),E=b?f:s(t),O=(w=w==d?p:w)==p,x=(E=E==d?p:E)==p,S=w==E;if(S&&u(e)){if(!u(t))return!1;y=!0,O=!1}if(S&&!O)return v||(v=new r),y||c(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var I=O&&h.call(e,"__wrapped__"),C=x&&h.call(t,"__wrapped__");if(I||C){var _=I?e.value():e,k=C?t.value():t;return v||(v=new r),m(_,k,n,g,v)}}return!!S&&(v||(v=new r),a(e,t,n,g,m,v))}},25588:(e,t,n)=>{var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(46384),o=n(90939);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new r;if(i)var h=i(d,f,c,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},62722:e=>{e.exports=function(e){return e!=e}},28458:(e,t,n)=>{var r=n(23560),o=n(15346),i=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},29221:(e,t,n)=>{var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},38749:(e,t,n)=>{var r=n(44239),o=n(41780),i=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},67206:(e,t,n)=>{var r=n(91573),o=n(16432),i=n(6557),a=n(1469),s=n(39601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(25726),o=n(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},10313:(e,t,n)=>{var r=n(13218),o=n(25726),i=n(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},9435:e=>{e.exports=function(){}},91573:(e,t,n)=>{var r=n(2958),o=n(1499),i=n(42634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},16432:(e,t,n)=>{var r=n(90939),o=n(27361),i=n(79095),a=n(15403),s=n(89162),l=n(42634),u=n(40327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},40371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:(e,t,n)=>{var r=n(97786);e.exports=function(e){return function(t){return r(t,e)}}},18674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},5976:(e,t,n)=>{var r=n(6557),o=n(45357),i=n(30061);e.exports=function(e,t){return i(o(e,t,r),e+"")}},10611:(e,t,n)=>{var r=n(34865),o=n(71811),i=n(65776),a=n(13218),s=n(40327);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var p=s(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var g=f[p];void 0===(h=l?l(g,p,f):void 0)&&(h=a(g)?g:i(t[u+1])?[]:{})}r(f,p,h),f=f[p]}return e}},28045:(e,t,n)=>{var r=n(6557),o=n(89250),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},56560:(e,t,n)=>{var r=n(75703),o=n(38777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},14259:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},22545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80531:(e,t,n)=>{var r=n(62705),o=n(29932),i=n(1469),a=n(33448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},27561:(e,t,n)=>{var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},45652:(e,t,n)=>{var r=n(88668),o=n(47443),i=n(1196),a=n(74757),s=n(23593),l=n(21814);e.exports=function(e,t,n){var u=-1,c=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,c=i;else if(d>=200){var g=t?null:s(e);if(g)return l(g);f=!1,c=a,h=new r}else h=t?[]:p;e:for(;++u<d;){var m=e[u],v=t?t(m):m;if(m=n||0!==m?m:0,f&&v==v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(m)}else c(h,v,n)||(h!==p&&h.push(v),p.push(m))}return p}},57406:(e,t,n)=>{var r=n(71811),o=n(10928),i=n(40292),a=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},24456:(e,t,n)=>{var r=n(97786),o=n(10611);e.exports=function(e,t,n,i){return o(e,t,n(r(e,t)),i)}},47415:(e,t,n)=>{var r=n(29932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},74757:e=>{e.exports=function(e,t){return e.has(t)}},54290:(e,t,n)=>{var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},71811:(e,t,n)=>{var r=n(1469),o=n(15403),i=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},74318:(e,t,n)=>{var r=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},64626:(e,t,n)=>{e=n.nmd(e);var r=n(55639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},57157:(e,t,n)=>{var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:(e,t,n)=>{var r=n(62705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},77133:(e,t,n)=>{var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},52157:e=>{var t=Math.max;e.exports=function(e,n,r,o){for(var i=-1,a=e.length,s=r.length,l=-1,u=n.length,c=t(a-s,0),d=Array(u+c),f=!o;++l<u;)d[l]=n[l];for(;++i<s;)(f||i<a)&&(d[r[i]]=e[i]);for(;c--;)d[l++]=e[i++];return d}},14054:e=>{var t=Math.max;e.exports=function(e,n,r,o){for(var i=-1,a=e.length,s=-1,l=r.length,u=-1,c=n.length,d=t(a-l,0),f=Array(d+c),p=!o;++i<d;)f[i]=e[i];for(var h=i;++u<c;)f[h+u]=n[u];for(;++s<l;)(p||i<a)&&(f[h+r[s]]=e[i++]);return f}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:(e,t,n)=>{var r=n(34865),o=n(89465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},18805:(e,t,n)=>{var r=n(98363),o=n(99551);e.exports=function(e,t){return r(e,o(e),t)}},1911:(e,t,n)=>{var r=n(98363),o=n(51442);e.exports=function(e,t){return r(e,o(e),t)}},14429:(e,t,n)=>{var r=n(55639)["__core-js_shared__"];e.exports=r},97991:e=>{e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},55189:(e,t,n)=>{var r=n(44174),o=n(81119),i=n(67206),a=n(1469);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,u=t?t():{};return l(n,e,i(s,2),u)}}},99291:(e,t,n)=>{var r=n(98612);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},25063:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},22402:(e,t,n)=>{var r=n(71774),o=n(55639);e.exports=function(e,t,n){var i=1&t,a=r(e);return function t(){var r=this&&this!==o&&this instanceof t?a:e;return r.apply(i?n:this,arguments)}}},71774:(e,t,n)=>{var r=n(3118),o=n(13218);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},46347:(e,t,n)=>{var r=n(96874),o=n(71774),i=n(86935),a=n(94487),s=n(20893),l=n(46460),u=n(55639);e.exports=function(e,t,n){var c=o(e);return function o(){for(var d=arguments.length,f=Array(d),p=d,h=s(o);p--;)f[p]=arguments[p];var g=d<3&&f[0]!==h&&f[d-1]!==h?[]:l(f,h);if((d-=g.length)<n)return a(e,t,i,o.placeholder,void 0,f,g,void 0,void 0,n-d);var m=this&&this!==u&&this instanceof o?c:e;return r(m,this,f)}}},23468:(e,t,n)=>{var r=n(7548),o=n(99021),i=n(66833),a=n(97658),s=n(1469),l=n(86528);e.exports=function(e){return o((function(t){var n=t.length,o=n,u=r.prototype.thru;for(e&&t.reverse();o--;){var c=t[o];if("function"!=typeof c)throw new TypeError("Expected a function");if(u&&!d&&"wrapper"==a(c))var d=new r([],!0)}for(o=d?o:n;++o<n;){c=t[o];var f=a(c),p="wrapper"==f?i(c):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==c.length&&l(c)?d[f]():d.thru(c)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}},86935:(e,t,n)=>{var r=n(52157),o=n(14054),i=n(97991),a=n(71774),s=n(94487),l=n(20893),u=n(90451),c=n(46460),d=n(55639);e.exports=function e(t,n,f,p,h,g,m,v,y,b){var w=128&n,E=1&n,O=2&n,x=24&n,S=512&n,I=O?void 0:a(t);return function C(){for(var _=arguments.length,k=Array(_),T=_;T--;)k[T]=arguments[T];if(x)var P=l(C),R=i(k,P);if(p&&(k=r(k,p,h,x)),g&&(k=o(k,g,m,x)),_-=R,x&&_<b){var A=c(k,P);return s(t,n,e,C.placeholder,f,k,A,v,y,b-_)}var j=E?f:this,N=O?j[t]:t;return _=k.length,v?k=u(k,v):S&&_>1&&k.reverse(),w&&y<_&&(k.length=y),this&&this!==d&&this instanceof C&&(N=I||a(N)),N.apply(j,k)}}},84375:(e,t,n)=>{var r=n(96874),o=n(71774),i=n(55639);e.exports=function(e,t,n,a){var s=1&t,l=o(e);return function t(){for(var o=-1,u=arguments.length,c=-1,d=a.length,f=Array(d+u),p=this&&this!==i&&this instanceof t?l:e;++c<d;)f[c]=a[c];for(;u--;)f[c++]=arguments[++o];return r(p,s?n:this,f)}}},94487:(e,t,n)=>{var r=n(86528),o=n(258),i=n(69255);e.exports=function(e,t,n,a,s,l,u,c,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?u:void 0,p?void 0:l,p?void 0:u,c,d,f],g=n.apply(void 0,h);return r(e)&&o(g,h),g.placeholder=a,i(g,e,t)}},23593:(e,t,n)=>{var r=n(58525),o=n(50308),i=n(21814),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},97727:(e,t,n)=>{var r=n(28045),o=n(22402),i=n(46347),a=n(86935),s=n(84375),l=n(66833),u=n(63833),c=n(258),d=n(69255),f=n(40554),p=Math.max;e.exports=function(e,t,n,h,g,m,v,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=g=void 0),v=void 0===v?v:p(f(v),0),y=void 0===y?y:f(y),w-=g?g.length:0,64&t){var E=h,O=g;h=g=void 0}var x=b?void 0:l(e),S=[e,t,n,h,g,E,O,m,v,y];if(x&&u(S,x),e=S[0],t=S[1],n=S[2],h=S[3],g=S[4],!(y=S[9]=void 0===S[9]?b?0:e.length:p(S[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)I=8==t||16==t?i(e,t,y):32!=t&&33!=t||g.length?a.apply(void 0,S):s(e,t,n,h);else var I=o(e,t,n);return d((x?r:c)(I,S),e,t)}},60696:(e,t,n)=>{var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},69389:(e,t,n)=>{var r=n(18674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},38777:(e,t,n)=>{var r=n(10852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},67114:(e,t,n)=>{var r=n(88668),o=n(82908),i=n(74757);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var b=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},18351:(e,t,n)=>{var r=n(62705),o=n(11149),i=n(77813),a=n(67114),s=n(68776),l=n(21814),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var m=a(p(e),p(t),r,u,d,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},16096:(e,t,n)=>{var r=n(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var v=e[f=u[d]],y=t[f];if(i)var b=l?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(e),s.delete(t),g}},99021:(e,t,n)=>{var r=n(85564),o=n(45357),i=n(30061);e.exports=function(e){return i(o(e,void 0,r),e+"")}},31957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:(e,t,n)=>{var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},46904:(e,t,n)=>{var r=n(68866),o=n(51442),i=n(81704);e.exports=function(e){return r(e,i,o)}},66833:(e,t,n)=>{var r=n(89250),o=n(50308),i=r?function(e){return r.get(e)}:o;e.exports=i},97658:(e,t,n)=>{var r=n(52060),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}},20893:e=>{e.exports=function(e){return e.placeholder}},45050:(e,t,n)=>{var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(89162),o=n(3674);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},10852:(e,t,n)=>{var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},85924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:(e,t,n)=>{var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},99551:(e,t,n)=>{var r=n(34963),o=n(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},51442:(e,t,n)=>{var r=n(62488),o=n(85924),i=n(99551),a=n(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},64160:(e,t,n)=>{var r=n(18552),o=n(57071),i=n(53818),a=n(58525),s=n(70577),l=n(44239),u=n(80346),c="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",g=u(r),m=u(o),v=u(i),y=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case m:return c;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},47801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},58775:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var r=e.match(t);return r?r[1].split(n):[]}},222:(e,t,n)=>{var r=n(71811),o=n(35694),i=n(1469),a=n(65776),s=n(41780),l=n(40327);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(i(e)||o(e))}},51789:(e,t,n)=>{var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:(e,t,n)=>{var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:(e,t,n)=>{var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:(e,t,n)=>{var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:(e,t,n)=>{var r=n(74318),o=n(57157),i=n(93147),a=n(40419),s=n(77133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},38517:(e,t,n)=>{var r=n(3118),o=n(85924),i=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},83112:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,n){var r=n.length;if(!r)return e;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+n+"] */\n")}},37285:(e,t,n)=>{var r=n(62705),o=n(35694),i=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},65776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},15403:(e,t,n)=>{var r=n(1469),o=n(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},86528:(e,t,n)=>{var r=n(96425),o=n(66833),i=n(97658),a=n(8111);e.exports=function(e){var t=i(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=o(n);return!!s&&e===s[0]}},15346:(e,t,n)=>{var r,o=n(14429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},25726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},89162:(e,t,n)=>{var r=n(13218);e.exports=function(e){return e==e&&!r(e)}},27040:e=>{e.exports=function(){this.__data__=[],this.size=0}},14125:(e,t,n)=>{var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},82117:(e,t,n)=>{var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:(e,t,n)=>{var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:(e,t,n)=>{var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:(e,t,n)=>{var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:(e,t,n)=>{var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:(e,t,n)=>{var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:(e,t,n)=>{var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},42634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},24523:(e,t,n)=>{var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},63833:(e,t,n)=>{var r=n(52157),o=n(14054),i=n(46460),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],u=n|l,c=u<131,d=128==l&&8==n||128==l&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!c&&!d)return e;1&l&&(e[2]=t[2],u|=1&n?0:4);var f=t[3];if(f){var p=e[3];e[3]=p?r(p,f,t[4]):f,e[4]=p?i(e[3],a):t[4]}return(f=t[5])&&(p=e[5],e[5]=p?o(p,f,t[6]):f,e[6]=p?i(e[5],a):t[6]),(f=t[7])&&(e[7]=f),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=u,e}},89250:(e,t,n)=>{var r=n(70577),o=r&&new r;e.exports=o},94536:(e,t,n)=>{var r=n(10852)(Object,"create");e.exports=r},86916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},33498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:(e,t,n)=>{e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},45357:(e,t,n)=>{var r=n(96874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},40292:(e,t,n)=>{var r=n(97786),o=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},52060:e=>{e.exports={}},90451:(e,t,n)=>{var r=n(278),o=n(65776),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),s=r(e);a--;){var l=t[a];e[a]=o(l,n)?s[l]:void 0}return e}},46460:e=>{var t="__lodash_placeholder__";e.exports=function(e,n){for(var r=-1,o=e.length,i=0,a=[];++r<o;){var s=e[r];s!==n&&s!==t||(e[r]=t,a[i++]=r)}return a}},55639:(e,t,n)=>{var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:e=>{e.exports=function(e){return this.__data__.has(e)}},258:(e,t,n)=>{var r=n(28045),o=n(21275)(r);e.exports=o},21814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:(e,t,n)=>{var r=n(56560),o=n(21275)(r);e.exports=o},69255:(e,t,n)=>{var r=n(58775),o=n(83112),i=n(30061),a=n(87241);e.exports=function(e,t,n){var s=t+"";return i(e,o(s,a(r(s),n)))}},21275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:(e,t,n)=>{var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:e=>{e.exports=function(e){return this.__data__.get(e)}},44758:e=>{e.exports=function(e){return this.__data__.has(e)}},34309:(e,t,n)=>{var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},42351:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},55514:(e,t,n)=>{var r=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},40327:(e,t,n)=>{var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},80346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},87241:(e,t,n)=>{var r=n(77412),o=n(47443),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,(function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)})),e.sort()}},21913:(e,t,n)=>{var r=n(96425),o=n(7548),i=n(278);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},39514:(e,t,n)=>{var r=n(97727);e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,128,void 0,void 0,void 0,void 0,t)}},66678:(e,t,n)=>{var r=n(85990);e.exports=function(e){return r(e,4)}},39693:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}},75703:e=>{e.exports=function(e){return function(){return e}}},40087:(e,t,n)=>{var r=n(97727);function o(e,t,n){var i=r(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return i.placeholder=o.placeholder,i}o.placeholder={},e.exports=o},23279:(e,t,n)=>{var r=n(13218),o=n(7771),i=n(14841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(E,t),g?y(e):d}function w(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=c}function E(){var e=o();if(w(e))return O(e);f=setTimeout(E,function(e){var n=t-(e-p);return m?s(n,c-(e-h)):n}(e))}function O(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function x(){var e=o(),n=w(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(m)return clearTimeout(f),f=setTimeout(E,t),y(p)}return void 0===f&&(f=setTimeout(E,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},x.flush=function(){return void 0===f?d:O(o())},x}},53816:(e,t,n)=>{var r=n(69389),o=n(79833),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},77813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},63105:(e,t,n)=>{var r=n(34963),o=n(80760),i=n(67206),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},85564:(e,t,n)=>{var r=n(21078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},42348:(e,t,n)=>{var r=n(21078);e.exports=function(e){return null!=e&&e.length?r(e,1/0):[]}},47745:(e,t,n)=>{var r=n(23468)(!0);e.exports=r},84599:(e,t,n)=>{var r=n(68836),o=n(69306),i=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function l(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,u,c){var d="function"==typeof n,f=n===Object(n);if(f&&(c=u,u=n,n=void 0),null==u)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,h=!("curry"in c)||c.curry,g=!("fixed"in c)||c.fixed,m=!("immutable"in c)||c.immutable,v=!("rearg"in c)||c.rearg,y=d?u:o,b="curry"in c&&c.curry,w="fixed"in c&&c.fixed,E="rearg"in c&&c.rearg,O=d?u.runInContext():void 0,x=d?u:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},S=x.ary,I=x.assign,C=x.clone,_=x.curry,k=x.forEach,T=x.isArray,P=x.isError,R=x.isFunction,A=x.isWeakMap,j=x.keys,N=x.rearg,D=x.toInteger,M=x.toPath,L=j(r.aryMethod),Z={castArray:function(e){return function(){var t=arguments[0];return T(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),o=r.length;return p&&"number"==typeof n?(n=n>2?n-2:1,o&&o<=n?r:a(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!R(n))return e(n,Object(t));var r=[];return k(j(t),(function(e){R(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),k(r,(function(e){var t=e[1];R(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:D(t)+1;return _(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return _(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),c)}}};function z(e,t,n){if(g&&(w||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?S(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],s=o.slice(0,t);return a&&i.apply(s,a),t!=r&&i.apply(s,o.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function W(e,t,n){return v&&n>1&&(E||!r.skipRearg[e])?N(t,r.methodRearg[e]||r.aryRearg[n]):t}function F(e,t){for(var n=-1,r=(t=M(t)).length,o=r-1,i=C(Object(e)),a=i;null!=a&&++n<r;){var s=t[n],l=a[s];null==l||R(l)||P(l)||A(l)||(a[s]=C(n==o?l:Object(l))),a=a[s]}return i}function B(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,a=c;return function(t){var r=d?O:x,s=d?O[i]:n,l=I(I({},a),t);return e(r,o,s,l)}}function U(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=v?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function H(e,t,n){var o,i=r.aliasToReal[e]||e,u=t,c=Z[i];return c?u=c(t):m&&(r.mutate.array[i]?u=l(t,s):r.mutate.object[i]?u=l(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(u=l(t,F))),k(L,(function(e){return k(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],s=n&&n.afterRearg;return o=s?z(i,W(i,u,e),e):W(i,z(i,u,e),e),o=function(e,t,n){return b||h&&n>1?_(t,n):t}(0,o=function(e,t){if(p){var n=r.iterateeRearg[e];if(n)return function(e,t){return U(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(a(e,n),t),n)}))}(t,n);var o=!d&&r.iterateeAry[e];if(o)return function(e,t){return U(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}(i,o),e),!1}})),!o})),o||(o=u),o==t&&(o=b?_(o,1):function(){return t.apply(this,arguments)}),o.convert=B(i,t),o.placeholder=t.placeholder=n,o}if(!f)return H(n,u,y);var V=u,G=[];return k(L,(function(e){k(r.aryMethod[e],(function(e){var t=V[r.remap[e]||e];t&&G.push([e,H(e,t,V)])}))})),k(j(V),(function(e){var t=V[e];if("function"==typeof t){for(var n=G.length;n--;)if(G[n][0]==e)return;t.convert=B(e,t),G.push([e,t])}})),k(G,(function(e){V[e[0]]=e[1]})),V.convert=function(e){return V.runInContext.convert(e)(void 0)},V.placeholder=V,k(j(V),(function(e){k(r.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V}},68836:(e,t)=>{t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},4269:(e,t,n)=>{e.exports={ary:n(39514),assign:n(44037),clone:n(66678),curry:n(40087),forEach:n(77412),isArray:n(1469),isError:n(64647),isFunction:n(23560),isWeakMap:n(81018),iteratee:n(72594),keys:n(280),rearg:n(4963),toInteger:n(40554),toPath:n(30084)}},92822:(e,t,n)=>{var r=n(84599),o=n(4269);e.exports=function(e,t,n){return r(o,e,t,n)}},69306:e=>{e.exports={}},28252:(e,t,n)=>{var r=n(92822)("set",n(36968));r.placeholder=n(69306),e.exports=r},69898:(e,t,n)=>{var r=n(92822)("update",n(93425));r.placeholder=n(69306),e.exports=r},27361:(e,t,n)=>{var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},7739:(e,t,n)=>{var r=n(89465),o=n(55189),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},79095:(e,t,n)=>{var r=n(13),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:e=>{e.exports=function(e){return e}},35694:(e,t,n)=>{var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},98612:(e,t,n)=>{var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},29246:(e,t,n)=>{var r=n(98612),o=n(37005);e.exports=function(e){return o(e)&&r(e)}},44144:(e,t,n)=>{e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},41609:(e,t,n)=>{var r=n(280),o=n(64160),i=n(35694),a=n(1469),s=n(98612),l=n(44144),u=n(25726),c=n(36719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},64647:(e,t,n)=>{var r=n(44239),o=n(37005),i=n(68630);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},23560:(e,t,n)=>{var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:(e,t,n)=>{var r=n(25588),o=n(7518),i=n(31167),a=i&&i.isMap,s=a?o(a):r;e.exports=s},45220:e=>{e.exports=function(e){return null===e}},13218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},68630:(e,t,n)=>{var r=n(44239),o=n(85924),i=n(37005),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},72928:(e,t,n)=>{var r=n(29221),o=n(7518),i=n(31167),a=i&&i.isSet,s=a?o(a):r;e.exports=s},47037:(e,t,n)=>{var r=n(44239),o=n(1469),i=n(37005);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},33448:(e,t,n)=>{var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},36719:(e,t,n)=>{var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},52353:e=>{e.exports=function(e){return void 0===e}},81018:(e,t,n)=>{var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object WeakMap]"==r(e)}},72594:(e,t,n)=>{var r=n(85990),o=n(67206);e.exports=function(e){return o("function"==typeof e?e:r(e,1))}},3674:(e,t,n)=>{var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},81704:(e,t,n)=>{var r=n(14636),o=n(10313),i=n(98612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},10928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88306:(e,t,n)=>{var r=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},50308:e=>{e.exports=function(){}},7771:(e,t,n)=>{var r=n(55639);e.exports=function(){return r.Date.now()}},57557:(e,t,n)=>{var r=n(29932),o=n(85990),i=n(57406),a=n(71811),s=n(98363),l=n(60696),u=n(99021),c=n(46904),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},39601:(e,t,n)=>{var r=n(40371),o=n(79152),i=n(15403),a=n(40327);e.exports=function(e){return i(e)?r(a(e)):o(e)}},4963:(e,t,n)=>{var r=n(97727),o=n(99021)((function(e,t){return r(e,256,void 0,void 0,void 0,t)}));e.exports=o},36968:(e,t,n)=>{var r=n(10611);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},70479:e=>{e.exports=function(){return[]}},95062:e=>{e.exports=function(){return!1}},18601:(e,t,n)=>{var r=n(14841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},40554:(e,t,n)=>{var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:(e,t,n)=>{var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},30084:(e,t,n)=>{var r=n(29932),o=n(278),i=n(1469),a=n(33448),s=n(55514),l=n(40327),u=n(79833);e.exports=function(e){return i(e)?r(e,l):a(e)?[e]:o(s(u(e)))}},79833:(e,t,n)=>{var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},93386:(e,t,n)=>{var r=n(21078),o=n(5976),i=n(45652),a=n(29246),s=o((function(e){return i(r(e,1,a,!0))}));e.exports=s},93425:(e,t,n)=>{var r=n(24456),o=n(54290);e.exports=function(e,t,n){return null==e?e:r(e,t,o(n))}},52628:(e,t,n)=>{var r=n(47415),o=n(3674);e.exports=function(e){return null==e?[]:r(e,o(e))}},82569:(e,t,n)=>{var r=n(20731),o=n(5976),i=n(29246),a=o((function(e,t){return i(e)?r(e,t):[]}));e.exports=a},8111:(e,t,n)=>{var r=n(96425),o=n(7548),i=n(9435),a=n(1469),s=n(37005),l=n(21913),u=Object.prototype.hasOwnProperty;function c(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof o)return e;if(u.call(e,"__wrapped__"))return l(e)}return new o(e)}c.prototype=i.prototype,c.prototype.constructor=c,e.exports=c},66947:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(9)),r(n(10)),r(n(11)),r(n(12)),r(n(13)),r(n(14)),r(n(15)),r(n(16)),r(n(17)),r(n(31)),r(n(32)),r(n(33)),r(n(34)),r(n(35)),r(n(38)),r(n(39)),r(n(40)),r(n(41)),r(n(42)),r(n(43)),r(n(44)),r(n(45)),r(n(46)),r(n(47)),r(n(48)),r(n(49)),r(n(50)),r(n(3))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.BOOKMARKING="oa:bookmarking",e.CLASSIFYING="oa:classifying",e.COMMENTING="oa:commenting",e.DESCRIBING="oa:describing",e.EDITING="oa:editing",e.HIGHLIGHTING="oa:highlighting",e.IDENTIFYING="oa:identifying",e.LINKING="oa:linking",e.MODERATING="oa:moderating",e.PAINTING="sc:painting",e.QUESTIONING="oa:questioning",e.REPLYING="oa:replying",e.TAGGING="oa:tagging",e.TRANSCRIBING="oad:transcribing"}(t.AnnotationMotivation||(t.AnnotationMotivation={})),function(e){e.AUTO_ADVANCE="auto-advance",e.CONTINUOUS="continuous",e.FACING_PAGES="facing-pages",e.HIDDEN="hidden",e.INDIVIDUALS="individuals",e.MULTI_PART="multi-part",e.NO_NAV="no-nav",e.NON_PAGED="non-paged",e.PAGED="paged",e.REPEAT="repeat",e.SEQUENCE="sequence",e.THUMBNAIL_NAV="thumbnail-nav",e.TOGETHER="together",e.UNORDERED="unordered"}(t.Behavior||(t.Behavior={})),function(e){e.CANVAS="canvas",e.CHOICE="choice",e.OA_CHOICE="oa:choice",e.CONTENT_AS_TEXT="contentastext",e.DATASET="dataset",e.DOCUMENT="document",e.IMAGE="image",e.MODEL="model",e.MOVING_IMAGE="movingimage",e.PDF="pdf",e.PHYSICAL_OBJECT="physicalobject",e.SOUND="sound",e.TEXT="text",e.TEXTUALBODY="textualbody",e.VIDEO="video"}(t.ExternalResourceType||(t.ExternalResourceType={})),function(e){e.ANNOTATION="annotation",e.CANVAS="canvas",e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range",e.SEQUENCE="sequence"}(t.IIIFResourceType||(t.IIIFResourceType={})),function(e){e.AUDIO_MP4="audio/mp4",e.CORTO="application/corto",e.DICOM="application/dicom",e.DRACO="application/draco",e.EPUB="application/epub+zip",e.GIRDER="image/vnd.kitware.girder",e.GLB="model/gltf-binary",e.GLTF="model/gltf+json",e.IIIF_PRESENTATION_2='application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"',e.IIIF_PRESENTATION_3='application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"',e.JPG="image/jpeg",e.M3U8="application/vnd.apple.mpegurl",e.MP3="audio/mp3",e.MPEG_DASH="application/dash+xml",e.OBJ="text/plain",e.OPF="application/oebps-package+xml",e.PDF="application/pdf",e.PLY="application/ply",e.THREEJS="application/vnd.threejs+json",e.USDZ="model/vnd.usd+zip",e.VIDEO_MP4="video/mp4",e.WAV="audio/wav",e.WEBM="video/webm"}(t.MediaType||(t.MediaType={})),function(e){e.DOC="application/msword",e.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.PDF="application/pdf"}(t.RenderingFormat||(t.RenderingFormat={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/compliance.html#level0",e.IMAGE_0_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/compliance.html#level1",e.IMAGE_0_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/compliance.html#level2",e.IMAGE_0_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/conformance.html#level0",e.IMAGE_0_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/conformance.html#level1",e.IMAGE_0_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/conformance.html#level2",e.IMAGE_1_COMPLIANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0",e.IMAGE_1_COMPLIANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1",e.IMAGE_1_COMPLIANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2",e.IMAGE_1_CONFORMANCE_LEVEL_0="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0",e.IMAGE_1_CONFORMANCE_LEVEL_1="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1",e.IMAGE_1_CONFORMANCE_LEVEL_2="http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2",e.IMAGE_1_LEVEL_0="http://iiif.io/api/image/1/level0.json",e.IMAGE_1_PROFILE_LEVEL_0="http://iiif.io/api/image/1/profiles/level0.json",e.IMAGE_1_LEVEL_1="http://iiif.io/api/image/1/level1.json",e.IMAGE_1_PROFILE_LEVEL_1="http://iiif.io/api/image/1/profiles/level1.json",e.IMAGE_1_LEVEL_2="http://iiif.io/api/image/1/level2.json",e.IMAGE_1_PROFILE_LEVEL_2="http://iiif.io/api/image/1/profiles/level2.json",e.IMAGE_2_LEVEL_0="http://iiif.io/api/image/2/level0.json",e.IMAGE_2_PROFILE_LEVEL_0="http://iiif.io/api/image/2/profiles/level0.json",e.IMAGE_2_LEVEL_1="http://iiif.io/api/image/2/level1.json",e.IMAGE_2_PROFILE_LEVEL_1="http://iiif.io/api/image/2/profiles/level1.json",e.IMAGE_2_LEVEL_2="http://iiif.io/api/image/2/level2.json",e.IMAGE_2_PROFILE_LEVEL_2="http://iiif.io/api/image/2/profiles/level2.json",e.AUTH_0_CLICK_THROUGH="http://iiif.io/api/auth/0/login/clickthrough",e.AUTH_0_LOGIN="http://iiif.io/api/auth/0/login",e.AUTH_0_LOGOUT="http://iiif.io/api/auth/0/logout",e.AUTH_0_RESTRICTED="http://iiif.io/api/auth/0/login/restricted",e.AUTH_0_TOKEN="http://iiif.io/api/auth/0/token",e.AUTH_1_CLICK_THROUGH="http://iiif.io/api/auth/1/clickthrough",e.AUTH_1_EXTERNAL="http://iiif.io/api/auth/1/external",e.AUTH_1_KIOSK="http://iiif.io/api/auth/1/kiosk",e.AUTH_1_LOGIN="http://iiif.io/api/auth/1/login",e.AUTH_1_LOGOUT="http://iiif.io/api/auth/1/logout",e.AUTH_1_PROBE="http://iiif.io/api/auth/1/probe",e.AUTH_1_TOKEN="http://iiif.io/api/auth/1/token",e.SEARCH_0="http://iiif.io/api/search/0/search",e.SEARCH_0_AUTO_COMPLETE="http://iiif.io/api/search/0/autocomplete",e.SEARCH_1="http://iiif.io/api/search/1/search",e.SEARCH_1_AUTO_COMPLETE="http://iiif.io/api/search/1/autocomplete",e.TRACKING_EXTENSIONS="http://universalviewer.io/tracking-extensions-profile",e.UI_EXTENSIONS="http://universalviewer.io/ui-extensions-profile",e.PRINT_EXTENSIONS="http://universalviewer.io/print-extensions-profile",e.SHARE_EXTENSIONS="http://universalviewer.io/share-extensions-profile",e.DOWNLOAD_EXTENSIONS="http://universalviewer.io/download-extensions-profile",e.OTHER_MANIFESTATIONS="http://iiif.io/api/otherManifestations.json",e.IXIF="http://wellcomelibrary.org/ld/ixif/0/alpha.json"}(t.ServiceProfile||(t.ServiceProfile={})),function(e){e.IMAGE_SERVICE_2="ImageService2",e.IMAGE_SERVICE_3="ImageService3"}(t.ServiceType||(t.ServiceType={})),function(e){e.BOTTOM_TO_TOP="bottom-to-top",e.LEFT_TO_RIGHT="left-to-right",e.RIGHT_TO_LEFT="right-to-left",e.TOP_TO_BOTTOM="top-to-bottom"}(t.ViewingDirection||(t.ViewingDirection={})),function(e){e.CONTINUOUS="continuous",e.INDIVIDUALS="individuals",e.NON_PAGED="non-paged",e.PAGED="paged",e.TOP="top"}(t.ViewingHint||(t.ViewingHint={}))},function(e,t,n){var r=n(21).Symbol;e.exports=r},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=n(36);n(37);var l=function(){function e(){}return e.getMediaType=function(e){return(e=(e=e.toLowerCase()).split(";")[0]).trim()},e.getImageQuality=function(e){return e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2||e===a.ServiceProfile.IMAGE_1_LEVEL_1||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1||e===a.ServiceProfile.IMAGE_1_LEVEL_2||e===a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},e.getInexactLocale=function(e){return-1!==e.indexOf("-")?e.substr(0,e.indexOf("-")):e},e.getLocalisedValue=function(e,t){if(!Array.isArray(e))return e;for(var n=0;n<e.length;n++){var r=e[n];if(t===r["@language"])return r["@value"]}var o=t.substr(0,t.indexOf("-"));for(n=0;n<e.length;n++){var i=e[n];if(i["@language"]===o)return i["@value"]}return null},e.generateTreeNodeIds=function(t,n){var r;void 0===n&&(n=0),r=t.parentNode?t.parentNode.id+"-"+n:"0",t.id=r;for(var o=0;o<t.nodes.length;o++){var i=t.nodes[o];e.generateTreeNodeIds(i,o)}},e.normaliseType=function(e){return-1!==(e=(e||"").toLowerCase()).indexOf(":")?e.split(":")[1]:e},e.normaliseUrl=function(e){return-1!==(e=e.substr(e.indexOf("://"))).indexOf("#")&&(e=e.split("#")[0]),e},e.normalisedUrlsMatch=function(t,n){return e.normaliseUrl(t)===e.normaliseUrl(n)},e.isImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.isImageServiceType=function(e){return null!==e&&e.toLowerCase()===a.ServiceType.IMAGE_SERVICE_2.toLowerCase()||e===a.ServiceType.IMAGE_SERVICE_3.toLowerCase()},e.isLevel0ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_0)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_0))},e.isLevel1ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_1)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_1))},e.isLevel2ImageProfile=function(t){return!!(e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_COMPLIANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_0_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_CONFORMANCE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_1_PROFILE_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_LEVEL_2)||e.normalisedUrlsMatch(t,a.ServiceProfile.IMAGE_2_PROFILE_LEVEL_2))},e.parseManifest=function(e,t){return i.Deserialiser.parse(e,t)},e.checkStatus=function(e){if(e.ok)return e;var t=new Error(e.statusText);return t.response=e,Promise.reject(t)},e.loadManifest=function(t){return new Promise((function(n,r){fetch(t).then(e.checkStatus).then((function(e){return e.json()})).then((function(e){n(e)})).catch((function(e){r()}))}))},e.loadExternalResourcesAuth1=function(t,n,r,o,i,a,s,l){return new Promise((function(u,c){var d=t.map((function(t){return e.loadExternalResourceAuth1(t,n,r,o,i,a,s,l)}));Promise.all(d).then((function(){u(t)})).catch((function(e){c(e)}))}))},e.loadExternalResourceAuth1=function(t,n,i,a,l,u,c,d){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return[4,a(t)];case 1:return(r=o.sent())?[4,t.getData(r)]:[3,6];case 2:return o.sent(),t.status!==s.OK?[3,3]:[2,t];case 3:return[4,e.doAuthChain(t,n,i,l,u,c,d)];case 4:o.sent(),o.label=5;case 5:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError();case 6:return[4,t.getData()];case 7:return o.sent(),t.status!==s.MOVED_TEMPORARILY&&t.status!==s.UNAUTHORIZED?[3,9]:[4,e.doAuthChain(t,n,i,l,u,c,d)];case 8:o.sent(),o.label=9;case 9:if(t.status===s.OK||t.status===s.MOVED_TEMPORARILY)return[2,t];throw e.createAuthorizationFailedError()}}))}))},e.doAuthChain=function(t,n,i,a,l,u,c){return r(this,void 0,void 0,(function(){var r,d,f,p,h,g,m,v;return o(this,(function(o){switch(o.label){case 0:return t.isAccessControlled()?((r=t.externalService)&&(r.options=t.options),(d=t.kioskService)&&(d.options=t.options),(f=t.clickThroughService)&&(f.options=t.options),(p=t.loginService)&&(p.options=t.options),t.isResponseHandled||t.status!==s.MOVED_TEMPORARILY?[3,2]:[4,u(t)]):[2,t];case 1:case 3:case 6:case 10:case 14:return o.sent(),[2,t];case 2:return h=null,g=null,(h=r)?(g=h,[4,e.attemptResourceWithToken(t,i,h)]):[3,4];case 4:return(h=d)?(g=h,(m=n(h))?[4,a(m)]:[3,7]):[3,7];case 5:case 9:case 13:return o.sent(),[4,e.attemptResourceWithToken(t,i,h)];case 7:return(h=f)?(g=h,[4,l(t,h)]):[3,11];case 8:return(v=o.sent())?[4,a(v)]:[3,11];case 11:return(h=p)?(g=h,[4,l(t,h)]):[3,15];case 12:return(v=o.sent())?[4,a(v)]:[3,15];case 15:return g&&c(t,g),[2]}}))}))},e.attemptResourceWithToken=function(e,t,n){return r(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return(r=n.getService(a.ServiceProfile.AUTH_1_TOKEN))?[4,t(e,r)]:[3,3];case 1:return(i=o.sent())&&i.accessToken?[4,e.getData(i)]:[3,3];case 2:return o.sent(),[2,e];case 3:return[2]}}))}))},e.loadExternalResourcesAuth09=function(t,n,r,o,i,a,s,l,u,c){return new Promise((function(d,f){var p=t.map((function(t){return e.loadExternalResourceAuth09(t,n,r,o,i,a,s,l,u,c)}));Promise.all(p).then((function(){d(t)})).catch((function(e){f(e)}))}))},e.loadExternalResourceAuth09=function(t,n,r,o,i,a,l,u,c,d){return new Promise((function(f,p){d&&d.pessimisticAccessControl?t.getData().then((function(){t.isAccessControlled()?t.clickThroughService?(f(r(t)),f(o(t))):i(t).then((function(){a(t,!0).then((function(n){t.getData(n).then((function(){f(c(t))})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))}))})).catch((function(t){p(e.createInternalServerError(t))})):f(t)})).catch((function(t){p(e.createInternalServerError(t))})):u(t,n).then((function(d){d?t.getData(d).then((function(){t.status===s.OK?f(c(t)):e.authorize(t,n,r,o,i,a,l,u).then((function(){f(c(t))})).catch((function(t){p(e.createAuthorizationFailedError())}))})).catch((function(t){p(e.createAuthorizationFailedError())})):e.authorize(t,n,r,o,i,a,l,u).then((function(){f(c(t))})).catch((function(t){p(e.createAuthorizationFailedError())}))})).catch((function(t){p(e.createAuthorizationFailedError())}))}))},e.createError=function(e,t){var n=new Error;return n.message=t,n.name=String(e),n},e.createAuthorizationFailedError=function(){return e.createError(i.StatusCode.AUTHORIZATION_FAILED,"Authorization failed")},e.createRestrictedError=function(){return e.createError(i.StatusCode.RESTRICTED,"Restricted")},e.createInternalServerError=function(t){return e.createError(i.StatusCode.INTERNAL_SERVER_ERROR,t)},e.authorize=function(t,n,r,o,i,a,l,u){return new Promise((function(c,d){t.getData().then((function(){t.isAccessControlled()?u(t,n).then((function(u){u?t.getData(u).then((function(){t.status===s.OK?c(t):e.showAuthInteraction(t,n,r,o,i,a,l,c,d)})).catch((function(t){d(e.createInternalServerError(t))})):a(t,!1).then((function(u){u?l(t,u,n).then((function(){t.getData(u).then((function(){t.status===s.OK?c(t):e.showAuthInteraction(t,n,r,o,i,a,l,c,d)})).catch((function(t){d(e.createInternalServerError(t))}))})).catch((function(t){d(e.createInternalServerError(t))})):e.showAuthInteraction(t,n,r,o,i,a,l,c,d)}))})).catch((function(t){d(e.createInternalServerError(t))})):c(t)}))}))},e.showAuthInteraction=function(t,n,r,o,i,a,l,u,c){t.status!==s.MOVED_TEMPORARILY||t.isResponseHandled?t.clickThroughService&&!t.isResponseHandled?r(t).then((function(){a(t,!0).then((function(r){l(t,r,n).then((function(){t.getData(r).then((function(){u(t)})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})):i(t).then((function(){a(t,!0).then((function(r){l(t,r,n).then((function(){t.getData(r).then((function(){u(t)})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})).catch((function(t){c(e.createInternalServerError(t))}))})):u(t)},e.getService=function(e,t){for(var n=this.getServices(e),r=0;r<n.length;r++){var o=n[r];if(o.getProfile()===t)return o}return null},e.getResourceById=function(t,n){return e.traverseAndFind(t.__jsonld,"@id",n)},e.traverseAndFind=function(t,n,r){if(t.hasOwnProperty(n)&&t[n]===r)return t;for(var o=0;o<Object.keys(t).length;o++)if("object"==typeof t[Object.keys(t)[o]]){var i=e.traverseAndFind(t[Object.keys(t)[o]],n,r);if(null!=i)return i}},e.getServices=function(t,n){var r=void 0===n?{}:n,o=r.onlyService,a=void 0!==o&&o,s=r.onlyServices,l=void 0!==s&&s,u=r.skipParentResources,c=[];(void 0===u||!u)&&t&&t.options&&t.options.resource&&t.options.resource!==t&&c.push.apply(c,e.getServices(t.options.resource,{onlyServices:!0}));var d=l?[]:(t.__jsonld||t).service||[];if(Array.isArray(d)||(d=[d]),a||d.push.apply(d,(t.__jsonld||t).services||[]),0===d.length)return c;for(var f=0;f<d.length;f++){var p=d[f];if("string"==typeof p){var h=this.getResourceById(t.options.resource,p);h&&c.push(new i.Service(h.__jsonld||h,t.options))}else c.push(new i.Service(p,t.options))}return c},e.getTemporalComponent=function(e){var t=/t=([^&]+)/g.exec(e),n=null;return t&&t[1]&&(n=t[1].split(",")),n},e}();t.Utils=l},function(e,t,n){var r=n(19),o=n(20);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)}))}},function(e,t,n){e.exports=n(8)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(0));var r=n(3);t.loadManifest=function(e){return r.Utils.loadManifest(e)},t.parseManifest=function(e,t){return r.Utils.parseManifest(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.__jsonld=e,this.context=this.getProperty("context"),this.id=this.getProperty("id")}return e.prototype.getProperty=function(e){var t=null;return this.__jsonld&&((t=this.__jsonld[e])||(t=this.__jsonld["@"+e])),t},e}();t.JSONLDResource=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.options=n,r}return o(t,e),t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){var e=this.getProperty("label");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},t.prototype.getMetadata=function(){var e=this.getProperty("metadata"),t=[];if(!e)return t;for(var n=0;n<e.length;n++){var r=e[n],o=new i.LabelValuePair(this.options.locale);o.parse(r),t.push(o)}return t},t.prototype.getRendering=function(e){for(var t=this.getRenderings(),n=0;n<t.length;n++){var r=t[n];if(r.getFormat()===e)return r}return null},t.prototype.getRenderings=function(){var e,t=[];if(!(e=this.__jsonld?this.__jsonld.rendering:this.rendering))return t;Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];t.push(new i.Rendering(r,this.options))}return t},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");return t&&(e=new i.LabelValuePair(this.options.locale)).parse(t),e},t.prototype.getService=function(e){return i.Utils.getService(this,e)},t.prototype.getServices=function(){return i.Utils.getServices(this)},t.prototype.getThumbnail=function(){var e=this.getProperty("thumbnail");return Array.isArray(e)&&(e=e[0]),e?new i.Thumbnail(e,this.options):null},t.prototype.isAnnotation=function(){return this.getIIIFResourceType()===a.IIIFResourceType.ANNOTATION},t.prototype.isCanvas=function(){return this.getIIIFResourceType()===a.IIIFResourceType.CANVAS},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.isRange=function(){return this.getIIIFResourceType()===a.IIIFResourceType.RANGE},t.prototype.isSequence=function(){return this.getIIIFResourceType()===a.IIIFResourceType.SEQUENCE},t}(i.JSONLDResource);t.ManifestResource=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?e.toLowerCase():null},t.prototype.getResources=function(){var e=[];if(!this.__jsonld.resources)return e;for(var t=0;t<this.__jsonld.resources.length;t++){var n=this.__jsonld.resources[t],r=new i.Annotation(n,this.options);e.push(r)}return e},t.prototype.getType=function(){var e=this.getProperty("type");return e?i.Utils.normaliseType(e):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getMaxWidth=function(){return this.getProperty("maxWidth")},t.prototype.getMaxHeight=function(){return this.getProperty("maxHeight")?null:this.getMaxWidth()},t}(i.ManifestResource);t.Resource=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.index=-1,r.isLoaded=!1;var o={defaultLabel:"-",locale:"en-GB",resource:r,pessimisticAccessControl:!1};return r.options=Object.assign(o,n),r}return o(t,e),t.prototype.getAttribution=function(){var e=this.getProperty("attribution");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getDescription=function(){var e=this.getProperty("description");return e?i.PropertyValue.parse(e,this.options.locale):new i.PropertyValue([],this.options.locale)},t.prototype.getHomepage=function(){var e=this.getProperty("homepage");return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLogo=function(){var e=this.getProperty("logo");if(!e){var t=this.getProperty("provider");if(!t)return null;e=t.logo}return e?"string"==typeof e?e:(Array.isArray(e)&&e.length&&(e=e[0]),e["@id"]||e.id):null},t.prototype.getLicense=function(){return i.Utils.getLocalisedValue(this.getProperty("license"),this.options.locale)},t.prototype.getNavDate=function(){return new Date(this.getProperty("navDate"))},t.prototype.getRelated=function(){return this.getProperty("related")},t.prototype.getSeeAlso=function(){return this.getProperty("seeAlso")},t.prototype.getTrackingLabel=function(){var e=this.getService(a.ServiceProfile.TRACKING_EXTENSIONS);return e?e.getProperty("trackingLabel"):""},t.prototype.getDefaultTree=function(){return this.defaultTree=new i.TreeNode("root"),this.defaultTree.data=this,this.defaultTree},t.prototype.getRequiredStatement=function(){var e=null,t=this.getProperty("requiredStatement");if(t)(e=new i.LabelValuePair(this.options.locale)).parse(t);else{var n=this.getAttribution();n&&((e=new i.LabelValuePair(this.options.locale)).value=n)}return e},t.prototype.isCollection=function(){return this.getIIIFResourceType()===a.IIIFResourceType.COLLECTION},t.prototype.isManifest=function(){return this.getIIIFResourceType()===a.IIIFResourceType.MANIFEST},t.prototype.load=function(){var e=this;return new Promise((function(t){if(e.isLoaded)t(e);else{var n=e.options;n.navDate=e.getNavDate();var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),i.Utils.loadManifest(r).then((function(r){e.parentLabel=e.getLabel().getValue(n.locale);var o=i.Deserialiser.parse(r,n);(e=Object.assign(e,o)).index=n.index,t(e)}))}}))},t}(i.ManifestResource);t.IIIFResource=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getBody=function(){var e=[],t=this.getProperty("body");if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)if((a=t[n]).items)for(var r=0;r<a.items.length;r++){var o=a.items[r];e.push(new i.AnnotationBody(o,this.options))}else e.push(new i.AnnotationBody(a,this.options));else if(t.items)for(n=0;n<t.items.length;n++){var a=t.items[n];e.push(new i.AnnotationBody(a,this.options))}else e.push(new i.AnnotationBody(t,this.options));return e},t.prototype.getMotivation=function(){return this.getProperty("motivation")||null},t.prototype.getOn=function(){return this.getProperty("on")},t.prototype.getTarget=function(){return this.getProperty("target")},t.prototype.getResource=function(){return new i.Resource(this.getProperty("resource"),this.options)},t}(i.ManifestResource);t.Annotation=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getFormat=function(){var e=this.getProperty("format");return e?i.Utils.getMediaType(e):null},t.prototype.getType=function(){return this.getProperty("type")?i.Utils.normaliseType(this.getProperty("type")):null},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t}(i.ManifestResource);t.AnnotationBody=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.label=t,o.options=r,o}return o(t,e),t.prototype.getIIIFResourceType=function(){return i.Utils.normaliseType(this.getProperty("type"))},t.prototype.getLabel=function(){return this.label},t.prototype.getResources=function(){var e=this;return this.getProperty("resources").map((function(t){return new i.Annotation(t,e.options)}))},t.prototype.load=function(){var e=this;return new Promise((function(t,n){if(e.isLoaded)t(e);else{var r=e.__jsonld.id;r||(r=e.__jsonld["@id"]),i.Utils.loadManifest(r).then((function(n){e.__jsonld=n,e.context=e.getProperty("context"),e.id=e.getProperty("id"),e.isLoaded=!0,t(e)})).catch(n)}}))},t}(i.JSONLDResource);t.AnnotationList=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getItems=function(){return this.getProperty("items")},t}(n(0).ManifestResource);t.AnnotationPage=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=n(0),l=i(n(18)),u=i(n(30)),c=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getCanonicalImageUri=function(e){var t,n=null,r="default",o=e;if(this.externalResource&&this.externalResource.data&&this.externalResource.data["@id"])n=this.externalResource.data["@id"],o||(o=this.externalResource.data.width),this.externalResource.data["@context"]&&(this.externalResource.data["@context"].indexOf("/1.0/context.json")>-1||this.externalResource.data["@context"].indexOf("/1.1/context.json")>-1||this.externalResource.data["@context"].indexOf("/1/context.json")>-1)&&(r="native");else{var i=void 0;if((i=this.getImages())&&i.length){var a=i[0].getResource(),l=a.getServices();if(o||(o=a.getWidth()),u=l?l.find((function(e){return s.Utils.isImageProfile(e.getProfile())||s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)n=u.id,r=s.Utils.getImageQuality(u.getProfile());else if(o===a.getWidth())return a.id}if((i=this.getContent())&&i.length){var u,c=i[0].getBody()[0];if(l=c.getServices(),o||(o=c.getWidth()),u=l?l.find((function(e){return s.Utils.isImageServiceType(e.getIIIFResourceType())})):null)n=u.id,r=s.Utils.getImageQuality(u.getProfile());else if(o===c.getWidth())return c.id}if(!n){var d=this.getProperty("thumbnail");if(d){if("string"==typeof d)return d;if(d["@id"])return d["@id"];if(d.length)return d[0].id}}}return t=o+",",n&&n.endsWith("/")&&(n=n.substr(0,n.length-1)),[n,"full",t,0,r+".jpg"].join("/")},t.prototype.getMaxDimensions=function(){var e,t=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(e=this.externalResource.data.profile,Array.isArray(e)&&(e=e.filter((function(e){return e.maxWidth}))[0])&&(t=new s.Size(e.maxWidth,e.maxHeight?e.maxHeight:e.maxWidth))),t},t.prototype.getContent=function(){var e=[],t=this.__jsonld.items||this.__jsonld.content;if(!t)return e;var n=null;if(t.length&&(n=new s.AnnotationPage(t[0],this.options)),!n)return e;for(var r=n.getItems(),o=0;o<r.length;o++){var i=r[o],a=new s.Annotation(i,this.options);e.push(a)}return e},t.prototype.getDuration=function(){return this.getProperty("duration")},t.prototype.getImages=function(){var e=[];if(!this.__jsonld.images)return e;for(var t=0;t<this.__jsonld.images.length;t++){var n=this.__jsonld.images[t],r=new s.Annotation(n,this.options);e.push(r)}return e},t.prototype.getIndex=function(){return this.getProperty("index")},t.prototype.getOtherContent=function(){var e=this,t=(Array.isArray(this.getProperty("otherContent"))?this.getProperty("otherContent"):[this.getProperty("otherContent")]).filter((function(e){return e&&"string"==typeof(t=e["@type"])&&t.toLowerCase()==t.toLowerCase();var t})).map((function(t,n){return new s.AnnotationList(t.label||"Annotation list "+n,t,e.options)})).map((function(e){return e.load()}));return Promise.all(t)},t.prototype.getWidth=function(){return this.getProperty("width")},t.prototype.getHeight=function(){return this.getProperty("height")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},Object.defineProperty(t.prototype,"imageResources",{get:function(){var e=this,n=u.default([this.getImages().map((function(e){return e.getResource()})),this.getContent().map((function(e){return e.getBody()}))]);return l.default(n.map((function(n){switch(n.getProperty("type").toLowerCase()){case a.ExternalResourceType.CHOICE:case a.ExternalResourceType.OA_CHOICE:return new t({images:l.default([n.getProperty("default"),n.getProperty("item")]).map((function(e){return{resource:e}}))},e.options).getImages().map((function(e){return e.getResource()}));default:return n}})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resourceAnnotations",{get:function(){return u.default([this.getImages(),this.getContent()])},enumerable:!0,configurable:!0}),t.prototype.resourceAnnotation=function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||l.default(new Array(t.getBody())).some((function(t){return t.id===e}))}))},t.prototype.onFragment=function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target");if(n&&r){var o=(n||r).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},Object.defineProperty(t.prototype,"iiifImageResources",{get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageServiceIds",{get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return this.getWidth()/this.getHeight()},enumerable:!0,configurable:!0}),t}(s.Resource);t.Canvas=c},function(e,t,n){var r=n(4);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(2),o=n(24),i=n(29),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(22),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(23))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(25),o=n(5),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){var r=n(26),o=n(5);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(2),o=n(27),i=n(28),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(2),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(4);e.exports=function(e){return null!=e&&e.length?r(e,Infinity):[]}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._collections=null,r._manifests=null,t.__collection=r,r}return o(t,e),t.prototype.getCollections=function(){return this._collections?this._collections:this._collections=this.items.filter((function(e){return e.isCollection()}))},t.prototype.getManifests=function(){return this._manifests?this._manifests:this._manifests=this.items.filter((function(e){return e.isManifest()}))},t.prototype.getCollectionByIndex=function(e){for(var t,n=this.getCollections(),r=0;r<n.length;r++){var o=n[r];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Collection index not found")},t.prototype.getManifestByIndex=function(e){for(var t,n=this.getManifests(),r=0;r<n.length;r++){var o=n[r];o.index===e&&(t=o)}if(t)return t.options.index=e,t.load();throw new Error("Manifest index not found")},t.prototype.getTotalCollections=function(){return this.getCollections().length},t.prototype.getTotalManifests=function(){return this.getManifests().length},t.prototype.getTotalItems=function(){return this.items.length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):i.ViewingDirection.LEFT_TO_RIGHT},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getDefaultTree=function(){return e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),this._parseManifests(this),this._parseCollections(this),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._parseManifests=function(e){if(e.getManifests()&&e.getManifests().length)for(var t=0;t<e.getManifests().length;t++){var n=e.getManifests()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"manifest "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),e.defaultTree.addNode(r)}},t.prototype._parseCollections=function(e){if(e.getCollections()&&e.getCollections().length)for(var t=0;t<e.getCollections().length;t++){var n=e.getCollections()[t],r=n.getDefaultTree();r.label=n.parentLabel||n.getLabel().getValue(this.options.locale)||"collection "+(t+1),r.navDate=n.getNavDate(),r.data.id=n.id,r.data.type=a.Utils.normaliseType(a.TreeNodeType.COLLECTION),e.defaultTree.addNode(r)}},t}(a.IIIFResource);t.Collection=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getLength=function(){return this.end-this.start},e}();t.Duration=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e){this.defaultLocale=e}return e.prototype.parse=function(e){this.resource=e,this.label=r.PropertyValue.parse(this.resource.label,this.defaultLocale),this.value=r.PropertyValue.parse(this.resource.value,this.defaultLocale)},e.prototype.getLabel=function(e){return null===this.label?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.label.getValue(e||this.defaultLocale))},e.prototype.setLabel=function(e){null===this.label&&(this.label=new r.PropertyValue([])),this.label.setValue(e,this.defaultLocale)},e.prototype.getValue=function(e,t){return void 0===t&&(t="<br/>"),null===this.value?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValue(e||this.defaultLocale,t))},e.prototype.getValues=function(e){return null===this.value?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValues(e||this.defaultLocale))},e.prototype.setValue=function(e){null===this.value&&(this.value=new r.PropertyValue([])),this.value.setValue(e,this.defaultLocale)},e}();t.LabelValuePair=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getValue=function(e,t){return e.getValue(t,"<br/>")},t.getValues=function(e,t){return e.getValues(t)},t}(Array);t.LanguageMap=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=function(){function e(e,t,n){void 0===n&&(n="none"),Array.isArray(e)&&1===e.length?this._value=e[0]:this._value=e,"none"!==t&&"@none"!==t||(t=void 0),this._locale=t,this._defaultLocale=n}return e.parseV2Value=function(t,n){return"string"==typeof t?new e(t,void 0,n):t["@value"]?new e(t["@value"],t["@language"],n):null},Object.defineProperty(e.prototype,"value",{get:function(){return Array.isArray(this._value)?this._value.join("<br/>"):this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!0,configurable:!0}),e.prototype.addValue=function(e){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(e)?this._value=this._value.concat(e):this._value.push(e)},e}();t.LocalizedValue=s;var l=function(e){function t(n,r){void 0===n&&(n=[]);var o=e.apply(this,n)||this;return o.__proto__=t.prototype,o._defaultLocale=r,o}return o(t,e),t.parse=function(e,n){if(!e)return new t([],n);if(Array.isArray(e)){var r=(o=e.map((function(e){return s.parseV2Value(e,n)})).filter((function(e){return null!==e}))).reduce((function(e,t){var n=t._locale;return n||(n="none"),e[n]?e[n].addValue(t._value):e[n]=t,e}),{});return new t(Object.values(r),n)}return"string"==typeof e?new t([new s(e,void 0,n)],n):e["@language"]||e["@value"]?new t(null!==(o=s.parseV2Value(e))?[o]:[],n):new t(Object.keys(e).map((function(t){var r=e[t];if(!Array.isArray(r))throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.");return new s(r,t,n)})),n);var o},t.prototype.getSuitableLocale=function(e){for(var t=i(this).map((function(e){return e._locale})).filter((function(e){return void 0!==e})),n=function(e){var n=t.find((function(t){return t===e}));if(n)return{value:n}},r=0,o=e;r<o.length;r++){var s=n(o[r]);if("object"==typeof s)return s.value}for(var l=function(e){var n=t.find((function(t){return a.Utils.getInexactLocale(t)===a.Utils.getInexactLocale(e)}));if(n)return{value:n}},u=0,c=e;u<c.length;u++){var d=l(c[u]);if("object"==typeof d)return d.value}},t.prototype.setValue=function(e,t){var n=void 0;if(t){var r=this.getSuitableLocale([t]);r&&(n=this.find((function(e){return e._locale===r})))}else n=this.find((function(e){return void 0===e._locale}));n?n._value=e:this.push(new s(e,t,this._defaultLocale))},t.prototype.getValue=function(e,t){var n=this.getValues(e);return 0===n.length?null:t?n.join(t):n[0]},t.prototype.getValues=function(e){if(!this.length)return[];var t;if(t=e?Array.isArray(e)?e:[e]:[],1===this.length&&void 0===this[0]._locale){var n=this[0]._value;return Array.isArray(n)?n:[n]}var r=this.getSuitableLocale(t);if(r)return n=this.find((function(e){return e._locale===r}))._value,Array.isArray(n)?n:[n];if(!this.find((function(e){return void 0===e._locale})))return n=this[0]._value,Array.isArray(n)?n:[n];var o=this.find((function(e){return void 0===e._locale}));return o?Array.isArray(o._value)?o._value:[o._value]:[]},t}(Array);t.PropertyValue=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511},function(e,t,n){e.exports=window.fetch||(window.fetch=n(6).default||n(6))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;if(r.index=0,r._allRanges=null,r.items=[],r._topRanges=[],r.__jsonld.structures&&r.__jsonld.structures.length)for(var o=r._getTopRanges(),i=0;i<o.length;i++){var a=o[i];r._parseRanges(a,String(i))}return r}return o(t,e),t.prototype.getPosterCanvas=function(){var e=this.getProperty("posterCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getAccompanyingCanvas=function(){var e=this.getProperty("accompanyingCanvas");return e&&(e=new a.Canvas(e,this.options)),e},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getDefaultTree=function(){if(e.prototype.getDefaultTree.call(this),this.defaultTree.data.type=a.Utils.normaliseType(a.TreeNodeType.MANIFEST),!this.isLoaded)return this.defaultTree;var t=this.getTopRanges();return t.length&&t[0].getTree(this.defaultTree),a.Utils.generateTreeNodeIds(this.defaultTree),this.defaultTree},t.prototype._getTopRanges=function(){var e=[];if(this.__jsonld.structures&&this.__jsonld.structures.length){for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];n.viewingHint===i.ViewingHint.TOP&&e.push(n)}if(!e.length){var r={};r.ranges=this.__jsonld.structures,e.push(r)}}return e},t.prototype.getTopRanges=function(){return this._topRanges},t.prototype._getRangeById=function(e){if(this.__jsonld.structures&&this.__jsonld.structures.length)for(var t=0;t<this.__jsonld.structures.length;t++){var n=this.__jsonld.structures[t];if(n["@id"]===e||n.id===e)return n}return null},t.prototype._parseRanges=function(e,t,n){var r,o=null;if("string"==typeof e&&(o=e,e=this._getRangeById(o)),e){(r=new a.Range(e,this.options)).parentRange=n,r.path=t,n?n.items.push(r):this._topRanges.push(r);var i=e.items||e.members;if(i)for(var s=0;s<i.length;s++){var l=i[s];if(l["@type"]&&"sc:range"===l["@type"].toLowerCase()||l.type&&"range"===l.type.toLowerCase())this._parseRanges(l,t+"/"+s,r);else if(l["@type"]&&"sc:canvas"===l["@type"].toLowerCase()||l.type&&"canvas"===l.type.toLowerCase()){r.canvases||(r.canvases=[]);var u=l.id||l["@id"];r.canvases.push(u)}}else if(e.ranges)for(s=0;s<e.ranges.length;s++)this._parseRanges(e.ranges[s],t+"/"+s,r)}else console.warn("Range:",o,"does not exist")},t.prototype.getAllRanges=function(){if(null!=this._allRanges)return this._allRanges;this._allRanges=[];for(var e=this.getTopRanges(),t=function(t){var r=e[t];r.id&&n._allRanges.push(r);var o=function(e,t){e.add(t);var n=t.getRanges();return n.length?n.reduce(o,e):e},i=Array.from(r.getRanges().reduce(o,new Set));n._allRanges=n._allRanges.concat(i)},n=this,r=0;r<e.length;r++)t(r);return this._allRanges},t.prototype.getRangeById=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.id===e)return r}return null},t.prototype.getRangeByPath=function(e){for(var t=this.getAllRanges(),n=0;n<t.length;n++){var r=t[n];if(r.path===e)return r}return null},t.prototype.getSequences=function(){if(this.items.length)return this.items;var e=this.__jsonld.mediaSequences||this.__jsonld.sequences;if(e)for(var t=0;t<e.length;t++){var n=e[t],r=new a.Sequence(n,this.options);this.items.push(r)}else this.__jsonld.items&&(r=new a.Sequence(this.__jsonld.items,this.options),this.items.push(r));return this.items},t.prototype.getSequenceByIndex=function(e){return this.getSequences()[e]},t.prototype.getTotalSequences=function(){return this.getSequences().length},t.prototype.getManifestType=function(){var e=this.getService(i.ServiceProfile.UI_EXTENSIONS);return e?e.getProperty("manifestType"):a.ManifestType.EMPTY},t.prototype.isMultiSequence=function(){return this.getTotalSequences()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();if(e)return e===i.ViewingHint.PAGED;var t=this.getBehavior();return!!t&&t===i.Behavior.PAGED},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t}(a.IIIFResource);t.Manifest=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EMPTY="",e.MANUSCRIPT="manuscript",e.MONOGRAPH="monograph"}(t.ManifestType||(t.ManifestType={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(1),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._ranges=null,r.canvases=null,r.items=[],r}return o(t,e),t.prototype.getCanvasIds=function(){return this.__jsonld.canvases?this.__jsonld.canvases:this.canvases?this.canvases:[]},t.prototype.getDuration=function(){if(this.canvases&&this.canvases.length){for(var e=[],t=[],n=0,r=this.canvases;n<r.length;n++)if(h=r[n]){var o=h.match(/(.*)#t=([0-9.]+),?([0-9.]+)?/)||[void 0,h],a=o[1],s=o[2],l=o[3];a&&(e.push(parseFloat(s)),t.push(parseFloat(l)))}if(e.length&&t.length)return new i.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}else{e=[],t=[];for(var u=0,c=m=this.getRanges();u<c.length;u++)(v=c[u].getDuration())&&(e.push(v.start),t.push(v.end));if(e.length&&t.length)return new i.Duration(Math.min.apply(Math,e),Math.max.apply(Math,t))}var d,f;if(this.canvases&&this.canvases.length)for(var p=0;p<this.canvases.length;p++){var h=this.canvases[p],g=i.Utils.getTemporalComponent(h);g&&g.length>1&&(0===p&&(d=Number(g[0])),p===this.canvases.length-1&&(f=Number(g[1])))}else{var m=this.getRanges();for(p=0;p<m.length;p++){var v;(v=m[p].getDuration())&&(0===p&&(d=v.start),p===m.length-1&&(f=v.end))}}if(void 0!==d&&void 0!==f)return new i.Duration(d,f)},t.prototype.getRanges=function(){return this._ranges?this._ranges:this._ranges=this.items.filter((function(e){return e.isRange()}))},t.prototype.getBehavior=function(){var e=this.getProperty("behavior");return Array.isArray(e)&&(e=e[0]),e||null},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.getTree=function(e){e.data=this,this.treeNode=e;var t=this.getRanges();if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n],o=new i.TreeNode;e.addNode(o),this._parseTreeNode(o,r)}return i.Utils.generateTreeNodeIds(e),e},t.prototype.spansTime=function(e){var t=this.getDuration();return!!(t&&e>=t.start&&e<=t.end)},t.prototype._parseTreeNode=function(e,t){e.label=t.getLabel().getValue(this.options.locale),e.data=t,e.data.type=i.Utils.normaliseType(i.TreeNodeType.RANGE),t.treeNode=e;var n=t.getRanges();if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r];if(o.getBehavior()!==a.Behavior.NO_NAV){var s=new i.TreeNode;e.addNode(s),this._parseTreeNode(s,o)}}},t}(i.ManifestResource);t.Range=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getFormat=function(){return this.getProperty("format")},t}(n(0).ManifestResource);t.Rendering=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(0),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.items=[],r._thumbnails=null,r}return o(t,e),t.prototype.getCanvases=function(){if(this.items.length)return this.items;var e=this.__jsonld.canvases||this.__jsonld.elements;if(e)for(var t=0;t<e.length;t++){var n=e[t];(r=new a.Canvas(n,this.options)).index=t,this.items.push(r)}else if(this.__jsonld)for(t=0;t<this.__jsonld.length;t++){var r;n=this.__jsonld[t],(r=new a.Canvas(n,this.options)).index=t,this.items.push(r)}return this.items},t.prototype.getCanvasById=function(e){for(var t=0;t<this.getTotalCanvases();t++){var n=this.getCanvasByIndex(t),r=a.Utils.normaliseUrl(n.id);if(a.Utils.normaliseUrl(e)===r)return n}return null},t.prototype.getCanvasByIndex=function(e){return this.getCanvases()[e]},t.prototype.getCanvasIndexById=function(e){for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return null},t.prototype.getCanvasIndexByLabel=function(e,t){e=e.trim(),isNaN(e)||(e=parseInt(e,10).toString(),t&&(e+="r"));for(var n,r,o,i=/(\d*)\D+(\d*)/,a=0;a<this.getTotalCanvases();a++){var s=this.getCanvasByIndex(a);if(s.getLabel().getValue(this.options.locale)===e)return a;if((n=i.exec(e))&&(r=n[1],(o=n[2])&&new RegExp("^"+r+"\\D+"+o+"$").test(s.getLabel().toString())))return a}return-1},t.prototype.getLastCanvasLabel=function(e){for(var t=this.getTotalCanvases()-1;t>=0;t--){var n=this.getCanvasByIndex(t).getLabel().getValue(this.options.locale);if(e){if(/^[a-zA-Z0-9]*$/.test(n))return n}else if(n)return n}return this.options.defaultLabel},t.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},t.prototype.getNextPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),o=this.getViewingDirection();n=o&&o===i.ViewingDirection.RIGHT_TO_LEFT?r[0]+1:r[r.length-1]+1}else n=e+1;return n>this.getLastPageIndex()?-1:n},t.prototype.getPagedIndices=function(e,t){var n=[];if(t){n=this.isFirstCanvas(e)||this.isLastCanvas(e)?[e]:e%2?[e,e+1]:[e-1,e];var r=this.getViewingDirection();r&&r===i.ViewingDirection.RIGHT_TO_LEFT&&(n=n.reverse())}else n.push(e);return n},t.prototype.getPrevPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),o=this.getViewingDirection();n=o&&o===i.ViewingDirection.RIGHT_TO_LEFT?r[r.length-1]-1:r[0]-1}else n=e-1;return n},t.prototype.getStartCanvasIndex=function(){var e=this.getStartCanvas();if(e)for(var t=0;t<this.getTotalCanvases();t++)if(this.getCanvasByIndex(t).id===e)return t;return 0},t.prototype.getThumbs=function(e,t){for(var n=[],r=this.getTotalCanvases(),o=0;o<r;o++){var i=this.getCanvasByIndex(o),s=new a.Thumb(e,i);n.push(s)}return n},t.prototype.getThumbnails=function(){if(null!=this._thumbnails)return this._thumbnails;this._thumbnails=[];for(var e=this.getCanvases(),t=0;t<e.length;t++){var n=e[t].getThumbnail();n&&this._thumbnails.push(n)}return this._thumbnails},t.prototype.getStartCanvas=function(){return this.getProperty("startCanvas")},t.prototype.getTotalCanvases=function(){return this.getCanvases().length},t.prototype.getViewingDirection=function(){return this.getProperty("viewingDirection")?this.getProperty("viewingDirection"):this.options.resource.getViewingDirection?this.options.resource.getViewingDirection():null},t.prototype.getViewingHint=function(){return this.getProperty("viewingHint")},t.prototype.isCanvasIndexOutOfRange=function(e){return e>this.getTotalCanvases()-1},t.prototype.isFirstCanvas=function(e){return 0===e},t.prototype.isLastCanvas=function(e){return e===this.getTotalCanvases()-1},t.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();return!!e&&e===i.ViewingHint.PAGED},t.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},t}(a.ManifestResource);t.Sequence=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){}return e.parse=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),this.parseJson(e,t)},e.parseJson=function(e,t){var n;if(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(e.navDate=t.navDate.toString()),e["@type"])switch(e["@type"]){case"sc:Collection":n=this.parseCollection(e,t);break;case"sc:Manifest":n=this.parseManifest(e,t);break;default:return null}else switch(e.type){case"Collection":n=this.parseCollection(e,t);break;case"Manifest":n=this.parseManifest(e,t);break;default:return null}return n.isLoaded=!0,n},e.parseCollection=function(e,t){var n=new r.Collection(e,t);return t?(n.index=t.index||0,t.resource&&(n.parentCollection=t.resource.parentCollection)):n.index=0,this.parseCollections(n,t),this.parseManifests(n,t),this.parseItems(n,t),n},e.parseCollections=function(e,t){var n;if(e.__jsonld.collections?n=e.__jsonld.collections:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"collection"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){t&&(t.index=r);var o=this.parseCollection(n[r],t);o.index=r,o.parentCollection=e,e.items.push(o)}},e.parseManifest=function(e,t){return new r.Manifest(e,t)},e.parseManifests=function(e,t){var n;if(e.__jsonld.manifests?n=e.__jsonld.manifests:e.__jsonld.items&&(n=e.__jsonld.items.filter((function(e){return"manifest"===e.type.toLowerCase()}))),n)for(var r=0;r<n.length;r++){var o=this.parseManifest(n[r],t);o.index=r,o.parentCollection=e,e.items.push(o)}},e.parseItem=function(e,t){if(e["@type"]){if("sc:manifest"===e["@type"].toLowerCase())return this.parseManifest(e,t);if("sc:collection"===e["@type"].toLowerCase())return this.parseCollection(e,t)}else if(e.type){if("manifest"===e.type.toLowerCase())return this.parseManifest(e,t);if("collection"===e.type.toLowerCase())return this.parseCollection(e,t)}return null},e.parseItems=function(e,t){var n=e.__jsonld.members||e.__jsonld.items;if(n)for(var r=function(r){t&&(t.index=r);var i=o.parseItem(n[r],t);return i?e.items.filter((function(e){return e.id===i.id}))[0]?"continue":(i.index=r,i.parentCollection=e,void e.items.push(i)):{value:void 0}},o=this,i=0;i<n.length;i++){var a=r(i);if("object"==typeof a)return a.value}},e}();t.Deserialiser=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getProfile=function(){var e=this.getProperty("profile");return e||(e=this.getProperty("dcterms:conformsTo")),Array.isArray(e)?e[0]:e},t.prototype.getConfirmLabel=function(){return i.Utils.getLocalisedValue(this.getProperty("confirmLabel"),this.options.locale)},t.prototype.getDescription=function(){return i.Utils.getLocalisedValue(this.getProperty("description"),this.options.locale)},t.prototype.getFailureDescription=function(){return i.Utils.getLocalisedValue(this.getProperty("failureDescription"),this.options.locale)},t.prototype.getFailureHeader=function(){return i.Utils.getLocalisedValue(this.getProperty("failureHeader"),this.options.locale)},t.prototype.getHeader=function(){return i.Utils.getLocalisedValue(this.getProperty("header"),this.options.locale)},t.prototype.getServiceLabel=function(){return i.Utils.getLocalisedValue(this.getProperty("label"),this.options.locale)},t.prototype.getInfoUri=function(){var e=this.id;return e.endsWith("/")||(e+="/"),e+"info.json"},t}(i.ManifestResource);t.Service=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Size=function(e,t){this.width=e,this.height=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AUTHORIZATION_FAILED=1]="AUTHORIZATION_FAILED",e[e.FORBIDDEN=2]="FORBIDDEN",e[e.INTERNAL_SERVER_ERROR=3]="INTERNAL_SERVER_ERROR",e[e.RESTRICTED=4]="RESTRICTED"}(t.StatusCode||(t.StatusCode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Thumb=function(e,t){this.data=t,this.index=t.index,this.width=e;var n=t.getHeight()/t.getWidth();this.height=n?Math.floor(this.width*n):e,this.uri=t.getCanonicalImageUri(e),this.label=t.getLabel().getValue(),this.viewingHint=t.getViewingHint()}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(n(0).Resource);t.Thumbnail=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(e,t){this.label=e,this.data=t||{},this.nodes=[]}return e.prototype.addNode=function(e){this.nodes.push(e),e.parentNode=this},e.prototype.isCollection=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.COLLECTION)},e.prototype.isManifest=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.MANIFEST)},e.prototype.isRange=function(){return this.data.type===r.Utils.normaliseType(r.TreeNodeType.RANGE)},e}();t.TreeNode=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.COLLECTION="collection",e.MANIFEST="manifest",e.RANGE="range"}(t.TreeNodeType||(t.TreeNodeType={}))}])},11728:(e,t,n)=>{"use strict";n.d(t,{K:()=>f});var r=n(67294),o=n(22318),i=n(45941),a=n(81720);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(g,e);var t,n,f,p,h=(f=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(f);if(p){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function g(){return s(this,g),h.apply(this,arguments)}return t=g,(n=[{key:"render",value:function(){var e=this.props,t=e.defaultLabel,n=e.labelValuePairs;return 0===n.length?r.createElement(r.Fragment,null):r.createElement("dl",{className:(0,a.Z)("label-value-metadata")},n.reduce((function(e,n,a){return e.concat([r.createElement(o.Z,{component:"dt",key:"label-".concat(a),variant:"subtitle2"},n.label||t),r.createElement(o.Z,{style:{marginBottom:".5em",marginLeft:"0px"},component:"dd",key:"value-".concat(a),variant:"body1"},r.createElement(i.Z,{htmlString:n.values.join(", "),ruleSet:"iiif"}))])}),[]))}}])&&l(t.prototype,n),g}(r.Component);f.defaultProps={defaultLabel:void 0}},44180:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(67294),o=n(59009),i=n(17812),a=n(868),s=n(81720),l=["badge","children","containerId","dispatch","BadgeProps","TooltipProps"];function u(e){var t=e["aria-label"],n=e.badge,u=e.children,c=e.containerId,d=(e.dispatch,e.BadgeProps),f=e.TooltipProps,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l),h=r.createElement(i.Z,p,n?r.createElement(o.Z,d,u):u);return p.disabled?h:r.createElement(a.ZP,Object.assign({PopperProps:{container:document.querySelector("#".concat(c," .").concat((0,s.Z)("viewer")))},title:t},f),h)}u.defaultProps={badge:!1,BadgeProps:{},dispatch:function(){},TooltipProps:{}}},95450:(e,t,n)=>{"use strict";n.d(t,{M:()=>l});var r=n(67294),o=["classes"];function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=r.forwardRef((function(e,t){var n=e.PluginComponents,i=(e.classes,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,o));return n?n.map((function(e,n){return r.isValidElement(e)?r.cloneElement(e,a(a({},i),{},{ref:t})):r.createElement(e,Object.assign({ref:t},i,{key:n}))})):null}))},81720:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(73818),o=n(85564),i=n.n(o);const a=function(e){return i()([e]).map((function(e){return[r.Z.createGenerateClassNameOptions.productionPrefix,e].join("-")})).join(" ")}},73818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(53001);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={state:{},canvasNavigation:{height:50,width:50},selectedTheme:"light",themes:{dark:{palette:{type:"dark",primary:{main:"#4db6ac"},secondary:{main:"#4db6ac"},shades:{dark:"#000000",main:"#424242",light:"#616161"}}},light:{palette:{type:"light"}}},theme:{palette:{type:"light",primary:{main:"#1967d2"},secondary:{main:"#1967d2"},shades:{dark:"#eeeeee",main:"#ffffff",light:"#f5f5f5"},error:{main:"#b00020"},notification:{main:"#ffa224"},hitCounter:{default:"#bdbdbd"},highlights:{primary:"#ffff00",secondary:"#00BFFF"},section_divider:"rgba(0, 0, 0, 0.25)",annotations:{hidden:{globalAlpha:0},default:{strokeStyle:"#00BFFF",globalAlpha:1},hovered:{strokeStyle:"#BF00FF",globalAlpha:1},selected:{strokeStyle:"#ffff00",globalAlpha:1}},search:{default:{fillStyle:"#00BFFF",globalAlpha:.3},hovered:{fillStyle:"#00FFFF",globalAlpha:.3},selected:{fillStyle:"#ffff00",globalAlpha:.3}}},typography:{body1:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},button:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem",textTransform:"uppercase"},caption:{fontSize:"0.772rem",letterSpacing:"0.033em",lineHeight:"1.6rem"},body1Next:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2Next:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},buttonNext:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem"},captionNext:{fontSize:"0.772rem",letterSpacing:"0.33em",lineHeight:"1.6rem"},overline:{fontSize:"0.678rem",fontWeight:500,letterSpacing:"0.166em",lineHeight:"2em",textTransform:"uppercase"},h1:{fontSize:"2.822rem",letterSpacing:"-0.015em",lineHeight:"1.2em"},h2:{fontSize:"1.575rem",letterSpacing:"0em",lineHeight:"1.33em"},h3:{fontSize:"1.383rem",fontWeight:300,letterSpacing:"0em",lineHeight:"1.33em"},h4:{fontSize:"1.215rem",letterSpacing:"0.007em",lineHeight:"1.45em"},h5:{fontSize:"1.138rem",letterSpacing:"0.005em",lineHeight:"1.55em"},h6:{fontSize:"1.067rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"1.6em"},subtitle1:{fontSize:"0.937rem",letterSpacing:"0.015em",lineHeight:"1.6em",fontWeight:300},subtitle2:{fontSize:"0.878rem",fontWeight:500,letterSpacing:"0.02em",lineHeight:"1.75em"},useNextVariants:!0},overrides:{MuiListSubheader:{root:{'&[role="presentation"]:focus':{outline:0}}},MuiTooltip:{tooltipPlacementLeft:i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementRight:i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementTop:i({},"@media (min-width:600px)",{margin:0}),tooltipPlacementBottom:i({},"@media (min-width:600px)",{margin:0})},MuiTouchRipple:{childPulsate:{animation:"none"},rippleVisible:{animation:"none"}}},props:{MuiButtonBase:{disableTouchRipple:!0},MuiLink:{underline:"always"}}},language:"en",availableLanguages:{ar:"العربية",de:"Deutsch",en:"English",fr:"Français",ja:"日本語",kr:"한국어",lt:"Lietuvių",nl:"Nederlands","nb-NO":"Norwegian Bokmål",pl:"Polski","pt-BR":"Português do Brasil",vi:"Tiếng Việt","zh-CN":"中文(简体)","zh-TW":"中文(繁體)",it:"Italiano",sr:"Српски",sv:"Svenska"},annotations:{htmlSanitizationRuleSet:"iiif",filteredMotivations:["oa:commenting","oa:tagging","sc:painting","commenting","tagging"]},createGenerateClassNameOptions:{productionPrefix:"mirador"},requests:{preprocessors:[],postprocessors:[]},translations:{},window:{allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,authNewWindowCenter:"parent",sideBarPanel:"info",defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,defaultView:"single",forceDrawAnnotations:!1,hideWindowTitle:!1,highlightAllAnnotations:!1,showLocalePicker:!1,sideBarOpen:!1,switchCanvasOnSearch:!0,panels:{info:!0,attribution:!0,canvas:!0,annotations:!0,search:!0,layers:!0},views:[{key:"single",behaviors:["individuals"]},{key:"book",behaviors:["paged"]},{key:"scroll",behaviors:["continuous"]},{key:"gallery"}],elastic:{height:400,width:480}},windows:[],thumbnails:{preferredFormats:["jpg","png","webp","tif"]},thumbnailNavigation:{defaultPosition:"off",displaySettings:!0,height:130,width:100},workspace:{draggingEnabled:!0,allowNewWindows:!0,id:(0,r.Z)(),isWorkspaceAddVisible:!1,exposeModeOn:!1,height:5e3,showZoomControls:!1,type:"mosaic",viewportPosition:{x:0,y:0},width:5e3},workspaceControlPanel:{enabled:!0},galleryView:{height:120,width:null},osdConfig:{alwaysBlend:!1,blendTime:.1,preserveImageSizeOnResize:!0,preserveViewport:!0,showNavigationControl:!1},export:{catalog:!0,companionWindows:!0,config:!0,elasticLayout:!0,layers:!0,manifests:{filter:function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(t,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.")}()),i=r[0];return r[1],!i.startsWith("http")}},viewers:!0,windows:!0,workspace:!0},audioOptions:{controls:!0,crossOrigin:"anonymous"},videoOptions:{controls:!0,crossOrigin:"anonymous"},auth:{serviceProfiles:[{profile:"http://iiif.io/api/auth/1/external",external:!0},{profile:"http://iiif.io/api/auth/1/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/1/clickthrough"},{profile:"http://iiif.io/api/auth/1/login"},{profile:"http://iiif.io/api/auth/0/external",external:!0},{profile:"http://iiif.io/api/auth/0/kiosk",kiosk:!0},{profile:"http://iiif.io/api/auth/0/clickthrough"},{profile:"http://iiif.io/api/auth/0/login"}]}}},91736:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(97779),o=n(87217),i=n(52543),a=n(67294),s=n(22318),l=n(78536),u=n(9942),c=n(99559);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(m,e);var t,n,r,o,i=(r=m,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(r);if(o){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=i.call(this,e)).state={open:!0},t.toggleSection=t.toggleSection.bind(h(t)),t}return t=m,(n=[{key:"toggleSection",value:function(){var e=this.state.open;this.setState({open:!e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.id,o=e.label,i=e.t,d=this.state.open;return a.createElement(a.Fragment,null,a.createElement("div",{className:n.container},a.createElement(s.Z,{className:n.heading,id:r,onClick:this.toggleSection,variant:"overline",component:"h4"},o),a.createElement(c.Z,{"aria-label":i(d?"collapseSection":"expandSection",{section:o}),"aria-expanded":d,className:n.button,onClick:this.toggleSection},d?a.createElement(u.Z,null):a.createElement(l.Z,null))),d&&t)}}])&&d(t.prototype,n),m}(a.Component);const v=(0,r.qC)((0,o.Z)(),(0,i.Z)({button:{padding:0},container:{display:"flex",justifyContent:"space-between"},heading:{cursor:"pointer"}}))(m)},91055:(e,t,n)=>{"use strict";n.d(t,{Z:()=>M});var r=n(97779),o=n(28216),i=n(87217),a=n(52543),s=n(8935),l=n(11196),u=n(67294),c=n(1124),d=n(80725),f=n(80923),p=n(89875),h=n(1172),g=n(95378),m=n(87337),v=n(45470),y=n(79895),b=n(22318),w=n(28358),E=n(61090),O=n(99559),x=n(81720);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}function P(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R(r);if(o){var n=R(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return P(this,e)});function a(){return _(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"openInNewStyle",value:function(){return"rtl"===this.props.direction?{transform:"scale(-1, 1)"}:{}}},{key:"resizeHandles",value:function(){var e=this.props,t=e.direction,n=e.position,r={ltr:{default:"left",opposite:"right"},rtl:{default:"right",opposite:"left"}},o={bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};return"right"===n||"far-right"===n?I(I({},o),{},C({},r[t].default,!0)):"left"===n?I(I({},o),{},C({},r[t].opposite,!0)):"bottom"===n||"far-bottom"===n?I(I({},o),{},{top:!0}):o}},{key:"render",value:function(){var e=this.props,t=e.ariaLabel,n=e.classes,r=e.paperClassName,o=e.onCloseClick,i=e.updateCompanionWindow,a=e.isDisplayed,s=e.position,l=e.t,c=e.title,d=e.children,f=e.titleControls,p=e.size,h=e.defaultSidebarPanelWidth,S=e.defaultSidebarPanelHeight,I="bottom"===s||"far-bottom"===s,C=u.Children.map(d,(function(e){return e?u.cloneElement(e,{parentactions:{closeCompanionWindow:o}}):null}));return u.createElement(y.Z,{className:[n.root,"bottom"===s?n.horizontal:n.vertical,n["companionWindow-".concat(s)],(0,x.Z)("companion-window-".concat(s)),r].join(" "),style:{display:a?null:"none",order:"left"===s?-1:null},square:!0,component:"aside","aria-label":t||c},u.createElement(E.s,{className:[n.rnd],style:{display:"flex",position:"relative"},default:{height:I?S:"100%",width:I?"auto":h},disableDragging:!0,enableResizing:this.resizeHandles(),minHeight:50,minWidth:"left"===s?235:100},u.createElement(w.Z,{className:[n.toolbar,n.companionWindowHeader,p.width<370?n.small:null,(0,x.Z)("companion-window-header")].join(" "),disableGutters:!0},u.createElement(b.Z,{variant:"h3",className:n.windowSideBarTitle},c),"left"===s?i&&u.createElement(O.Z,{"aria-label":l("openInCompanionWindow"),onClick:function(){i({position:"right"})}},u.createElement(m.Z,{style:this.openInNewStyle()})):u.createElement(u.Fragment,null,i&&u.createElement(O.Z,{"aria-label":l("bottom"===s?"moveCompanionWindowToRight":"moveCompanionWindowToBottom"),className:n.positionButton,onClick:function(){i({position:"bottom"===s?"right":"bottom"})}},u.createElement(v.Z,null)),u.createElement(O.Z,{"aria-label":l("closeCompanionWindow"),className:n.closeButton,onClick:o},u.createElement(g.Z,null))),f&&u.createElement("div",{className:[n.titleControls,I?n.companionWindowTitleControlsBottom:n.companionWindowTitleControls,(0,x.Z)("companion-window-title-controls")].join(" ")},f)),u.createElement(y.Z,{className:[n.content,(0,x.Z)("scrollto-scrollable")].join(" "),elevation:0},C)))}}])&&k(t.prototype,n),a}(u.Component);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}A.defaultProps={ariaLabel:void 0,children:void 0,defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,isDisplayed:!1,onCloseClick:function(){},paperClassName:"",position:null,size:{},t:function(e){return e},title:null,titleControls:null,updateCompanionWindow:void 0};const M=(0,r.qC)((function(e){return(0,u.forwardRef)((function(t,n){return u.createElement(e,Object.assign({innerRef:n},t))}))}),(0,i.Z)(),(0,a.Z)((function(e){return{closeButton:{order:4},"companionWindow-bottom":{borderTop:"0.5px solid ".concat(e.palette.divider)},"companionWindow-left":{borderRight:"0.5px solid ".concat(e.palette.divider)},"companionWindow-right":{borderLeft:"0.5px solid ".concat(e.palette.divider)},companionWindowHeader:{flexWrap:"wrap"},companionWindowTitleControls:{flexGrow:1,order:1e3},companionWindowTitleControlsBottom:{order:"unset"},content:{overflowY:"auto",wordBreak:"break-word"},horizontal:{},positionButton:{marginLeft:-16,order:-100,width:24},rnd:{display:"flex",flexDirection:"column",minHeight:0},root:{boxShadow:"none",boxSizing:"border-box",display:"flex",flexDirection:"column",minHeight:0},small:{},titleControls:{alignItems:"center",display:"flex",flexFlow:"row wrap",minHeight:48,order:3},toolbar:{"&$small":{"& $closeButton":{order:"unset"},"& $titleControls":{order:"unset"}},alignItems:"flex-start",background:e.palette.shades.light,justifyContent:"space-between",minHeight:"max-content",paddingLeft:e.spacing(2)},vertical:{},windowSideBarTitle:N(N({},e.typography.subtitle1),{},{alignSelf:"center",flexGrow:1,width:160})}})),(0,s.withSize)(),(0,o.$j)((function(e,t){var n=t.id,r=t.windowId,o=(0,f.KW)(e,{companionWindowId:n}),i=(0,p.Em)(e,{windowId:r}),a=i.defaultSidebarPanelHeight,s=i.defaultSidebarPanelWidth;return N(N({},o),{},{defaultSidebarPanelHeight:a,defaultSidebarPanelWidth:s,direction:(0,h.tt)(e),isDisplayed:o&&o.content&&o.content.length>0})}),(function(e,t){var n=t.windowId,r=t.id;return{onCloseClick:function(){return e(d.s(n,r))},updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(d.b0.apply(c,[n,r].concat(o)))}}})),(0,l.A)("CompanionWindow"))(A)},20362:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(97779),o=n(28216),i=n(87217),a=n(52543),s=n(11196),l=n(1172),u=n(67294),c=(n(66337),n(22318)),d=n(9361),f=n(94184),p=n.n(f),h=n(21306);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(o);if(i){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={loaded:!1},t.handleIntersection=t.handleIntersection.bind(E(t)),t}return t=s,r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],(n=[{key:"componentDidMount",value:function(){var e=this;this.setState((function(t){return m(m({},t),{},{image:e.image()})}))}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.maxHeight,o=n.maxWidth,i=n.resource;e.maxHeight===r&&e.maxWidth===o&&e.resource===i||this.setState((function(e){return m(m({},e),{},{image:t.image()})}))}},{key:"handleIntersection",value:function(e){!this.state.loaded&&e.isIntersecting&&this.setState((function(e){return m(m({},e),{},{loaded:!0})}))}},{key:"imageStyles",value:function(){var e=this.props,t=e.maxHeight,n=e.maxWidth,r=e.style,o=this.image(),i={height:"auto",width:"auto"};if(!o)return m(m({},r),{},{height:t||"auto",width:n||"auto"});var a=o.height,s=o.width;if(a&&s)if(t&&a>t||n&&s>n){var l=s/a;t&&n?n/t<l?(i.height=Math.round(n/l),i.width=n):(i.height=t,i.width=Math.round(t*l)):t?(i.height=t,i.maxWidth=Math.round(t*l)):n&&(i.width=n,i.maxHeight=Math.round(n/l))}else i.width=s,i.height=a;else a&&!s?i.height=t:!a&&s?i.width=n:(i.width=n,i.height=t);return m(m({},i),r)}},{key:"image",value:function(){var e=this.props,t=e.thumbnail,n=e.resource,r=e.maxHeight,o=e.maxWidth,i=e.thumbnailsConfig;if(t)return t;var a=(0,h.Z)(n,m(m({},i),{},{maxHeight:r,maxWidth:o}));return a&&a.url?a:void 0}},{key:"label",value:function(){var e=this.props,t=e.label,n=e.resource;return t||s.getUseableLabel(n)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes,r=e.imagePlaceholder,o=e.labelled,i=e.thumbnail,a=e.variant,s=this.state,l=s.image,f=(s.loaded&&(i||l)||{}).url,h=void 0===f?r:f;return u.createElement("div",{className:p()(n.root,v({},n["".concat(a,"Root")],a))},u.createElement(d.ZP,{onChange:this.handleIntersection},u.createElement("img",{alt:"",role:"presentation",src:h,style:this.imageStyles(),className:n.image})),o&&u.createElement("div",{className:p()(n.label,v({},n["".concat(a,"Label")],a))},u.createElement(c.Z,{variant:"caption",classes:{root:p()(n.caption,v({},n["".concat(a,"Caption")],a))}},this.label())),t)}}])&&y(t.prototype,n),r&&y(t,r),s}(u.Component);x.defaultProps={children:null,classes:{},imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mMMDQmtBwADgwF/Op8FmAAAAABJRU5ErkJggg==",label:void 0,labelled:!1,maxHeight:null,maxWidth:null,style:{},thumbnail:null,thumbnailsConfig:{},variant:null};const S=(0,r.qC)((0,a.Z)((function(e){return{caption:{lineHeight:"1.5em",wordBreak:"break-word"},image:{},insideCaption:{color:"#ffffff",lineClamp:"1",whiteSpace:"nowrap"},insideLabel:{background:"linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%)",bottom:"5px",boxSizing:"border-box",left:"0px",padding:"4px",position:"absolute",width:"100%"},insideRoot:{display:"inline-block",height:"inherit",position:"relative"},label:{overflow:"hidden",textOverflow:"ellipsis"},outsideCaption:{boxOrient:"vertical",display:"-webkit-box",lineClamp:"2",maxHeight:"3em"},outsideLabel:{},outsideRoot:{},root:{}}})),(0,i.Z)(),(0,o.$j)((function(e){return{thumbnailsConfig:(0,l.iE)(e).thumbnails}})),(0,s.A)("IIIFThumbnail"))(x)},42359:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(97779),o=n(28216),i=n(87217),a=n(11196),s=n(49676),l=n(67294),u=n(22318),c=n(91736),d=n(45941),f=n(11728),p=n(95450);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(o){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function a(){return h(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestDescription,n=e.manifestLabel,r=e.manifestMetadata,o=e.id,i=e.t;return l.createElement(c.Z,{id:"".concat(o,"-resource"),label:i("resource")},n&&l.createElement(u.Z,{"aria-labelledby":"".concat(o,"-resource ").concat(o,"-resource-heading"),id:"".concat(o,"-resource-heading"),variant:"h4",component:"h5"},n),t&&l.createElement(u.Z,{variant:"body1"},l.createElement(d.Z,{htmlString:t,ruleSet:"iiif"})),r.length>0&&l.createElement(f.K,{labelValuePairs:r}),l.createElement(p.M,this.props))}}])&&g(t.prototype,n),a}(l.Component);b.defaultProps={manifestDescription:null,manifestLabel:null,manifestMetadata:[],t:function(e){return e}};const w=(0,r.qC)((0,i.Z)(),(0,o.$j)((function(e,t){var n=t.id,r=t.manifestId,o=t.windowId;return{manifestDescription:(0,s.LJ)(e,{companionWindowId:n,manifestId:r,windowId:o}),manifestLabel:(0,s.Yq)(e,{companionWindowId:n,manifestId:r,windowId:o}),manifestMetadata:(0,s.Qm)(e,{companionWindowId:n,manifestId:r,windowId:o})}})),(0,a.A)("ManifestInfo"))(b)},99559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(97779),o=n(28216),i=n(11196),a=n(44180),s=n(1172);const l=(0,r.qC)((0,o.$j)((function(e){return{containerId:(0,s.vW)(e)}}),null),(0,i.A)("MiradorMenuButton"))(a.S)},45941:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(52543),o=n(67294),i=n(27856),a=n.n(i),s=n(81720);const l={iiif:{ALLOWED_ATTR:["href","src","alt"],ALLOWED_TAGS:["a","b","br","i","img","p","span"]},liberal:{},mirador2:{ALLOWED_ATTR:["href","target","src","alt","dir"],ALLOWED_TAGS:["a","b","br","i","img","p","span","strong","em","ul","ol","li"]},noHtml:{ALLOWED_TAGS:[]}};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(g,e);var t,n,r,i,h=(r=g,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function g(){return u(this,g),h.apply(this,arguments)}return t=g,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.htmlString,r=e.ruleSet;return a().addHook("afterSanitizeAttributes",(function(e){"target"in e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),o.createElement("span",{className:[t.root,(0,s.Z)("third-party-html")].join(" "),dangerouslySetInnerHTML:{__html:a().sanitize(n,l[r])}})}}])&&c(t.prototype,n),g}(o.Component);h.defaultProps={classes:{}};const g=(0,r.Z)((function(e){return{root:{"& a":{color:e.palette.primary.main,textDecoration:"underline"}}}}))(h)},65114:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(67294).createContext()},11196:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(67294),o=n(40087),i=n.n(o),a=n(41609),s=n.n(a),l=n(65114);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=i()((function(e,t){function n(n,o){var i=(0,r.useContext)(l.Z),a=c(c({},n),o?{ref:o}:{}),u=(i||{})[e];if(s()(u)||s()(u.wrap)&&s()(u.add))return r.createElement(t,a);var d=(u.add||[]).map((function(e){return e.component})),f=r.createElement(t,Object.assign({},a,{PluginComponents:d}));return s()(u.wrap)?f:u.wrap.slice().reverse().reduce((function(e,n){var o=n.component;return r.createElement(o,Object.assign({targetProps:a},a,{PluginComponents:d,TargetComponent:t}),e)}),r.createElement(t,a))}var o=r.forwardRef(n);return o.displayName="WithPlugins(".concat(e,")"),o}))},95458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(85564),o=n.n(r),i=n(39693),a=n.n(i),s=n(53001);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,e),this.resource=t}var t,n;return t=e,(n=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"oa:tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource["@id"]||this.resources[0]&&this.resources[0]["@id"]||(0,s.Z)(),this._id}},{key:"targetId",get:function(){var e=this.on[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.full.replace(/#?xywh=(.*)$/,"");default:return null}}},{key:"motivations",get:function(){return o()(a()(new Array(this.resource.motivation)))}},{key:"resources",get:function(){return o()(a()(new Array(this.resource.resource)))}},{key:"on",get:function(){return o()(a()(new Array(this.resource.on)))}},{key:"tags",get:function(){return this.isOnlyTag()?this.resources.map((function(e){return e.chars})):this.resources.filter((function(e){return"oa:Tag"===e["@type"]})).map((function(e){return e.chars}))}},{key:"chars",get:function(){return this.resources.filter((function(e){return"oa:Tag"!==e["@type"]})).map((function(e){return e.chars})).join(" ")}},{key:"selector",get:function(){var e=this.on[0];switch(typeof e){case"string":return e;case"object":return"oa:Choice"===e.selector["@type"]?e.selector.default:e.selector;default:return null}}},{key:"svgSelector",get:function(){var e=this.on[0];switch(typeof e){case"string":default:return null;case"object":return e.selector&&e.selector.item&&"oa:SvgSelector"===e.selector.item["@type"]?e.selector.item:null}}},{key:"fragmentSelector",get:function(){var e,t=this.selector;switch(typeof t){case"string":e=t.match(/xywh=(.*)$/);break;case"object":e=t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&u(t.prototype,n),e}();function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json=t,this.target=n}var t,n;return t=e,(n=[{key:"id",get:function(){return this.json["@id"]}},{key:"present",value:function(){return this.resources&&this.resources.length>0}},{key:"resources",get:function(){var e=this;return this._resources=this._resources||(e.json&&e.json.resources?o()([e.json.resources]).map((function(e){return new c(e)})):[]),this._resources}}])&&d(t.prototype,n),e}()},98179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(40015),o=n.n(r),i=n(7590);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||d(e,t)||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.")}()}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left-to-right";p(this,e),this.canvases=t.map((function(e){return new i.Z(e)})),this.layers=n,this.viewingDirection=r,this._canvasDimensions=null}var t,n;return t=e,(n=[{key:"canvasIds",get:function(){return this.canvases.map((function(e){return e.id}))}},{key:"canvasDimensions",get:function(){if(this._canvasDimensions)return this._canvasDimensions;var e=c(this.canvasDirection,2),t=e[0],n=e[1],r=0===n?Math.min.apply(Math,u(this.canvases.map((function(e){return e.getHeight()})))):Math.min.apply(Math,u(this.canvases.map((function(e){return e.getWidth()})))),o=0,i=0,a=this.canvases.reduce((function(e,a){var s=0,l=0;return isNaN(a.aspectRatio)||(0===n?(s=r,l=Math.floor(r*a.aspectRatio)):(l=r,s=Math.floor(r*(1/a.aspectRatio)))),e.push({canvas:a,height:s,width:l,x:o,y:i}),o+=t*l,i+=n*s,e}),[]),l=0===n?r:Math.abs(i),d=0===t?r:Math.abs(o);return this._canvasDimensions=a.reduce((function(e,r){return e.push(s(s({},r),{},{x:-1===t?r.x+d-r.width:r.x,y:-1===n?r.y+l-r.height:r.y})),e}),[]),this._canvasDimensions}},{key:"contentResourceToWorldCoordinates",value:function(e){var t=this.canvases.findIndex((function(t){return t.imageResources.find((function(t){return t.id===e.id}))})),n=this.canvases[t];if(!n)return[];var r=c(this.canvasToWorldCoordinates(n.id),4),o=r[0],i=r[1],a=r[2],s=r[3],l=n.onFragment(e.id);return l?[o+l[0],i+l[1],l[2],l[3]]:[o,i,a,s]}},{key:"canvasToWorldCoordinates",value:function(e){var t=this.canvasDimensions.find((function(t){return t.canvas.id===e}));return[t.x,t.y,t.width,t.height]}},{key:"canvasDirection",get:function(){switch(this.viewingDirection){case"left-to-right":default:return[1,0];case"right-to-left":return[-1,0];case"top-to-bottom":return[0,1];case"bottom-to-top":return[0,-1]}}},{key:"contentResource",value:function(e){var t=this.canvases.find((function(t){return t.imageServiceIds.some((function(t){return o()(t,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}));if(t)return t.imageResources.find((function(t){return o()(t.getServices()[0].id,{stripAuthentication:!1})===o()(e,{stripAuthentication:!1})}))}},{key:"getLayerMetadata",value:function(e){if(this.layers){var t=this.canvases.find((function(t){return t.imageResources.find((function(t){return t.id===e.id}))}));if(t){var n=t.imageResources.findIndex((function(t){return t.id===e.id})),r=this.layers[t.canvas.id],o=r&&r[e.id];return s({index:n,opacity:1,total:t.imageResources.length,visibility:!0},o)}}}},{key:"layerOpacityOfImageResource",value:function(e){var t=this.getLayerMetadata(e);return t?t.visibility?t.opacity:0:1}},{key:"layerIndexOfImageResource",value:function(e){var t=this.getLayerMetadata(e);if(t)return t.total-t.index-1}},{key:"offsetByCanvas",value:function(e){var t=this.canvasToWorldCoordinates(e);return{x:t[0],y:t[1]}}},{key:"worldBounds",value:function(){return[0,0,Math.max.apply(Math,u(this.canvasDimensions.map((function(e){return e.x+e.width})))),Math.max.apply(Math,u(this.canvasDimensions.map((function(e){return e.y+e.height}))))]}},{key:"canvasAtPoint",value:function(e){var t=this.canvasDimensions.find((function(t){return t.x<=e.x&&e.x<=t.x+t.width&&t.y<=e.y&&e.y<=t.y+t.height}));return t&&t.canvas}}])&&h(t.prototype,n),e}()},23894:(e,t,n)=>{"use strict";n.d(t,{Z:()=>zc});var r=n(97779),o=n(28216),i=n(87217),a=n(52543),s=n(11196),l=n(36691),u=n(67294),c=n(79895),d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},g=void 0;g="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;var m=null,v=null,y=g.clearTimeout,b=g.setTimeout,w=g.cancelAnimationFrame||g.mozCancelAnimationFrame||g.webkitCancelAnimationFrame,E=g.requestAnimationFrame||g.mozRequestAnimationFrame||g.webkitRequestAnimationFrame;null==w||null==E?(m=y,v=function(e){return b(e,20)}):(m=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e,2),n=t[0],r=t[1];w(n),y(r)},v=function(e){var t=E((function(){y(n),e()})),n=b((function(){w(t),e()}),20);return[t,n]});var O=function(e){function t(){var e,n,r;d(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,u=parseInt(s.paddingRight,10)||0,c=parseInt(s.paddingTop,10)||0,d=parseInt(s.paddingBottom,10)||0,f=i-c-d,p=a-l-u;(!t&&r.state.height!==f||!n&&r.state.width!==p)&&(r.setState({height:i-c-d,width:a-l-u}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),f(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=function(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&m(this.__resizeRAF__),this.__resizeRAF__=v((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var u=!1,c="";r="animationstart";var d="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=document.createElement("fakeelement");if(void 0!==p.style.animationName&&(u=!0),!1===u)for(var h=0;h<d.length;h++)if(void 0!==p.style[d[h]+"AnimationName"]){c="-"+d[h].toLowerCase()+"-",r=f[h],u=!0;break}t="@"+c+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=c+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(l)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){var c=i.ownerDocument,d=g.getComputedStyle(i);d&&"static"===d.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(c),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=c.createElement("div")).className="resize-triggers";var f=c.createElement("div");f.className="expand-trigger",f.appendChild(c.createElement("div"));var p=c.createElement("div");p.className="contract-trigger",i.__resizeTriggers__.appendChild(f),i.__resizeTriggers__.appendChild(p),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},d={},f=!1;return r||(0===s&&(f=!0),c.height=0,d.height=s),o||(0===l&&(f=!0),c.width=0,d.width=l),(0,u.createElement)("div",{className:n,ref:this._setRef,style:p({},c,i)},!f&&t(d))}}]),t}(u.PureComponent);O.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const x=O;var S=n(87462),I=n(97326),C=n(94578),_=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function k(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||_(r)&&_(o)))return!1;var r,o;return!0}const T=function(e,t){var n;void 0===t&&(t=k);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var P="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function R(e){cancelAnimationFrame(e.id)}var A=-1;function j(e){if(void 0===e&&(e=!1),-1===A||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),A=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return A}var N=null;function D(e){if(void 0===e&&(e=!1),null===N||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?N="positive-descending":(t.scrollLeft=1,N=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),N}return N}var M=function(e,t){return e};function L(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,(0,I.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,I.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=T((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=T((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),f=o(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,g=p?d:0;u[e]=t={position:"absolute",left:h?void 0:g,right:h?g:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=T((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(D()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&R(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=function(e,t){var n=P(),r={id:requestAnimationFrame((function o(){P()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,C.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return Z(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?j():0:l.scrollHeight>l.clientHeight?j():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(D()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&R(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?M:f,h=e.layout,g=e.outerElementType,m=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,w=this.state.isScrolling,E="horizontal"===o||"horizontal"===h,O=E?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),I=x[0],C=x[1],_=[];if(c>0)for(var k=I;k<=C;k++)_.push((0,u.createElement)(t,{data:d,key:p(k,d),index:k,isScrolling:y?w:void 0,style:this._getItemStyle(k)}));var T=r(this.props,this._instanceProps);return(0,u.createElement)(g||m||"div",{className:n,onScroll:O,ref:this._outerRefSetter,style:(0,S.Z)({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},(0,u.createElement)(s||l||"div",{children:_,ref:a,style:{height:E?"100%":T,pointerEvents:w?"none":void 0,width:E?T:"100%"}}))},f._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+f)),u,c]},t}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Z=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},z=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},W=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=z(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},F=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},B=L({getItemOffset:function(e,t,n){return z(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:F,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=z(e,t,o),f=F(e,o),p=Math.max(0,Math.min(f-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=p+c?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?W(e,t,o,0,n):function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&z(e,n,t).offset<r;)n+=i,i*=2;return W(e,t,Math.min(n,o-1),Math.floor(n/2),r)}(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=z(e,t,r),d=n+u,f=c.offset+c.size,p=t;p<a-1&&f<d;)p++,f+=z(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),U=n(94184),H=n.n(U),V=n(98179),G=n(1124),q=n(49455),$=n(20362),K=n(81720);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ee(e,t){return ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=re(r);if(o){var n=re(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return te(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).setCanvas=t.setCanvas.bind(ne(t)),t}return t=a,n=[{key:"setCanvas",value:function(e){(0,this.props.setCanvas)(e.currentTarget.dataset.canvasId)}},{key:"currentCanvasClass",value:function(e){var t=this.props.index;return e.includes(t)?"current-canvas-grouping":""}},{key:"render",value:function(){var e=this.props,t=e.index,n=e.style,r=e.data,o=e.classes,i=e.currentCanvasId,a=r.canvasGroupings,s=r.position,l=r.height,c=a[t];return u.createElement("div",{style:X(X({},n),{},{boxSizing:"content-box",height:Number.isInteger(n.height)?n.height-8:null,left:n.left+8,top:n.top+8,width:Number.isInteger(n.width)?n.width-8:null}),className:(0,K.Z)("thumbnail-nav-container"),role:"gridcell","aria-colindex":t+1},u.createElement("div",{role:"button","data-canvas-id":c[0].id,"data-canvas-index":c[0].index,onKeyUp:this.setCanvas,onClick:this.setCanvas,tabIndex:-1,style:{height:"far-right"===s?"auto":"".concat(l-8,"px"),width:"far-bottom"===s?"auto":"".concat(n.width,"px")},className:H()((0,K.Z)(["thumbnail-nav-canvas","thumbnail-nav-canvas-".concat(t),this.currentCanvasClass(c.map((function(e){return e.index})))]),o.canvas,Q({},o.currentCanvas,c.map((function(e){return e.id})).includes(i)))},c.map((function(e,t){return u.createElement($.Z,{key:e.id,resource:e,labelled:!0,maxHeight:"far-right"===s?n.height-12:l-12,variant:"inside"})}))))}}],n&&J(t.prototype,n),a}(u.PureComponent),ie=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{canvas:{"&$currentCanvas":{outline:"2px solid ".concat(e.palette.primary.main),outlineOffset:"3px"},"&:hover":{outline:"9px solid ".concat(e.palette.action.hover),outlineOffset:"-2px"},boxSizing:"border-box",color:e.palette.common.white,cursor:"pointer",display:"inline-block",outline:0,whiteSpace:"nowrap"},currentCanvas:{}}})),(0,o.$j)((function(e,t){var n=t.data;return{currentCanvasId:((0,q.Pm)(e,{windowId:n.windowId})||{}).id}}),(function(e,t){var n=t.data;return{setCanvas:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(l.ji.apply(G,[n.windowId].concat(r)))}}})),(0,s.A)("ThumbnailCanvasGrouping"));const ae=ie(oe);function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t){return le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},le(e,t)}function ue(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ce(e)}function ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=de(r);if(o){var n=de(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ue(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).scrollbarSize=15,t.spacing=8,t.calculateScaledSize=t.calculateScaledSize.bind(ce(t)),t.itemCount=t.itemCount.bind(ce(t)),t.handleKeyUp=t.handleKeyUp.bind(ce(t)),t.nextCanvas=t.nextCanvas.bind(ce(t)),t.previousCanvas=t.previousCanvas.bind(ce(t)),t.gridRef=u.createRef(),t}return t=a,n=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.canvasIndex,r=t.position,o=t.view;if(e.view!==o&&"off"!==r&&this.gridRef.current.resetAfterIndex(0),e.canvasIndex!==n){var i=n;"book"===o&&(i=Math.ceil(i/2)),this.gridRef.current.scrollToItem(i,"center")}}},{key:"handleKeyUp",value:function(e){var t="ArrowRight",n="ArrowLeft";switch("far-right"===this.props.position&&(t="ArrowDown",n="ArrowUp"),e.key){case t:this.nextCanvas();break;case n:this.previousCanvas()}}},{key:"calculateScaledSize",value:function(e){var t=this.props,n=t.thumbnailNavigation,r=t.canvasGroupings,o=t.position,i=r[e]||[],a=new V.Z(i).worldBounds();if("far-right"===o){var s=Math.floor(this.calculatingWidth(i.length)*a[3]/a[2]);return Number.isInteger(s)?s+this.spacing:n.width+this.spacing}return 0===a[3]?n.width+this.spacing:Math.ceil((n.height-this.scrollbarSize-this.spacing-4)*a[2]/a[3])}},{key:"calculatingWidth",value:function(e){var t=this.props.thumbnailNavigation;return 1===e?t.width:2*t.width}},{key:"rightWidth",value:function(){var e=this.props,t=e.view,n=e.thumbnailNavigation;return"book"===t?2*n.width:n.width}},{key:"style",value:function(){var e=this.props,t=e.position,n=e.thumbnailNavigation;return"far-right"===t?{height:"100%",minHeight:0,width:"".concat(this.rightWidth()+this.scrollbarSize+this.spacing,"px")}:{height:"".concat(n.height,"px"),width:"100%"}}},{key:"areaHeight",value:function(e){var t=this.props,n=t.position,r=t.thumbnailNavigation;return"far-right"===n?e:r.height}},{key:"itemCount",value:function(){return this.props.canvasGroupings.length}},{key:"nextCanvas",value:function(){var e=this.props,t=e.hasNextCanvas,n=e.setNextCanvas;t&&n()}},{key:"previousCanvas",value:function(){var e=this.props,t=e.hasPreviousCanvas,n=e.setPreviousCanvas;t&&n()}},{key:"render",value:function(){var e=this,t=this.props,n=t.t,r=t.canvasGroupings,o=t.classes,i=t.position,a=t.thumbnailNavigation,s=t.viewingDirection,l=t.windowId;if("off"===i)return u.createElement(u.Fragment,null);var d="right-to-left"===s?"rtl":"ltr",f={canvasGroupings:r,height:a.height-this.spacing-this.scrollbarSize,position:i,windowId:l};return u.createElement(c.Z,{className:H()((0,K.Z)("thumb-navigation"),o.thumbNavigation),"aria-label":n("thumbnailNavigation"),square:!0,elevation:0,style:this.style(),tabIndex:0,onKeyUp:this.handleKeyUp,role:"grid"},u.createElement("div",{role:"row",style:{height:"100%",width:"100%"}},u.createElement(x,{defaultHeight:100,defaultWidth:400},(function(t){var n=t.height,r=t.width;return u.createElement(B,{direction:d,height:e.areaHeight(n),itemCount:e.itemCount(),itemSize:e.calculateScaledSize,width:r,layout:"far-bottom"===i?"horizontal":"vertical",itemData:f,ref:e.gridRef},ae)}))))}}],n&&se(t.prototype,n),a}(u.Component);fe.defaultProps={hasNextCanvas:!1,hasPreviousCanvas:!1,setNextCanvas:function(){},setPreviousCanvas:function(){},view:void 0,viewingDirection:""};var pe=n(95981),he=n(80923),ge=n(81610),me=n(1172),ve=n(89875),ye=(0,r.qC)((0,a.Z)((function(e){return{thumbNavigation:{"&:focus":{boxShadow:0,outline:0}}}})),(0,i.Z)(),(0,o.$j)((function(e,t){var n=t.windowId;return{canvasGroupings:(0,q.hY)(e,{windowId:n}),canvasIndex:(0,pe.Dr)(e,{windowId:n}),hasNextCanvas:!!(0,q.m7)(e,{windowId:n}),hasPreviousCanvas:!!(0,q.iQ)(e,{windowId:n}),position:(0,he.KW)(e,{companionWindowId:(0,ge.Jj)(e,{windowId:n}).thumbnailNavigationId}).position,thumbnailNavigation:(0,me.iE)(e).thumbnailNavigation,view:(0,ve.ys)(e,{windowId:n}),viewingDirection:(0,pe.Xf)(e,{windowId:n})}}),(function(e,t){var n=t.windowId;return{setNextCanvas:function(){return e(l.NU(n))},setPreviousCanvas:function(){return e(l.Ch(n))}}})),(0,s.A)("ThumbnailNavigation"));const be=ye(fe);var we=n(32012),Ee=n(22318),Oe=n(73953),xe=n(18e3),Se=n(77748),Ie=n(99559);function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ke(e,t)}function Te(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Pe(r);if(o){var n=Pe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Te(this,e)});function a(){return Ce(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.displayAll,n=e.displayAllDisabled,r=e.t,o=e.toggleAnnotationDisplay;return u.createElement(Ie.Z,{"aria-label":r(t?"displayNoAnnotations":"highlightAllAnnotations"),onClick:o,disabled:n,size:"small"},t?u.createElement(xe.Z,null):u.createElement(Se.Z,null))}}])&&_e(t.prototype,n),a}(u.Component),Ae=(0,r.qC)((0,i.Z)(),(0,o.$j)((function(e,t){var n=t.windowId;return{displayAll:(0,ge.Jj)(e,{windowId:n}).highlightAllAnnotations,displayAllDisabled:(0,we.aW)(e,{windowId:n}).length<2}}),(function(e,t){var n=t.windowId;return{toggleAnnotationDisplay:function(){e(Oe.yz(n))}}})),(0,s.A)("AnnotationSettings"));const je=Ae(Re);var Ne=n(86010),De=n(71267),Me=n(29829),Le=n(85639),Ze=n(95757),ze=n(45941);function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e,t){return Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fe(e,t)}function Be(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}var He=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ue(r);if(o){var n=Ue(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Be(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).scrollToRef=u.createRef(),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.props.scrollTo&&this.scrollToElement()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollTo;t&&e.scrollTo!==t&&this.scrollToElement()}},{key:"containerBoundingRect",value:function(){var e=this.props.containerRef;return e&&e.current&&e.current.domEl?e.current.domEl.getBoundingClientRect():{}}},{key:"scrollToBoundingRect",value:function(){return this.elementToScrollTo()?this.elementToScrollTo().getBoundingClientRect():{}}},{key:"elementToScrollTo",value:function(){return this.scrollToRef&&this.scrollToRef.current?this.scrollToRef.current:null}},{key:"scrollabelContainer",value:function(){var e=this.props.containerRef;return e&&e.current&&e.current.domEl?e.current.domEl.getElementsByClassName("mirador-scrollto-scrollable")[0]:null}},{key:"elementIsVisible",value:function(){var e=this.props.offsetTop;return!(this.scrollToBoundingRect().top<this.containerBoundingRect().top+e||this.scrollToBoundingRect().bottom>this.containerBoundingRect().bottom)}},{key:"scrollToElement",value:function(){var e=this.props,t=e.offsetTop;if(e.scrollTo&&this.elementToScrollTo()&&!this.elementIsVisible()&&this.scrollabelContainer()){var n=this.elementToScrollTo().offsetTop-this.containerBoundingRect().height/2+t;this.scrollabelContainer().scrollTo(0,n)}}},{key:"render",value:function(){var e=this.props,t=e.children;return e.scrollTo?u.createElement("div",{ref:this.scrollToRef},t):t}}])&&We(t.prototype,n),a}(u.Component);function Ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t){return Ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ge(e,t)}function qe(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $e(e)}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}He.defaultProps={offsetTop:0};var Ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ge(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ke(r);if(o){var n=Ke(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qe(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleClick=t.handleClick.bind($e(t)),t.handleAnnotationHover=t.handleAnnotationHover.bind($e(t)),t.handleAnnotationBlur=t.handleAnnotationBlur.bind($e(t)),t}return t=a,n=[{key:"handleClick",value:function(e,t){var n=this.props,r=n.deselectAnnotation,o=n.selectAnnotation,i=n.selectedAnnotationId,a=n.windowId;i===t.id?r(a,t.id):o(a,t.id)}},{key:"handleAnnotationHover",value:function(e){var t=this.props;(0,t.hoverAnnotation)(t.windowId,[e.id])}},{key:"handleAnnotationBlur",value:function(){var e=this.props;(0,e.hoverAnnotation)(e.windowId,[])}},{key:"render",value:function(){var e=this,t=this.props,n=t.annotations,r=t.classes,o=t.index,i=t.label,a=t.selectedAnnotationId,s=t.t,l=t.totalSize,c=t.listContainerComponent,d=t.htmlSanitizationRuleSet,f=t.hoveredAnnotationIds,p=t.containerRef;return 0===n.length?u.createElement(u.Fragment,null):u.createElement(u.Fragment,null,u.createElement(Ee.Z,{className:r.sectionHeading,variant:"overline"},s("annotationCanvasLabel",{context:"".concat(o+1,"/").concat(l),label:i})),u.createElement(Me.Z,{autoFocusItem:!0,variant:"selectedMenu"},n.map((function(t){return u.createElement(He,{containerRef:p,key:"".concat(t.id,"-scroll"),offsetTop:96,scrollTo:a===t.id},u.createElement(Le.Z,{button:!0,component:c,className:(0,Ne.default)(r.annotationListItem,(n={},o=r.hovered,i=f.includes(t.id),o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n)),key:t.id,annotationid:t.id,selected:a===t.id,onClick:function(n){return e.handleClick(n,t)},onFocus:function(){return e.handleAnnotationHover(t)},onBlur:e.handleAnnotationBlur,onMouseEnter:function(){return e.handleAnnotationHover(t)},onMouseLeave:e.handleAnnotationBlur},u.createElement(Ze.Z,{primaryTypographyProps:{variant:"body2"}},u.createElement(ze.Z,{ruleSet:d,htmlString:t.content}),u.createElement("div",null,t.tags.map((function(e){return u.createElement(De.Z,{size:"small",variant:"outlined",label:e,id:e,className:r.chip,key:e.toString()})}))))));var n,o,i}))))}}],n&&Ve(t.prototype,n),a}(u.Component);Ye.defaultProps={annotations:[],classes:{},containerRef:void 0,hoveredAnnotationIds:[],htmlSanitizationRuleSet:"iiif",listContainerComponent:"li",selectedAnnotationId:void 0};var Xe={deselectAnnotation:Oe.D6,hoverAnnotation:Oe.G3,selectAnnotation:Oe.XD},Qe=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{annotationListItem:{"&$hovered":{backgroundColor:e.palette.action.hover},"&:hover,&:focus":{backgroundColor:e.palette.action.hover},borderBottom:"0.5px solid ".concat(e.palette.divider),cursor:"pointer",whiteSpace:"normal"},chip:{backgroundColor:e.palette.background.paper,marginRight:e.spacing(.5),marginTop:e.spacing(1)},hovered:{},sectionHeading:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,o.$j)((function(e,t){var n,r=t.canvasId,o=t.windowId;return{annotations:(n=(0,we.OY)(e,{canvasId:r,windowId:o}),n.map((function(e,t){return{content:e.chars,id:e.id,tags:e.tags,targetId:e.targetId}}))),htmlSanitizationRuleSet:(0,me.iE)(e).annotations.htmlSanitizationRuleSet,label:(0,q.vt)(e,{canvasId:r,windowId:o}),selectedAnnotationId:(0,we.EO)(e,{windowId:o})}}),Xe),(0,s.A)("CanvasAnnotations"));const Je=Qe(Ye);var et=n(91055);function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nt(e,t){return nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nt(e,t)}function rt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ot(e)}var it=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ot(r);if(o){var n=ot(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return rt(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).containerRef=u.createRef(),t}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.annotationCount,r=t.classes,o=t.canvasIds,i=t.t,a=t.windowId,s=t.id;return u.createElement(et.Z,{title:i("annotations"),paperClassName:(0,K.Z)("window-sidebar-annotation-panel"),windowId:a,id:s,ref:this.containerRef,otherRef:this.containerRef,titleControls:u.createElement(je,{windowId:a})},u.createElement("div",{className:r.section},u.createElement(Ee.Z,{component:"p",variant:"subtitle2"},i("showingNumAnnotations",{count:n,number:n}))),o.map((function(t,n){return u.createElement(Je,{canvasId:t,containerRef:e.containerRef,key:t,index:n,totalSize:o.length,windowId:a})})))}}])&&tt(t.prototype,n),a}(u.Component);it.defaultProps={canvasIds:[],t:function(e){return e}};var at=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,o.$j)((function(e,t){var n=t.windowId;return{annotationCount:(0,we.aW)(e,{windowId:n}).length,canvasIds:(0,q.Lc)(e,{windowId:n})}}),null),(0,s.A)("WindowSideBarAnnotationsPanel"));const st=at(it);var lt=n(80725),ut=n(49676),ct=n(91736),dt=n(11728),ft=n(95450);function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function mt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}var yt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&>(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=vt(r);if(o){var n=vt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return mt(this,e)});function a(){return pt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasDescription,n=e.canvasLabel,r=e.canvasMetadata,o=e.id,i=e.index,a=e.t,s=e.totalSize;return u.createElement(ct.Z,{id:"".concat(o,"-currentItem-").concat(i),label:a("currentItem",{context:"".concat(i+1,"/").concat(s)})},n&&u.createElement(Ee.Z,{"aria-labelledby":"".concat(o,"-currentItem-").concat(i," ").concat(o,"-currentItem-").concat(i,"-heading"),id:"".concat(o,"-currentItem-").concat(i,"-heading"),variant:"h4",component:"h5"},n),t&&u.createElement(Ee.Z,{variant:"body1"},u.createElement(ze.Z,{htmlString:t,ruleSet:"iiif"})),r&&r.length>0&&u.createElement(dt.K,{labelValuePairs:r}),u.createElement(ft.M,this.props))}}])&&ht(t.prototype,n),a}(u.Component);yt.defaultProps={canvasDescription:null,canvasLabel:null,canvasMetadata:[],index:1,t:function(e){return e},totalSize:1};var bt=(0,r.qC)((0,i.Z)(),(0,o.$j)((function(e,t){var n=t.canvasId,r=t.id,o=t.windowId;return{canvasDescription:(0,q.TI)(e,{canvasId:n,companionWindowId:r,windowId:o}),canvasLabel:(0,q.vt)(e,{canvasId:n,companionWindowId:r,windowId:o}),canvasMetadata:(0,ut.Ez)((0,q.o_)(e,{canvasId:n,companionWindowId:r,windowId:o}))}})),(0,s.A)("CanvasInfo"));const wt=bt(yt);var Et=n(64436),Ot=n(26209);function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function It(e,t){return It=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},It(e,t)}function Ct(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _t(e){return _t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_t(e)}var kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&It(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_t(r);if(o){var n=_t(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ct(this,e)});function a(){return xt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.availableLocales,n=e.classes,r=e.locale,o=e.setLocale;return!o||t.length<2?u.createElement(u.Fragment,null):u.createElement(Et.Z,null,u.createElement(Ot.Z,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:r,onChange:function(e){o(e.target.value)},name:"locale",classes:{select:n.select},className:n.selectEmpty},t.map((function(e){return u.createElement(Le.Z,{key:e,value:e},u.createElement(Ee.Z,{variant:"body2"},e))}))))}}])&&St(t.prototype,n),a}(u.Component);kt.defaultProps={availableLocales:[],classes:{},locale:"",setLocale:void 0};const Tt=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{select:{"&:focus":{backgroundColor:e.palette.background.paper}},selectEmpty:{backgroundColor:e.palette.background.paper}}})))(kt);var Pt=n(42359),Rt=n(50166),At=n(282),jt=n(19252);function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t){return Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dt(e,t)}function Mt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Lt(e)}function Lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e){return Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zt(e)}var zt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Zt(r);if(o){var n=Zt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Mt(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).openCollectionDialog=t.openCollectionDialog.bind(Lt(t)),t}return t=a,(n=[{key:"openCollectionDialog",value:function(){var e=this.props,t=e.collectionPath,n=e.showCollectionDialog,r=e.windowId;n(t[t.length-1],t.slice(0,-1),r)}},{key:"render",value:function(){var e=this.props,t=e.collectionLabel,n=e.collectionPath,r=e.id,o=e.t;return 0===n.length?null:u.createElement(ct.Z,{id:"".concat(r,"-collection"),label:o("collection")},t&&u.createElement(Ee.Z,{"aria-labelledby":"".concat(r,"-resource ").concat(r,"-resource-heading"),id:"".concat(r,"-resource-heading"),variant:"h4"},t),u.createElement(At.Z,{color:"primary",onClick:this.openCollectionDialog,startIcon:u.createElement(jt.Z,null)},o("showCollection")))}}])&&Nt(t.prototype,n),a}(u.Component);zt.defaultProps={collectionLabel:null,collectionPath:[],t:function(e){return e},windowId:null};var Wt={showCollectionDialog:Rt.FK},Ft=(0,r.qC)((0,i.Z)(),(0,o.$j)((function(e,t){t.id;var n=t.windowId,r=((0,ge.Jj)(e,{windowId:n})||{}).collectionPath,o=r[r.length-1];return{collectionLabel:(0,ut.Yq)(e,{manifestId:o}),collectionPath:r}}),Wt),(0,s.A)("CollectionInfo"));const Bt=Ft(zt);var Ut=n(89659);function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gt(e,t){return Gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gt(e,t)}function qt(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $t(e){return $t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$t(e)}var Kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gt(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$t(r);if(o){var n=$t(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qt(this,e)});function a(){return Ht(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.homepage,r=e.manifestUrl,o=e.renderings,i=e.seeAlso,a=e.id,s=e.t;return u.createElement(ct.Z,{id:"".concat(a,"-related"),label:s("related")},u.createElement(Ee.Z,{"aria-labelledby":"".concat(a,"-related ").concat(a,"-related-heading"),id:"".concat(a,"-related-heading"),variant:"h4",component:"h5"},s("links")),u.createElement("dl",{className:H()((0,K.Z)("label-value-metadata"),t.labelValueMetadata)},n&&u.createElement(u.Fragment,null,u.createElement(Ee.Z,{variant:"subtitle2",component:"dt"},s("iiif_homepage")),n.map((function(e){return u.createElement(Ee.Z,{key:e.value,variant:"body1",component:"dd"},u.createElement(Ut.Z,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value))}))),o&&o.length>0&&u.createElement(u.Fragment,null,u.createElement(Ee.Z,{variant:"subtitle2",component:"dt"},s("iiif_renderings")),o.map((function(e){return u.createElement(Ee.Z,{key:e.value,variant:"body1",component:"dd"},u.createElement(Ut.Z,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value))}))),i&&u.createElement(u.Fragment,null,u.createElement(Ee.Z,{variant:"subtitle2",component:"dt"},s("iiif_seeAlso")),i.map((function(e){return u.createElement(Ee.Z,{key:e.value,variant:"body1",component:"dd"},u.createElement(Ut.Z,{target:"_blank",rel:"noopener noreferrer",href:e.value},e.label||e.value),e.format&&u.createElement(Ee.Z,{component:"span"}," (".concat(e.format,")")))}))),r&&u.createElement(u.Fragment,null,u.createElement(Ee.Z,{variant:"subtitle2",component:"dt"},s("iiif_manifest")),u.createElement(Ee.Z,{variant:"body1",component:"dd"},u.createElement(Ut.Z,{target:"_blank",rel:"noopener noreferrer",href:r},r)))),u.createElement(ft.M,this.props))}}])&&Vt(t.prototype,n),a}(u.Component);Kt.defaultProps={homepage:null,manifestUrl:null,renderings:null,seeAlso:null,t:function(e){return e}};var Yt=(0,r.qC)((0,a.Z)({labelValueMetadata:{"& dd":{marginBottom:".5em",marginLeft:"0"}}}),(0,i.Z)(),(0,o.$j)((function(e,t){t.id;var n=t.windowId;return{homepage:(0,ut.Ar)(e,{windowId:n}),manifestUrl:(0,ut.BP)(e,{windowId:n}),renderings:(0,ut.h)(e,{windowId:n}),seeAlso:(0,ut.V9)(e,{windowId:n})}})),(0,s.A)("ManifestRelatedLinks"));const Xt=Yt(Kt);function Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function en(e,t){return en=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},en(e,t)}function tn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}var rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&en(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nn(r);if(o){var n=nn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return tn(this,e)});function a(){return Qt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.windowId,n=e.id,r=e.canvasIds,o=e.classes,i=e.collectionPath,a=e.t,s=e.locale,l=e.setLocale,c=e.availableLocales,d=e.showLocalePicker;return u.createElement(et.Z,{title:a("aboutThisItem"),paperClassName:(0,K.Z)("window-sidebar-info-panel"),windowId:t,id:n,titleControls:d&&u.createElement(Tt,{locale:s,setLocale:l,availableLocales:c})},r.map((function(e,i){return u.createElement("div",{key:e,className:o.section},u.createElement(wt,{id:n,canvasId:e,index:i,totalSize:r.length,windowId:t}))})),i.length>0&&u.createElement("div",{className:o.section},u.createElement(Bt,{id:n,windowId:t})),u.createElement("div",{className:o.section},u.createElement(Pt.Z,{id:n,windowId:t})),u.createElement("div",{className:o.section},u.createElement(Xt,{id:n,windowId:t})))}}])&&Jt(t.prototype,n),a}(u.Component);rn.defaultProps={availableLocales:[],canvasIds:[],classes:{},collectionPath:[],locale:"",setLocale:void 0,showLocalePicker:!1,t:function(e){return e}};var on=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,o.$j)((function(e,t){var n=t.id,r=t.windowId;return{availableLocales:(0,ut.ys)(e,{companionWindowId:n,windowId:r}),canvasIds:(0,q.Lc)(e,{windowId:r}),collectionPath:((0,ge.Jj)(e,{windowId:r})||{}).collectionPath,locale:(0,he.KW)(e,{companionWindowId:n}).locale||(0,ut.j8)(e,{windowId:r}),showLocalePicker:(0,ve.Em)(e,{windowId:r}).showLocalePicker}}),(function(e,t){var n=t.windowId,r=t.id;return{setLocale:function(t){return e(lt.b0(n,r,{locale:t}))}}})),(0,s.A)("WindowSideBarInfoPanel"));const an=on(rn);var sn=n(70065),ln=n(41423),un=n(868),cn=n(67411),dn=n(34113),fn=n(49024),pn=n(7590);function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mn(e,t){return mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mn(e,t)}function vn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}var bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yn(r);if(o){var n=yn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return vn(this,e)});function a(){return hn(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.label;return u.createElement(u.Fragment,null,u.createElement(Ee.Z,{className:H()(t.label),variant:"body1"},n))}}])&&gn(t.prototype,n),a}(u.Component);const wn=(0,r.qC)((0,a.Z)((function(e){return{label:{paddingLeft:e.spacing(1)}}})),(0,i.Z)(),(0,o.$j)(null,null),(0,s.A)("SidebarIndexItem"))(bn);function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xn(e,t){return xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xn(e,t)}function Sn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function In(e){return In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},In(e)}var Cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=In(r);if(o){var n=In(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Sn(this,e)});function a(){return En(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.canvas,r=e.height,o=e.label,i=e.width;return u.createElement(u.Fragment,null,u.createElement("div",{style:{minWidth:50}},u.createElement($.Z,{label:o,resource:n,className:H()(t.clickable),maxHeight:r,maxWidth:i})),u.createElement(Ee.Z,{className:H()(t.label),variant:"body1"},o))}}],n&&On(t.prototype,n),a}(u.Component);function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Cn.defaultProps={height:void 0,width:void 0};var Tn=(0,r.qC)((0,a.Z)((function(e){return{label:{paddingLeft:e.spacing(1)}}})),(0,i.Z)(),(0,o.$j)((function(e,t){return t.data,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,me.iE)(e).canvasNavigation||{})}),null),(0,s.A)("SidebarIndexThumbnail"));const Pn=Tn(Cn);function Rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t){return jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jn(e,t)}function Nn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}var Mn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jn(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Dn(r);if(o){var n=Dn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Nn(this,e)});function a(){return Rn(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getIdAndLabelOfCanvases",value:function(){return this.props.canvases.map((function(e,t){return{id:e.id,label:new pn.Z(e).getLabel()}}))}},{key:"render",value:function(){var e,t=this.props,n=t.canvases,r=t.classes,o=t.containerRef,i=t.selectedCanvasIds,a=t.setCanvas,s=t.variant,l=t.windowId,c=this.getIdAndLabelOfCanvases(n);return e="thumbnail"===s?Pn:wn,u.createElement(Me.Z,{variant:"selectedMenu"},c.map((function(t,c){return u.createElement(He,{containerRef:o,key:"".concat(t.id,"-").concat(s),offsetTop:96,scrollTo:i.includes(t.id)},u.createElement(Le.Z,{key:t.id,className:r.listItem,alignItems:"flex-start",onClick:function(){a(l,t.id)},button:!0,component:"li",selected:i.includes(t.id)},u.createElement(e,{label:t.label,canvas:n[c]})))})))}}],n&&An(t.prototype,n),a}(u.Component);Mn.defaultProps={selectedCanvasIds:[],variant:"item"};var Ln=(0,r.qC)((0,a.Z)((function(e){return{label:{paddingLeft:e.spacing(1)},listItem:{borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:e.spacing(1)}}})),(0,i.Z)(),(0,o.$j)((function(e,t){var n=t.id,r=t.windowId;return{canvases:(0,q.LU)(e,{windowId:r}),selectedCanvasIds:(0,q.Lc)(e,{windowId:r}),variant:(0,he.KW)(e,{companionWindowId:n,windowId:r}).variant}}),(function(e,t){return t.id,t.windowId,{setCanvas:function(){return e(l.ji.apply(G,arguments))}}})),(0,s.A)("SidebarIndexList"));const Zn=Ln(Mn);var zn=n(59114),Wn=n(29439),Fn=n(45987),Bn=n(22775);const Un=u.createContext({});var Hn=function(e,t,n){for(var r=t;r<e.length;r+=1)if(n===e[r])return r;return-1},Vn=[],Gn=[],qn=u.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.defaultCollapseIcon,a=e.defaultEndIcon,s=e.defaultExpanded,l=void 0===s?Vn:s,c=e.defaultExpandIcon,d=e.defaultParentIcon,f=e.defaultSelected,p=void 0===f?Gn:f,h=e.disableSelection,g=void 0!==h&&h,m=e.multiSelect,v=void 0!==m&&m,y=e.expanded,b=e.onNodeSelect,w=e.onNodeToggle,E=e.selected,O=(0,Fn.Z)(e,["children","classes","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disableSelection","multiSelect","expanded","onNodeSelect","onNodeToggle","selected"]),x=u.useState(null),I=x[0],C=x[1],_=u.useState(null),k=_[0],T=_[1],P=u.useRef({}),R=u.useRef({}),A=u.useRef([]),j=(0,Bn.Z)({controlled:y,default:l,name:"TreeView",state:"expanded"}),N=(0,Wn.Z)(j,2),D=N[0],M=N[1],L=(0,Bn.Z)({controlled:E,default:p,name:"TreeView",state:"selected"}),Z=(0,Wn.Z)(L,2),z=Z[0],W=Z[1],F=u.useCallback((function(e){return!!Array.isArray(D)&&-1!==D.indexOf(e)}),[D]),B=u.useCallback((function(e){return Array.isArray(z)?-1!==z.indexOf(e):z===e}),[z]),U=function(e){var t=A.current.indexOf(e);return-1!==t&&t+1<A.current.length?A.current[t+1]:null},H=function(e){var t=A.current.indexOf(e);return-1!==t&&t-1>=0?A.current[t-1]:null},V=function(){return A.current[A.current.length-1]},G=function(){return A.current[0]},q=function(e){e&&(C(e),T(e))},$=u.useRef(null),K=u.useRef(!1),Y=u.useRef([]),X=function(e,t){var n=z,r=t.start,o=t.next,i=t.current;o&&i&&(-1===Y.current.indexOf(i)&&(Y.current=[]),K.current?-1!==Y.current.indexOf(o)?(n=n.filter((function(e){return e===r||e!==i})),Y.current=Y.current.filter((function(e){return e===r||e!==i}))):(n.push(o),Y.current.push(o)):(n.push(o),Y.current.push(i,o)),b&&b(e,n),W(n))},Q=function(e,t){var n=z,r=t.start,o=t.end;K.current&&(n=z.filter((function(e){return-1===Y.current.indexOf(e)})));var i=function(e,t){var n=A.current.indexOf(e),r=A.current.indexOf(t),o=Math.min(n,r),i=Math.max(n,r);return A.current.slice(o,i+1)}(r,o);Y.current=i;var a=n.concat(i);a=a.filter((function(e,t){return a.indexOf(e)===t})),b&&b(e,a),W(a)},J=function(e,t){var n;n=-1!==z.indexOf(t)?z.filter((function(e){return e!==t})):[t].concat(z),b&&b(e,n),W(n)},ee=function(e,t){var n=v?[t]:t;b&&b(e,n),W(n)},te=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.start,o=void 0===r?$.current:r,i=t.end,a=t.current;return n?X(e,{start:o,next:i,current:a}):Q(e,{start:o,end:i}),K.current=!0,!0},ne=u.useCallback((function(e){var t=P.current[e],n=[];return t&&(n.push(e),t.children&&(n.concat(t.children),t.children.forEach((function(e){n.concat(ne(e))})))),n}),[]),re=u.useCallback((function(e){var t=(0,S.Z)({},R.current);e.forEach((function(e){t[e]&&delete t[e]})),R.current=t}),[]),oe=u.useCallback((function(e){var t=ne(e);re(t);var n=(0,S.Z)({},P.current);t.forEach((function(e){var t=n[e];if(t){if(t.parent){var r=n[t.parent];if(r&&r.children){var o=r.children.filter((function(t){return t!==e}));n[t.parent]=(0,S.Z)({},r,{children:o})}}delete n[e]}})),P.current=n,T((function(t){return t===e?null:t}))}),[ne,re]),ie=u.useRef([]),ae=u.useState(!1),se=ae[0],le=ae[1];u.useEffect((function(){var e=[];u.Children.forEach(n,(function(t){u.isValidElement(t)&&t.props.nodeId&&e.push(t.props.nodeId)})),function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!0;return!1}(ie.current,e)&&(P.current[-1]={parent:null,children:e},e.forEach((function(e,t){0===t&&C(e)})),A.current=P.current[-1].children,ie.current=e,le(!0))}),[n]),u.useEffect((function(){se&&(A.current=function e(t){for(var n=[],r=0;r<t.length;r+=1){var o=t[r];n.push(o);var i=P.current[o].children;F(o)&&i&&(n=n.concat(e(i)))}return n}(P.current[-1].children))}),[D,se,F,n]);var ue=function(){return!1};return u.createElement(Un.Provider,{value:{icons:{defaultCollapseIcon:i,defaultExpandIcon:c,defaultParentIcon:d,defaultEndIcon:a},focus:q,focusFirstNode:function(){return q(G())},focusLastNode:function(){return q(V())},focusNextNode:function(e){return q(U(e))},focusPreviousNode:function(e){return q(H(e))},focusByFirstCharacter:function(e,t){var n,r,o=t.toLowerCase(),i=[],a=[];Object.keys(R.current).forEach((function(e){var t=R.current[e],n=P.current[e];(!n.parent||F(n.parent))&&(i.push(e),a.push(t))})),(n=i.indexOf(e)+1)===P.current.length&&(n=0),-1===(r=Hn(a,n,o))&&(r=Hn(a,0,o)),r>-1&&q(i[r])},expandAllSiblings:function(e,t){var n,r=P.current[t],o=P.current[r.parent];n=o?o.children.filter((function(e){return!F(e)})):P.current[-1].children.filter((function(e){return!F(e)}));var i=D.concat(n);n.length>0&&(M(i),w&&w(e,i))},toggleExpansion:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k;-1!==D.indexOf(n)?(t=D.filter((function(e){return e!==n})),C((function(e){var t=P.current[e];return e&&(t&&t.parent?t.parent.id:null)===n?n:e}))):t=[n].concat(D),w&&w(e,t),M(t)},isExpanded:F,isFocused:function(e){return k===e},isSelected:B,selectNode:g?ue:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!t&&(n?J(e,t):ee(e,t),$.current=t,K.current=!1,Y.current=[],!0)},selectRange:g?ue:te,selectNextNode:g?ue:function(e,t){return te(e,{end:U(t),current:t},!0)},selectPreviousNode:g?ue:function(e,t){return te(e,{end:H(t),current:t},!0)},rangeSelectToFirst:g?ue:function(e,t){$.current||($.current=t);var n=K.current?$.current:t;return te(e,{start:n,end:G()})},rangeSelectToLast:g?ue:function(e,t){$.current||($.current=t);var n=K.current?$.current:t;return te(e,{start:n,end:V()})},selectAllNodes:g?ue:function(e){return te(e,{start:G(),end:V()})},isTabbable:function(e){return I===e},multiSelect:v,getParent:function(e){return P.current[e].parent},mapFirstChar:function(e,t){R.current[e]=t},addNodeToNodeMap:function(e,t){var n=P.current[e];P.current[e]=(0,S.Z)({},n,{children:t,id:e}),t.forEach((function(t){var n=P.current[t];P.current[t]=(0,S.Z)({},n,{parent:e,id:t})}))},removeNodeFromNodeMap:oe}},u.createElement("ul",(0,S.Z)({role:"tree","aria-multiselectable":v,className:(0,Ne.default)(r.root,o),ref:t},O),n))}));const $n=(0,a.Z)({root:{padding:0,margin:0,listStyle:"none"}},{name:"MuiTreeView"})(qn);var Kn=n(64566),Yn=n(66735),Xn=n(66037),Qn=n(59693),Jn=n(8920),er=n(17294),tr=u.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.collapseIcon,a=e.endIcon,s=e.expandIcon,l=e.icon,c=e.label,d=e.nodeId,f=e.onClick,p=e.onLabelClick,h=e.onIconClick,g=e.onFocus,m=e.onKeyDown,v=e.onMouseDown,y=e.TransitionComponent,b=void 0===y?Xn.Z:y,w=e.TransitionProps,E=(0,Fn.Z)(e,["children","classes","className","collapseIcon","endIcon","expandIcon","icon","label","nodeId","onClick","onLabelClick","onIconClick","onFocus","onKeyDown","onMouseDown","TransitionComponent","TransitionProps"]),O=u.useContext(Un),x=O.icons,I=O.focus,C=O.focusFirstNode,_=O.focusLastNode,k=O.focusNextNode,T=O.focusPreviousNode,P=O.focusByFirstCharacter,R=O.selectNode,A=O.selectRange,j=O.selectNextNode,N=O.selectPreviousNode,D=O.rangeSelectToFirst,M=O.rangeSelectToLast,L=O.selectAllNodes,Z=O.expandAllSiblings,z=O.toggleExpansion,W=O.isExpanded,F=O.isFocused,B=O.isSelected,U=O.isTabbable,H=O.multiSelect,V=O.getParent,G=O.mapFirstChar,q=O.addNodeToNodeMap,$=O.removeNodeFromNodeMap,K=u.useRef(null),Y=u.useRef(null),X=(0,er.Z)(K,t),Q=l,J=Boolean(Array.isArray(n)?n.length:n),ee=!!W&&W(d),te=!!F&&F(d),ne=!!U&&U(d),re=!!B&&B(d),oe=x||{},ie=(0,Jn.Z)();Q||(J?(Q=ee?i||oe.defaultCollapseIcon:s||oe.defaultExpandIcon)||(Q=oe.defaultParentIcon):Q=a||oe.defaultEndIcon);var ae,se=function(e){return J&&(ee?k(d):z(e)),!0},le=function(e){if(ee)return z(e,d),!0;var t=V(d);return!!t&&(I(t),!0)};return u.useEffect((function(){if(q){var e=[];u.Children.forEach(n,(function(t){u.isValidElement(t)&&t.props.nodeId&&e.push(t.props.nodeId)})),q(d,e)}}),[n,d,q]),u.useEffect((function(){if($)return function(){$(d)}}),[d,$]),u.useEffect((function(){G&&c&&G(d,Y.current.textContent.substring(0,1).toLowerCase())}),[G,d,c]),u.useEffect((function(){te&&K.current.focus()}),[te]),H?ae=re:re&&(ae=!0),u.createElement("li",(0,S.Z)({className:(0,Ne.default)(r.root,o,ee&&r.expanded,re&&r.selected),role:"treeitem",onKeyDown:function(e){var t=!1,n=e.key;if(!e.altKey&&e.currentTarget===e.target){var r,o=e.ctrlKey||e.metaKey;switch(n){case" ":K.current===e.currentTarget&&(t=H&&e.shiftKey?A(e,{end:d}):H?R(e,d,!0):R(e,d)),e.stopPropagation();break;case"Enter":K.current===e.currentTarget&&J&&(z(e),t=!0),e.stopPropagation();break;case"ArrowDown":H&&e.shiftKey&&j(e,d),k(d),t=!0;break;case"ArrowUp":H&&e.shiftKey&&N(e,d),T(d),t=!0;break;case"ArrowRight":t="rtl"===ie.direction?le(e):se(e);break;case"ArrowLeft":t="rtl"===ie.direction?se(e):le(e);break;case"Home":H&&o&&e.shiftKey&&D(e,d),C(),t=!0;break;case"End":H&&o&&e.shiftKey&&M(e,d),_(),t=!0;break;default:"*"===n?(Z(e,d),t=!0):H&&o&&"a"===n.toLowerCase()?t=L(e):!o&&!e.shiftKey&&(r=n)&&1===r.length&&r.match(/\S/)&&(P(d,n),t=!0)}t&&(e.preventDefault(),e.stopPropagation()),m&&m(e)}},onFocus:function(e){te||e.currentTarget!==e.target||I(d),g&&g(e)},"aria-expanded":J?ee:null,"aria-selected":ae,ref:X,tabIndex:ne?0:-1},E),u.createElement("div",{className:r.content,onClick:function(e){te||I(d);var t=H&&(e.shiftKey||e.ctrlKey||e.metaKey);!J||e.defaultPrevented||t&&W(d)||z(e,d),t?e.shiftKey?A(e,{end:d}):R(e,d,!0):R(e,d),f&&f(e)},onMouseDown:function(e){(e.shiftKey||e.ctrlKey||e.metaKey)&&e.preventDefault(),v&&v(e)},ref:Y},u.createElement("div",{onClick:h,className:r.iconContainer},Q),u.createElement(Ee.Z,{onClick:p,component:"div",className:r.label},c)),n&&u.createElement(b,(0,S.Z)({unmountOnExit:!0,className:r.group,in:ee,component:"ul",role:"group"},w),n))}));const nr=(0,a.Z)((function(e){return{root:{listStyle:"none",margin:0,padding:0,outline:0,WebkitTapHighlightColor:"transparent","&:focus > $content $label":{backgroundColor:e.palette.action.hover},"&$selected > $content $label":{backgroundColor:(0,Qn.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)},"&$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:(0,Qn.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},expanded:{},selected:{},group:{margin:0,padding:0,marginLeft:17},content:{width:"100%",display:"flex",alignItems:"center",cursor:"pointer"},iconContainer:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},label:{width:"100%",paddingLeft:4,position:"relative","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}}),{name:"MuiTreeItem"})(tr);function rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ir(e,t){return ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ir(e,t)}function ar(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}var lr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ir(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=sr(r);if(o){var n=sr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ar(this,e)});function a(){return rr(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"handleKeyPressed",value:function(e,t){var n=this.props,r=n.expandedNodeIds,o=n.toggleNode;"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||this.selectTreeItem(t),("ArrowLeft"===e.key&&-1!==r.indexOf(t.id)||"ArrowRight"===e.key&&-1===r.indexOf(t.id)&&t.nodes.length>0)&&o(t.id)}},{key:"selectTreeItem",value:function(e){var t=this.props,n=t.setCanvas,r=t.toggleNode,o=t.windowId;if(e.nodes.length>0&&r(e.id),e.data.getCanvasIds()&&0!==e.data.getCanvasIds().length&&!(e.nodes.length>0)){var i=function(e){var t=e.data.__jsonld;if(t.startCanvas&&"string"==typeof t.startCanvas)return t.startCanvas;if(t.start){if("Canvas"===t.start.type&&"string"==typeof t.start.id)return t.start.id;if("SpecificResource"===t.start.type&&"string"==typeof t.start.source)return t.start.source}return e.data.getCanvasIds()[0]}(e);n(o,-1===i.indexOf("#")?i:i.substr(0,i.indexOf("#")))}}},{key:"buildTreeItems",value:function(e,t,n,r){var o=this,i=this.props.classes;return e?e.map((function(e){return u.createElement(He,{containerRef:n,key:"".concat(e.id,"-scroll"),offsetTop:96,scrollTo:r===e.id},u.createElement(nr,{key:e.id,nodeId:e.id,classes:{content:i.content,group:i.group,label:i.label,root:i.treeItemRoot,selected:i.selected},label:u.createElement("div",{className:(0,Ne.default)((a={},s=i.visibleNode,l=-1!==t.indexOf(e.id),s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,a))},e.label),onClick:function(){return o.selectTreeItem(e)},onKeyDown:function(t){return o.handleKeyPressed(t,e)}},e.nodes&&e.nodes.length>0?o.buildTreeItems(e.nodes,t,n,r):null));var a,s,l})):null}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.treeStructure,r=e.visibleNodeIds,o=e.expandedNodeIds,i=e.containerRef,a=e.nodeIdToScrollTo;return n?u.createElement(u.Fragment,null,u.createElement($n,{className:t.root,defaultCollapseIcon:u.createElement(Kn.Z,{color:"action"}),defaultExpandIcon:u.createElement(Yn.Z,{color:"action"}),defaultEndIcon:u.createElement(u.Fragment,null),expanded:o},this.buildTreeItems(n.nodes,r,i,a))):u.createElement(u.Fragment,null)}}])&&or(t.prototype,n),a}(u.Component),ur=n(31456),cr=(0,r.qC)((0,a.Z)((function(e){return{content:{alignItems:"flex-start",borderLeft:"1px solid transparent",padding:"8px 16px 8px 0",width:"auto"},group:{borderLeft:"1px solid ".concat(e.palette.grey[300])},label:{paddingLeft:0},root:{flexGrow:1},selected:{},treeItemRoot:{"&:focus > $content":{backgroundColor:e.palette.action.selected},"&:hover > $content":{backgroundColor:e.palette.action.hover},"&:hover >$content $label, &:focus > $content $label, &$selected > $content $label, &$selected > $content $label:hover, &$selected:focus > $content $label":{backgroundColor:"transparent"}},visibleNode:{backgroundColor:(0,zn.fade)(e.palette.highlights.primary,.35),display:"inline"}}})),(0,i.Z)(),(0,o.$j)((function(e,t){var n=t.id,r=t.windowId;return{expandedNodeIds:(0,ur.$p)(e,{companionWindowId:n,windowId:r}),nodeIdToScrollTo:(0,ur.jh)(e,{companionWindowId:n,windowId:r}),treeStructure:(0,pe.OL)(e,{windowId:r}),visibleNodeIds:(0,ur.q0)(e,{companionWindowId:n,windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{setCanvas:function(){return e(l.ji.apply(G,arguments))},toggleNode:function(t){return e(lt.bh(r,n,t))}}})),(0,s.A)("SidebarIndexTableOfContents"));const dr=cr(lr);function fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pr(e,t){return pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pr(e,t)}function hr(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gr(e)}function gr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mr(e)}var vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mr(o);if(i){var n=mr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return hr(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).handleSequenceChange=t.handleSequenceChange.bind(gr(t)),t.handleVariantChange=t.handleVariantChange.bind(gr(t)),t.containerRef=u.createRef(),t}return t=s,n=[{key:"handleSequenceChange",value:function(e){(0,this.props.updateSequence)(e.target.value)}},{key:"handleVariantChange",value:function(e,t){(0,this.props.updateVariant)(t)}},{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.collection,o=t.id,i=t.showMultipart,a=t.sequenceId,l=t.sequences,c=t.t,d=t.variant,f=t.showToc,p=t.windowId;return e="tableOfContents"===d?u.createElement(dr,{id:o,containerRef:this.containerRef,windowId:p}):u.createElement(Zn,{id:o,containerRef:this.containerRef,windowId:p}),u.createElement(et.Z,{title:c("canvasIndex"),id:o,windowId:p,ref:this.containerRef,otherRef:this.containerRef,titleControls:u.createElement(u.Fragment,null,l&&l.length>1&&u.createElement(Et.Z,null,u.createElement(Ot.Z,{MenuProps:{anchorOrigin:{horizontal:"left",vertical:"bottom"},getContentAnchorEl:null},displayEmpty:!0,value:a,onChange:this.handleSequenceChange,name:"sequenceId",classes:{select:n.select},className:n.selectEmpty},l.map((function(e,t){return u.createElement(Le.Z,{value:e.id,key:e.id},u.createElement(Ee.Z,{variant:"body2"},s.getUseableLabel(e,t)))})))),u.createElement("div",{className:n.break}),u.createElement(sn.Z,{value:d,onChange:this.handleVariantChange,variant:"fullWidth",indicatorColor:"primary",textColor:"primary"},f&&u.createElement(un.ZP,{title:c("tableOfContentsList"),value:"tableOfContents"},u.createElement(ln.Z,{className:n.variantTab,value:"tableOfContents","aria-label":c("tableOfContentsList"),"aria-controls":"tab-panel-".concat(o),icon:u.createElement(dn.Z,{style:{transform:"scale(-1, 1)"}})})),u.createElement(un.ZP,{title:c("itemList"),value:"item"},u.createElement(ln.Z,{className:n.variantTab,value:"item","aria-label":c("itemList"),"aria-controls":"tab-panel-".concat(o),icon:u.createElement(cn.Z,null)})),u.createElement(un.ZP,{title:c("thumbnailList"),value:"thumbnail"},u.createElement(ln.Z,{className:n.variantTab,value:"thumbnail","aria-label":c("thumbnailList"),"aria-controls":"tab-panel-".concat(o),icon:u.createElement(jt.Z,null)}))))},u.createElement("div",{id:"tab-panel-".concat(o)},r&&u.createElement(At.Z,{fullWidth:!0,onClick:i,endIcon:u.createElement(fn.Z,null)},u.createElement(Ee.Z,{className:n.collectionNavigationButton},s.getUseableLabel(r))),e))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],n&&fr(t.prototype,n),r&&fr(t,r),s}(u.Component);vr.defaultProps={collection:null,sequenceId:null,sequences:[],showToc:!1};var yr=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{break:{flexBasis:"100%",height:0},collectionNavigationButton:{textTransform:"none"},label:{paddingLeft:e.spacing(1)},select:{"&:focus":{backgroundColor:e.palette.background.paper}},selectEmpty:{backgroundColor:e.palette.background.paper},variantTab:{minWidth:"auto"}}})),(0,o.$j)((function(e,t){var n=t.id,r=t.windowId,o=(0,pe.OL)(e,{windowId:r}),i=(0,ge.Jj)(e,{windowId:r}),a=e.config,s=(0,he.KW)(e,{companionWindowId:n}),l=i.collectionPath||[],u=l&&l[l.length-1],c=(0,pe.Mv)(e,{windowId:r});return{collection:u&&(0,ut.hi)(e,{manifestId:u}),config:a,sequenceId:c&&c.id,sequences:(0,pe.nH)(e,{windowId:r}),showToc:o&&o.nodes&&o.nodes.length>0,variant:s.variant||(0,ur.U_)(e,{windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{showMultipart:function(){return e(lt.tT(r,{content:"collection",position:"right"}))},updateSequence:function(t){return e(Rt.zw(r,{sequenceId:t}))},updateVariant:function(t){return e(lt.b0(r,n,{variant:t}))}}})),(0,s.A)("WindowSideBarCanvasPanel"));const br=yr(vr);var wr=n(58365),Er=n(13324);function Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sr(e,t){return Sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sr(e,t)}function Ir(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}var _r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sr(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Cr(r);if(o){var n=Cr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ir(this,e)});function a(){return Or(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.manifestLogo,n=e.requiredStatement,r=e.rights,o=e.windowId,i=e.id,a=e.classes,s=e.t;return u.createElement(et.Z,{title:s("attributionTitle"),paperClassName:(0,K.Z)("attribution-panel"),windowId:o,id:i},u.createElement("div",{className:a.section},n&&u.createElement(dt.K,{labelValuePairs:n,defaultLabel:s("attribution")}),r&&r.length>0&&u.createElement("dl",{className:(0,K.Z)("label-value-metadata")},u.createElement(Ee.Z,{variant:"subtitle2",component:"dt"},s("rights")),r.map((function(e){return u.createElement(Ee.Z,{variant:"body1",component:"dd",key:e.toString()},u.createElement(Ut.Z,{target:"_blank",rel:"noopener noreferrer",href:e},e))})))),t&&u.createElement("div",{className:a.section},u.createElement(Er.Img,{src:[t],alt:"",role:"presentation",className:a.logo,unloader:u.createElement(wr.Z,{className:a.placeholder,variant:"rect",height:60,width:60})})),u.createElement(ft.M,this.props))}}])&&xr(t.prototype,n),a}(u.Component);_r.defaultProps={classes:{},manifestLogo:null,requiredStatement:null,rights:null,t:function(e){return e}};var kr=(0,r.qC)((0,a.Z)((function(e){return{logo:{maxWidth:"100%"},placeholder:{backgroundColor:e.palette.grey[300]},section:{borderBottom:".5px solid ".concat(e.palette.section_divider),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)}}})),(0,i.Z)(),(0,o.$j)((function(e,t){t.id;var n=t.windowId;return{manifestLogo:(0,ut.Fx)(e,{windowId:n}),requiredStatement:(0,ut.AI)(e,{windowId:n}),rights:(0,ut.Sy)(e,{windowId:n})}})),(0,s.A)("AttributionPanel"));const Tr=kr(_r);var Pr=n(76337),Rr=n(53816),Ar=n.n(Rr),jr=n(23279),Nr=n.n(jr),Dr=n(13218),Mr=n.n(Dr),Lr=n(4942),Zr=n(96617),zr=n(96837),Wr=n(17812),Fr=n(17694);const Br=(0,n(63786).Z)(u.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Ur=n(95001),Hr=n(55192),Vr=n(34236);function Gr(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function qr(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var $r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,s=void 0===a?"any":a,l=e.stringify,u=e.trim,c=void 0!==u&&u;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,u=c?r.trim():r;o&&(u=u.toLowerCase()),n&&(u=Gr(u));var d=e.filter((function(e){var t=(l||a)(e);return o&&(t=t.toLowerCase()),n&&(t=Gr(t)),"start"===s?0===t.indexOf(u):t.indexOf(u)>-1}));return"number"==typeof i?d.slice(0,i):d}}();function Kr(e){e.anchorEl,e.open;var t=(0,Fn.Z)(e,["anchorEl","open"]);return u.createElement("div",t)}var Yr=u.createElement(Fr.Z,{fontSize:"small"}),Xr=u.createElement(Br,null),Qr=u.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,o=e.classes,i=e.className,a=(void 0===e.clearOnBlur&&e.freeSolo,e.clearOnEscape,e.clearText),s=void 0===a?"Clear":a,l=e.closeIcon,d=void 0===l?Yr:l,f=e.closeText,p=void 0===f?"Close":f,h=(void 0===(e.debug,e.defaultValue)&&e.multiple,e.disableClearable),g=void 0!==h&&h,m=(e.disableCloseOnSelect,e.disabled),v=void 0!==m&&m,y=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),b=void 0!==y&&y,w=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),E=void 0===w?"auto":w,O=e.freeSolo,x=void 0!==O&&O,I=e.fullWidth,C=void 0!==I&&I,_=e.getLimitTagsText,k=void 0===_?function(e){return"+".concat(e)}:_,T=(e.getOptionDisabled,e.getOptionLabel),P=void 0===T?function(e){return e}:T,R=(e.getOptionSelected,e.groupBy),A=(void 0===e.handleHomeEndKeys&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),j=void 0===A?-1:A,N=e.ListboxComponent,D=void 0===N?"ul":N,M=e.ListboxProps,L=e.loading,Z=void 0!==L&&L,z=e.loadingText,W=void 0===z?"Loading…":z,F=e.multiple,B=void 0!==F&&F,U=e.noOptionsText,H=void 0===U?"No options":U,V=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),G=void 0===V?"Open":V,q=(e.options,e.PaperComponent),$=void 0===q?c.Z:q,K=e.PopperComponent,Y=void 0===K?Zr.Z:K,X=e.popupIcon,Q=void 0===X?Xr:X,J=e.renderGroup,ee=e.renderInput,te=e.renderOption,ne=e.renderTags,re=(void 0===e.selectOnFocus&&e.freeSolo,e.size),oe=void 0===re?"medium":re,ie=(e.value,(0,Fn.Z)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),ae=b?Kr:Y,se=function(e){var t=e.autoComplete,n=void 0!==t&&t,r=e.autoHighlight,o=void 0!==r&&r,i=e.autoSelect,a=void 0!==i&&i,s=e.blurOnSelect,l=void 0!==s&&s,c=e.clearOnBlur,d=void 0===c?!e.freeSolo:c,f=e.clearOnEscape,p=void 0!==f&&f,h=e.componentName,g=void 0===h?"useAutocomplete":h,m=e.debug,v=void 0!==m&&m,y=e.defaultValue,b=void 0===y?e.multiple?[]:null:y,w=e.disableClearable,E=void 0!==w&&w,O=e.disableCloseOnSelect,x=void 0!==O&&O,I=e.disabledItemsFocusable,C=void 0!==I&&I,_=e.disableListWrap,k=void 0!==_&&_,T=e.filterOptions,P=void 0===T?$r:T,R=e.filterSelectedOptions,A=void 0!==R&&R,j=e.freeSolo,N=void 0!==j&&j,D=e.getOptionDisabled,M=e.getOptionLabel,L=void 0===M?function(e){return e}:M,Z=e.getOptionSelected,z=void 0===Z?function(e,t){return e===t}:Z,W=e.groupBy,F=e.handleHomeEndKeys,B=void 0===F?!e.freeSolo:F,U=e.id,H=e.includeInputInList,V=void 0!==H&&H,G=e.inputValue,q=e.multiple,$=void 0!==q&&q,K=e.onChange,Y=e.onClose,X=e.onHighlightChange,Q=e.onInputChange,J=e.onOpen,ee=e.open,te=e.openOnFocus,ne=void 0!==te&&te,re=e.options,oe=e.selectOnFocus,ie=void 0===oe?!e.freeSolo:oe,ae=e.value,se=(0,Ur.Z)(U),le=L,ue=u.useRef(!1),ce=u.useRef(!0),de=u.useRef(null),fe=u.useRef(null),pe=u.useState(null),he=pe[0],ge=pe[1],me=u.useState(-1),ve=me[0],ye=me[1],be=o?0:-1,we=u.useRef(be),Ee=(0,Bn.Z)({controlled:ae,default:b,name:g}),Oe=(0,Wn.Z)(Ee,2),xe=Oe[0],Se=Oe[1],Ie=(0,Bn.Z)({controlled:G,default:"",name:g,state:"inputValue"}),Ce=(0,Wn.Z)(Ie,2),_e=Ce[0],ke=Ce[1],Te=u.useState(!1),Pe=Te[0],Re=Te[1],Ae=(0,Hr.Z)((function(e,t){var n;if($)n="";else if(null==t)n="";else{var r=le(t);n="string"==typeof r?r:""}_e!==n&&(ke(n),Q&&Q(e,n,"reset"))}));u.useEffect((function(){Ae(null,xe)}),[xe,Ae]);var je=(0,Bn.Z)({controlled:ee,default:!1,name:g,state:"open"}),Ne=(0,Wn.Z)(je,2),De=Ne[0],Me=Ne[1],Le=!$&&null!=xe&&_e===le(xe),Ze=De,ze=Ze?P(re.filter((function(e){return!A||!($?xe:[xe]).some((function(t){return null!==t&&z(e,t)}))})),{inputValue:Le?"":_e,getOptionLabel:le}):[],We=(0,Hr.Z)((function(e){-1===e?de.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));u.useEffect((function(){$&&ve>xe.length-1&&(ye(-1),We(-1))}),[xe,$,ve,We]);var Fe=(0,Hr.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(we.current=n,-1===n?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant","".concat(se,"-option-").concat(n)),X&&X(t,-1===n?null:ze[n],o),fe.current){var i=fe.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=fe.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=fe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var l=s,u=a.clientHeight+a.scrollTop,c=l.offsetTop+l.offsetHeight;c>u?a.scrollTop=c-a.clientHeight:l.offsetTop-l.offsetHeight*(W?1.3:0)<a.scrollTop&&(a.scrollTop=l.offsetTop-l.offsetHeight*(W?1.3:0))}}else a.scrollTop=0}})),Be=(0,Hr.Z)((function(e){var t=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,s=void 0===a?"auto":a;if(Ze){var l=function(e,t){if(!fe.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===ze.length||"previous"===t&&-1===n)return-1;var r=fe.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!C&&r&&(r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=ze.length-1;if("reset"===r)return be;if("start"===r)return 0;if("end"===r)return e;var t=we.current+r;return t<0?-1===t&&V?-1:k&&-1!==we.current||Math.abs(r)>1?0:e:t>e?t===e+1&&V?-1:k||Math.abs(r)>1?e:0:t}(),i);if(Fe({index:l,reason:s,event:t}),n&&"reset"!==r)if(-1===l)de.current.value=_e;else{var u=le(ze[l]);de.current.value=u,0===u.toLowerCase().indexOf(_e.toLowerCase())&&_e.length>0&&de.current.setSelectionRange(_e.length,u.length)}}})),Ue=u.useCallback((function(){if(Ze){var e=$?xe[0]:xe;if(0!==ze.length&&null!=e){if(fe.current)if(A||null==e)we.current>=ze.length-1?Fe({index:ze.length-1}):Fe({index:we.current});else{var t=ze[we.current];if($&&t&&-1!==qr(xe,(function(e){return z(t,e)})))return;var n=qr(ze,(function(t){return z(t,e)}));-1===n?Be({diff:"reset"}):Fe({index:n})}}else Be({diff:"reset"})}}),[0===ze.length,!$&&xe,A,Be,Fe,Ze,_e,$]),He=(0,Hr.Z)((function(e){(0,Vr.Z)(fe,e),e&&Ue()}));u.useEffect((function(){Ue()}),[Ue]);var Ve=function(e){De||(Me(!0),J&&J(e))},Ge=function(e,t){De&&(Me(!1),Y&&Y(e,t))},qe=function(e,t,n,r){xe!==t&&(K&&K(e,t,n,r),Se(t))},$e=u.useRef(!1),Ke=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",o=t;if($){var i=qr(o=Array.isArray(xe)?xe.slice():[],(function(e){return z(t,e)}));-1===i?o.push(t):"freeSolo"!==n&&(o.splice(i,1),r="remove-option")}Ae(e,o),qe(e,o,r,{option:t}),x||Ge(e,r),(!0===l||"touch"===l&&$e.current||"mouse"===l&&!$e.current)&&de.current.blur()},Ye=function(e,t){if($){Ge(e,"toggleInput");var n=ve;-1===ve?""===_e&&"previous"===t&&(n=xe.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===xe.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===xe.length||"previous"===t&&-1===n)return-1;var r=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ye(n),We(n)}},Xe=function(e){ue.current=!0,ke(""),Q&&Q(e,"","clear"),qe(e,$?[]:null,"clear")},Qe=function(e){return function(t){switch(-1!==ve&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ye(-1),We(-1)),t.key){case"Home":Ze&&B&&(t.preventDefault(),Be({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ze&&B&&(t.preventDefault(),Be({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Be({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ve(t);break;case"PageDown":t.preventDefault(),Be({diff:5,direction:"next",reason:"keyboard",event:t}),Ve(t);break;case"ArrowDown":t.preventDefault(),Be({diff:1,direction:"next",reason:"keyboard",event:t}),Ve(t);break;case"ArrowUp":t.preventDefault(),Be({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ve(t);break;case"ArrowLeft":Ye(t,"previous");break;case"ArrowRight":Ye(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==we.current&&Ze){var r=ze[we.current],o=!!D&&D(r);if(t.preventDefault(),o)return;Ke(t,r,"select-option"),n&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else N&&""!==_e&&!1===Le&&($&&t.preventDefault(),Ke(t,_e,"create-option","freeSolo"));break;case"Escape":Ze?(t.preventDefault(),t.stopPropagation(),Ge(t,"escape")):p&&(""!==_e||$&&xe.length>0)&&(t.preventDefault(),t.stopPropagation(),Xe(t));break;case"Backspace":if($&&""===_e&&xe.length>0){var i=-1===ve?xe.length-1:ve,a=xe.slice();a.splice(i,1),qe(t,a,"remove-option",{option:xe[i]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){Re(!0),ne&&!ue.current&&Ve(e)},et=function(e){null===fe.current||document.activeElement!==fe.current.parentElement?(Re(!1),ce.current=!0,ue.current=!1,v&&""!==_e||(a&&-1!==we.current&&Ze?Ke(e,ze[we.current],"blur"):a&&N&&""!==_e?Ke(e,_e,"blur","freeSolo"):d&&Ae(e,xe),Ge(e,"blur"))):de.current.focus()},tt=function(e){var t=e.target.value;_e!==t&&(ke(t),Q&&Q(e,t,"input")),""===t?E||$||qe(e,null,"clear"):Ve(e)},nt=function(e){Fe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},rt=function(){$e.current=!0},ot=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ke(e,ze[t],"select-option"),$e.current=!1},it=function(e){return function(t){var n=xe.slice();n.splice(e,1),qe(t,n,"remove-option",{option:xe[e]})}},at=function(e){De?Ge(e,"toggleInput"):Ve(e)},st=function(e){e.target.getAttribute("id")!==se&&e.preventDefault()},lt=function(){de.current.focus(),ie&&ce.current&&de.current.selectionEnd-de.current.selectionStart==0&&de.current.select(),ce.current=!1},ut=function(e){""!==_e&&De||at(e)},ct=N&&_e.length>0;ct=ct||($?xe.length>0:null!==xe);var dt=ze;return W&&(new Map,dt=ze.reduce((function(e,t,n){var r=W(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,S.Z)({"aria-owns":Ze?"".concat(se,"-popup"):null,role:"combobox","aria-expanded":Ze},e,{onKeyDown:Qe(e),onMouseDown:st,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(se,"-label"),htmlFor:se}},getInputProps:function(){return{id:se,value:_e,onBlur:et,onFocus:Je,onChange:tt,onMouseDown:ut,"aria-activedescendant":Ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ze?"".concat(se,"-popup"):null,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Xe}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:at}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:it(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(se,"-popup"),"aria-labelledby":"".concat(se,"-label"),ref:He,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=($?xe:[xe]).some((function(e){return null!=e&&z(n,e)})),o=!!D&&D(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(se,"-option-").concat(t),onMouseOver:nt,onClick:ot,onTouchStart:rt,"data-option-index":t,"aria-disabled":o,"aria-selected":r}},id:se,inputValue:_e,value:xe,dirty:ct,popupOpen:Ze,focused:Pe||-1!==ve,anchorEl:he,setAnchorEl:ge,focusedTag:ve,groupedOptions:dt}}((0,S.Z)({},e,{componentName:"Autocomplete"})),le=se.getRootProps,ue=se.getInputProps,ce=se.getInputLabelProps,de=se.getPopupIndicatorProps,fe=se.getClearProps,pe=se.getTagProps,he=se.getListboxProps,ge=se.getOptionProps,me=se.value,ve=se.dirty,ye=se.id,be=se.popupOpen,we=se.focused,Ee=se.focusedTag,Oe=se.anchorEl,xe=se.setAnchorEl,Se=se.inputValue,Ie=se.groupedOptions;if(B&&me.length>0){var Ce=function(e){return(0,S.Z)({className:(0,Ne.default)(o.tag,"small"===oe&&o.tagSizeSmall),disabled:v},pe(e))};n=ne?ne(me,Ce):me.map((function(e,t){return u.createElement(De.Z,(0,S.Z)({label:P(e),size:oe},Ce({index:t}),r))}))}if(j>-1&&Array.isArray(n)){var _e=n.length-j;!we&&_e>0&&(n=n.splice(0,j)).push(u.createElement("span",{className:o.tag,key:n.length},k(_e)))}var ke=J||function(e){return u.createElement("li",{key:e.key},u.createElement(zr.Z,{className:o.groupLabel,component:"div"},e.group),u.createElement("ul",{className:o.groupUl},e.children))},Te=te||P,Pe=function(e,t){var n=ge({option:e,index:t});return u.createElement("li",(0,S.Z)({},n,{className:o.option}),Te(e,{selected:n["aria-selected"],inputValue:Se}))},Re=!g&&!v,Ae=(!x||!0===E)&&!1!==E;return u.createElement(u.Fragment,null,u.createElement("div",(0,S.Z)({ref:t,className:(0,Ne.default)(o.root,i,we&&o.focused,C&&o.fullWidth,Re&&o.hasClearIcon,Ae&&o.hasPopupIcon)},le(ie)),ee({id:ye,disabled:v,fullWidth:!0,size:"small"===oe?"small":void 0,InputLabelProps:ce(),InputProps:{ref:xe,className:o.inputRoot,startAdornment:n,endAdornment:u.createElement("div",{className:o.endAdornment},Re?u.createElement(Wr.Z,(0,S.Z)({},fe(),{"aria-label":s,title:s,className:(0,Ne.default)(o.clearIndicator,ve&&o.clearIndicatorDirty)}),d):null,Ae?u.createElement(Wr.Z,(0,S.Z)({},de(),{disabled:v,"aria-label":be?p:G,title:be?p:G,className:(0,Ne.default)(o.popupIndicator,be&&o.popupIndicatorOpen)}),Q):null)},inputProps:(0,S.Z)({className:(0,Ne.default)(o.input,-1===Ee&&o.inputFocused),disabled:v},ue())})),be&&Oe?u.createElement(ae,{className:(0,Ne.default)(o.popper,b&&o.popperDisablePortal),style:{width:Oe?Oe.clientWidth:null},role:"presentation",anchorEl:Oe,open:!0},u.createElement($,{className:o.paper},Z&&0===Ie.length?u.createElement("div",{className:o.loading},W):null,0!==Ie.length||x||Z?null:u.createElement("div",{className:o.noOptions},H),Ie.length>0?u.createElement(D,(0,S.Z)({className:o.listbox},he(),M),Ie.map((function(e,t){return R?ke({key:e.key,group:e.group,children:e.options.map((function(t,n){return Pe(t,e.index+n)}))}):Pe(e,t)}))):null)):null)}));const Jr=(0,a.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,S.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,Lr.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,Lr.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,Lr.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,Lr.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,Lr.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(Qr);var eo=n(93871),to=44,no=u.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.disableShrink,s=void 0!==a&&a,l=e.size,c=void 0===l?40:l,d=e.style,f=e.thickness,p=void 0===f?3.6:f,h=e.value,g=void 0===h?0:h,m=e.variant,v=void 0===m?"indeterminate":m,y=(0,Fn.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},w={},E={};if("determinate"===v||"static"===v){var O=2*Math.PI*((to-p)/2);b.strokeDasharray=O.toFixed(3),E["aria-valuenow"]=Math.round(g),b.strokeDashoffset="".concat(((100-g)/100*O).toFixed(3),"px"),w.transform="rotate(-90deg)"}return u.createElement("div",(0,S.Z)({className:(0,Ne.default)(n.root,r,"inherit"!==i&&n["color".concat((0,eo.Z)(i))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[v]),style:(0,S.Z)({width:c,height:c},w,d),ref:t,role:"progressbar"},E,y),u.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(to," ").concat(to)},u.createElement("circle",{className:(0,Ne.default)(n.circle,s&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[v]),style:b,cx:to,cy:to,r:(to-p)/2,fill:"none",strokeWidth:p})))}));const ro=(0,a.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(no);var oo=n(7784),io=n(75421),ao=n(80589),so=n(2814);function lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function co(e,t){return co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},co(e,t)}function fo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},po(e)}var ho=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&co(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=po(r);if(o){var n=po(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return fo(this,e)});function a(){return lo(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"nextSearchResult",value:function(e){var t=this.props,n=t.searchHits;(0,t.selectAnnotation)(n[e+1].annotations[0])}},{key:"previousSearchResult",value:function(e){var t=this.props,n=t.searchHits;(0,t.selectAnnotation)(n[e-1].annotations[0])}},{key:"hasNextResult",value:function(e){var t=this.props.searchHits;return 0!==t.length&&e<t.length-1}},{key:"hasPreviousResult",value:function(e){return 0!==this.props.searchHits.length&&e>0}},{key:"render",value:function(){var e=this,t=this.props,n=t.numTotal,r=t.searchHits,o=t.selectedContentSearchAnnotation,i=t.classes,a=t.t,s="rtl"===t.direction?{transform:"rotate(180deg)"}:{},l=r.findIndex((function(e){return e.annotations.includes(o[0])})),c=r.length;return r.length<n&&(c+="+"),u.createElement(u.Fragment,null,r.length>0&&u.createElement(Ee.Z,{variant:"body2",align:"center",classes:i},u.createElement(Ie.Z,{"aria-label":a("searchPreviousResult"),disabled:!this.hasPreviousResult(l),onClick:function(){return e.previousSearchResult(l)}},u.createElement(ao.Z,{style:s})),u.createElement("span",{style:{unicodeBidi:"plaintext"}},a("pagination",{current:l+1,total:c})),u.createElement(Ie.Z,{"aria-label":a("searchNextResult"),disabled:!this.hasNextResult(l),onClick:function(){return e.nextSearchResult(l)}},u.createElement(so.Z,{style:s}))))}}])&&uo(t.prototype,n),a}(u.Component);ho.defaultProps={classes:{},numTotal:void 0,searchHits:[],t:function(e){return e}};var go=n(51580),mo=(0,r.qC)((0,o.$j)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{direction:(0,me.tt)(e),numTotal:(0,go.fB)(e,{companionWindowId:n,windowId:r}),searchHits:(0,go.b2)(e,{companionWindowId:n,windowId:r}),selectedContentSearchAnnotation:(0,go.iV)(e,{companionWindowId:n,windowId:r})}}),(function(e,t){var n=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(Oe.XD.apply(G,[n].concat(r)))}}})),(0,a.Z)((function(e){return{body2:{marginLeft:"-16px",width:"100%"}}})),(0,i.Z)(),(0,s.A)("SearchPanelNavigation"));const vo=mo(ho);function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oo(e,t){return Oo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oo(e,t)}function xo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return So(e)}function So(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Io(e){return Io=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Io(e)}var Co=function(e){return Mr()(e)?e.match:e},_o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oo(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Io(r);if(o){var n=Io(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return xo(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={search:e.query,suggestions:[]},t.handleChange=t.handleChange.bind(So(t)),t.submitSearch=t.submitSearch.bind(So(t)),t.getSuggestions=t.getSuggestions.bind(So(t)),t.selectItem=t.selectItem.bind(So(t)),t.fetchAutocomplete=Nr()(t.fetchAutocomplete.bind(So(t)),500),t.receiveAutocomplete=t.receiveAutocomplete.bind(So(t)),t}return t=a,n=[{key:"componentDidUpdate",value:function(e){var t=this.props.query;t!==e.query&&this.setState({search:t})}},{key:"handleChange",value:function(e,t,n){("reset"!==n||t)&&(this.setState({search:t,suggestions:[]}),t&&this.fetchAutocomplete(t))}},{key:"getSuggestions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.showEmpty,r=void 0!==n&&n,o=this.state.suggestions,i=Ar()(e.trim()).toLowerCase(),a=i.length;return 0!==a||r?o:[]}},{key:"fetchAutocomplete",value:function(e){var t=this.props.autocompleteService;t&&e&&fetch("".concat(t.id,"?q=").concat(e)).then((function(e){return e.json()})).then(this.receiveAutocomplete)}},{key:"receiveAutocomplete",value:function(e){this.setState({suggestions:e.terms})}},{key:"submitSearch",value:function(e){var t=this.props,n=t.companionWindowId,r=t.fetchSearch,o=t.searchService,i=t.windowId,a=this.state.search;e&&e.preventDefault(),a&&r(i,n,"".concat(o.id,"?q=").concat(a),a)}},{key:"selectItem",value:function(e,t,n){t&&Co(t)&&this.setState({search:Co(t)},this.submitSearch)}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.companionWindowId,r=e.searchIsFetching,o=e.t,i=e.windowId,a=this.state,s=a.search,l=a.suggestions,c="search-".concat(n);return u.createElement(u.Fragment,null,u.createElement("form",{onSubmit:this.submitSearch,className:t.form},u.createElement(Jr,{id:c,inputValue:s,options:l,getOptionLabel:Co,getOptionSelected:function(e,t){return Ar()(Co(e).trim()).toLowerCase()===Ar()(Co(t).trim()).toLowerCase()},noOptionsText:"",onChange:this.selectItem,onInputChange:this.handleChange,freeSolo:!0,renderInput:function(e){return u.createElement(oo.Z,Object.assign({},e,{label:o("searchInputLabel"),InputProps:bo(bo({},e.InputProps),{},{endAdornment:u.createElement("div",{className:t.endAdornment},u.createElement(Ie.Z,{"aria-label":o("searchSubmitAria"),type:"submit"},u.createElement(io.Z,null)),Boolean(r)&&u.createElement(ro,{className:t.searchProgress,size:50}))})}))}})),u.createElement(vo,{windowId:i,companionWindowId:n}))}}],n&&Eo(t.prototype,n),a}(u.Component);_o.defaultProps={autocompleteService:void 0,classes:{},query:"",t:function(e){return e}};var ko={fetchSearch:Pr.on},To=(0,r.qC)((0,o.$j)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{autocompleteService:(0,ut.DH)(e,{windowId:r}),query:(0,go.uP)(e,{companionWindowId:n,windowId:r}),searchIsFetching:(0,go.x6)(e,{companionWindowId:n,windowId:r}),searchService:(0,ut.Oo)(e,{windowId:r})}}),ko),(0,a.Z)((function(e){return{endAdornment:{position:"absolute",right:0},form:{paddingBottom:e.spacing(1),paddingRight:e.spacing(1.5),width:"100%"},searchProgress:{position:"absolute",right:0}}})),(0,i.Z)(),(0,s.A)("SearchPanelControls"));const Po=To(_o);var Ro=n(62822),Ao=n(1753),jo=n(86746),No=n(50998);function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Zo=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.maxChars,i=void 0===o?200:o,a=r.minimum,s=void 0===a?20:a;Mo(this,e),this.hit=t,this.annotation=n,this.maxChars=i||200,this.minimum=s||20}var t,n;return t=e,(n=[{key:"match",get:function(){return this.hit.match||this.annotation&&this.annotation.resource.resource.chars||"-"}},{key:"charsOnSide",get:function(){var e,t=(this.maxChars-this.match.length)/2,n=[(this.hit.before||"").length,(this.hit.after||"").length].filter((function(e){return e>0}));return Math.max(Math.min.apply(Math,[t].concat(function(e){if(Array.isArray(e))return Do(e)}(e=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Do(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Do(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),this.minimum)}},{key:"before",get:function(){return this.hit.before?this.hit.before.substring(this.hit.before.length-this.charsOnSide,this.hit.before.length):""}},{key:"after",get:function(){return this.hit.after?this.hit.after.substring(0,Math.min(this.hit.after.length,this.charsOnSide)):""}}])&&Lo(t.prototype,n),e}();function zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fo(e,t){return Fo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fo(e,t)}function Bo(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Uo(e)}function Uo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ho(e)}var Vo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fo(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ho(r);if(o){var n=Ho(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Bo(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleClick=t.handleClick.bind(Uo(t)),t}return t=a,n=[{key:"componentDidMount",value:function(){this.props.selected&&this.announceHit()}},{key:"componentDidUpdate",value:function(e){var t=this.props.selected;t&&t!==e.selected&&this.announceHit()}},{key:"handleClick",value:function(){var e=this.props,t=e.annotation,n=e.annotationId,r=e.selectAnnotation;t&&n&&r(n)}},{key:"announceHit",value:function(){var e=this.props,t=e.annotation,n=e.annotationLabel,r=e.announcer,o=e.canvasLabel,i=e.hit,a=e.index,s=e.t,l=e.total;if(i){var u=new Zo(i,t);r([s("pagination",{current:a+1,total:l}),o,n,u.before,u.match,u.after].join(" "))}}},{key:"render",value:function(){var e,t=this.props,n=t.adjacent,r=t.annotation,o=t.annotationLabel,i=t.canvasLabel,a=t.classes,s=t.companionWindowId,l=t.containerRef,c=t.hit,d=t.focused,f=t.index,p=t.showDetails,h=t.selected,g=t.t,m=t.windowSelected;if(d&&!h)return null;var v=d?c:c&&new Zo(c,r),y=c&&v.before!==c.before&&v.after!==c.after,b="".concat(s,"-").concat(f);return u.createElement(He,{containerRef:l,offsetTop:96,scrollTo:m&&!d},u.createElement(No.Z,{className:(0,Ne.default)(a.listItem,(e={},zo(e,a.adjacent,n),zo(e,a.selected,h),zo(e,a.focused,d),zo(e,a.windowSelected,m),e)),button:!h,component:"li",onClick:this.handleClick,selected:h},u.createElement(Ze.Z,{primaryTypographyProps:{variant:"body1"}},u.createElement(Ee.Z,{variant:"subtitle2",className:a.subtitle},u.createElement(De.Z,{component:"span",label:f+1,className:a.hitCounter}),u.createElement("span",{id:b},i)),o&&u.createElement(Ee.Z,{variant:"subtitle2"},o),c&&u.createElement(u.Fragment,null,u.createElement(ze.Z,{ruleSet:"iiif",htmlString:v.before})," ",u.createElement("strong",null,u.createElement(ze.Z,{ruleSet:"iiif",htmlString:v.match}))," ",u.createElement(ze.Z,{ruleSet:"iiif",htmlString:v.after})," ",y&&!d&&u.createElement(At.Z,{className:a.inlineButton,onClick:p,color:"secondary",size:"small","aria-describedby":b},g("more"))),!c&&r&&u.createElement(ze.Z,{ruleSet:"iiif",htmlString:r.chars}))))}}],n&&Wo(t.prototype,n),a}(u.Component);function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach((function(t){$o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Vo.defaultProps={adjacent:!1,annotation:void 0,annotationId:void 0,annotationLabel:void 0,canvasLabel:void 0,classes:{},companionWindowId:void 0,containerRef:void 0,focused:!1,hit:void 0,index:void 0,selectAnnotation:function(){},selected:!1,showDetails:function(){},t:function(e){return e},total:void 0,windowSelected:!1};var Yo=(0,r.qC)((0,o.$j)((function(e,t){var n,r=t.annotationId,o=t.hit,i=void 0===o?{annotations:[]}:o,a=t.companionWindowId,s=t.windowId,l=r||i.annotations[0],u=(0,go.hv)(e,{annotationUri:l,companionWindowId:a,windowId:s}),c=(0,go.YM)(e,{annotationUri:l,companionWindowId:a,windowId:s}),d=(0,q.Lc)(e,{windowId:s}),f=(0,go.iV)(e,{companionWindowId:a,windowId:s}),p=(0,we.EO)(e,{windowId:s}),h=[r].concat(function(e){if(Array.isArray(e))return Ko(e)}(n=i.annotations)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Ko(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ko(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{adjacent:d.includes(u.targetId),annotation:u,annotationId:l,annotationLabel:c[0],canvasLabel:u&&(0,q.vt)(e,{canvasId:u.targetId,windowId:s}),selected:f[0]&&h.includes(f[0]),windowSelected:p&&h.includes(p)}}),(function(e,t){var n=t.windowId;return{selectAnnotation:function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(Oe.XD.apply(G,[n].concat(r)))}}})),(0,a.Z)((function(e){return{adjacent:{},focused:{},hitCounter:qo(qo({},e.typography.subtitle2),{},{backgroundColor:e.palette.hitCounter.default,height:30,marginRight:e.spacing(1),verticalAlign:"inherit"}),inlineButton:{"& span":{lineHeight:"1.5em"},margin:0,padding:0,textTransform:"none"},listItem:{"&$adjacent":{"& $hitCounter":{backgroundColor:e.palette.highlights.secondary},"&$windowSelected":{"& $hitCounter":{backgroundColor:e.palette.highlights.primary}}},"&$windowSelected":{"& $hitCounter":{backgroundColor:e.palette.highlights.primary},"&$focused":{"&:hover":{backgroundColor:"inherit"},backgroundColor:"inherit"}},borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:8},selected:{},subtitle:{marginBottom:e.spacing(1.5)},windowSelected:{}}})),(0,i.Z)(),(0,s.A)("SearchHit"));const Xo=Yo(Vo);function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jo(e,t){return Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jo(e,t)}function ei(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ti(e)}function ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ni(e)}var ri=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jo(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ni(r);if(o){var n=ni(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ei(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={focused:!1},t.toggleFocus=t.toggleFocus.bind(ti(t)),t}return t=a,n=[{key:"toggleFocus",value:function(){var e=this.state.focused;this.setState({focused:!e})}},{key:"renderSearchHitsAndAnnotations",value:function(e){var t=this,n=this.props,r=n.companionWindowId,o=n.containerRef,i=n.searchAnnotations,a=n.searchHits,s=n.windowId,l=this.state.focused;return 0===a.length&&i.length>0?i.map((function(n,a){return u.createElement(Xo,{announcer:e,annotationId:n.id,companionWindowId:r,containerRef:o,key:n.id,focused:l,index:a,total:i.length,windowId:s,showDetails:t.toggleFocus})})):a.map((function(n,i){return u.createElement(Xo,{announcer:e,containerRef:o,companionWindowId:r,key:n.annotations[0],focused:l,hit:n,index:i,total:a.length,windowId:s,showDetails:t.toggleFocus})}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.companionWindowId,o=t.containerRef,i=t.isFetching,a=t.fetchSearch,s=t.nextSearch,l=t.query,c=t.searchAnnotations,d=t.searchHits,f=t.searchNumTotal,p=t.t,h=t.windowId,g=this.state.focused,m=l&&!i&&0===d.length&&0===c.length;return u.createElement(u.Fragment,null,g&&u.createElement(He,{containerRef:o,offsetTop:96,scrollTo:!0},u.createElement(At.Z,{onClick:this.toggleFocus,className:n.navigation,size:"small"},u.createElement(Ao.Z,null),p("backToResults"))),m&&u.createElement(Ee.Z,{className:n.noResults},p("searchNoResults")),u.createElement(Ro.Z,{disablePadding:!0},u.createElement(jo.TJ,null,(function(t){var n=t.announcePolite;return e.renderSearchHitsAndAnnotations(n)}))),s&&u.createElement(At.Z,{className:n.moreButton,color:"secondary",onClick:function(){return a(h,r,s,l)}},p("moreResults"),u.createElement("br",null),"(".concat(p("searchResultsRemaining",{numLeft:f-d.length}),")")))}}],n&&Qo(t.prototype,n),a}(u.Component);function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ri.defaultProps={classes:{},containerRef:void 0,isFetching:!1,nextSearch:void 0,query:void 0,searchAnnotations:[],searchHits:[],searchNumTotal:void 0,t:function(e){return e}};var si={fetchSearch:Pr.on},li=(0,r.qC)((0,o.$j)((function(e,t){var n=t.companionWindowId,r=t.windowId;return{isFetching:(0,go.x6)(e,{companionWindowId:n,windowId:r}),nextSearch:(0,go.uQ)(e,{companionWindowId:n,windowId:r}),query:(0,go.uP)(e,{companionWindowId:n,windowId:r}),searchAnnotations:(0,go.IC)(e,{companionWindowId:n,windowId:r}),searchHits:(0,go.b2)(e,{companionWindowId:n,windowId:r}),searchNumTotal:(0,go.fB)(e,{companionWindowId:n,windowId:r})}}),si),(0,a.Z)((function(e){return{moreButton:{width:"100%"},navigation:{textTransform:"none"},noResults:ii(ii({},e.typography.h6),{},{padding:e.spacing(2)}),toggleFocus:ii({},e.typography.subtitle1)}})),(0,i.Z)(),(0,s.A)("SearchResults"));const ui=li(ri);function ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function di(e,t){return di=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},di(e,t)}function fi(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pi(e)}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&di(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=pi(r);if(o){var n=pi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return fi(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).containerRef=u.createRef(),t}return t=a,n=[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.fetchSearch,r=e.windowId,o=e.id,i=e.query,a=e.removeSearch,s=e.searchService,l=e.suggestedSearches,c=e.t;return u.createElement(et.Z,{ariaLabel:c("searchTitle"),title:u.createElement(u.Fragment,null,c("searchTitle"),i&&""!==i&&u.createElement(De.Z,{className:t.clearChip,color:"secondary",label:c("clearSearch"),onClick:a,onDelete:a,size:"small",variant:"outlined"})),windowId:r,id:o,titleControls:u.createElement(Po,{companionWindowId:o,windowId:r}),ref:this.containerRef},u.createElement(ui,{containerRef:this.containerRef,companionWindowId:o,windowId:r}),n&&l&&""===i&&l.map((function(e){return u.createElement(Ee.Z,{component:"p",key:e,variant:"body1"},u.createElement(At.Z,{className:t.inlineButton,color:"secondary",onClick:function(){return n("".concat(s.id,"?q=").concat(e),e)}},c("suggestSearch",{query:e})))})))}}],n&&ci(t.prototype,n),a}(u.Component);hi.defaultProps={classes:{},fetchSearch:void 0,query:"",suggestedSearches:[],t:function(e){return e}};var gi=(0,r.qC)((0,o.$j)((function(e,t){var n=t.id,r=t.windowId;return{query:(0,go.uP)(e,{companionWindowId:n,windowId:r}),searchService:(0,ut.Oo)(e,{windowId:r}),suggestedSearches:(0,ge.Jj)(e,{windowId:r}).suggestedSearches}}),(function(e,t){return{fetchSearch:function(n,r){return e(Pr.on(t.windowId,t.id,n,r))},removeSearch:function(){return e(Pr.yg(t.windowId,t.id))}}})),(0,a.Z)((function(e){return{clearChip:{marginLeft:e.spacing(1)},inlineButton:{"& span":{lineHeight:"1.5em"},margin:e.spacing(2),padding:0,textAlign:"inherit",textTransform:"none"}}})),(0,i.Z)(),(0,s.A)("SearchPanel"));const mi=gi(hi);var vi=n(57125),yi=n(89658),bi=n(53001),wi=n(38799),Ei=n(15736),Oi=u.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,s=e.disablePointerEvents,l=void 0!==s&&s,c=e.disableTypography,d=void 0!==c&&c,f=e.position,p=e.variant,h=(0,Fn.Z)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),g=(0,Ei.Y)()||{},m=p;return p&&g.variant,g&&!m&&(m=g.variant),u.createElement(Ei.Z.Provider,{value:null},u.createElement(a,(0,S.Z)({className:(0,Ne.default)(r.root,o,"end"===f?r.positionEnd:r.positionStart,l&&r.disablePointerEvents,g.hiddenLabel&&r.hiddenLabel,"filled"===m&&r.filled,"dense"===g.margin&&r.marginDense),ref:t},h),"string"!=typeof n||d?n:u.createElement(Ee.Z,{color:"textSecondary"},n)))}));const xi=(0,a.Z)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Oi);var Si=n(44845),Ii=n(44570),Ci=n(2056),_i=n(70823);function ki(e,t){var n=(0,u.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,u.useRef)(!0),o=(0,u.useRef)(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,u.useEffect)((function(){r.current=!1,o.current=i}),[i]),i.result}var Ti=ki,Pi=function(e,t){return ki((function(){return e}),t)},Ri=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Ai=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ji=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Ni={top:0,right:0,bottom:0,left:0},Di=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Ni:n,o=e.border,i=void 0===o?Ni:o,a=e.padding,s=void 0===a?Ni:a,l=Ri(Ai(t,r)),u=Ri(ji(t,i)),c=Ri(ji(u,s));return{marginBox:l,borderBox:Ri(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:s}},Mi=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},Li=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Di({borderBox:l,border:i,margin:a,padding:s})},Zi=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Li(e,t)},zi=function(e,t){var n={top:Mi(t.marginTop),right:Mi(t.marginRight),bottom:Mi(t.marginBottom),left:Mi(t.marginLeft)},r={top:Mi(t.paddingTop),right:Mi(t.paddingRight),bottom:Mi(t.paddingBottom),left:Mi(t.paddingLeft)},o={top:Mi(t.borderTopWidth),right:Mi(t.borderRightWidth),bottom:Mi(t.borderBottomWidth),left:Mi(t.borderLeftWidth)};return Di({borderBox:e,margin:n,padding:r,border:o})},Wi=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return zi(t,n)};const Fi=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};var Bi=n(73935);function Ui(e,t){}function Hi(){}function Vi(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,(0,S.Z)({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}Ui.bind(null,"warn"),Ui.bind(null,"error");function Gi(e){this.message=e}function qi(e,t){if(!e)throw new Gi("Invariant failed")}Gi.prototype.toString=function(){return this.message};var $i=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Hi,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof Gi&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,C.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Vi(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof Gi))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(u.Component),Ki=function(e){return e+1},Yi=function(e,t){var n=e.droppableId===t.droppableId,r=Ki(e.index),o=Ki(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Xi=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Qi=function(e){return"\n The item has returned to its starting position\n of "+Ki(e.index)+"\n"},Ji=function(e){return"\n You have lifted an item in position "+Ki(e.source.index)+"\n"},ea=function(e){var t=e.destination;if(t)return Yi(e.source,t);var n=e.combine;return n?Xi(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},ta=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Qi(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Yi(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Xi(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Qi(e.source)+"\n "},na={x:0,y:0},ra=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},oa=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},ia=function(e,t){return e.x===t.x&&e.y===t.y},aa=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},sa=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},la=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ua=function(e,t){return Math.min.apply(Math,t.map((function(t){return la(e,t)})))},ca=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},da=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},fa=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},pa=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Ri({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Ri(e)},ha=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?da(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?(0,S.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:pa(a,o)}},ga=function(e,t){e.frame||qi(!1);var n=e.frame,r=oa(t,n.scroll.initial),o=aa(r),i=(0,S.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),a=ha({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,S.Z)({},e,{frame:i,subject:a})};function ma(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function va(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function ya(e,t){if(e.find)return e.find(t);var n=va(e,t);return-1!==n?e[n]:void 0}function ba(e){return Array.prototype.slice.call(e)}var wa=T((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ea=T((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Oa=T((function(e){return ma(e)})),xa=T((function(e){return ma(e)})),Sa=T((function(e,t){var n=xa(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Ia(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ca(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var _a=T((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),ka=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ta={point:na,value:0},Pa={invisible:{},visible:{},all:[]},Ra={displaced:Pa,displacedBy:Ta,at:null},Aa=function(e,t){return function(n){return e<=n&&n<=t}},ja=function(e){var t=Aa(e.top,e.bottom),n=Aa(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||a&&i||s&&o}},Na=function(e){var t=Aa(e.top,e.bottom),n=Aa(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Da={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ma={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},La=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:na;return da(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},Za=function(e){return La((0,S.Z)({},e,{isVisibleThroughFrameFn:Na}))};function za(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s,l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ri(Ai(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),s={target:l,destination:n,viewport:o,withDroppableDisplacement:!0},!La((0,S.Z)({},s,{isVisibleThroughFrameFn:ja})))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(u,a,i),d={draggableId:u,shouldAnimate:c};return e.visible[u]=d,e}),{all:[],visible:{},invisible:{}})}function Wa(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Pa,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Fa(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,u=ka(t,r);if(null==s)return Wa({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var c=ya(n,(function(e){return e.descriptor.index===s}));if(!c)return Wa({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var d=_a(t,n),f=n.indexOf(c);return{displaced:za({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function Ba(e,t){return Boolean(t.effected[e])}var Ua=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ha=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Va=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return sa(t.line,n.marginBox[t.end]+Ua(t,r),Ha(t,n.marginBox,r))},Ga=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return sa(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Ha(t,n.marginBox,r))},qa=function(e,t){var n=e.frame;return n?ra(t,n.scroll.diff.displacement):t},$a=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Sa(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return sa(t.line,n.contentBox[t.start]+Ua(t,r),Ha(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var u=t.displaced,c=t.displacedBy,d=u.all[0];if(d){var f=r[d];if(Ba(d,i))return Ga({axis:l,moveRelativeTo:f.page,isMoving:s});var p=Li(f.page,c.point);return Ga({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Ba(h.descriptor.id,i)){var g=Li(h.page,aa(i.displacedBy.point));return Va({axis:l,moveRelativeTo:g,isMoving:s})}return Va({axis:l,moveRelativeTo:h.page,isMoving:s})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ca(n);o||qi(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Ba(r,n)?i?na:aa(o.point):i?o.point:na}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return ra(a,s)}({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?qa(n,t):t},Ka=function(e,t){var n=oa(t,e.scroll.initial),r=aa(n);return{frame:Ri({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Ya(e,t){return e.map((function(e){return t[e]}))}var Xa=function(e){var t,n,r=e.pageBorderBoxCenter,o=e.draggable,i=(t=e.viewport,n=r,ra(t.scroll.diff.displacement,n)),a=oa(i,o.page.borderBox.center);return ra(o.client.borderBox.center,a)},Qa=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=oa(r,t.page.borderBox.center),u={target:da(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return La((0,S.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Aa(e.top,e.bottom),r=Aa(e.left,e.right);return function(e){return t===Da?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):Za(u)},Ja=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=Sa(r.descriptor.id,o),d=ka(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Ia(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,S.Z)({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var u=_a(n,o);if(!l)return u.length?a(u[u.length-1].descriptor.id):null;var c=va(u,(function(e){return e.descriptor.id===l}));-1===c&&qi(!1);var d=c-1;return d<0?null:a(u[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,u=e.afterCritical,c=s.at;if(c||qi(!1),"REORDER"===c.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==d?null:Fa({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=r.draggableId,a=n[i].descriptor.index;return Ba(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==f?null:Fa({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!f)return null;var p=$a({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Qa({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Xa({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};var h=oa(p,s),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=Ka(n,ra(n.scroll.current,i)),s=r.frame?ga(r,ra(r.frame.scroll.current,i)):r,l=t.displaced,u=za({afterDragging:Ya(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),c=za({afterDragging:Ya(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},f={},p=[l,u,c];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?f[e]=t:d[e]=!0})),(0,S.Z)({},t,{displaced:{all:l.all,invisible:d,visible:f}})}({impact:f,viewport:a,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:l,impact:g,scrollJumpRequest:h}},es=function(e){var t=e.subject.active;return t||qi(!1),t},ts=function(e,t){var n=e.page.borderBox.center;return Ba(e.descriptor.id,t)?oa(n,t.displacedBy.point):n},ns=function(e,t){var n=e.page.borderBox;return Ba(e.descriptor.id,t)?da(n,aa(t.displacedBy.point)):n},rs=T((function(e,t){var n=t[e.line];return{value:n,point:sa(e.line,n)}})),os=function(e,t){return(0,S.Z)({},e,{scroll:(0,S.Z)({},e.scroll,{max:t})})},is=function(e,t,n){var r=e.frame;ka(t,e)&&qi(!1),e.subject.withPlaceholder&&qi(!1);var o=rs(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return sa(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Sa(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:sa(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var s=ha({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return(0,S.Z)({},e,{subject:s})}var l=i?ra(r.scroll.max,i):r.scroll.max,u=os(r,l),c=ha({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u});return(0,S.Z)({},e,{subject:c,frame:u})},as=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},ss=function(e){var t=e.state,n=e.type,r=function(e,t){var n=as(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?Ja({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=Aa(a[s.start],a[s.end]),u=Oa(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ja(i.frame)(es(e))})).filter((function(e){var n=es(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=es(e),n=Aa(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=es(e)[s.crossAxisStart],o=es(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return es(e)[s.crossAxisStart]===es(n[0])[s.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return Aa(es(e)[s.start],es(e)[s.end])(n[s.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return es(e)[s.start]-es(t)[s.start]}))[0]:u.sort((function(e,t){var r=ua(n,fa(es(e))),o=ua(n,fa(es(t)));return r!==o?r-o:es(e)[s.start]-es(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!u)return null;var c=Sa(u.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return Za({target:ns(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=la(t,qa(r,ts(e,o))),a=la(t,qa(r,ts(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:u,insideDestination:c,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:Pa,displacedBy:Ta,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=$a({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=ka(o,a)?a:is(a,o,i);return Qa({draggable:o,destination:d,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var f,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(f=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?f:f+1);return Fa({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:rs(a.axis,o.displaceBy),last:Pa,index:h})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:s,afterCritical:l});if(!f)return null;var p=$a({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:l});return{clientSelection:Xa({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}}({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function ls(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function us(e){var t=Aa(e.top,e.bottom),n=Aa(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var cs=function(e,t){return Ri(da(e,t))};function ds(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var fs=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=cs(n.page.borderBox,t),u=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Oa(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(us(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],u=Aa(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(s),d=u(l);return!c&&!d||(c?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=sa(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:la(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:l,draggable:n,droppables:o});if(!u)return Ra;var c=o[u],d=Sa(c.descriptor.id,r),f=function(e,t){var n=e.frame;return n?cs(t,n.scroll.diff.value):t}(c,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=rs(o.axis,t.displaceBy),u=l.value,c=n[s.start],d=n[s.end],f=ya(_a(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=Ba(t,a),l=ds({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:c>n[s.start]-u+o&&c<n[s.end]-u-o:l?d>n[s.start]+u+o&&d<n[s.end]+u-o:c>n[s.start]+o&&c<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,u=rs(r.axis,n.displaceBy),c=u.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:ya(_a(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=Ba(t,s),o=ds({displaced:i,id:t});return r?o?f<=n:d<n-c:o?f<=n+c:d<n})),inHomeList:ka(n,r)});return Fa({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},ps=function(e,t){var n;return(0,S.Z)({},e,((n={})[t.descriptor.id]=t,n))},hs=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=r||t.dimensions,u=n||t.current.client.selection,c=oa(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:ra(t.initial.client.borderBoxCenter,c)},f={selection:ra(d.selection,s.scroll.current),borderBoxCenter:ra(d.borderBoxCenter,s.scroll.current),offset:ra(d.offset,s.scroll.diff.value)},p={client:d,page:f};if("COLLECTING"===t.phase)return(0,S.Z)({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:p});var h=l.draggables[t.critical.draggable.id],g=i||fs({pageOffset:f.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),m=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=as(t),i=as(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||qi(!1);var n=e.frame;if(!n){var r=ha({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,S.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||qi(!1);var i=os(n,o),a=ha({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,S.Z)({},e,{subject:a,frame:i})}(a);return ps(r,s)}({previousImpact:e.previousImpact,impact:o,droppables:r}),a=as(o);if(!a)return i;var s=r[a];if(ka(t,s))return i;if(s.subject.withPlaceholder)return i;var l=is(s,t,n);return ps(i,l)}({draggable:h,impact:g,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return(0,S.Z)({},t,{current:p,dimensions:{draggables:l.draggables,droppables:m},impact:g,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},gs=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r),l=za({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return(0,S.Z)({},t,{displaced:l})},ms=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=$a({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Xa({pageBorderBoxCenter:s,draggable:n,viewport:i})},vs=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&qi(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,u=s[t.critical.draggable.id],c=as(o);c||qi(!1);var d=l[c],f=gs({impact:o,viewport:i,destination:d,draggables:s}),p=ms({impact:f,draggable:u,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return hs({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},ys=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=rs(n.axis,t.displaceBy),a=Sa(n.descriptor.id,r),s=a.indexOf(t);-1===s&&qi(!1);var l,u=a.slice(s+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:za({afterDragging:u,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},bs=function(e){return"SNAP"===e.movementMode},ws=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:ps(e.droppables,t)}}(e.dimensions,t);return!bs(e)||n?hs({state:e,dimensions:r}):vs({state:e,dimensions:r})};function Es(e){return e.isDragging&&"SNAP"===e.movementMode?(0,S.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Os={phase:"IDLE",completed:null,shouldFlush:!1},xs=function(e,t){if(void 0===e&&(e=Os),"FLUSH"===t.type)return(0,S.Z)({},Os,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&qi(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],u=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:l.client.borderBox.center,offset:na},d={client:c,page:{selection:ra(c.selection,i.scroll.initial),borderBoxCenter:ra(c.selection,i.scroll.initial),offset:ra(c.selection,i.scroll.diff.value)}},f=Oa(a.droppables).every((function(e){return!e.isFixedOnPage})),p=ys({draggable:l,home:u,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&qi(!1),(0,S.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&qi(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return ga(n,e.scroll)})),o=(0,S.Z)({},t.dimensions.droppables,{},wa(r)),i=Ea(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||qi(!1),t}(n[t]),a=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Li(t.client,n),i=Zi(o,r);return(0,S.Z)({},t,{placeholder:(0,S.Z)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:ra(o,a),initialWindowScroll:r.scroll.initial});return s}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=(0,S.Z)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},l=as(t.impact),u=l?s.droppables[l]:null,c=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],f=ys({draggable:c,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,g=u&&u.isCombineEnabled?t.impact:p,m=fs({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:g,viewport:t.viewport,afterCritical:h}),v=(0,S.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:m,onLiftImpact:p,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,S.Z)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;ls(e)||qi(!1);var g=t.payload.client;return ia(g,e.current.client.selection)?e:hs({state:e,clientSelection:g,impact:bs(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Es(e);if("COLLECTING"===e.phase)return Es(e);ls(e)||qi(!1);var m=t.payload,v=m.id,y=m.newScroll,b=e.dimensions.droppables[v];if(!b)return e;var w=ga(b,y);return ws(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ls(e)||qi(!1);var E=t.payload,O=E.id,x=E.isEnabled,I=e.dimensions.droppables[O];I||qi(!1),I.isEnabled===x&&qi(!1);var C=(0,S.Z)({},I,{isEnabled:x});return ws(e,C,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;ls(e)||qi(!1);var _=t.payload,k=_.id,T=_.isCombineEnabled,P=e.dimensions.droppables[k];P||qi(!1),P.isCombineEnabled===T&&qi(!1);var R=(0,S.Z)({},P,{isCombineEnabled:T});return ws(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;ls(e)||qi(!1),e.isWindowScrollAllowed||qi(!1);var A=t.payload.newScroll;if(ia(e.viewport.scroll.current,A))return Es(e);var j=Ka(e.viewport,A);return bs(e)?vs({state:e,viewport:j}):hs({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!ls(e))return e;var N=t.payload.maxScroll;if(ia(N,e.viewport.scroll.max))return e;var D=(0,S.Z)({},e.viewport,{scroll:(0,S.Z)({},e.viewport.scroll,{max:N})});return(0,S.Z)({phase:"DRAGGING"},e,{viewport:D})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&qi(!1);var M=ss({state:e,type:t.type});return M?hs({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&qi(!1),(0,S.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var Z=t.payload,z=Z.completed,W=Z.dropDuration,F=Z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&qi(!1),{phase:"DROP_ANIMATING",completed:z,dropDuration:W,newHomeClientOffset:F,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Ss=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Is=function(){return{type:"COLLECTION_STARTING",payload:null}},Cs=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},_s=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},ks=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Ts=function(e){return{type:"MOVE",payload:e}},Ps=function(){return{type:"MOVE_UP",payload:null}},Rs=function(){return{type:"MOVE_DOWN",payload:null}},As=function(){return{type:"MOVE_RIGHT",payload:null}},js=function(){return{type:"MOVE_LEFT",payload:null}},Ns=function(e){return{type:"DROP_COMPLETE",payload:e}},Ds=function(e){return{type:"DROP",payload:e}},Ms="cubic-bezier(.2,1,.1,1)",Ls=0,Zs=.7,zs=.75,Ws="0.2s cubic-bezier(0.2, 0, 0, 1)",Fs={fluid:"opacity "+Ws,snap:"transform "+Ws+", opacity "+Ws,drop:function(e){var t=e+"s "+Ms;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Ws,placeholder:"height "+Ws+", width "+Ws+", margin "+Ws},Bs=function(e){return ia(e,na)?null:"translate("+e.x+"px, "+e.y+"px)"},Us=Bs,Hs=.33,Vs=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&qi(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&qi(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,S.Z)({},r,{displaced:Pa}),didDropInsideDroppable:!0}:{impact:gs({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=u.impact,d=u.didDropInsideDroppable,f=d?Ia(c):null,p=d?Ca(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},g={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:f,combine:p},m=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=as(t),u=l?s[l]:null,c=s[n.descriptor.droppableId],d=ms({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return oa(d,n.client.borderBox.center)}({impact:c,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:c};if(!ia(o.current.client.offset,m)||Boolean(g.combine)){var y=function(e){var t=e.reason,n=la(e.current,e.destination);if(n<=0)return Hs;if(n>=1500)return.55;var r=Hs+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:m,reason:i});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:m,dropDuration:y,completed:v}})}else n(Ns({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Gs=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var qs=function(e){var t=function(e){var t=e.onWindowScroll,n=Fi((function(){t(Gs())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Hi;function i(){return o!==Hi}return{start:function(){i()&&qi(!1),o=Vi(window,[r])},stop:function(){i()||qi(!1),n.cancel(),o(),o=Hi},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},$s=function(e,t){t()},Ks=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Ys=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Xs=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=va(n,(function(t){return t.timerId===e}));-1===t&&qi(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(n){o||qi(!1),o=null,$s(0,(function(){return Ys(e().onDragEnd,n,t,ta)}))};return{beforeCapture:function(t,n){o&&qi(!1),$s(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&qi(!1),$s(0,(function(){var r=e().onBeforeDragStart;r&&r(Ks(t,n))}))},start:function(n,i){o&&qi(!1);var a=Ks(n,i);o={mode:i,lastCritical:n,lastLocation:a.source,lastCombine:null},r.add((function(){$s(0,(function(){return Ys(e().onDragStart,a,t,Ji)}))}))},update:function(n,i){var a=Ia(i),s=Ca(i);o||qi(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);l&&(o.lastCritical=n);var u,c,d=(c=a,!(null==(u=o.lastLocation)&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));d&&(o.lastLocation=a);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,s);if(f&&(o.lastCombine=s),l||d||f){var p=(0,S.Z)({},Ks(n,o.mode),{combine:s,destination:a});r.add((function(){$s(0,(function(){return Ys(e().onDragUpdate,p,t,ea)}))}))}},flush:function(){o||qi(!1),r.flush()},drop:i,abort:function(){if(o){var e=(0,S.Z)({},Ks(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Qs=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&qi(!1),e.dispatch(Ns({completed:r.completed}))}else t(n)}}},Js=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=Vi(window,[i])}))}}}},el=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Ds({reason:r.reason})))}}}},tl=r.qC,nl=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=oa({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},rl=function(){var e=document.documentElement;return e||qi(!1),e},ol=function(){var e=rl();return nl({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function il(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var al,sl,ll=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(na)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:l,removals:Object.keys(a),modified:u};r={additions:{},removals:{},modified:{}},n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||qi(!1);var o=n.critical.draggable;"ADDITION"===t.type&&il(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&il(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||qi(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||qi(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||qi(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&qi(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},function(e){var t,n,r,o,i,a,s,l=e.critical,u=e.scrollOptions,c=e.registry,d=(t=Gs(),n=ol(),r=t.y,o=t.x,a=(i=rl()).clientWidth,s=i.clientHeight,{frame:Ri({top:r,left:o,right:o+a,bottom:r+s}),scroll:{initial:t,current:t,max:n,diff:{value:na,displacement:na}}}),f=d.scroll.current,p=l.droppable,h=c.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(f,u)})),g=c.draggable.getAllByType(l.draggable.type).map((function(e){return e.getDimension(f)}));return{dimensions:{draggables:Ea(g),droppables:wa(h)},critical:l,viewport:d}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},ul=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},cl=function(e){window.scrollBy(e.x,e.y)},dl=T((function(e){return Oa(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),fl=function(e){return Math.pow(e,2)},pl=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},hl=360,gl=1200,ml=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=pl({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*fl(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=gl,o=Date.now()-n;if(o>=gl)return e;if(o<hl)return 1;var i=pl({startOfRange:hl,endOfRange:r,current:o}),a=e*fl(i);return Math.ceil(a)}(i,r),1):i},vl=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?ml({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*ml({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},yl=ca((function(e){return 0===e?0:e})),bl=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=vl({container:n,distanceToEdges:a,dragStartTime:t,axis:Da,shouldUseTimeDampening:i}),l=vl({container:n,distanceToEdges:a,dragStartTime:t,axis:Ma,shouldUseTimeDampening:i}),u=yl({x:l,y:s});if(ia(u,na))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?ia(c,na)?null:c:null},wl=ca((function(e){return 0===e?0:e>0?1:-1})),El=(al=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=ra(t,r),i={x:al(o.x,n.x),y:al(o.y,n.y)};return ia(i,na)?null:i}),Ol=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=wl(r),a=El({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},xl=function(e,t){return Ol({current:e.scroll.current,max:e.scroll.max,change:t})},Sl=function(e,t){var n=e.frame;return!!n&&Ol({current:n.scroll.current,max:n.scroll.max,change:t})},Il=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,i=bl({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return i&&xl(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var u=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=ya(dl(t),(function(t){return t.frame||qi(!1),us(t.frame.pageMarginBox)(e)}));return n}(t,r);return i}({center:a,destination:as(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=bl({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&Sl(t,s)?s:null}({dragStartTime:n,droppable:u,subject:s,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},Cl=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=as(e.impact);i||qi(!1);var a=function(e,t){if(!Sl(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Sl(e,t)?El({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=oa(t,r);return n(e.descriptor.id,o),oa(t,o)}(e.dimensions.droppables[i],o);if(a){var s=e.viewport,l=function(e,t,n){if(!e)return n;if(!xl(t,n))return n;var o=function(e,t){if(!xl(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return El({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=oa(n,o);return r(i),oa(n,i)}(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=ra(e.current.client.selection,n);t({client:r})}(e,l)}}}},_l={base:sl="data-rbd-drag-handle",draggableId:sl+"-draggable-id",contextId:sl+"-context-id"},kl=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Tl=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Pl="data-rbd-scroll-container-context-id",Rl=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Al="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect,jl=function(){var e=document.querySelector("head");return e||qi(!1),e},Nl=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Dl=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Ml(e){return e instanceof Dl(e).HTMLElement}function Ll(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||qi(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return ma(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||qi(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return ma(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Zl=u.createContext(null),zl=function(){var e=document.body;return e||qi(!1),e},Wl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Fl=0,Bl={separator:"::"};function Ul(e,t){return void 0===t&&(t=Bl),Ti((function(){return""+e+t.separator+Fl++}),[t.separator,e])}var Hl=u.createContext(null);function Vl(e){var t=(0,u.useRef)(e);return(0,u.useEffect)((function(){t.current=e})),t}var Gl,ql,$l=((Gl={})[13]=!0,Gl[9]=!0,Gl),Kl=function(e){$l[e.keyCode]&&e.preventDefault()},Yl=function(){var e="visibilitychange";return"undefined"==typeof document?e:ya([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Xl={type:"IDLE"};function Ql(){}var Jl=((ql={})[34]=!0,ql[33]=!0,ql[36]=!0,ql[35]=!0,ql);var eu={type:"IDLE"},tu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function nu(e,t){if(null==t)return!1;if(Boolean(tu[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&nu(e,t.parentElement)}function ru(e,t){var n=t.target;return!!Ml(n)&&nu(e,n)}var ou=function(e){return Ri(e.getBoundingClientRect()).center},iu=function(){var e="matches";return"undefined"==typeof document?e:ya([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function au(e,t){return null==e?null:e[iu](t)?e:au(e.parentElement,t)}function su(e,t){return e.closest?e.closest(t):au(e,t)}function lu(e){e.preventDefault()}function uu(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function cu(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!ul(n.getState(),o)}var du=[function(e){var t=(0,u.useRef)(Xl),n=(0,u.useRef)(Hi),r=Ti((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}}),[e]),o=Ti((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=Pi((function(){n.current=Vi(window,[o,r],{passive:!1,capture:!0})}),[o,r]),a=Pi((function(){"IDLE"!==t.current.type&&(t.current=Xl,n.current(),i())}),[i]),s=Pi((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),l=Pi((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&qi(!1),l=s.point,u=a,Math.abs(u.x-l.x)>=5||Math.abs(u.y-l.y)>=5){var l,u;e.preventDefault();var c=s.actions.fluidLift(a);o({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Kl(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&qi(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Yl,fn:t}]}({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=Vi(window,e,{capture:!0,passive:!1})}),[s,a]),c=Pi((function(e,n){"IDLE"!==t.current.type&&qi(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);Al((function(){return i(),function(){n.current()}}),[i])},function(e){var t=(0,u.useRef)(Ql),n=Ti((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=Vi(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Jl[r.keyCode]?r.preventDefault():Kl(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Yl,fn:n}]}(s,l),{capture:!0,passive:!1})}}}function l(){a||qi(!1),a=!1,t.current(),r()}}}}),[e]),r=Pi((function(){t.current=Vi(window,[n],{passive:!1,capture:!0})}),[n]);Al((function(){return r(),function(){t.current()}}),[r])},function(e){var t=(0,u.useRef)(eu),n=(0,u.useRef)(Hi),r=Pi((function(){return t.current}),[]),o=Pi((function(e){t.current=e}),[]),i=Ti((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),a=Pi((function(){n.current=Vi(window,[i],{capture:!0,passive:!1})}),[i]),s=Pi((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(eu),n.current(),a())}),[a,o]),l=Pi((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Pi((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},o=Vi(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&qi(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Yl,fn:t}]}(t),e),i=Vi(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Yl,fn:t}]}(t),e);n.current=function(){o(),i()}}),[l,r,s]),d=Pi((function(){var e=r();"PENDING"!==e.type&&qi(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),f=Pi((function(e,t){"IDLE"!==r().type&&qi(!1);var n=setTimeout(d,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,o,d]);Al((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(eu))}}),[r,a,o]),Al((function(){return Vi(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function fu(e){var t=e.contextId,n=e.store,r=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(i?du:[],o||[]),s=(0,u.useState)((function(){return function(){var e=null;function t(){e||qi(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&qi(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=Pi((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Al((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[s,n,l]),Al((function(){return s.tryAbandon}),[s.tryAbandon]);for(var c=Pi((function(e){return cu({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),d=Pi((function(e,o,i){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!cu({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),u=function(e,t){var n="["+kl.contextId+'="'+e+'"]',r=ya(ba(document.querySelectorAll(n)),(function(e){return e.getAttribute(kl.id)===t}));return r&&Ml(r)?r:null}(n,l.descriptor.id);if(!u)return null;if(s&&!l.options.canDragInteractiveElements&&ru(u,s))return null;var c=t.claim(a||Hi),d="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function p(){return t.isActive(c)}var h=function(e,t){uu({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Vi(window,[{eventName:"click",fn:lu,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Ds({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&qi(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),d="DRAGGING",(0,S.Z)({isActive:function(){return uu({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var m={isActive:function(){return uu({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=Fi((function(e){h((function(){return Ts({client:e})}))})),n=g({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,S.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(Ps)},moveRight:function(){return h(As)},moveDown:function(){return h(Rs)},moveLeft:function(){return h(js)}};return g({liftActionArgs:{id:i,clientSelection:ou(u),movementMode:"SNAP"},cleanup:Hi,actions:e})},abort:function(){uu({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return m}({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,r,n]),f=Pi((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof Dl(n).Element))return null;var o=function(e){return"["+_l.contextId+'="'+e+'"]'}(e),i=su(r,o);return i&&Ml(i)?i:null}(e,t);return n?n.getAttribute(_l.draggableId):null}(t,e)}),[t]),p=Pi((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),h=Pi((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),g=Pi(s.isClaimed,[s]),m=Ti((function(){return{canGetLock:c,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:g}}),[c,d,f,p,h,g]),v=0;v<a.length;v++)a[v](m)}function pu(e){return e.current||qi(!1),e.current}function hu(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,a=e.nonce,s=e.dragHandleUsageInstructions,l=(0,u.useRef)(null),c=Vl(e),d=Pi((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(c.current)}),[c]),f=function(e){var t=Ti((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,S.Z)(e.style,Wl),zl().appendChild(e),function(){setTimeout((function(){var t=zl();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Pi((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),p=function(e){var t=e.contextId,n=e.text,r=Ul("hidden-text",{separator:"-"}),o=Ti((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:r})}),[r,t]);return(0,u.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",zl().appendChild(e),function(){var t=zl();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:t,text:s}),h=function(e,t){var n=Ti((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(_l.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+Fs.outOfTheWay+";\n ",{selector:o(kl.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Tl.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Rl(a,"always"),resting:Rl(a,"resting"),dragging:Rl(a,"dragging"),dropAnimating:Rl(a,"dropAnimating"),userCancel:Rl(a,"userCancel")}}(e)}),[e]),r=(0,u.useRef)(null),o=(0,u.useRef)(null),i=Pi(T((function(e){var t=o.current;t||qi(!1),t.textContent=e})),[]),a=Pi((function(e){var t=r.current;t||qi(!1),t.textContent=e}),[]);Al((function(){(r.current||o.current)&&qi(!1);var s=Nl(t),l=Nl(t);return r.current=s,o.current=l,s.setAttribute("data-rbd-always",e),l.setAttribute("data-rbd-dynamic",e),jl().appendChild(s),jl().appendChild(l),a(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||qi(!1),jl().removeChild(t),e.current=null};e(r),e(o)}}),[t,a,i,n.always,n.resting,e]);var s=Pi((function(){return i(n.dragging)}),[i,n.dragging]),l=Pi((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),c=Pi((function(){o.current&&i(n.resting)}),[i,n.resting]);return Ti((function(){return{dragging:s,dropping:l,resting:c}}),[s,l,c])}(t,a),g=Pi((function(e){pu(l).dispatch(e)}),[]),m=Ti((function(){return(0,r.DE)({publishWhileDragging:Ss,updateDroppableScroll:Cs,updateDroppableIsEnabled:_s,updateDroppableIsCombineEnabled:ks,collectionStarting:Is},g)}),[g]),v=function(){var e=Ti(Ll,[]);return(0,u.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=Ti((function(){return ll(v,m)}),[v,m]),b=Ti((function(){return function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=Fi(e.scrollWindow),r=Fi(t),o=null,i=function(e){o||qi(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;Il({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&qi(!1);var t=Date.now(),n=!1,r=function(){n=!0};Il({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),i=Cl({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}}((0,S.Z)({scrollWindow:cl,scrollDroppable:y.scrollDroppable},(0,r.DE)({move:Ts},g)))}),[y.scrollDroppable,g]),w=function(e){var t=(0,u.useRef)({}),n=(0,u.useRef)(null),r=(0,u.useRef)(null),o=(0,u.useRef)(!1),i=Pi((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=Pi((function(t){var n=function(e,t){var n="["+_l.contextId+'="'+e+'"]',r=ba(document.querySelectorAll(n));if(!r.length)return null;var o=ya(r,(function(e){return e.getAttribute(_l.draggableId)===t}));return o&&Ml(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=Pi((function(e,t){n.current===e&&(n.current=t)}),[]),l=Pi((function(){r.current||o.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),c=Pi((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(_l.draggableId)===e&&(n.current=e)}),[]);return Al((function(){return o.current=!0,function(){o.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Ti((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}}),[i,c,l,s])}(t),E=Ti((function(){return function(e){var t,n=e.dimensionMarshal,o=e.focusMarshal,i=e.styleMarshal,a=e.getResponders,s=e.announce,l=e.autoScroller;return(0,r.MT)(xs,tl((0,r.md)((t=i,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(Ns({completed:u.completed})),"IDLE"!==n().phase&&qi(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(c),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Vs,Qs,Js,el,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&qi(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),qs,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(o),Xs(a,s))))}({announce:f,autoScroller:b,dimensionMarshal:y,focusMarshal:w,getResponders:d,styleMarshal:h})}),[f,b,y,w,d,h]);l.current=E;var O=Pi((function(){var e=pu(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),x=Pi((function(){var e=pu(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Ti((function(){return{isDragging:x,tryAbort:O}}),[x,O]));var I=Pi((function(e){return ul(pu(l).getState(),e)}),[]),C=Pi((function(){return ls(pu(l).getState())}),[]),_=Ti((function(){return{marshal:y,focus:w,contextId:t,canLift:I,isMovementAllowed:C,dragHandleUsageInstructionsId:p,registry:v}}),[t,y,p,w,I,C,v]);return fu({contextId:t,store:E,registry:v,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,u.useEffect)((function(){return O}),[O]),u.createElement(Hl.Provider,{value:_},u.createElement(o.zt,{context:Zl,store:E},e.children))}var gu=0;function mu(e){var t=Ti((function(){return""+gu++}),[]),n=e.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return u.createElement($i,null,(function(r){return u.createElement(hu,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var vu=function(e){return function(t){return e===t}},yu=vu("scroll"),bu=vu("auto"),wu=(vu("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Eu=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return wu(n,yu)||wu(n,bu)}(t)?t:e(t.parentElement)},Ou=function(e){return{x:e.scrollLeft,y:e.scrollTop}},xu=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Su={passive:!1},Iu={passive:!0},Cu=function(e){return e.shouldPublishImmediately?Su:Iu};function _u(e){var t=(0,u.useContext)(e);return t||qi(!1),t}var ku=function(e){return e&&e.env.closestScrollable||null};function Tu(){}var Pu={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Ru=u.memo((function(e){var t=(0,u.useRef)(null),n=Pi((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,s=(0,u.useState)("open"===e.animate),l=s[0],c=s[1];(0,u.useEffect)((function(){return l?"open"!==r?(n(),c(!1),Tu):t.current?Tu:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):Tu}),[r,l,n]);var d=Pi((function(e){"height"===e.propertyName&&(o(),"close"===r&&i())}),[r,i,o]),f=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?Pu:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Fs.placeholder:null}}({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return u.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":a,onTransitionEnd:d,ref:e.innerRef})})),Au=u.createContext(null),ju=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,C.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(u.PureComponent),Nu=function(e,t){return t?Fs.drop(t.duration):e?Fs.snap:Fs.fluid},Du=function(e,t){return e?t?Ls:Zs:null};function Mu(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),s=Boolean(o),l=s?function(e,t){var n=Bs(e);return n?t?n+" scale("+zs+")":n:null}(n,i):Us(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Nu(a,o),transform:l,opacity:Du(i,s),zIndex:s?4500:5e3,pointerEvents:"none"}}(e):{transform:Us((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Lu(e){e.preventDefault()}var Zu=function(e,t){return e===t},zu=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Wu(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Fu={mapped:{type:"SECONDARY",offset:na,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Wu(null)}},Bu={dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},Uu=(0,o.$j)((function(){var e,t,n,r=(e=T((function(e,t){return{x:e,y:t}})),t=T((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=T((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=as(r.impact),l=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,u)}var c;if("DROP_ANIMATING"===r.phase){var d=r.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=r.dimensions.draggables[o.draggableId],h=d.result,g=h.mode,m=zu(h),v=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:Ms,moveTo:r.newHomeClientOffset,opacity:v?Ls:null,scale:v?zs:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:m,combineWith:v,mode:g,forceShouldAnimate:null,snapshot:t(g,f,m,v,y)}}}return null}),o=function(){var e=T((function(e,t){return{x:e,y:t}})),t=T(Wu),n=T((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(na,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),u=Ca(i),c=u&&u.draggableId===t?o:null;if(!s){if(!l)return r(c);if(i.displaced.invisible[t])return null;var d=aa(a.displacedBy.point),f=e(d.x,d.y);return n(f,c,!0)}if(l)return r(c);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,c,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Fu}}),Bu,null,{context:Zl,pure:!0,areStatePropsEqual:Zu})((function(e){var t=(0,u.useRef)(null),n=Pi((function(e){t.current=e}),[]),r=Pi((function(){return t.current}),[]),o=_u(Hl),i=o.contextId,a=o.dragHandleUsageInstructionsId,s=o.registry,l=_u(Au),c=l.type,d=l.droppableId,f=Ti((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:d}}),[e.draggableId,e.index,c,d]),p=e.children,h=e.draggableId,g=e.isEnabled,m=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;y||function(e){var t=Ul("draggable"),n=e.descriptor,r=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,s=e.isEnabled,l=Ti((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:s}}),[i,s,a]),c=Pi((function(e){var t=o();return t||qi(!1),function(e,t,n){void 0===n&&(n=na);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=zi(o,r),a=Zi(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,o]),d=Ti((function(){return{uniqueId:t,descriptor:n,options:l,getDimension:c}}),[n,c,l,t]),f=(0,u.useRef)(d),p=(0,u.useRef)(!0);Al((function(){return r.draggable.register(f.current),function(){return r.draggable.unregister(f.current)}}),[r.draggable]),Al((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,r.draggable.update(d,e)}}),[d,r.draggable])}(Ti((function(){return{descriptor:f,registry:s,getDraggableRef:r,canDragInteractiveElements:v,shouldRespectForcePress:m,isEnabled:g}}),[f,s,r,v,m,g]));var E=Ti((function(){return g?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:Lu}:null}),[i,a,h,g]),O=Pi((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),x=Ti((function(){var e=Mu(b),t="DRAGGING"===b.type&&b.dropping?O:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:E}}),[i,E,h,b,O,n]),S=Ti((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(x,b.snapshot,S)}));function Hu(e){return _u(Au).isUsingCloneFor!==e.draggableId||e.isClone?u.createElement(Uu,e):null}function Vu(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return u.createElement(Hu,(0,S.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Gu=function(e,t){return e===t.droppable.type},qu=function(e,t){return t.draggables[e.draggable.id]},$u={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||qi(!1),document.body}},Ku=(0,o.$j)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,S.Z)({},e,{shouldAnimatePlaceholder:!1}),n=T((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=T((function(r,o,i,a,s,l){var u=s.descriptor.id;if(s.descriptor.droppableId===r){var c=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:c}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var u=n.critical;if(!Gu(a,u))return t;var c=qu(u,n.dimensions),d=as(n.impact)===i;return r(i,s,d,d,c,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!Gu(a,f.critical))return t;var p=qu(f.critical,n.dimensions);return r(i,s,zu(f.result)===i,as(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!Gu(a,h.critical))return t;var g=as(h.impact)===i,m=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return g?m?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Zl,pure:!0,areStatePropsEqual:Zu})((function(e){var t=(0,u.useContext)(Hl);t||qi(!1);var n=t.contextId,r=t.isMovementAllowed,o=(0,u.useRef)(null),i=(0,u.useRef)(null),a=e.children,s=e.droppableId,l=e.type,c=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,g=e.snapshot,m=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=Pi((function(){return o.current}),[]),w=Pi((function(e){o.current=e}),[]),E=(Pi((function(){return i.current}),[]),Pi((function(e){i.current=e}),[])),O=Pi((function(){r()&&v({maxScroll:ol()})}),[r,v]);!function(e){var t=(0,u.useRef)(null),n=_u(Hl),r=Ul("droppable"),o=n.registry,i=n.marshal,a=Vl(e),s=Ti((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),l=(0,u.useRef)(s),c=Ti((function(){return T((function(e,n){t.current||qi(!1);var r={x:e,y:n};i.updateDroppableScroll(s.id,r)}))}),[s.id,i]),d=Pi((function(){var e=t.current;return e&&e.env.closestScrollable?Ou(e.env.closestScrollable):na}),[]),f=Pi((function(){var e=d();c(e.x,e.y)}),[d,c]),p=Ti((function(){return Fi(f)}),[f]),h=Pi((function(){var e=t.current,n=ku(e);e&&n||qi(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),g=Pi((function(e,r){t.current&&qi(!1);var o=a.current,i=o.getDroppableRef();i||qi(!1);var l=function(e){return{closestScrollable:Eu(e),isFixedOnPage:xu(e)}}(i),u={ref:i,descriptor:s,env:l,scrollOptions:r};t.current=u;var c=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,u=r.closestScrollable,c=function(e,t){var n=Wi(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=Ai({top:r,right:a,bottom:i,left:o},n.border);return Di({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,u),d=Zi(c,o),f=function(){if(!u)return null;var e=Wi(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Zi(e,o),scroll:Ou(u),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,u=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=nl({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:na,displacement:na}}}}(),c="vertical"===i?Da:Ma;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:s,frame:u,subject:ha({page:s,withPlaceholder:null,axis:c,frame:u})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f});return p}({ref:i,descriptor:s,env:l,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=l.closestScrollable;return d&&(d.setAttribute(Pl,n.contextId),d.addEventListener("scroll",h,Cu(u.scrollOptions))),c}),[n.contextId,s,h,a]),m=Pi((function(){var e=t.current,n=ku(e);return e&&n||qi(!1),Ou(n)}),[]),v=Pi((function(){var e=t.current;e||qi(!1);var n=ku(e);t.current=null,n&&(p.cancel(),n.removeAttribute(Pl),n.removeEventListener("scroll",h,Cu(e.scrollOptions)))}),[h,p]),y=Pi((function(e){var n=t.current;n||qi(!1);var r=ku(n);r||qi(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Ti((function(){return{getDimensionAndWatchScroll:g,getScrollWhileDragging:m,dragStopped:v,scroll:y}}),[v,g,m,y]),w=Ti((function(){return{uniqueId:r,descriptor:s,callbacks:b}}),[b,s,r]);Al((function(){return l.current=w.descriptor,o.droppable.register(w),function(){t.current&&v(),o.droppable.unregister(w)}}),[b,s,v,w,i,o.droppable]),Al((function(){t.current&&i.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),Al((function(){t.current&&i.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:s,type:l,mode:c,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var x=u.createElement(ju,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,o=e.animate;return u.createElement(Ru,{placeholder:r,onClose:t,innerRef:E,animate:o,contextId:n,onTransitionEnd:O})})),S=Ti((function(){return{innerRef:w,placeholder:x,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,x,w]),I=m?m.dragging.draggableId:null,C=Ti((function(){return{droppableId:s,type:l,isUsingCloneFor:I}}),[s,I,l]);return u.createElement(Au.Provider,{value:C},a(S,g),function(){if(!m)return null;var e=m.dragging,t=m.render,n=u.createElement(Hu,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return Bi.createPortal(n,y())}())}));function Yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ju(e,t){return Ju=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ju(e,t)}function ec(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tc(e)}function tc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nc(e)}function rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ku.defaultProps=$u;var oc=function(e,t,n){var r,o,i=Array.from(e),a=(r=i.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return rc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rc(e,t):void 0}}(r,o)||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.")}())[0];return i.splice(n,0,a),i},ic=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ju(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=nc(o);if(i){var n=nc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ec(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).droppableId=(0,bi.Z)(),t.onDragEnd=t.onDragEnd.bind(tc(t)),t.handleOpacityChange=t.handleOpacityChange.bind(tc(t)),t.setLayerVisibility=t.setLayerVisibility.bind(tc(t)),t.moveToTop=t.moveToTop.bind(tc(t)),t}return t=s,n=[{key:"handleOpacityChange",value:function(e,t){var n=this.props,r=n.canvasId;(0,n.updateLayers)(n.windowId,r,Xu({},e,{opacity:t/100}))}},{key:"onDragEnd",value:function(e){var t=this.props,n=t.canvasId,r=t.layers,o=t.updateLayers,i=t.windowId;if(e.destination&&e.destination.droppableId===this.droppableId&&e.source.droppableId===this.droppableId){var a=oc(r.map((function(e){return e.id})),e.source.index,e.destination.index);o(i,n,r.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}}},{key:"setLayerVisibility",value:function(e,t){var n=this.props,r=n.canvasId;(0,n.updateLayers)(n.windowId,r,Xu({},e,{visibility:t}))}},{key:"moveToTop",value:function(e){var t=this.props,n=t.canvasId,r=t.layers,o=t.updateLayers,i=t.windowId,a=oc(r.map((function(e){return e.id})),r.findIndex((function(t){return t.id===e})),0);o(i,n,r.reduce((function(e,t){return e[t.id]={index:a.indexOf(t.id)},e}),{}))}},{key:"renderLayer",value:function(e,t){var n=this,r=this.props,o=r.classes,i=r.layerMetadata,a=r.t,l=50,c=void 0,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){Xu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({opacity:1,visibility:!0},(i||{})[e.id]);return u.createElement("div",{style:{flex:1}},u.createElement("div",{style:{alignItems:"flex-start",display:"flex"}},u.createElement($.Z,{maxHeight:c,maxWidth:l,resource:e,classes:{image:o.image,root:o.thumbnail}}),u.createElement(Ee.Z,{className:o.label,component:"div",variant:"body1"},s.getUseableLabel(e,t),u.createElement("div",null,u.createElement(Ie.Z,{"aria-label":a(d.visibility?"layer_hide":"layer_show"),edge:"start",size:"small",onClick:function(){n.setLayerVisibility(e.id,!d.visibility)}},d.visibility?u.createElement(xe.Z,null):u.createElement(Se.Z,null)),0!==d.index&&u.createElement(Ie.Z,{"aria-label":a("layer_moveToTop"),size:"small",onClick:function(){n.moveToTop(e.id)}},u.createElement(Ci.Z,null))))),u.createElement("div",{style:{alignItems:"center",display:"flex"}},u.createElement(un.ZP,{title:a("layer_opacity")},u.createElement(_i.Z,{className:o.opacityIcon,color:d.visibility?"inherit":"disabled",fontSize:"small"})),u.createElement(wi.Z,{classes:{input:o.opacityInput},disabled:!d.visibility,value:Math.round(100*d.opacity),type:"number",min:0,max:100,onChange:function(t){return n.handleOpacityChange(e.id,t.target.value)},endAdornment:u.createElement(xi,{disableTypography:!0,position:"end"},u.createElement(Ee.Z,{variant:"caption"},"%")),inputProps:{"aria-label":a("layer_opacity")}}),u.createElement(Si.Z,{className:o.slider,disabled:!d.visibility,value:100*d.opacity,onChange:function(t,r){return n.handleOpacityChange(e.id,r)}})))}},{key:"renderDraggableLayer",value:function(e,t){var n=this,r=this.props,o=r.classes,i=r.t;return u.createElement(Vu,{key:e.id,draggableId:e.id,index:t},(function(r,a){return u.createElement(No.Z,Object.assign({ref:r.innerRef},r.draggableProps,{component:"li",className:(0,Ne.default)(o.listItem,Xu({},o.dragging,a.isDragging)),disableGutters:!0,key:e.id}),u.createElement("div",Object.assign({},r.dragHandleProps,{className:o.dragHandle}),u.createElement(un.ZP,{title:i("layer_move")},u.createElement(Ii.Z,null))),n.renderLayer(e,t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.index,o=t.label,i=t.layers,a=t.t,s=t.totalSize;return u.createElement(u.Fragment,null,s>1&&u.createElement(Ee.Z,{className:n.sectionHeading,variant:"overline"},a("annotationCanvasLabel",{context:"".concat(r+1,"/").concat(s),label:o})),u.createElement(mu,{onDragEnd:this.onDragEnd},u.createElement(Ku,{droppableId:this.droppableId},(function(t,r){return u.createElement(Ro.Z,Object.assign({className:n.list},t.droppableProps,{ref:t.innerRef}),i&&i.map((function(t,n){return e.renderDraggableLayer(t,n)})),t.placeholder)}))))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():String(t+1)}}],n&&Qu(t.prototype,n),r&&Qu(t,r),s}(u.Component);function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ic.defaultProps={classes:{},layerMetadata:void 0};var uc={updateLayers:vi.O},cc=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{dragging:{},dragHandle:{alignItems:"center",borderRight:"0.5px solid ".concat(e.palette.divider),display:"flex",flex:1,flexDirection:"row",marginBottom:-1*e.spacing(2)+.5,marginRight:e.spacing(1),marginTop:-1*e.spacing(2),maxWidth:e.spacing(3),width:e.spacing(3)},image:{borderBottom:"1px solid ".concat(e.palette.divider)},label:{paddingLeft:e.spacing(1)},list:{paddingTop:0},listItem:{"& $dragHandle":{"&:hover":{backgroundColor:e.palette.action.hover},backgroundColor:e.palette.shades.light},"&$dragging":{"& $dragHandle, & $dragHandle:hover":{backgroundColor:e.palette.action.selected},backgroundColor:e.palette.action.hover},alignItems:"stretch",borderBottom:"0.5px solid ".concat(e.palette.divider),cursor:"pointer",paddingBottom:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)},opacityIcon:{marginRight:e.spacing(.5)},opacityInput:sc(sc({},e.typography.caption),{},{"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0},"-moz-appearance":"textfield",textAlign:"right",width:"3ch"}),sectionHeading:{paddingLeft:e.spacing(2),paddingRight:e.spacing(1),paddingTop:e.spacing(2)},slider:{marginLeft:e.spacing(2),marginRight:e.spacing(2),maxWidth:150},thumbnail:{minWidth:50}}})),(0,o.$j)((function(e,t){var n=t.canvasId,r=t.windowId;return{label:(0,q.vt)(e,{canvasId:n,windowId:r}),layerMetadata:(0,yi.xb)(e,{canvasId:n,windowId:r}),layers:(0,yi.e4)(e,{canvasId:n,windowId:r})}}),uc));const dc=cc(ic);function fc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hc(e,t){return hc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hc(e,t)}function gc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mc(e)}var vc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hc(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mc(r);if(o){var n=mc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return gc(this,e)});function a(){return fc(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.canvasIds,n=e.id,r=e.t,o=e.windowId;return u.createElement(et.Z,{title:r("layers"),id:n,windowId:o},t.map((function(e,n){return u.createElement(dc,{canvasId:e,index:n,key:e,totalSize:t.length,windowId:o})})))}}])&&pc(t.prototype,n),a}(u.Component);vc.defaultProps={canvasIds:[]};var yc=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{}})),(0,o.$j)((function(e,t){t.id;var n=t.windowId;return{canvasIds:(0,q.Lc)(e,{windowId:n})}})),(0,s.A)("LayersPanel"));const bc=yc(vc);function wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oc(e,t){return Oc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oc(e,t)}function xc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sc(e)}var Ic=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oc(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Sc(r);if(o){var n=Sc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return xc(this,e)});function a(){return wc(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.id,n=e.children,r=e.t,o=e.title,i=e.windowId;return u.createElement(et.Z,{title:r(o),id:t,windowId:i},n)}}])&&Ec(t.prototype,n),a}(u.Component);Ic.defaultProps={children:null};var Cc=(0,r.qC)((0,i.Z)(),(0,a.Z)((function(e){return{}})),(0,o.$j)((function(e,t){return t.id,t.windowId,{}})),(0,s.A)("CustomPanel"));const _c=Cc(Ic);var kc=n(46869),Tc=n(992),Pc=["manifest"];function Rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nc(e,t){return Nc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nc(e,t)}function Dc(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mc(e)}var Lc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nc(e,t)}(s,e);var t,n,r,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Mc(o);if(i){var n=Mc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Dc(this,e)});function s(){return Ac(this,s),a.apply(this,arguments)}return t=s,n=[{key:"isMultipart",value:function(){var e=this.props.collection;if(!e)return!1;var t=e.getProperty("behavior");return Array.isArray(t)?e.includes("multi-part"):"multi-part"===t}},{key:"render",value:function(){var e=this.props,t=e.canvasNavigation,n=e.classes,r=e.collectionPath,o=e.collection,i=e.id,a=e.isFetching,l=e.manifestId,c=e.parentCollection,d=e.updateCompanionWindow,f=e.updateWindow,p=e.t,h=e.variant,g=e.windowId,m=function(e){var r=e.manifest,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Pc);return u.createElement(Le.Z,Object.assign({className:n.menuItem,alignItems:"flex-start",button:!0,component:"li",selected:l===r.id},o),"thumbnail"===h&&u.createElement(kc.Z,null,u.createElement($.Z,{resource:r,maxHeight:t.height,maxWidth:t.width})),u.createElement(Ze.Z,null,s.getUseableLabel(r)))};return u.createElement(et.Z,{title:p(this.isMultipart()?"multipartCollection":"collection"),windowId:g,id:i,titleControls:u.createElement(u.Fragment,null,c&&u.createElement(Ro.Z,null,u.createElement(No.Z,{button:!0,onClick:function(){return d({collectionPath:r.slice(0,-1)})}},u.createElement(kc.Z,null,u.createElement(Tc.Z,null)),u.createElement(Ze.Z,{primaryTypographyProps:{variant:"body1"}},s.getUseableLabel(c)))),u.createElement(Ee.Z,{variant:"h6"},o&&s.getUseableLabel(o),a&&u.createElement(wr.Z,{className:n.placeholder,variant:"text"})))},u.createElement(Me.Z,null,a&&u.createElement(Le.Z,null,u.createElement(Ze.Z,null,u.createElement(wr.Z,{className:n.placeholder,variant:"text"}),u.createElement(wr.Z,{className:n.placeholder,variant:"text"}),u.createElement(wr.Z,{className:n.placeholder,variant:"text"}))),o&&o.getCollections().map((function(e){return u.createElement(m,{key:e.id,onClick:function(){var t;d({collectionPath:[].concat((t=r,function(e){if(Array.isArray(e))return Rc(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Rc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rc(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[e.id])})},manifest:e})})),o&&o.getManifests().map((function(e){return u.createElement(m,{key:e.id,onClick:function(){f({canvasId:null,collectionPath:r,manifestId:e.id}),d({multipart:!1})},manifest:e})}))))}}],r=[{key:"getUseableLabel",value:function(e,t){return e&&e.getLabel&&e.getLabel().length>0?e.getLabel().getValue():e.id}}],n&&jc(t.prototype,n),r&&jc(t,r),s}(u.Component);Lc.defaultProps={collection:null,collectionPath:[],error:null,isFetching:!1,parentCollection:null,ready:!1,t:function(e){return e},variant:null};var Zc=(0,r.qC)((0,a.Z)((function(e){return{label:{paddingLeft:e.spacing(1)},menuItem:{borderBottom:"0.5px solid ".concat(e.palette.divider),paddingRight:e.spacing(1),whiteSpace:"normal"}}})),(0,i.Z)(),(0,o.$j)((function(e,t){var n=t.id,r=t.windowId,o=(0,ge.Jj)(e,{windowId:r}),i=(0,he.KW)(e,{companionWindowId:n}),a=i.collectionPath||o.collectionPath,s=a&&a[a.length-1],l=a&&a[a.length-2],u=s&&(0,ge.WC)(e,{manifestId:s}),c=l&&(0,ge.WC)(e,{manifestId:l}),d=(0,ge.WC)(e,{windowId:r});return{canvasNavigation:e.config.canvasNavigation,collection:u&&(0,ut.hi)(e,{manifestId:u.id}),collectionId:s,collectionPath:a,error:u&&u.error,isFetching:u&&u.isFetching,manifestId:d&&d.id,parentCollection:c&&(0,ut.hi)(e,{manifestId:c.id}),ready:u&&!!u.json,variant:i.variant||(0,ur.U_)(e,{windowId:r})}}),(function(e,t){var n=t.id,r=t.windowId;return{updateCompanionWindow:function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e(lt.b0.apply(G,[r,n].concat(o)))},updateWindow:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e(Rt.zw.apply(G,[r].concat(n)))}}})),(0,s.A)("WindowSideBarCollectionPanel"));const zc={annotations:st,attribution:Tr,canvas:br,collection:Zc(Lc),custom:_c,info:an,layers:bc,search:mi,thumbnailNavigation:be}},7590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(85564),o=n.n(r),i=n(42348),a=n.n(i),s=n(66947);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=t}var t,n;return t=e,(n=[{key:"id",get:function(){return this.canvas.id}},{key:"getWidth",value:function(){return this.canvas.getWidth()}},{key:"getHeight",value:function(){return this.canvas.getHeight()}},{key:"aspectRatio",get:function(){return this.canvas.getWidth()/this.canvas.getHeight()}},{key:"annotationListUris",get:function(){return o()(new Array(this.canvas.__jsonld.otherContent)).filter((function(e){return e&&("string"==typeof e||"sc:AnnotationList"===e["@type"])})).map((function(e){return"string"==typeof e?e:e["@id"]}))}},{key:"canvasAnnotationPages",get:function(){return o()(new Array(this.canvas.__jsonld.annotations)).filter((function(e){return e&&"AnnotationPage"===e.type}))}},{key:"imageResource",get:function(){return this.imageResources[0]}},{key:"imageResources",get:function(){var e=this,t=a()([this.canvas.getImages().map((function(e){return e.getResource()})),this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(t.map((function(t){return"oa:Choice"===t.getProperty("type")?new s.Canvas({images:o()([t.getProperty("default"),t.getProperty("item")]).map((function(e){return{resource:e}}))},e.canvas.options).getImages().map((function(e){return e.getResource()})):t})))}},{key:"videoResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Video"===e.getProperty("type")})))}},{key:"audioResources",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"Sound"===e.getProperty("type")})))}},{key:"vttContent",get:function(){var e=a()([this.canvas.getContent().map((function(e){return e.getBody()}))]);return o()(e.filter((function(e){return"text/vtt"===e.getProperty("format")})))}},{key:"resourceAnnotations",get:function(){return a()([this.canvas.getImages(),this.canvas.getContent()])}},{key:"resourceAnnotation",value:function(e){return this.resourceAnnotations.find((function(t){return t.getResource().id===e||o()(new Array(t.getBody())).some((function(t){return t.id===e}))}))}},{key:"onFragment",value:function(e){var t=this.resourceAnnotation(e);if(t){var n=t.getProperty("on"),r=t.getProperty("target"),o=(n||r).match(/xywh=(.*)$/);if(o)return o[1].split(",").map((function(e){return parseInt(e,10)}))}}},{key:"iiifImageResources",get:function(){return this.imageResources.filter((function(e){return e&&e.getServices()[0]&&e.getServices()[0].id}))}},{key:"imageServiceIds",get:function(){return this.iiifImageResources.map((function(e){return e.getServices()[0].id}))}},{key:"service",get:function(){return this.canvas.__jsonld.service}},{key:"getLabel",value:function(){return this.canvas.getLabel().length>0?this.canvas.getLabel().getValue():String(this.canvas.index+1)}}])&&l(t.prototype,n),e}()},24287:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Z:()=>o});var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=t}var t,n;return t=e,(n=[{key:"startCanvas",get:function(){var e,t=this.manifest.getSequences()[0];if(t){if(!(e=t.getProperty("startCanvas"))){var n=this.manifest.getProperty("start")||t.getProperty("start");e=n&&(n.id||n.source)}return e&&t.getCanvasById(e)||void 0}}},{key:"canvasAt",value:function(e){var t=this.manifest.getSequences()[0],n=t&&t.getCanvases();return n&&n[e]}}])&&r(t.prototype,n),e}()},21306:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(66947),o=n(24287),i=n(7590),a=n(14136);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){var t=e&&e.getServices().find((function(e){return function(e){var t=e.getProperty("type")||[];return(0,a.Z)(t).some((function(e){return e.startsWith("ImageService")}))}(e)||r.Utils.isImageProfile(e.getProfile())}));if(t)return t}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.resource=t,this.iiifOpts=n}var t,n,c;return t=e,c=[{key:"staticImageUrl",value:function(e){return{height:e.getProperty("height"),url:e.id,width:e.getProperty("width")}}},{key:"getPreferredImage",value:function(e){var t=new i.Z(e);return t.iiifImageResources[0]||t.imageResource}},{key:"selectBestImageSize",value:function(e,t){var n=(0,a.Z)(e.getProperty("sizes")),r={default:!0,height:e.getProperty("height")||Number.MAX_SAFE_INTEGER,width:e.getProperty("width")||Number.MAX_SAFE_INTEGER},o=function(e){return e.width*e.height-t};if((r=n.reduce((function(e,t){var n=o(t);return n<0?e:Math.abs(n)<Math.abs(o(e))?t:e}),r)).width*r.height>6*t&&(r=n.reduce((function(e,t){return Math.abs(o(t))<Math.abs(o(e))?t:e}),r)),!r.default)return r}}],(n=[{key:"iiifThumbnailUrl",value:function(t){var n,o,i,a=120,s=a,l=a,c=this.iiifOpts,d=c.maxHeight,f=c.maxWidth;d&&(s=Math.max(d,a)),f&&(l=Math.max(f,a));var p=u(t);if(!p)return e.staticImageUrl(t);var h=t.getWidth()&&t.getHeight()&&t.getWidth()/t.getHeight(),g=f&&d?f*d:s*l,m=e.selectBestImageSize(p,g);if(m)o=m.width,i=m.height,n="".concat(o,",").concat(i);else if(function(e){var t=e.getProfile();return!t.endsWith("#level1")&&!t.endsWith("#level2")&&("level0"===t||r.Utils.isLevel0ImageProfile(t))}(p)){if(!p.getProperty("height")&&!p.getProperty("width"))return e.staticImageUrl(t)}else d&&f?function(e){var t=e.getProfile();return!t.endsWith("#level0")&&!t.endsWith("#level1")&&("level2"===t||r.Utils.isLevel2ImageProfile(t))}(p)?(n="!".concat(l,",").concat(s),o=l,i=s,h&&h>1&&(i=Math.round(l/h)),h&&h<1&&(o=Math.round(s*h))):l/s<h?(n="".concat(l,","),o=l,h&&(i=Math.round(l/h))):(n=",".concat(s),i=s,h&&(o=Math.round(s*h))):d&&!f?(n=",".concat(s),i=s,h&&(o=Math.round(s*h))):!d&&f?(n="".concat(l,","),o=l,h&&(i=Math.round(l/h))):(n=",".concat(a),i=a,h&&(o=Math.round(i*h)));var v=r.Utils.getImageQuality(p.getProfile()),y=p.id.replace(/\/+$/,""),b=this.getFormat(p);return{height:i,url:[y,"full",n,0,"".concat(v,".").concat(b)].join("/"),width:o}}},{key:"getFormat",value:function(e){var t=this.iiifOpts.preferredFormats,n=void 0===t?[]:t,r=e.getProperty("preferredFormats");if(!r)return"jpg";var o=r.filter((function(e){return n.includes(e)}));return o[0]?o[0]:!r.includes("jpg")&&n.includes("jpg")?"jpg":r[0]?r[0]:"jpg"}},{key:"getSourceContentResource",value:function(t){var n=t.getThumbnail();if(n)return"string"==typeof n.__jsonld?n.__jsonld:t.isCollection()||t.isManifest()||t.isCanvas()||"image"!==t.getType()||!u(t)||u(n)?n:t;if(t.isCollection()){var r=t.getManifests()[0];return r?this.getSourceContentResource(r):void 0}if(t.isManifest()){var i=new o.Z(t),a=i.startCanvas||i.canvasAt(0);return a?this.getSourceContentResource(a):void 0}if(t.isCanvas()){var s=e.getPreferredImage(t);return s?this.getSourceContentResource(s):void 0}return"image"===t.getType()?t:void 0}},{key:"get",value:function(){if(this.resource){var e=this.getSourceContentResource(this.resource);if(e)return"string"==typeof e?{url:e}:this.iiifThumbnailUrl(e)}}}])&&l(t.prototype,n),c&&l(t,c),e}();function d(e,t){return new c(e,t).get()}},14136:(e,t,n)=>{"use strict";function r(e){return void 0===e?[]:Array.isArray(e)?e:[e]}n.d(t,{Z:()=>r})},7903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ADD_COMPANION_WINDOW:"mirador/ADD_COMPANION_WINDOW",UPDATE_COMPANION_WINDOW:"mirador/UPDATE_COMPANION_WINDOW",REMOVE_COMPANION_WINDOW:"mirador/REMOVE_COMPANION_WINDOW",TOGGLE_TOC_NODE:"mirador/TOGGLE_TOC_NODE",UPDATE_WINDOW:"mirador/UPDATE_WINDOW",REQUEST_CANVAS_ANNOTATIONS:"mirador/REQUEST_CANVAS_ANNOTATIONS",HOVER_ANNOTATION:"mirador/HOVER_ANNOTATION",REQUEST_ANNOTATION:"mirador/REQUEST_ANNOTATION",RECEIVE_ANNOTATION:"mirador/RECEIVE_ANNOTATION",RECEIVE_ANNOTATION_FAILURE:"mirador/RECEIVE_ANNOTATION_FAILURE",DESELECT_ANNOTATION:"mirador/DESELECT_ANNOTATION",SELECT_ANNOTATION:"mirador/SELECT_ANNOTATION",TOGGLE_ANNOTATION_DISPLAY:"mirador/TOGGLE_ANNOTATION_DISPLAY",FOCUS_WINDOW:"mirador/FOCUS_WINDOW",SET_WORKSPACE_FULLSCREEN:"mirador/SET_WORKSPACE_FULLSCREEN",SET_WORKSPACE_VIEWPORT_POSITION:"mirador/SET_WORKSPACE_VIEWPORT_POSITION",ADD_MANIFEST:"mirador/ADD_MANIFEST",ADD_WINDOW:"mirador/ADD_WINDOW",ADD_ERROR:"mirador/ADD_ERROR",IMPORT_CONFIG:"mirador/IMPORT_CONFIG",IMPORT_MIRADOR_STATE:"mirador/IMPORT_MIRADOR_STATE",SET_CANVAS:"mirador/SET_CANVAS",MAXIMIZE_WINDOW:"mirador/MAXIMIZE_WINDOW",MINIMIZE_WINDOW:"mirador/MINIMIZE_WINDOW",UPDATE_WINDOW_POSITION:"mirador/UPDATE_WINDOW_POSITION",SET_WINDOW_SIZE:"mirador/SET_WINDOW_SIZE",REMOVE_WINDOW:"mirador/REMOVE_WINDOW",PICK_WINDOWING_SYSTEM:"mirador/PICK_WINDOWING_SYSTEM",REQUEST_MANIFEST:"mirador/REQUEST_MANIFEST",RECEIVE_MANIFEST:"mirador/RECEIVE_MANIFEST",RECEIVE_MANIFEST_FAILURE:"mirador/RECEIVE_MANIFEST_FAILURE",REMOVE_ERROR:"mirador/REMOVE_ERROR",SET_CONFIG:"mirador/SET_CONFIG",UPDATE_WORKSPACE:"mirador/UPDATE_WORKSPACE",SET_WINDOW_THUMBNAIL_POSITION:"mirador/SET_WINDOW_THUMBNAIL_POSITION",SET_WINDOW_VIEW_TYPE:"mirador/SET_WINDOW_VIEW_TYPE",SET_WORKSPACE_ADD_VISIBILITY:"mirador/SET_WORKSPACE_ADD_VISIBILITY",TOGGLE_WINDOW_SIDE_BAR:"mirador/TOGGLE_WINDOW_SIDE_BAR",TOGGLE_DRAGGING:"mirador/TOGGLE_DRAGGING",TOGGLE_ZOOM_CONTROLS:"mirador/TOGGLE_ZOOM_CONTROLS",UPDATE_CONFIG:"mirador/UPDATE_CONFIG",REMOVE_MANIFEST:"mirador/REMOVE_MANIFEST",REQUEST_INFO_RESPONSE:"mirador/REQUEST_INFO_RESPONSE",RECEIVE_INFO_RESPONSE:"mirador/RECEIVE_INFO_RESPONSE",RECEIVE_DEGRADED_INFO_RESPONSE:"mirador/RECEIVE_DEGRADED_INFO_RESPONSE",RECEIVE_INFO_RESPONSE_FAILURE:"mirador/RECEIVE_INFO_RESPONSE_FAILURE",REMOVE_INFO_RESPONSE:"mirador/REMOVE_INFO_RESPONSE",UPDATE_WORKSPACE_MOSAIC_LAYOUT:"mirador/UPDATE_WORKSPACE_MOSAIC_LAYOUT",UPDATE_VIEWPORT:"mirador/UPDATE_VIEWPORT",UPDATE_ELASTIC_WINDOW_LAYOUT:"mirador/UPDATE_ELASTIC_WINDOW_LAYOUT",ADD_AUTHENTICATION_REQUEST:"mirador/ADD_AUTHENTICATION_REQUEST",RESOLVE_AUTHENTICATION_REQUEST:"mirador/RESOLVE_AUTHENTICATION_REQUEST",REQUEST_ACCESS_TOKEN:"mirador/REQUEST_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN:"mirador/RECEIVE_ACCESS_TOKEN",RECEIVE_ACCESS_TOKEN_FAILURE:"mirador/RECEIVE_ACCESS_TOKEN_FAILURE",RESET_AUTHENTICATION_STATE:"mirador/RESET_AUTHENTICATION_STATE",CLEAR_ACCESS_TOKEN_QUEUE:"mirador/CLEAR_ACCESS_TOKEN_QUEUE",REQUEST_SEARCH:"mirador/REQUEST_SEARCH",RECEIVE_SEARCH:"mirador/RECEIVE_SEARCH",RECEIVE_SEARCH_FAILURE:"mirador/RECEIVE_SEARCH_FAILURE",REMOVE_SEARCH:"mirador/REMOVE_SEARCH",SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:"mirador/SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS",UPDATE_LAYERS:"mirador/UPDATE_LAYERS",ADD_RESOURCE:"mirador/ADD_RESOURCE",REMOVE_RESOURCE:"mirador/REMOVE_RESOURCE",SHOW_COLLECTION_DIALOG:"mirador/SHOW_COLLECTION_DIALOG",HIDE_COLLECTION_DIALOG:"mirador/HIDE_COLLECTION_DIALOG"}},73953:(e,t,n)=>{"use strict";n.d(t,{D6:()=>u,G3:()=>d,WI:()=>s,XD:()=>l,kX:()=>i,pj:()=>o,yz:()=>c,zS:()=>a});var r=n(7903);function o(e,t){return{canvasId:t,type:r.Z.REQUEST_CANVAS_ANNOTATIONS,windowId:e}}function i(e,t){return{annotationId:t,targetId:e,type:r.Z.REQUEST_ANNOTATION}}function a(e,t,n){return{annotationId:t,annotationJson:n,targetId:e,type:r.Z.RECEIVE_ANNOTATION}}function s(e,t,n){return{annotationId:t,error:n,targetId:e,type:r.Z.RECEIVE_ANNOTATION_FAILURE}}function l(e,t){return{annotationId:t,type:r.Z.SELECT_ANNOTATION,windowId:e}}function u(e,t){return{annotationId:t,type:r.Z.DESELECT_ANNOTATION,windowId:e}}function c(e){return{type:r.Z.TOGGLE_ANNOTATION_DISPLAY,windowId:e}}function d(e,t){return{annotationIds:t,type:r.Z.HOVER_ANNOTATION,windowId:e}}},27693:(e,t,n)=>{"use strict";n.d(t,{NS:()=>u,P0:()=>a,Tc:()=>l,YZ:()=>c,ZN:()=>f,gk:()=>s,zJ:()=>d});var r=n(7903);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return{id:t,profile:n,type:r.Z.ADD_AUTHENTICATION_REQUEST,windowId:e}}function s(e,t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e,tokenServiceId:t,type:r.Z.RESOLVE_AUTHENTICATION_REQUEST},n)}function l(e,t){return{authId:t,serviceId:e,type:r.Z.REQUEST_ACCESS_TOKEN}}function u(e,t,n){return{authId:e,json:n,serviceId:t,type:r.Z.RECEIVE_ACCESS_TOKEN}}function c(e,t,n){return{authId:e,error:n,serviceId:t,type:r.Z.RECEIVE_ACCESS_TOKEN_FAILURE}}function d(e,t,n){return n.accessToken?u(e,t,n):c(e,t,n)}function f(e){return{id:e.authServiceId,tokenServiceId:e.tokenServiceId,type:r.Z.RESET_AUTHENTICATION_STATE}}},36691:(e,t,n)=>{"use strict";n.d(t,{Ch:()=>c,NU:()=>u,WH:()=>d,ji:()=>l});var r=n(7903),o=n(49455);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(s,l){var u=l(),c=n;c||(c=((0,o.jE)(u,{canvasId:t,windowId:e})||[]).map((function(e){return e.id}))),s(a(a({},i),{},{canvasId:t,type:r.Z.SET_CANVAS,visibleCanvases:c,windowId:e}))}}function u(e){return function(t,n){var r=n(),i=(0,o.m7)(r,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(l(e,a[0],a))}}function c(e){return function(t,n){var r=n(),i=(0,o.iQ)(r,{windowId:e}),a=(i||[]).map((function(e){return e.id}));i&&t(l(e,a[0],a))}}function d(e,t){return{payload:t,type:r.Z.UPDATE_VIEWPORT,windowId:e}}},80134:(e,t,n)=>{"use strict";n.d(t,{q:()=>i,r:()=>o});var r=n(7903);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return{manifestId:e,manifestJson:t,payload:n,type:r.Z.ADD_RESOURCE}}function i(e){return{manifestId:e,type:r.Z.REMOVE_RESOURCE}}},80725:(e,t,n)=>{"use strict";n.d(t,{b0:()=>p,bh:()=>g,s:()=>h,tT:()=>f,uq:()=>d});var r=n(53001),o=n(7903),i=n(80923),a=n(31456);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={content:null,position:null};function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,i="cw-".concat((0,r.Z)());return{id:i,payload:l(l(l({},n),t),{},{id:i,windowId:e}),type:o.Z.ADD_COMPANION_WINDOW,windowId:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;return function(r,o){var a=o(),s=t.position,l="left"===s&&(0,i.AP)(a,{position:s,windowId:e})[0];r(l?p(e,l,t):d(e,t,n))}}function p(e,t,n){return{id:t,payload:n,type:o.Z.UPDATE_COMPANION_WINDOW,windowId:e}}function h(e,t){return{id:t,type:o.Z.REMOVE_COMPANION_WINDOW,windowId:e}}function g(e,t,n){return function(r,i){var s=i(),l=(0,a.VZ)(s,{companionWindowId:t},!1),c=(0,a.VZ)(s,{companionWindowId:t},!0),d=(0,a.q0)(s,{id:t,windowId:e}),f=-1!==l.indexOf(n)||-1===c.indexOf(n)&&-1===d.indexOf(n);return r({id:t,payload:u({},n,{expanded:f}),type:o.Z.TOGGLE_TOC_NODE,windowId:e})}}},29767:(e,t,n)=>{"use strict";n.d(t,{Mu:()=>d,bS:()=>l,rF:()=>c,v6:()=>u});var r=n(53001),o=n(7903);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return{config:e,type:o.Z.IMPORT_CONFIG}}function u(e){return{config:e,type:o.Z.SET_CONFIG}}function c(e){return{config:e,type:o.Z.UPDATE_CONFIG}}function d(e){return{state:a(a({},e),{},{workspace:a(a({},e.workspace),{},{id:(0,r.Z)()})}),type:o.Z.IMPORT_MIRADOR_STATE}}},31232:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(7903);function o(e,t){return{payload:t,type:r.Z.UPDATE_ELASTIC_WINDOW_LAYOUT,windowId:e}}},75924:(e,t,n)=>{"use strict";n.d(t,{e:()=>a,i:()=>i});var r=n(53001),o=n(7903);function i(e){return{id:"error-".concat((0,r.Z)()),message:e,type:o.Z.ADD_ERROR}}function a(e){return{id:e,type:o.Z.REMOVE_ERROR}}},1124:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addAuthenticationRequest:()=>f.P0,addCompanionWindow:()=>r.uq,addError:()=>i.i,addOrUpdateCompanionWindow:()=>r.tT,addResource:()=>m.r,addWindow:()=>a.QX,deselectAnnotation:()=>d.D6,fetchInfoResponse:()=>l.vs,fetchManifest:()=>s.eq,fetchSearch:()=>h.on,focusWindow:()=>a.uG,hideCollectionDialog:()=>a.mm,hoverAnnotation:()=>d.G3,importConfig:()=>o.bS,importMiradorState:()=>o.Mu,maximizeWindow:()=>a.LO,minimizeWindow:()=>a.Y9,receiveAccessToken:()=>f.NS,receiveAccessTokenFailure:()=>f.YZ,receiveAnnotation:()=>d.zS,receiveAnnotationFailure:()=>d.WI,receiveDegradedInfoResponse:()=>l.bJ,receiveInfoResponse:()=>l.Xr,receiveInfoResponseFailure:()=>l.WQ,receiveManifest:()=>s.gk,receiveManifestFailure:()=>s.d1,receiveSearch:()=>h.wt,receiveSearchFailure:()=>h.Pf,removeCompanionWindow:()=>r.s,removeError:()=>i.e,removeInfoResponse:()=>l.d8,removeManifest:()=>s.CK,removeResource:()=>m.q,removeSearch:()=>h.yg,removeWindow:()=>a.i0,requestAccessToken:()=>f.Tc,requestAnnotation:()=>d.kX,requestCanvasAnnotations:()=>d.pj,requestInfoResponse:()=>l.S8,requestManifest:()=>s.kH,requestSearch:()=>h.$_,resetAuthenticationState:()=>f.ZN,resolveAccessTokenRequest:()=>f.zJ,resolveAuthenticationRequest:()=>f.gk,selectAnnotation:()=>d.XD,setCanvas:()=>u.ji,setCompanionAreaOpen:()=>a.Ud,setConfig:()=>o.v6,setContentSearchCurrentAnnotation:()=>h.px,setNextCanvas:()=>u.NU,setPreviousCanvas:()=>u.Ch,setWindowThumbnailPosition:()=>a.bB,setWindowViewType:()=>a.cx,setWorkspaceAddVisibility:()=>c.B4,setWorkspaceFullscreen:()=>c.jL,setWorkspaceViewportDimensions:()=>c.W3,setWorkspaceViewportPosition:()=>c.bj,showCollectionDialog:()=>a.FK,toggleAnnotationDisplay:()=>d.yz,toggleDraggingEnabled:()=>c.gQ,toggleNode:()=>r.bh,toggleWindowSideBar:()=>a.dC,toggleZoomControls:()=>c.eE,updateCompanionWindow:()=>r.b0,updateConfig:()=>o.rF,updateElasticWindowLayout:()=>p.R,updateLayers:()=>g.O,updateViewport:()=>u.WH,updateWindow:()=>a.zw,updateWorkspace:()=>c.eA,updateWorkspaceMosaicLayout:()=>c.w});var r=n(80725),o=n(29767),i=n(75924),a=n(50166),s=n(83502),l=n(91861),u=n(36691),c=n(41328),d=n(73953),f=n(27693),p=n(31232),h=n(76337),g=n(57125),m=n(80134)},91861:(e,t,n)=>{"use strict";n.d(t,{S8:()=>o,WQ:()=>s,Xr:()=>i,bJ:()=>a,d8:()=>u,vs:()=>l});var r=n(7903);function o(e,t,n){return{imageResource:t,infoId:e,type:r.Z.REQUEST_INFO_RESPONSE,windowId:n}}function i(e,t,n,o){return{infoId:e,infoJson:t,ok:n,tokenServiceId:o,type:r.Z.RECEIVE_INFO_RESPONSE}}function a(e,t,n,o,i){return{infoId:e,infoJson:t,ok:n,tokenServiceId:o,type:r.Z.RECEIVE_DEGRADED_INFO_RESPONSE,windowId:i}}function s(e,t,n){return{error:t,infoId:e,tokenServiceId:n,type:r.Z.RECEIVE_INFO_RESPONSE_FAILURE}}function l(e){var t=e.imageId,n=e.imageResource,r=e.windowId,i=n&&n.getServices()[0];return o(t||i.id,i,r)}function u(e){return{infoId:e,type:r.Z.REMOVE_INFO_RESPONSE}}},57125:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(7903);function o(e,t,n){return{canvasId:t,payload:n,type:r.Z.UPDATE_LAYERS,windowId:e}}},83502:(e,t,n)=>{"use strict";n.d(t,{CK:()=>d,d1:()=>u,eq:()=>c,gk:()=>l,kH:()=>s});var r=n(7903);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return{manifestId:e,properties:t,type:r.Z.REQUEST_MANIFEST}}function l(e,t){return{manifestId:e,manifestJson:t,type:r.Z.RECEIVE_MANIFEST}}function u(e,t){return{error:t,manifestId:e,type:r.Z.RECEIVE_MANIFEST_FAILURE}}function c(e,t){return s(e,i(i({},t),{},{isFetching:!0}))}function d(e){return{manifestId:e,type:r.Z.REMOVE_MANIFEST}}},76337:(e,t,n)=>{"use strict";n.d(t,{$_:()=>o,Pf:()=>a,on:()=>l,px:()=>u,wt:()=>i,yg:()=>s});var r=n(7903);function o(e,t,n,o){return{companionWindowId:t,query:o,searchId:n,type:r.Z.REQUEST_SEARCH,windowId:e}}function i(e,t,n,o){return{companionWindowId:t,searchId:n,searchJson:o,type:r.Z.RECEIVE_SEARCH,windowId:e}}function a(e,t,n,o){return{companionWindowId:t,error:o,searchId:n,type:r.Z.RECEIVE_SEARCH_FAILURE,windowId:e}}function s(e,t){return{companionWindowId:t,type:r.Z.REMOVE_SEARCH,windowId:e}}function l(e,t,n,r){return o(e,t,n,r)}function u(e,t,n){return{annotationIds:n,companionWindowId:t,type:r.Z.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS,windowId:e}}},50166:(e,t,n)=>{"use strict";n.d(t,{FK:()=>E,LO:()=>h,QX:()=>f,Ud:()=>m,Y9:()=>g,bB:()=>b,cx:()=>w,dC:()=>y,i0:()=>v,mm:()=>O,uG:()=>d,zw:()=>p});var r=n(53001),o=n(7903),i=n(2311),a=["companionWindows","manifest"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{pan:t,type:o.Z.FOCUS_WINDOW,windowId:e}}function f(e){var t=e.companionWindows,n=e.manifest,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a);return function(e,a){var u,d=(0,i.z)(a()),f=d.config,p=d.workspace.windowIds,h=(void 0===p?[]:p).length,g=s.id||"window-".concat((0,r.Z)()),m="cw-".concat((0,r.Z)()),v=[{content:"thumbnailNavigation",default:!0,id:m,position:s.thumbnailNavigationPosition||f.thumbnailNavigation.defaultPosition,windowId:g}].concat(function(e){if(Array.isArray(e))return c(e)}(u=(t||[]).map((function(e,t){return l(l({},e),{},{id:"cw-".concat((0,r.Z)())})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());(s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel)&&v.unshift({content:s.sideBarPanel||s.defaultSearchQuery&&"search"||f.window.defaultSideBarPanel||f.window.sideBarPanel,default:!0,id:"cw-".concat((0,r.Z)()),position:"left",windowId:g});var y={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:v.map((function(e){return e.id})),draggingEnabled:!0,highlightAllAnnotations:f.window.highlightAllAnnotations||!1,id:g,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:void 0!==f.window.sideBarOpenByDefault?f.window.sideBarOpenByDefault||!!s.defaultSearchQuery:f.window.sideBarOpen||!!s.defaultSearchQuery,sideBarPanel:s.sideBarPanel||f.window.defaultSideBarPanel||f.window.sideBarPanel,thumbnailNavigationId:m};e({companionWindows:v,elasticLayout:l(l({},f.window.elastic||{height:400,width:480}),{},{x:50*Math.floor(h/10)+30*h%300+200,y:200+50*h%300}),manifest:n,type:o.Z.ADD_WINDOW,window:l(l({},y),s)})}}function p(e,t){return{id:e,payload:t,type:o.Z.UPDATE_WINDOW}}function h(e,t){return{type:o.Z.MAXIMIZE_WINDOW,windowId:e}}function g(e){return{type:o.Z.MINIMIZE_WINDOW,windowId:e}}function m(e,t){return{id:e,payload:{companionAreaOpen:t},type:o.Z.UPDATE_WINDOW}}function v(e){return{type:o.Z.REMOVE_WINDOW,windowId:e}}function y(e){return{type:o.Z.TOGGLE_WINDOW_SIDE_BAR,windowId:e}}function b(e,t){return function(n,r){n({id:r().windows[e].thumbnailNavigationId,payload:{position:t},type:o.Z.UPDATE_COMPANION_WINDOW})}}function w(e,t){return{type:o.Z.SET_WINDOW_VIEW_TYPE,viewType:t,windowId:e}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return{collectionPath:t,manifestId:e,type:o.Z.SHOW_COLLECTION_DIALOG,windowId:n}}function O(e){return{type:o.Z.HIDE_COLLECTION_DIALOG,windowId:e}}},41328:(e,t,n)=>{"use strict";n.d(t,{B4:()=>l,W3:()=>c,bj:()=>u,eA:()=>o,eE:()=>a,gQ:()=>d,jL:()=>i,w:()=>s});var r=n(7903);function o(e){return{config:e,type:r.Z.UPDATE_WORKSPACE}}function i(e){return{isFullscreenEnabled:e,type:r.Z.SET_WORKSPACE_FULLSCREEN}}function a(e){return{showZoomControls:e,type:r.Z.TOGGLE_ZOOM_CONTROLS}}function s(e){return{layout:e,type:r.Z.UPDATE_WORKSPACE_MOSAIC_LAYOUT}}function l(e){return{isWorkspaceAddVisible:e,type:r.Z.SET_WORKSPACE_ADD_VISIBILITY}}function u(e){return{payload:{position:{x:e.x,y:e.y}},type:r.Z.SET_WORKSPACE_VIEWPORT_POSITION}}function c(e){var t=e.width;return{payload:{position:{height:e.height,width:t}},type:r.Z.SET_WORKSPACE_VIEWPORT_POSITION}}function d(){return{type:r.Z.TOGGLE_DRAGGING}}},32012:(e,t,n)=>{"use strict";n.d(t,{aW:()=>R,OY:()=>P,fy:()=>S,A7:()=>T,EO:()=>A,zB:()=>j});var r=n(20573),o=n(63105),i=n.n(o),a=n(85564),s=n.n(a),l=n(95458),u=n(39693),c=n.n(u),d=n(53001);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.resource=t}var t,n;return t=e,(n=[{key:"isOnlyTag",value:function(){return 1===this.motivations.length&&"tagging"===this.motivations[0]}},{key:"id",get:function(){return this._id=this._id||this.resource.id||(0,d.Z)(),this._id}},{key:"targetId",get:function(){var e=this.target[0];switch(typeof e){case"string":return e.replace(/#?xywh=(.*)$/,"");case"object":return e.source&&e.source.id||e.source||e.id;default:return null}}},{key:"motivations",get:function(){return s()(c()(new Array(this.resource.motivation)))}},{key:"body",get:function(){return s()(c()(new Array(this.resource.body)))}},{key:"resources",get:function(){return this.body}},{key:"tags",get:function(){return this.isOnlyTag()?this.body.map((function(e){return e.value})):this.body.filter((function(e){return"tagging"===e.purpose})).map((function(e){return e.value}))}},{key:"target",get:function(){return s()(c()(new Array(this.resource.target)))}},{key:"chars",get:function(){return this.isOnlyTag()?null:this.body.filter((function(e){return"tagging"!==e.purpose})).map((function(e){return e.value})).join(" ")}},{key:"selector",get:function(){var e=this.target[0];switch(typeof e){case"string":return e;case"object":return s()(c()(new Array(e.selector)));default:return null}}},{key:"svgSelector",get:function(){var e=this.selector;switch(typeof e){case"string":default:return null;case"object":return e.find((function(e){return e.type&&"SvgSelector"===e.type}))}}},{key:"fragmentSelector",get:function(){var e,t,n=this.selector;switch(typeof n){case"string":e=n.match(/xywh=(.*)$/);break;case"object":e=(t=n.find((function(e){return e.type&&"FragmentSelector"===e.type})))&&t.value.match(/xywh=(.*)$/);break;default:return null}return e&&e[1].split(",").map((function(e){return parseInt(e,10)}))}}])&&p(t.prototype,n),e}();function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.json=t,this.target=n}var t,n;return t=e,(n=[{key:"id",get:function(){return this.json.id}},{key:"present",value:function(){return this.items&&this.items.length>0}},{key:"items",get:function(){var e=this;return this._items=this._items||(e.json&&e.json.items?s()([e.json.items]).map((function(e){return new h(e)})):[]),this._items}},{key:"resources",get:function(){return this.items}}])&&g(t.prototype,n),e}();function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"determineAnnotation",value:function(e,t){return e?"AnnotationPage"===e.type?new m(e,t):new l.Z(e,t):null}}],null&&v(t.prototype,null),n&&v(t,n),e}(),b=n(2311),w=n(49455),E=n(1172),O=n(81610),x=["canvasId"];var S=function(e){return(0,b.z)(e).annotations},I=(0,r.createSelector)([E.iE,function(e,t){return t.motivations}],(function(e,t){return t||e.annotations.filteredMotivations})),C=(0,r.createSelector)([w.o_,S],(function(e,t){return t&&e&&t[e.id]?s()(Object.values(t[e.id])):[]})),_=(0,r.createSelector)([C],(function(e){return i()(Object.values(e).map((function(e){return e&&y.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),k=(0,r.createSelector)([function(e,t){var n=t.canvasId,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,x);return n?[n]:(0,w.Lc)(e,r)},S],(function(e,t){return t&&0!==e.length?s()(e.map((function(e){return t[e]&&Object.values(t[e])}))):[]})),T=(0,r.createSelector)([k],(function(e){return i()(Object.values(e).map((function(e){return e&&y.determineAnnotation(e.json)})),(function(e){return e&&e.present()}))})),P=(0,r.createSelector)([_,I],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),R=(0,r.createSelector)([T,I],(function(e,t){return i()(s()(e.map((function(e){return e.resources}))),(function(e){return e.motivations.some((function(e){return t.includes(e)}))}))})),A=(0,r.createSelector)([O.Jj],(function(e){return e.selectedAnnotationId})),j=(0,r.createSelector)([T,A],(function(e,t){return e.map((function(e){return{id:e["@id"]||e.id,resources:e.resources.filter((function(e){return t===e.id}))}})).filter((function(e){return e.resources.length>0}))}))},97193:(e,t,n)=>{"use strict";n.d(t,{CC:()=>m,f2:()=>v,pB:()=>b,v0:()=>y});var r=n(20573),o=n(66947),i=n(85564),a=n.n(i),s=n(7590),l=n(2311),u=n(1172),c=n(49455);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(0,r.createSelector)([u.iE],(function(e){var t=e.auth,n=(t=void 0===t?{}:t).serviceProfiles;return void 0===n?[]:n})),v=function(e){return(0,l.z)(e).accessTokens||{}},y=function(e){return(0,l.z)(e).auth||{}},b=(0,r.createSelector)([c.cw,c.k5,m,y,function(e,t){return t.iiifResources}],(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,l=i;if(!l&&e&&(l=a()(e.map((function(e){return new s.Z(e).iiifImageResources.map((function(e){var n=e.getServices()[0],r=t[n.id];return r&&r.json?h(h({},r.json),{},{options:{}}):n}))})))),!l)return[];if(0===l.length)return[];var u=l.map((function(e){var t,i,a=o.Utils.getServices(e),s=d(n);try{var l=function(){var e,n=i.value,o=d(a.filter((function(e){return n.profile===e.getProfile()})));try{for(o.s();!(e=o.n()).done;){var s=e.value;if(t=s,!r[s.id]||r[s.id].isFetching||r[s.id].ok)return{v:s}}}catch(e){o.e(e)}finally{o.f()}};for(s.s();!(i=s.n()).done;){var u=l();if("object"==typeof u)return u.v}}catch(e){s.e(e)}finally{s.f()}return t}));return Object.values(u.reduce((function(e,t){return t&&!e[t.id]&&(e[t.id]=t),e}),{}))}))},49455:(e,t,n)=>{"use strict";n.d(t,{o_:()=>m,TI:()=>I,jE:()=>E,hY:()=>w,vt:()=>S,LU:()=>g,Pm:()=>v,m7:()=>O,iQ:()=>x,Ul:()=>T,U$:()=>k,Lc:()=>y,Fg:()=>C,e0:()=>_,cw:()=>b,h2:()=>P,k5:()=>h});var r=n(20573),o=n(85564),i=n.n(o);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single";a(this,e),this.canvases=t,this.viewType=n,this._groupings=null}var t,n;return t=e,(n=[{key:"getCanvases",value:function(e){return"book"===this.viewType?this.groupings()[Math.ceil(e/2)]:this.groupings()[e]}},{key:"groupings",value:function(){if(this._groupings)return this._groupings;if("scroll"===this.viewType)return[this.canvases];if("book"!==this.viewType)return this.canvases.map((function(e){return[e]}));var e=[];return this.canvases.forEach((function(t,n){0!==n?n%2!=0?e.push([t]):e[Math.ceil(n/2)].push(t):e.push([t])})),this._groupings=e,e}}])&&s(t.prototype,n),e}(),u=n(7590),c=n(2311),d=n(81610),f=n(95981),p=n(89875),h=function(e){return(0,c.z)(e).infoResponses},g=(0,r.createSelector)([f.Mv],(function(e){return e&&e.getCanvases()||[]})),m=(0,r.createSelector)([f.Mv,function(e,t){return t.canvasId}],(function(e,t){if(e&&t)return e.getCanvasById(t)})),v=(0,r.createSelector)([f.Mv,d.Jj],(function(e,t){if(e&&t)return t.canvasId?e.getCanvasById(t.canvasId):e.getCanvasByIndex(0)})),y=(0,r.createSelector)([d.Jj],(function(e){return e&&(e.visibleCanvases||e.canvasId&&[e.canvasId])||[]})),b=(0,r.createSelector)([y,g],(function(e,t){return(t||[]).filter((function(t){return e.includes(t.id)}))})),w=(0,r.createSelector)([g,p.ys],(function(e,t){return e&&new l(e,t).groupings()})),E=(0,r.createSelector)([w,function(e,t){return t.canvasId}],(function(e,t){return e&&e.find((function(e){return e.some((function(e){return e.id===t}))}))||[]})),O=(0,r.createSelector)([w,v],(function(e,t,n){if(e&&t){var r=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(r<0||r+1>=e.length))return e[r+1]}})),x=(0,r.createSelector)([w,v],(function(e,t,n){if(e&&t){var r=e.findIndex((function(e){return e.some((function(e){return e.id===t.id}))}));if(!(r<1))return e[r-1]}})),S=(0,r.createSelector)([m],(function(e){return e&&(e.getLabel().length>0?e.getLabel().getValue():String(e.index+1))})),I=(0,r.createSelector)([m],(function(e){return e&&e.getProperty("description")})),C=(0,r.createSelector)([b],(function(e){return i()(e.map((function(e){return new u.Z(e).imageResources}))).filter((function(e){return e.getServices().length<1}))})),_=(0,r.createSelector)([b],(function(e){return i()(e.map((function(e){return new u.Z(e).videoResources})))})),k=(0,r.createSelector)([b],(function(e){return i()(e.map((function(e){return new u.Z(e).vttContent})))})),T=(0,r.createSelector)([b],(function(e){return i()(e.map((function(e){return new u.Z(e).audioResources})))})),P=(0,r.createSelector)([function(e,t){return t.infoId},m,h],(function(e,t,n){var r=e;if(!e){if(!t)return;var o=new u.Z(t).iiifImageResources[0];r=o&&o.getServices()[0].id}return r&&n[r]&&!n[r].isFetching&&n[r]}))},80923:(e,t,n)=>{"use strict";n.d(t,{AP:()=>x,KW:()=>h,SR:()=>p,Ve:()=>w,a5:()=>S,ig:()=>E,js:()=>g,mT:()=>I});var r=n(20573),o=n(7739),i=n.n(o),a=n(2311),s=n(81610);function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return(0,a.z)(e).companionWindows||{}}var h=(0,r.createSelector)([p,function(e,t){return t.companionWindowId}],(function(e,t){return t&&e[t]})),g=(0,r.createSelector)([s.Jj,p],(function(e,t){return e&&t[e.thumbnailNavigationId]&&t[e.thumbnailNavigationId].position})),m=(0,r.createSelector)([s.Ao,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(n,r){return d(d({},n),{},f({},r,i()(e[r].companionWindowIds,(function(e){return t[e]&&t[e].position}))))}),{})})),v=(0,r.createSelector)([s.Ao,p],(function(e,t){return(Object.keys(e)||[]).reduce((function(n,r){return d(d({},n),{},f({},r,i()(e[r].companionWindowIds.map((function(e){return t[e]})),(function(e){return e.position}))))}),{})})),y=(0,r.createSelector)([function(e,t){return t.windowId},v],(function(e,t){return t[e]||{}})),b=(0,r.createSelector)([function(e,t){return t.windowId},m],(function(e,t){return t[e]||{}})),w=(0,r.createSelector)([y,function(e,t){return{position:t.position}}],(function(e,t){return e[t.position]||O})),E=(0,r.createSelector)([y,function(e,t){return{content:t.content}}],(function(e,t){var n,r=t.content;return(n=[]).concat.apply(n,l(Object.values(e))).filter((function(e){return e.content===r}))})),O=[],x=(0,r.createSelector)([b,function(e,t){return{position:t.position}}],(function(e,t){return e[t.position]||O})),S=(0,r.createSelector)([function(e,t){return t.position},s.Jj],(function(e,t){if(!t)return!1;var n=t.companionAreaOpen,r=t.sideBarOpen;return"left"!==e||!(!n||!r)})),I=(0,r.createSelector)([y],(function(e){var t,n=0,r=0;return(t=[]).concat.apply(t,l(Object.values(e))).forEach((function(e){e.position.match(/right/)&&(n+=235),e.position.match(/bottom/)&&(r+=201)})),{height:r,width:n}}))},1172:(e,t,n)=>{"use strict";n.d(t,{$0:()=>y,CX:()=>g,_M:()=>p,gh:()=>h,iE:()=>c,iU:()=>d,tt:()=>v,vW:()=>m,yX:()=>f});var r=n(20573),o=n(9996),i=n.n(o),a=n(2311),s=n(81610);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return(0,a.z)(e||{}).config||{}}function d(e){var t=c(e).export;return Object.entries(t).reduce((function(t,n){var r=l(n,2),o=r[0],i=r[1];return!0===i?t[o]=e[o]:i.filter&&(t[o]=Object.entries(e[o]).filter(i.filter).reduce((function(e,t){var n=l(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),t}),{})}var f=(0,r.createSelector)([c],(function(e){var t=e.availableLanguages,n=e.language;return Object.keys(t).map((function(e){return{current:e===n,label:t[e],locale:e}}))})),p=(0,r.createSelector)([s.oq,c],(function(e,t){return void 0===e.showZoomControls?t.workspace.showZoomControls:e.showZoomControls})),h=(0,r.createSelector)([c],(function(e){var t=e.theme,n=e.themes,r=e.selectedTheme;return i()(t,n[r]||{})})),g=(0,r.createSelector)([c],(function(e){var t=e.themes;return Object.keys(t)})),m=(0,r.createSelector)([c],(function(e){return e.id})),v=(0,r.createSelector)([c],(function(e){return e.theme.direction||"ltr"})),y=(0,r.createSelector)([c],(function(e){return e.requests||{}}))},81610:(e,t,n)=>{"use strict";n.d(t,{Ao:()=>a,BF:()=>c,Eq:()=>d,FU:()=>i,Jj:()=>s,R4:()=>p,WC:()=>f,gA:()=>l,oq:()=>u});var r=n(20573),o=n(2311);function i(e){return Object.values((0,o.z)(e).windows).map((function(e){return e.manifestId}))}function a(e){return(0,o.z)(e).windows||{}}function s(e,t){var n=t.windowId;return a(e)[n]}var l=(0,r.createSelector)([function(e){return(0,o.z)(e).viewers},function(e,t){return t.windowId}],(function(e,t){return e[t]}));function u(e){return(0,o.z)(e).workspace}var c=(0,r.createSelector)([u],(function(e){return e.windowIds||[]}));function d(e){return(0,o.z)(e).manifests||{}}function f(e,t){var n=t.manifestId,r=t.windowId,o=d(e);return o&&o[n||r&&(s(e,{windowId:r})||{}).manifestId]}function p(e){return(0,o.z)(e).catalog||{}}},89658:(e,t,n)=>{"use strict";n.d(t,{SF:()=>c,e4:()=>u,o4:()=>s,xb:()=>l});var r=n(20573),o=n(7590),i=n(49455),a=n(2311),s=(0,r.createSelector)([i.o_],(function(e){return e?new o.Z(e).imageResources:[]})),l=(0,r.createSelector)([function(e){return(0,a.z)(e).layers||{}},function(e,t){return t.windowId},function(e,t){return t.canvasId}],(function(e,t,n){return(e[t]||{})[n]})),u=(0,r.createSelector)([s,l],(function(e,t){return t?e.sort((function(e,n){return t[e.id]&&void 0!==t[e.id].index&&t[n.id]&&void 0!==t[n.id].index?t[e.id].index-t[n.id].index:t[e.id]&&void 0!==t[e.id].index?-1:t[n.id]&&void 0!==t[n.id].index?1:0})):e})),c=(0,r.createSelector)([i.Lc,function(e,t){var n=t.windowId;return function(t){return l(e,{canvasId:t,windowId:n})}}],(function(e,t){return e.reduce((function(e,n){return e[n]=t(n),e}),{})}))},49676:(e,t,n)=>{"use strict";n.d(t,{AI:()=>C,Ar:()=>x,BP:()=>R,CA:()=>O,DH:()=>L,Ez:()=>A,Fx:()=>E,JK:()=>g,LJ:()=>P,Oo:()=>M,P3:()=>m,Qm:()=>j,Sy:()=>_,V9:()=>I,Yq:()=>T,_3:()=>k,h:()=>S,hi:()=>y,j8:()=>b,ys:()=>D});var r=n(20573),o=n(75879),i=n.n(o),a=n(66947),s=n(21306),l=n(14136),u=n(80923),c=n(81610),d=n(1172);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(e){var n=a.Utils.parseManifest(e,t?{locale:t}:void 0);return"function"!=typeof n.getSequences&&(n.getSequences=function(){return[]}),n}}var h=(0,r.createSelector)([u.KW,d.iE],(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.locale||t.language})),g=(0,r.createSelector)([c.WC],(function(e){return e||{missing:!0}})),m=(0,r.createSelector)([c.WC],(function(e){return e&&e.error})),v=i()(c.WC,h,(function(e,t){return e&&p(e.json,t)}))((function(e,t){var n=t.companionWindowId;return[t.manifestId,t.windowId,h(e,{companionWindowId:n})].join(" - ")})),y=(0,r.createSelector)(v,(function(e,t){return t.json}),h,(function(e,t,n){return t&&p(t,n)||e})),b=(0,r.createSelector)([y],(function(e){return e&&e.options&&e.options.locale&&e.options.locale.replace(/-.*$/,"")}));function w(e){return(0,r.createSelector)([y],(function(t){return t&&t.getProperty(e)}))}var E=(0,r.createSelector)([y],(function(e){return e&&e.getLogo()})),O=(0,r.createSelector)([w("provider"),b],(function(e,t){return e&&e[0].label&&a.PropertyValue.parse(e[0].label,t).getValue()})),x=(0,r.createSelector)([w("homepage"),b],(function(e,t){return e&&(0,l.Z)(e).map((function(e){return{label:a.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),S=(0,r.createSelector)([y],(function(e){return e&&e.getRenderings().map((function(e){return{label:e.getLabel().getValue(),value:e.id}}))})),I=(0,r.createSelector)([w("seeAlso"),b],(function(e,t){return e&&(0,l.Z)(e).map((function(e){return{format:e.format,label:a.PropertyValue.parse(e.label,t).getValue(),value:e.id||e["@id"]}}))})),C=(0,r.createSelector)([y],(function(e){return e&&(0,l.Z)(e.getRequiredStatement()).filter((function(e){return e.getValues().some((function(e){return e}))})).map((function(e){return{label:e.label&&e.label.getValue()||null,values:e.getValues()}}))})),_=(0,r.createSelector)([w("rights"),w("license"),b],(function(e,t,n){var r=e||t;return(0,l.Z)(a.PropertyValue.parse(r,n).getValues())}));function k(e,t){var n=y(e,t),r=(0,d.iE)(e).thumbnails,o=void 0===r?{}:r;if(n){var i=(0,s.Z)(n,{maxHeight:80,maxWidth:120,preferredFormats:o.preferredFormats});return i&&i.url}}var T=(0,r.createSelector)([y],(function(e){return e&&e.getLabel().getValue()})),P=(0,r.createSelector)([y],(function(e){return e&&e.getDescription().getValue()})),R=(0,r.createSelector)([y],(function(e){return e&&e.id}));function A(e){return e&&e.getMetadata().map((function(e){return{label:e.getLabel(),values:e.getValues()}}))}var j=(0,r.createSelector)([y],(function(e){return e&&A(e)}));function N(e){var t,n=[];return Array.isArray(e)?n.push.apply(n,function(e){if(Array.isArray(e))return f(e)}(t=e.filter((function(e){return"object"==typeof e&&e["@language"]})).map((function(e){return e["@language"]})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):e&&"object"==typeof e&&e["@language"]&&n.push(e["@language"]),n}var D=(0,r.createSelector)([y],(function(e){return function(e){if(!e)return[];for(var t=e.getProperty("metadata")||[],n={},r=0;r<t.length;r+=1){var o=t[r];N(o.label).forEach((function(e){n[e]=!0})),N(o.value).forEach((function(e){n[e]=!0}))}return Object.keys(n)}(e)})),M=(0,r.createSelector)([y],(function(e){return e&&(e.getService("http://iiif.io/api/search/0/search")||e.getService("http://iiif.io/api/search/1/search"))||null})),L=(0,r.createSelector)([M],(function(e){var t=e&&(e.getService("http://iiif.io/api/search/0/autocomplete")||e.getService("http://iiif.io/api/search/1/autocomplete"));return t&&t}))},31456:(e,t,n)=>{"use strict";n.d(t,{$p:()=>S,U_:()=>C,VZ:()=>x,jh:()=>I,q0:()=>w});var r=n(20573),o=n(93386),i=n.n(o),a=n(82569),s=n.n(a),l=n(66947),u=n(49455),c=n(80923),d=n(95981);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e){return void 0===e.parentNode?[]:void 0===e.parentNode.parentNode?[e.parentNode.id]:[].concat(g(v(e.parentNode)),[e.parentNode.id])}function y(e,t){return e.reduce((function(e,n){var r=[];r.push.apply(r,g(e));var o=t.reduce((function(e,t){return e||function(e,t){for(var n=e.getCanvasIds(),r=0;r<n.length;r+=1)if(l.Utils.normalisedUrlsMatch(n[r],t))return!0;return!1}(n.data,t)}),!1),i=n.nodes.length>0?y(n.nodes,t):[];return r.push.apply(r,g(i)),(o||i.length>0)&&r.push({containsVisibleCanvas:o,descendantsContainVisibleCanvas:i.length>0,id:n.id,leaf:0===n.nodes.length,parentIds:v(n)}),r}),[])}var b=(0,r.createSelector)([d.OL,u.Lc],(function(e,t){return 0!==t.length&&e?y(e.nodes,t):[]})),w=(0,r.createSelector)([b],(function(e){return e.map((function(e){return e.id}))})),E=(0,r.createSelector)([b],(function(e){return e.reduce((function(e,t){return t.leaf||!t.descendantsContainVisibleCanvas?e:[].concat(g(e),[t.id])}),[])})),O=(0,r.createSelector)([b],(function(e){return e.reduce((function(e,t){return t.containsVisibleCanvas?[].concat(g(e),[t]):e}),[])}));function x(e,t,n){var r=t.companionWindowId,o=(0,c.KW)(e,{companionWindowId:r});return o.tocNodes?Object.keys(o.tocNodes).reduce((function(e,t){return o.tocNodes[t].expanded===n?[].concat(g(e),[t]):e}),[]):[]}function S(e,t){var n=t.companionWindowId,r=t.windowId,o=E(e,{companionWindowId:n,windowId:r}),a=x(e,{companionWindowId:n},!0),l=x(e,{companionWindowId:n},!1);return s().apply(void 0,[i()(a,o)].concat(g(l)))}function I(e,t){var n=h({},t),r=O(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n)),o=x(e,n,!1);if(r&&r.length>0){for(var i=0;i<r[0].parentIds.length;i+=1)if(-1!==o.indexOf(r[0].parentIds[i]))return r[0].parentIds[i];return r[0].id}return null}var C=(0,r.createSelector)([d.OL],(function(e){return e&&e.nodes&&e.nodes.length>0?"tableOfContents":"item"}))},51580:(e,t,n)=>{"use strict";n.d(t,{IC:()=>S,QW:()=>P,YM:()=>k,b2:()=>w,fB:()=>v,hv:()=>_,iV:()=>C,kM:()=>I,ku:()=>O,rZ:()=>x,uP:()=>g,uQ:()=>y,x6:()=>m,zm:()=>f});var r=n(20573),o=n(66947),i=n(85564),a=n.n(i),s=n(95458),l=n(49455),u=n(81610),c=n(49676),d=n(2311),f=(0,r.createSelector)([function(e,t){return t.windowId},function(e){return(0,d.z)(e).searches}],(function(e,t){return e&&t?t[e]:{}})),p=(0,r.createSelector)([f,function(e,t){return t.companionWindowId}],(function(e,t){if(e&&t)return e[t]})),h=(0,r.createSelector)([p],(function(e){return e?Object.values(e.data):[]})),g=(0,r.createSelector)([p],(function(e){return e&&e.query})),m=(0,r.createSelector)([h],(function(e){return e.some((function(e){return e.isFetching}))})),v=(0,r.createSelector)([p],(function(e){var t,n;if(e&&e.data){var r=Object.values(e.data).find((function(e){return!e.isFetching&&e.json&&e.json.within}));return null==r||null===(t=r.json)||void 0===t||null===(n=t.within)||void 0===n?void 0:n.total}})),y=(0,r.createSelector)([p],(function(e){if(e&&e.data){var t=Object.values(e.data).find((function(t){return!t.isFetching&&t.json&&t.json.next&&!e.data[t.json.next]}));return t&&t.json&&t.json.next}})),b=(0,r.createSelector)([h],(function(e){return a()(e.map((function(e){return e&&e.json&&!e.isFetching&&e.json.hits?e.json.hits:[]})))})),w=(0,r.createSelector)([b,l.LU,function(e,t){var n=t.companionWindowId,r=t.windowId;return function(t){return _(e,{annotationUri:t,companionWindowId:n,windowId:r})}}],(function(e,t,n){if(!t||0===t.length)return[];if(!e||0===e.length)return[];var r=t.map((function(e){return e.id}));return[].concat(e).sort((function(e,t){var o=n(e.annotations[0]),i=n(t.annotations[0]);return r.indexOf(o.targetId)-r.indexOf(i.targetId)}))})),E=function(e){var t=e.map((function(e){if(e&&e.json&&!e.isFetching&&e.json.resources){var t=new s.Z(e.json);return{id:t.id,resources:t.resources}}})).filter(Boolean);return{id:(t.find((function(e){return e.id}))||{}).id,resources:a()(t.map((function(e){return e.resources})))}},O=(0,r.createSelector)([h],(function(e){return e&&E(e)}));function x(e,t){if(!e||!e.resources||0===e.length)return[];if(!t||0===t.length)return[];var n=t.map((function(e){return e.id}));return[].concat(e.resources).sort((function(e,t){return n.indexOf(e.targetId)-n.indexOf(t.targetId)}))}var S=(0,r.createSelector)([O,l.LU],(function(e,t){return x(e,t)})),I=(0,r.createSelector)([f],(function(e){return e?Object.values(e).map((function(e){return Object.values(e.data)})).map((function(e){return E(e)})).filter((function(e){return e.resources.length>0})):[]})),C=(0,r.createSelector)([u.Jj,p],(function(e,t){return t&&t.selectedContentSearchAnnotationIds||[]})),_=(0,r.createSelector)([O,function(e,t){return t.annotationUri}],(function(e,t){return e.resources.find((function(e){return e.id===t}))})),k=(0,r.createSelector)([_,c.j8],(function(e,t){return e&&e.resource&&e.resource.label?o.PropertyValue.parse(e.resource.label,t).getValues():[]})),T=(0,r.createSelector)([I,function(e,t){return t.annotationId}],(function(e,t){return a()(e.map((function(e){return e.resources}))).find((function(e){return e.id===t}))})),P=(0,r.createSelector)([T,function(e,t){var n=t.windowId;return function(t){return(0,l.o_)(e,{canvasId:t,windowId:n})}}],(function(e,t){var n=e&&e.targetId;return n&&t(n)}))},95981:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>u,Mv:()=>l,OL:()=>p,Xf:()=>d,nH:()=>s,qN:()=>c,rm:()=>f});var r=n(20573),o=n(66947),i=n(49676),a=n(81610),s=(0,r.createSelector)([i.hi],(function(e){if(!e||!e.getTopRanges)return null;var t=e.getTopRanges(),n=[];return 0===t.filter((function(e){return"top"===e.getProperty("viewingHint")})).length&&1===t.length&&(n=t[0].getRanges().filter((function(e){return"sequence"===e.getBehavior()}))),[].concat(e.getSequences(),n)})),l=(0,r.createSelector)([s,a.Jj,function(e,t){return t.sequenceId}],(function(e,t,n){if(!e)return null;if(n||t&&t.sequenceId){var r=e.find((function(e){return e.id===(n||t.sequenceId)}));if(r)return r}return e[0]})),u=(0,r.createSelector)([a.Jj,l],(function(e,t){return(t&&e&&e.canvasId&&t.getCanvasById(e.canvasId)||{}).index||0})),c=(0,r.createSelector)([l,i.hi],(function(e,t){return t&&(e&&e.getViewingHint()||t.getViewingHint())||null})),d=(0,r.createSelector)([a.Jj,l,i.hi],(function(e,t,n){return e&&e.viewingDirection||t&&t.getViewingDirection()||n&&n.getViewingDirection()||null})),f=(0,r.createSelector)([l,i.hi],(function(e,t){if(!t||!e)return[];var n=e&&e.getProperty("behavior");if(n)return Array.isArray(n)?n:[n];var r=t.getProperty("behavior");return r?Array.isArray(r)?r:[r]:[]})),p=(0,r.createSelector)([l,i.hi],(function(e,t){return e&&e.getProperty("type")&&e.isRange()?e.getTree(new o.TreeNode("root")):t&&t.getDefaultTree()}))},2311:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(73818);function o(e){return r.Z.state.slice?e[r.Z.state.slice]:e}},42383:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r=n(20573),o=n(98179),i=n(49455),a=n(89658),s=n(95981),l=(0,r.createSelector)(i.cw,a.SF,s.Xf,(function(e,t,n){return new o.Z(e,t,n)}))},89875:(e,t,n)=>{"use strict";n.d(t,{$h:()=>v,Em:()=>f,Gh:()=>m,ZK:()=>p,lV:()=>h,ys:()=>g});var r=n(20573),o=n(49676),i=n(1172),a=n(81610),s=n(31001),l=n(95981);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=(0,r.createSelector)([i.iE,a.Jj],(function(e){var t=e.window,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(c({},t),n)}));function p(e){var t={};return Object.keys((0,a.Ao)(e)).forEach((function(n){t[n]=(0,o.Yq)(e,{windowId:n})})),t}var h=(0,r.createSelector)([a.Ao],(function(e){return Object.values(e).filter((function(e){return!0===e.maximized})).map((function(e){return e.id}))})),g=(0,r.createSelector)([a.Jj,f,l.qN,l.rm],(function(e,t,n,r){var o=t.views,i=void 0===o?[]:o,a=t.defaultView;if(e&&e.view)return e.view;var s=(i||[]).find((function(e){return e.behaviors&&e.behaviors.some((function(e){return n===e||r.includes(e)}))}));return s&&s.key||a})),m=(0,r.createSelector)([l.qN,l.rm,f],(function(e,t,n){var r=n.views,o=void 0===r?[]:r,i=n.defaultView;return(o||[]).reduce((function(n,r){return r.key!==i&&r.behaviors&&!r.behaviors.some((function(n){return e===n||t.includes(n)}))||n.push(r.key),n}),[])})),v=(0,r.createSelector)([s.WM,a.Jj,function(e){return(0,a.BF)(e).length>1}],(function(e,t,n){return"elastic"===e||n&&t&&!1===t.maximized}))},31001:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>f,By:()=>l,Fr:()=>s,WM:()=>c,xp:()=>u});var r=n(20573),o=n(81610),i=n(2311);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return(0,i.z)(e).elasticLayout}var l=(0,r.createSelector)([o.oq],(function(e){return e.isFullscreenEnabled}));function u(e){var t,n,r=(t=(0,i.z)(e).errors.items,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(t,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.")}())[0];return(0,i.z)(e).errors[r]}var c=(0,r.createSelector)([o.oq],(function(e){return e.type})),d=(0,r.createSelector)([o.oq],(function(e){return e.focusedWindowId})),f=function(e,t){var n=t.windowId;return d(e)===n}},53001:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>c});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)};for(var l=[],u=0;u<256;++u)l.push((u+256).toString(16).substr(1));const c=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n}(r)}},40015:(e,t,n)=>{"use strict";const r="undefined"==typeof URL?n(8575).URL:URL,o=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),i=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},Reflect.has(t,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(t,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(t,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{const n=e.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!n)throw new Error(`Invalid URL: ${e}`);const r=n[1].split(";"),o=n[2],i=t?"":n[3];let a=!1;"base64"===r[r.length-1]&&(r.pop(),a=!0);const s=(r.shift()||"").toLowerCase(),l=[...r.map((e=>{let[t,n=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(n=n.toLowerCase(),"us-ascii"===n)?"":`${t}${n?`=${n}`:""}`})).filter(Boolean)];return a&&l.push("base64"),(0!==l.length||s&&"text/plain"!==s)&&l.unshift(s),`data:${l.join(";")},${a?o.trim():o}${i?`#${i}`:""}`})(e,t);const n=e.startsWith("//");!n&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const i=new r(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===i.protocol&&(i.protocol="http:"),t.forceHttps&&"http:"===i.protocol&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash&&(i.hash=""),i.pathname&&(i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,((e,t)=>/^(?!\/)/g.test(t)?`${t}/`:"/"))),i.pathname&&(i.pathname=decodeURI(i.pathname)),!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const n=e[e.length-1];o(n,t.removeDirectoryIndex)&&(e=e.slice(0,e.length-1),i.pathname=e.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const e of[...i.searchParams.keys()])o(e,t.removeQueryParameters)&&i.searchParams.delete(e);return t.sortQueryParameters&&i.searchParams.sort(),t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,"")),e=i.toString(),!t.removeTrailingSlash&&"/"!==i.pathname||""!==i.hash||(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};e.exports=i,e.exports.default=i},27418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},92703:(e,t,n)=>{"use strict";var r=n(50414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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 n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74971:function(e,t,n){var r;e=n.nmd(e),function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,l=36,u=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function g(e){throw RangeError(f[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(d,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function b(e){return m(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=l)e=p(e/35);return p(r+36*e/(e+38))}function O(e){var t,n,r,o,i,a,u,c,d,f,h,m=[],v=e.length,y=0,w=128,O=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(i=y,a=1,u=l;o>=v&&g("invalid-input"),((c=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:l)>=l||c>p((s-y)/a))&&g("overflow"),y+=c*a,!(c<(d=u<=O?1:u>=O+26?26:u-O));u+=l)a>p(s/(f=l-d))&&g("overflow"),a*=f;O=E(y-i,t=m.length+1,0==i),p(y/t)>s-w&&g("overflow"),w+=p(y/t),y%=t,m.splice(y++,0,w)}return b(m)}function x(e){var t,n,r,o,i,a,u,c,d,f,m,v,b,O,x,S=[];for(v=(e=y(e)).length,t=128,n=0,i=72,a=0;a<v;++a)(m=e[a])<128&&S.push(h(m));for(r=o=S.length,o&&S.push("-");r<v;){for(u=s,a=0;a<v;++a)(m=e[a])>=t&&m<u&&(u=m);for(u-t>p((s-n)/(b=r+1))&&g("overflow"),n+=(u-t)*b,t=u,a=0;a<v;++a)if((m=e[a])<t&&++n>s&&g("overflow"),m==t){for(c=n,d=l;!(c<(f=d<=i?1:d>=i+26?26:d-i));d+=l)x=c-f,O=l-f,S.push(h(w(f+x%O,0))),c=p(x/O);S.push(h(w(c,0))),i=E(n,b,r==o),n=0,++r}++n,++t}return S.join("")}a={version:"1.3.2",ucs2:{decode:y,encode:b},decode:O,encode:x,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?O(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(n);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u<l;++u){var c,d,f,p,h=e[u].replace(a,"%20"),g=h.indexOf(r);g>=0?(c=h.substr(0,g),d=h.substr(g+1)):(c=h,d=""),f=decodeURIComponent(c),p=decodeURIComponent(d),t(i,f)?Array.isArray(i[f])?i[f].push(p):i[f]=[i[f],p]:i[f]=p}return i}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,o){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+r;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[o]))})).join(n):o?encodeURIComponent(t(o))+r+encodeURIComponent(t(e)):""}},17673:(e,t,n)=>{"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},75879:function(e,t,n){!function(e,t){"use strict";function n(e){return"string"==typeof e||"number"==typeof e}var r=function(){function e(){this._cache={}}var t=e.prototype;return t.set=function(e,t){this._cache[e]=t},t.get=function(e){return this._cache[e]},t.remove=function(e){delete this._cache[e]},t.clear=function(){this._cache={}},t.isValidCacheKey=function(e){return n(e)},e}(),o=r,i=function(){return!0};function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,r){if(r)throw new Error('[re-reselect] "options" as second argument is not supported anymore. Please provide an option object as single argument.');var a="function"==typeof e?{keySelector:e}:Object.assign({},e),s=0,l=n.pop(),u=Array.isArray(n[0])?n[0]:[].concat(n);n.push((function(){return s++,l.apply(void 0,arguments)}));var c=a.cacheObject||new o,d=a.selectorCreator||t.createSelector,f=c.isValidCacheKey||i;a.keySelectorCreator&&(a.keySelector=a.keySelectorCreator({keySelector:a.keySelector,inputSelectors:u,resultFunc:l}));var p=function(){var e=a.keySelector.apply(a,arguments);if(f(e)){var t=c.get(e);return void 0===t&&(t=d.apply(void 0,n),c.set(e,t)),t.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+e+'" has been returned by keySelector function.')};return p.getMatchingSelector=function(){var e=a.keySelector.apply(a,arguments);return c.get(e)},p.removeMatchingSelector=function(){var e=a.keySelector.apply(a,arguments);c.remove(e)},p.clearCache=function(){c.clear()},p.resultFunc=l,p.dependencies=u,p.cache=c,p.recomputations=function(){return s},p.resetRecomputations=function(){return s=0},p.keySelector=a.keySelector,p}}function s(e){if(void 0===e)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(e)||e<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var l=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._cacheOrdering.push(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._cache[e]},t.remove=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t.isValidCacheKey=function(e){return n(e)},e}(),u=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache={},this._cacheOrdering=[],this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache[e]=t,this._registerCacheHit(e),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},t.get=function(e){return this._registerCacheHit(e),this._cache[e]},t.remove=function(e){this._deleteCacheHit(e),delete this._cache[e]},t.clear=function(){this._cache={},this._cacheOrdering=[]},t._registerCacheHit=function(e){this._deleteCacheHit(e),this._cacheOrdering.push(e)},t._deleteCacheHit=function(e){var t=this._cacheOrdering.indexOf(e);t>-1&&this._cacheOrdering.splice(t,1)},t.isValidCacheKey=function(e){return n(e)},e}(),c=function(){function e(){this._cache=new Map}var t=e.prototype;return t.set=function(e,t){this._cache.set(e,t)},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),d=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){return this._cache.get(e)},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}(),f=function(){function e(e){var t=(void 0===e?{}:e).cacheSize;s(t),this._cache=new Map,this._cacheSize=t}var t=e.prototype;return t.set=function(e,t){if(this._cache.set(e,t),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},t.get=function(e){var t=this._cache.get(e);return this._cache.has(e)&&(this.remove(e),this._cache.set(e,t)),t},t.remove=function(e){this._cache.delete(e)},t.clear=function(){this._cache.clear()},e}();e.FifoMapCache=d,e.FifoObjectCache=l,e.FlatMapCache=c,e.FlatObjectCache=r,e.LruMapCache=f,e.LruObjectCache=u,e.createCachedSelector=a,e.createStructuredCachedSelector=function(e){return t.createStructuredSelector(e,a)},e.default=a,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(20573))},86746:(e,t,n)=>{"use strict";n.d(t,{Kd:()=>p,TJ:()=>w});var r=n(67294),o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},i=function(e){var t=e.message,n=e["aria-live"];return r.createElement("div",{style:o,role:"log","aria-live":n},t||"")};i.propTypes={};const a=i;function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,r;s(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=l(this,e.call.apply(e,[this].concat(i))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.oldPolitemessage,r=t.oldPoliteMessageId,o=t.oldAssertiveMessage,i=t.oldAssertiveMessageId,a=e.politeMessage,s=e.politeMessageId,l=e.assertiveMessage,u=e.assertiveMessageId;return n!==a||r!==s?{politeMessage1:t.setAlternatePolite?"":a,politeMessage2:t.setAlternatePolite?a:"",oldPolitemessage:a,oldPoliteMessageId:s,setAlternatePolite:!t.setAlternatePolite}:o!==l||i!==u?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:u,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,n=e.assertiveMessage2,o=e.politeMessage1,i=e.politeMessage2;return r.createElement("div",null,r.createElement(a,{"aria-live":"assertive",message:t}),r.createElement(a,{"aria-live":"assertive",message:n}),r.createElement(a,{"aria-live":"polite",message:o}),r.createElement(a,{"aria-live":"polite",message:i}))},t}(r.Component);u.propTypes={};const c=u;function d(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const f=r.createContext({announceAssertive:d,announcePolite:d}),p=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,n=e.politeMessageId,o=e.announceAssertiveMessage,i=e.assertiveMessageId,a=e.updateFunctions;return r.createElement(f.Provider,{value:a},this.props.children,r.createElement(c,{assertiveMessage:o,assertiveMessageId:i,politeMessage:t,politeMessageId:n}))},t}(r.Component);var h=n(71171),g=n.n(h);function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=function(e){function t(){var n,r;m(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=v(this,e.call.apply(e,[this].concat(i))),r.announce=function(){var e=r.props,t=e.message,n=e["aria-live"],o=e.announceAssertive,i=e.announcePolite;"assertive"===n&&o(t||"",g()()),"polite"===n&&i(t||"",g()())},v(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,n=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(n(""),r(""))},t.prototype.render=function(){return null},t}(r.Component);y.propTypes={};Object.assign;var b=function(e){var t=e.children;return r.createElement(f.Consumer,null,(function(e){return t(e)}))};b.propTypes={};const w=b},42166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILE:()=>r,TEXT:()=>i,URL:()=>o});var r="__NATIVE_FILE__",o="__NATIVE_URL__",i="__NATIVE_TEXT__"},64030:(e,t,n)=>{"use strict";function r(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t),n.d(t,{NativeTypes:()=>p,default:()=>T,getEmptyImage:()=>k});var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),e}(),a=r((function(){return/firefox/i.test(navigator.userAgent)})),s=r((function(){return Boolean(window.safari)}));function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],u=[],c=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],u.push(a),l.push(s),c.push(s/a);for(var f=[c[0]],p=0;p<u.length-1;p++){var h=c[p],g=c[p+1];if(h*g<=0)f.push(0);else{a=u[p];var m=u[p+1],v=a+m;f.push(3*v/((v+m)/h+(v+a)/g))}}f.push(c[c.length-1]);for(var y,b=[],w=[],E=0;E<f.length-1;E++){y=c[E];var O=f[E],x=1/u[E],S=O+f[E+1]-y-y;b.push((y-O-S)*x),w.push(S*x*x)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t,n;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=i.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&l(t.prototype,n),e}();function c(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function d(e){return{x:e.clientX,y:e.clientY}}var f,p=n(42166);function h(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=(g(f={},p.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),g(f,p.URL,{exposeProperties:{urls:function(e,t){return h(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),g(f,p.TEXT,{exposeProperties:{text:function(e,t){return h(e,t,"")}},matchesTypes:["Text","text/plain"]}),f);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&v(t.prototype,n),e}();function b(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(m).filter((function(e){return m[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&w(t.prototype,n),e}();function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C,_=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return c(r.sourceNodes.get(e))},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return r.document&&r.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=d(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=b(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var l=r.monitor.getSourceId(),f=r.sourceNodes.get(l),p=r.sourcePreviewNodes.get(l)||f;if(p){var h=r.getCurrentSourcePreviewNodeOptions(),g=function(e,t,n,r,o){var i,l,d="IMG"===(i=t).nodeName&&(a()||!document.documentElement.contains(i)),f=c(d?e:t),p={x:n.x-f.x,y:n.y-f.y},h=e.offsetWidth,g=e.offsetHeight,m=r.anchorX,v=r.anchorY,y=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return s()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(d,t,h,g),b=y.dragPreviewWidth,w=y.dragPreviewHeight,E=o.offsetX,O=o.offsetY,x=0===O||O;return{x:0===E||E?E:new u([0,.5,1],[p.x,p.x/h*b,p.x+b-h]).interpolate(m),y:x?O:(l=new u([0,.5,1],[p.y,p.y/g*w,p.y+w-g]).interpolate(v),s()&&d&&(l+=(window.devicePixelRatio-1)*w),l)}}(f,p,n,{anchorX:h.anchorX,anchorY:h.anchorY},{offsetX:h.offsetX,offsetY:h.offsetY});o.setDragImage(p,g.x,g.y)}}try{o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=b(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;r.dragEnterTargetIds=[],r.monitor.isDragging()&&(r.altKeyPressed=e.altKey,a()||r.actions.hover(t,{clientOffset:d(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:d(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&r.currentNativeSource.loadDataTransfer(e.dataTransfer),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:d(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new E(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}var t,n;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return x({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return x({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(p).some((function(t){return p[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new y(m[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&I(t.prototype,n),e}();function k(){return C||((C=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),C}const T=function(e,t){return new _(e,t)}},42790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(64030)),o=a(n(4036)),i=n(88460);function a(e){return e&&e.__esModule?e:{default:e}}var s={backends:[{backend:r.default,transition:i.MouseTransition},{backend:o.default,options:{enableMouseEvents:!0},preview:!0,transition:i.TouchTransition}]};t.default=s},95320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DndProvider:()=>c,HTML5DragTransition:()=>r.HTML5DragTransition,MouseTransition:()=>r.MouseTransition,Preview:()=>w,PreviewContext:()=>h,TouchTransition:()=>r.TouchTransition,createTransition:()=>r.createTransition,default:()=>r.default,usePreview:()=>E});var r=n(88460),o=n(67294),i=n(45697),a=n.n(i),s=n(89862);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}var u=o.createContext(null),c=function(e){var t=(0,o.useRef)();return o.createElement(u.Provider,{value:t.current},o.createElement(s.W,l({backend:r.default},e)),o.createElement("div",{ref:t}))};c.propTypes={manager:a().any,context:a().any,options:a().any,debugMode:a().bool};var d=n(73935),f=n(79336),p=function(){var e,t,n=(0,f.f)((function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}}));return n.isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:(e=n.currentOffset,t="translate(".concat(e.x,"px, ").concat(e.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t})}:{display:!1}},h=o.createContext();var g=function(e){var t,n=p(),r=n.display,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["display"]);return r?(t=e.children&&"function"==typeof e.children?e.children(i):e.children?e.children:e.generator(i),o.createElement(h.Provider,{value:i},t)):null};g.propTypes={generator:a().func,children:a().oneOfType([a().node,a().func])};const m=g;var v=n(5293);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=function(){var e,t,n=(e=(0,o.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||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.")}()),r=n[0],i=n[1],a=(0,o.useContext)(v.L);return(0,o.useEffect)((function(){var e={backendChanged:function(e){i(e.previewEnabled())}},t=a.dragDropManager.getBackend().previews;return t.register(e),function(){t.unregister(e)}}),[a,i]),r},w=function(e){var t=b(),n=(0,o.useContext)(u);if(!t)return null;var r=o.createElement(m,e);return n?d.createPortal(r,n):r};w.Context=h,w.propTypes=m.propTypes;var E=function(){var e=b(),t=p();return e?t:{display:!1}}},4036:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,o=n(28195);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));function i(e){return void 0===e.button||0===e.button}function a(e){return!!e.targetTouches}function s(e,t){return a(e)?function(e,t){return 1===e.targetTouches.length?s(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?s(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}const l=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c,d=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=n,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(r[e]=t[e])}))}var t,n;return t=e,(n=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&u(t.prototype,n),e}();function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(p(c={},r.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),p(c,r.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),p(c,r.keyboard,{keydown:"keydown"}),c),g=function(){function e(t,n,o){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){return function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}}(l.sourceNodes[e])},this.handleTopMoveStartCapture=function(e){i(e)&&(l.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(l.moveStartSourceIds)&&l.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(i(e)){var t=s(e);t&&(a(e)&&(l.lastTargetTouchFallback=e.targetTouches[0]),l._mouseClientOffset=t),l.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(i(e)){var t=e.type===h.touch.start?l.options.delayTouchStart:l.options.delayMouseStart;l.timeout=setTimeout(l.handleTopMoveStart.bind(l,e),t),l.waitingForDelay=!0}},this.handleTopMoveCapture=function(){l.dragOverTargetIds=[]},this.handleMove=function(e,t){l.dragOverTargetIds&&l.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(l.timeout&&clearTimeout(l.timeout),l.document&&!l.waitingForDelay){var t,n,r,o,i=l.moveStartSourceIds,a=l.dragOverTargetIds,u=l.options.enableHoverOutsideTarget,c=s(e,l.lastTargetTouchFallback);if(c)if(l._isScrolling||!l.monitor.isDragging()&&function(e,t,n,r,o){if(!o)return!1;for(var i=180*Math.atan2(r-t,n-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(l._mouseClientOffset.x||0,l._mouseClientOffset.y||0,c.x,c.y,l.options.scrollAngleRanges))l._isScrolling=!0;else if(!l.monitor.isDragging()&&l._mouseClientOffset.hasOwnProperty("x")&&i&&(t=l._mouseClientOffset.x||0,n=l._mouseClientOffset.y||0,r=c.x,o=c.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(o-n),2))>(l.options.touchSlop?l.options.touchSlop:0))&&(l.moveStartSourceIds=void 0,l.actions.beginDrag(i,{clientOffset:l._mouseClientOffset,getSourceClientOffset:l.getSourceClientOffset,publishSource:!1})),l.monitor.isDragging()){var d=l.sourceNodes[l.monitor.getSourceId()];l.installSourceNodeRemovalObserver(d),l.actions.publishDragSource(),e.preventDefault();var f=(a||[]).map((function(e){return l.targetNodes[e]})),p=l.options.getDropTargetElementsAtPoint?l.options.getDropTargetElementsAtPoint(c.x,c.y,f):l.document.elementsFromPoint(c.x,c.y),h=[];for(var g in p)if(p.hasOwnProperty(g)){var m=p[g];for(h.push(m);m;)m=m.parentElement,-1===h.indexOf(m)&&h.push(m)}var v=h.filter((function(e){return f.indexOf(e)>-1})).map((function(e){for(var t in l.targetNodes)if(e===l.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(u)for(var y in l.targetNodes)if(l.targetNodes[y]&&l.targetNodes[y].contains(d)&&-1===v.indexOf(y)){v.unshift(y);break}v.reverse(),l.actions.hover(v,{clientOffset:c})}}},this.handleTopMoveEndCapture=function(e){l._isScrolling=!1,l.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(1&e.buttons)}(e)&&(l.monitor.isDragging()&&!l.monitor.didDrop()?(e.preventDefault(),l._mouseClientOffset={},l.uninstallSourceNodeRemovalObserver(),l.actions.drop(),l.actions.endDrag()):l.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&l.monitor.isDragging()&&(l._mouseClientOffset={},l.uninstallSourceNodeRemovalObserver(),l.actions.endDrag())},this.options=new d(o,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}var t,n;return t=e,(n=[{key:"setup",value:function(){this.window&&((0,o.k)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,r){var o=l?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=h[r][t];i&&e.addEventListener(i,n,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=l?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=h[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes[e]=t,this.addEventListener(t,"start",r),function(){delete n.sourceNodes[e],n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){return null};var r=function(r){if(n.document&&n.monitor.isDragging()){var o;switch(r.type){case h.mouse.move:o={x:r.clientX,y:r.clientY};break;case h.touch.move:o={x:r.touches[0].clientX,y:r.touches[0].clientY}}var i=null!=o?n.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(r,e):void 0}};return this.addEventListener(this.document.body,"move",r),this.targetNodes[e]=t,function(){n.document&&(delete n.targetNodes[e],n.removeEventListener(n.document.body,"move",r))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&f(t.prototype,n),e}();const m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new g(e,t,n)}},5293:(e,t,n)=>{"use strict";n.d(t,{L:()=>De,W:()=>Me});var r=n(67294),o=n(97779),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",s="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",u="dnd-core/DROP",c="dnd-core/END_DRAG",d=function(e,t){return e===t};function f(e,t){return!e&&!t||!(!e||!t)&&e.x===t.x&&e.y===t.y}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case i:case a:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case l:return f(e.clientOffset,n.clientOffset)?e:g({},e,{clientOffset:n.clientOffset});case c:case u:return v;default:return e}}var b="dnd-core/ADD_SOURCE",w="dnd-core/ADD_TARGET",E="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function x(e){return x="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},x(e)}function S(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function I(e,t){return e.filter((function(e){return e!==t}))}function C(e){return"object"===x(e)}function _(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e,t){1===e&&o.push(t)})),o}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case a:return T({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case s:return T({},e,{isSourcePublic:!0});case l:return T({},e,{targetIds:n.targetIds});case O:return-1===e.targetIds.indexOf(n.targetId)?e:T({},e,{targetIds:I(e.targetIds,n.targetId)});case u:return T({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case c:return T({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case b:case w:return e+1;case E:case O:return e-1;default:return e}}var N=[],D=[];function M(e,t){return e!==N&&(e===D||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}function L(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case b:case w:case O:case E:return N;default:return D}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=_(r,i),s=a.length>0||!p(r,i);if(!s)return N;var u=i[i.length-1],c=r[r.length-1];return u!==c&&(u&&a.push(u),c&&a.push(c)),a}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:L(e.dirtyHandlerIds,{type:t.type,payload:W({},t.payload,{prevTargetIds:S(e,"dragOperation.targetIds",[])})}),dragOffset:y(e.dragOffset,t),refCount:j(e.refCount,t),dragOperation:A(e.dragOperation,t),stateId:Z(e.stateId)}}N.__IS_NONE__=!0,D.__IS_ALL__=!0;var U=n(28195);function H(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var V={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function G(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,s=n.getSourceClientOffset,l=e.getMonitor(),u=e.getRegistry();e.dispatch(H(i)),q(t,l,u);var c=Y(t,l);if(null!==c){var d=null;i&&($(s),d=s(c)),e.dispatch(H(i,d));var f=u.getSource(c),p=f.beginDrag(l,c);K(p),u.pinSource(c);var h=u.getSourceType(c);return{type:a,payload:{itemType:h,item:p,sourceId:c,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}e.dispatch(V)}}function q(e,t,n){(0,U.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,U.k)(n.getSource(e),"Expected sourceIds to be registered.")}))}function $(e){(0,U.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function K(e){(0,U.k)(C(e),"Item must be an object.")}function Y(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function X(e){return function(){if(e.getMonitor().isDragging())return{type:s}}}function Q(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function J(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;ee(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();te(o,i,a);var s=i.getItemType();return ne(o,a,s),re(o,i,a),{type:l,payload:{targetIds:o,clientOffset:r||null}}}}function ee(e){(0,U.k)(Array.isArray(e),"Expected targetIds to be an array.")}function te(e,t,n){(0,U.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,U.k)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];(0,U.k)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);(0,U.k)(i,"Expected targetIds to be registered.")}}function ne(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];Q(t.getTargetType(o),n)||e.splice(r,1)}}function re(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();le(n);var o=ce(n);o.forEach((function(o,i){var a=ue(o,i,r,n),s={type:u,payload:{dropResult:ie({},t,{},a)}};e.dispatch(s)}))}}function le(e){(0,U.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,U.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ue(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){(0,U.k)(void 0===e||C(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function ce(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function de(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,U.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:c}}}function fe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var he,ge=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t,n;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;(0,U.k)("function"==typeof e,"listener must be a function."),(0,U.k)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var n=t.store.getState(),i=n.stateId;try{i===o||i===o+1&&!M(n.dirtyHandlerIds,r)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,U.k)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,U.k)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,U.k)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&Q(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,U.k)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Q(r,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return n?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return r=(e=this.store.getState().dragOffset).clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?fe((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?fe(t,n):null;var e,t,n}}],n&&pe(t.prototype,n),e}(),me=0;function ve(e){return ve="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},ve(e)}function ye(e,t){t&&Array.isArray(e)?e.forEach((function(e){return ye(e,!1)})):(0,U.k)("string"==typeof e||"symbol"===ve(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(he||(he={}));const be="undefined"!=typeof global?global:self,we=be.MutationObserver||be.WebKitMutationObserver;function Ee(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Oe="function"==typeof we?function(e){let t=1;const n=new we(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Ee;class xe{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Se=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Oe(this.flush),this.requestErrorThrow=Ee((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Ie=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new xe(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Se.registerPendingError);function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _e(e){switch(e[0]){case"S":return he.SOURCE;case"T":return he.TARGET;default:(0,U.k)(!1,"Cannot parse handler ID: ".concat(e))}}function ke(e,t){var n,r,o=e.entries(),i=!1;do{var a=o.next(),s=a.done;if((n=a.value,r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[1]===t)return!0;i=!!s}while(!i);return!1}var Te=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n;return t=e,n=[{key:"addSource",value:function(e,t){ye(e),function(e){(0,U.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,U.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,U.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(he.SOURCE,e,t);return this.store.dispatch(function(e){return{type:b,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){ye(e,!0),function(e){(0,U.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,U.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,U.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(he.TARGET,e,t);return this.store.dispatch(function(e){return{type:w,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return ke(this.dragSources,e)||ke(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,U.k)(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}},{key:"getTarget",value:function(e){return(0,U.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,U.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,U.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return _e(e)===he.SOURCE}},{key:"isTargetId",value:function(e){return _e(e)===he.TARGET}},{key:"removeSource",value:function(e){var t,n=this;(0,U.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:E,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},Se.enqueueTask(Ie.create(t))}},{key:"removeTarget",value:function(e){(0,U.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,U.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,U.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(me++).toString();switch(e){case he.SOURCE:return"S".concat(t);case he.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===he.SOURCE?this.dragSources.set(r,n):e===he.TARGET&&this.dropTargets.set(r,n),r}}],n&&Ce(t.prototype,n),e}();function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.MT)(B,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var je=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Pe(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=Ae(n);this.store=r,this.monitor=new ge(r,new Te(r)),r.subscribe(this.handleRefCountChange)}var t,n;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:G(e),publishDragSource:X(e),hover:J(e),drop:se(e),endDrag:de(e)}}(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&Re(t.prototype,n),e}();function Ne(e,t,n,r){var o=new je(r),i=e(o,t,n);return o.receiveBackend(i),o}var De=r.createContext({dragDropManager:void 0});function Me(e,t,n,r){return{dragDropManager:Ne(e,t,n,r)}}},89862:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(67294),o=n(5293);var i=0,a=(0,r.memo)((function(e){var t,n,a=e.children,u=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;return i[s]||(i[s]=(0,o.W)(e,t,n,r)),i[s]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children"])),c=(n=2,function(e){if(Array.isArray(e))return e}(t=u)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),d=c[0],f=c[1];return r.useEffect((function(){return f&&i++,function(){f&&0==--i&&(l()[s]=null)}}),[]),r.createElement(o.L.Provider,{value:d},a)}));a.displayName="DndProvider";var s=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function l(){return void 0!==n.g?n.g:window}},24974:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(15047),o=n(67294),i=n(48586);function a(e,t,n){var a,s,l=(a=(0,o.useState)((function(){return t(e)})),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=l[0],c=l[1],d=(0,o.useCallback)((function(){var o=t(e);(0,r.w)(u,o)||(c(o),n&&n())}),[u,e,n]);return(0,i.L)(d,[]),[u,d]}},75795:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(67294),o=n(28195),i=n(5293);function a(){var e=(0,r.useContext)(i.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}},48586:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},79336:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(67294),o=n(75795),i=n(24974);function a(e){var t,n,a=(0,o.N)().getMonitor(),s=(t=(0,i.r)(a,e),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],u=s[1];return(0,r.useEffect)((function(){return a.subscribeToOffsetChange(u)})),(0,r.useEffect)((function(){return a.subscribeToStateChange(u)})),l}},64448:(e,t,n)=>{"use strict";var r=n(67294),o=n(27418),i=n(63840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,d=null,f={onError:function(e){l=!0,u=e}};function p(e,t,n,r,o,i,a,c,d){l=!1,u=null,s.apply(f,arguments)}var h=null,g=null,m=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,o,i,s,f,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var g=u;l=!1,u=null,c||(c=!0,d=g)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!O[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in O[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(x.hasOwnProperty(l))throw Error(a(99,l));x[l]=i;var u=i.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&E(u[o],s,l);o=!0}else i.registrationName?(E(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function E(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,I[e]=t.eventTypes[n].dependencies}var O=[],x={},S={},I={};function C(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var _=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),k=null,T=null,P=null;function R(e){if(e=g(e)){if("function"!=typeof k)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),k(e.stateNode,e.type,t))}}function A(e){T?P?P.push(e):P=[e]:T=e}function j(){if(T){var e=T,t=P;if(P=T=null,R(e),t)for(e=0;e<t.length;e++)R(t[e])}}function N(e,t){return e(t)}function D(e,t,n,r,o){return e(t,n,r,o)}function M(){}var L=N,Z=!1,z=!1;function W(){null===T&&null===P||(M(),j())}function F(e,t,n){if(z)return e(t,n);z=!0;try{return L(e,t,n)}finally{z=!1,W()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,H={},V={};function G(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new G(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new G(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new G(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new G(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new G(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new G(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new G(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new G(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new G(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function K(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,K);q[t]=new G(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,K);q[t]=new G(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,K);q[t]=new G(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new G(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new G(e,1,!1,e.toLowerCase(),null,!0)}));var Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var o=q.hasOwnProperty(t)?q[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!U.call(V,e)||!U.call(H,e)&&(B.test(e)?V[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,se=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,ue=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,fe=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return me(e.type);case pe:return me(e.render);case fe:if(e=1===e._status?e._result:null)return me(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=me(e.type);n=null,r&&(n=me(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Q,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Oe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Ie(e,t){Se(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Te(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Ae(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function De(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,Le,Ze=(Le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Le(e,t)}))}:Le);function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function We(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fe={animationend:We("Animation","AnimationEnd"),animationiteration:We("Animation","AnimationIteration"),animationstart:We("Animation","AnimationStart"),transitionend:We("Transition","TransitionEnd")},Be={},Ue={};function He(e){if(Be[e])return Be[e];if(!Fe[e])return e;var t,n=Fe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ue)return Be[e]=n[t];return e}_&&(Ue=document.createElement("div").style,"AnimationEvent"in window||(delete Fe.animationend.animation,delete Fe.animationiteration.animation,delete Fe.animationstart.animation),"TransitionEvent"in window||delete Fe.transitionend.transition);var Ve=He("animationend"),Ge=He("animationiteration"),qe=He("animationstart"),$e=He("transitionend"),Ke="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Qe(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return et(o),e;if(i===r)return et(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(ot=nt(ot,e)),e=ot,ot=null,e){if(rt(e,it),ot)throw Error(a(95));if(c)throw e=d,c=!1,d=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!_)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function ct(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var o=ut.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ft(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=st(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<O.length;l++){var u=O[l];u&&(u=u.extractEvents(r,t,i,o,a))&&(s=nt(s,u))}at(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ke.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var ht,gt,mt,vt=!1,yt=[],bt=null,wt=null,Et=null,Ot=new Map,xt=new Map,St=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function _t(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function kt(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function Tt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=_t(t,n,r,o,i),null!==t&&null!==(t=Pn(t))&>(t),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Tn(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){mt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function At(e,t,n){Rt(e)&&n.delete(t)}function jt(){for(vt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&ht(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==bt&&Rt(bt)&&(bt=null),null!==wt&&Rt(wt)&&(wt=null),null!==Et&&Rt(Et)&&(Et=null),Ot.forEach(At),xt.forEach(At)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Dt(e){function t(t){return Nt(t,e)}if(0<yt.length){Nt(yt[0],e);for(var n=1;n<yt.length;n++){var r=yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bt&&Nt(bt,e),null!==wt&&Nt(wt,e),null!==Et&&Nt(Et,e),Ot.forEach(t),xt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Pt(n),null===n.blockedOn&&St.shift()}var Mt={},Lt=new Map,Zt=new Map,zt=["abort","abort",Ve,"animationEnd",Ge,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function Wt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Zt.set(r,t),Lt.set(r,i),Mt[o]=i}}Wt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wt(zt,2);for(var Ft="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Ft.length;Bt++)Zt.set(Ft[Bt],0);var Ut=i.unstable_UserBlockingPriority,Ht=i.unstable_runWithPriority,Vt=!0;function Gt(e,t){qt(t,e,!1)}function qt(e,t,n){var r=Zt.get(t);switch(void 0===r?2:r){case 0:r=$t.bind(null,t,1,e);break;case 1:r=Kt.bind(null,t,1,e);break;default:r=Yt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function $t(e,t,n,r){Z||M();var o=Yt,i=Z;Z=!0;try{D(o,e,t,n,r)}finally{(Z=i)||W()}}function Kt(e,t,n,r){Ht(Ut,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){if(Vt)if(0<yt.length&&-1<It.indexOf(e))e=_t(null,e,t,n,r),yt.push(e);else{var o=Xt(e,t,n,r);if(null===o)kt(e,r);else if(-1<It.indexOf(e))e=_t(o,e,t,n,r),yt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return bt=Tt(bt,e,t,n,r,o),!0;case"dragenter":return wt=Tt(wt,e,t,n,r,o),!0;case"mouseover":return Et=Tt(Et,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ot.set(i,Tt(Ot.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xt.set(i,Tt(xt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){kt(e,r),e=dt(e,r,null,t);try{F(ft,e)}finally{ct(e)}}}}function Xt(e,t,n,r){if(null!==(n=Tn(n=st(r)))){var o=Qe(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=Je(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{F(ft,e)}finally{ct(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Qt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var nn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function sn(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=I[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function ln(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=cn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cn(r)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn="$?",mn="$!",vn=null,yn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var En="function"==typeof setTimeout?setTimeout:void 0,On="function"==typeof clearTimeout?clearTimeout:void 0;function xn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===mn||n===gn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var In=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+In,_n="__reactEventHandlers$"+In,kn="__reactContainere$"+In;function Tn(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sn(e);null!==e;){if(n=e[Cn])return n;e=Sn(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[Cn]||e[kn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Rn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function An(e){return e[_n]||null}function jn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Nn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Dn(e,t,n){(t=Nn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Mn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=jn(t);for(t=n.length;0<t--;)Dn(n[t],"captured",e);for(t=0;t<n.length;t++)Dn(n[t],"bubbled",e)}}function Ln(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Nn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Zn(e){e&&e.dispatchConfig.registrationName&&Ln(e._targetInst,null,e)}function zn(e){rt(e,Mn)}var Wn=null,Fn=null,Bn=null;function Un(){if(Bn)return Bn;var e,t,n=Fn,r=n.length,o="value"in Wn?Wn.value:Wn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Bn=o.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function Vn(){return!1}function Gn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:Vn,this.isPropagationStopped=Vn,this}function qn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function $n(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Kn(e){e.eventPool=[],e.getPooled=qn,e.release=$n}o(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Kn(n),n},Kn(Gn);var Yn=Gn.extend({data:null}),Xn=Gn.extend({data:null}),Qn=[9,13,27,32],Jn=_&&"CompositionEvent"in window,er=null;_&&"documentMode"in document&&(er=document.documentMode);var tr=_&&"TextEvent"in window&&!er,nr=_&&(!Jn||er&&8<er&&11>=er),rr=String.fromCharCode(32),or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ir=!1;function ar(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var lr=!1,ur={eventTypes:or,extractEvents:function(e,t,n,r){var o;if(Jn)e:{switch(e){case"compositionstart":var i=or.compositionStart;break e;case"compositionend":i=or.compositionEnd;break e;case"compositionupdate":i=or.compositionUpdate;break e}i=void 0}else lr?ar(e,n)&&(i=or.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=or.compositionStart);return i?(nr&&"ko"!==n.locale&&(lr||i!==or.compositionStart?i===or.compositionEnd&&lr&&(o=Un()):(Fn="value"in(Wn=r)?Wn.value:Wn.textContent,lr=!0)),i=Yn.getPooled(i,t,n,r),(o||null!==(o=sr(n)))&&(i.data=o),zn(i),o=i):o=null,(e=tr?function(e,t){switch(e){case"compositionend":return sr(t);case"keypress":return 32!==t.which?null:(ir=!0,rr);case"textInput":return(e=t.data)===rr&&ir?null:e;default:return null}}(e,n):function(e,t){if(lr)return"compositionend"===e||!Jn&&ar(e,t)?(e=Un(),Bn=Fn=Wn=null,lr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Xn.getPooled(or.beforeInput,t,n,r)).data=e,zn(t)):t=null,null===o?t:null===t?o:[o,t]}},cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cr[e.type]:"textarea"===t}var fr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=Gn.getPooled(fr.change,e,t,n)).type="change",A(n),zn(e),e}var hr=null,gr=null;function mr(e){at(e)}function vr(e){if(Ee(Rn(e)))return e}function yr(e,t){if("change"===e)return t}var br=!1;function wr(){hr&&(hr.detachEvent("onpropertychange",Er),gr=hr=null)}function Er(e){if("value"===e.propertyName&&vr(gr))if(e=pr(gr,e,st(e)),Z)at(e);else{Z=!0;try{N(mr,e)}finally{Z=!1,W()}}}function Or(e,t,n){"focus"===e?(wr(),gr=n,(hr=t).attachEvent("onpropertychange",Er)):"blur"===e&&wr()}function xr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(gr)}function Sr(e,t){if("click"===e)return vr(t)}function Ir(e,t){if("input"===e||"change"===e)return vr(t)}_&&(br=lt("input")&&(!document.documentMode||9<document.documentMode));var Cr={eventTypes:fr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var o=t?Rn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=yr;else if(dr(o))if(br)a=Ir;else{a=xr;var s=Or}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Sr);if(a&&(a=a(e,t)))return pr(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&_e(o,"number",o.value)}},_r=Gn.extend({view:null,detail:null}),kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Pr(){return Tr}var Rr=0,Ar=0,jr=!1,Nr=!1,Dr=_r.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Rr;return Rr=e.screenX,jr?"mousemove"===e.type?e.screenX-t:0:(jr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ar;return Ar=e.screenY,Nr?"mousemove"===e.type?e.screenY-t:0:(Nr=!0,0)}}),Mr=Dr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Zr={eventTypes:Lr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Dr,l=Lr.mouseLeave,u=Lr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Mr,l=Lr.pointerLeave,u=Lr.pointerEnter,c="pointer");if(e=null==a?i:Rn(a),i=null==t?i:Rn(t),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(u,t,n,r)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(u=c,a=0,e=s=r;e;e=jn(e))a++;for(e=0,t=u;t;t=jn(t))e++;for(;0<a-e;)s=jn(s),a--;for(;0<e-a;)u=jn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=jn(s),u=jn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=jn(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=jn(c);for(c=0;c<s.length;c++)Ln(s[c],"bubbled",l);for(c=r.length;0<c--;)Ln(r[c],"captured",n);return 0==(64&o)?[l]:[l,n]}},zr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Wr=Object.prototype.hasOwnProperty;function Fr(e,t){if(zr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Wr.call(t,n[r])||!zr(e[n[r]],t[n[r]]))return!1;return!0}var Br=_&&"documentMode"in document&&11>=document.documentMode,Ur={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hr=null,Vr=null,Gr=null,qr=!1;function $r(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return qr||null==Hr||Hr!==un(n)?null:(n="selectionStart"in(n=Hr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Fr(Gr,n)?null:(Gr=n,(e=Gn.getPooled(Ur.select,Vr,e,t)).type="select",e.target=Hr,zn(e),e))}var Kr={eventTypes:Ur,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Xe(o),i=I.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Rn(t):window,e){case"focus":(dr(o)||"true"===o.contentEditable)&&(Hr=o,Vr=t,Gr=null);break;case"blur":Gr=Vr=Hr=null;break;case"mousedown":qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return qr=!1,$r(n,r);case"selectionchange":if(Br)break;case"keydown":case"keyup":return $r(n,r)}return null}},Yr=Gn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xr=Gn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qr=_r.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var eo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},to={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},no=_r.extend({key:function(e){if(e.key){var t=eo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?to[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pr,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ro=Dr.extend({dataTransfer:null}),oo=_r.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pr}),io=Gn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ao=Dr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),so={eventTypes:Mt,extractEvents:function(e,t,n,r){var o=Lt.get(e);if(!o)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=no;break;case"blur":case"focus":e=Qr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ro;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oo;break;case Ve:case Ge:case qe:e=Yr;break;case $e:e=io;break;case"scroll":e=_r;break;case"wheel":e=ao;break;case"copy":case"cut":case"paste":e=Xr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mr;break;default:e=Gn}return zn(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=An,g=Pn,m=Rn,C({SimpleEventPlugin:so,EnterLeaveEventPlugin:Zr,ChangeEventPlugin:Cr,SelectEventPlugin:Kr,BeforeInputEventPlugin:ur});var lo=[],uo=-1;function co(e){0>uo||(e.current=lo[uo],lo[uo]=null,uo--)}function fo(e,t){uo++,lo[uo]=e.current,e.current=t}var po={},ho={current:po},go={current:!1},mo=po;function vo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!=e.childContextTypes}function bo(){co(go),co(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(go,n)}function Eo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,me(t)||"Unknown",i));return o({},n,{},r)}function Oo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,mo=ho.current,fo(ho,e),fo(go,go.current),!0}function xo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Eo(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,co(go),co(ho),fo(ho,e)):co(go),fo(go,n)}var So=i.unstable_runWithPriority,Io=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,_o=i.unstable_requestPaint,ko=i.unstable_now,To=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Ao=i.unstable_NormalPriority,jo=i.unstable_LowPriority,No=i.unstable_IdlePriority,Do={},Mo=i.unstable_shouldYield,Lo=void 0!==_o?_o:function(){},Zo=null,zo=null,Wo=!1,Fo=ko(),Bo=1e4>Fo?ko:function(){return ko()-Fo};function Uo(){switch(To()){case Po:return 99;case Ro:return 98;case Ao:return 97;case jo:return 96;case No:return 95;default:throw Error(a(332))}}function Ho(e){switch(e){case 99:return Po;case 98:return Ro;case 97:return Ao;case 96:return jo;case 95:return No;default:throw Error(a(332))}}function Vo(e,t){return e=Ho(e),So(e,t)}function Go(e,t,n){return e=Ho(e),Io(e,t,n)}function qo(e){return null===Zo?(Zo=[e],zo=Io(Po,Ko)):Zo.push(e),Do}function $o(){if(null!==zo){var e=zo;zo=null,Co(e)}Ko()}function Ko(){if(!Wo&&null!==Zo){Wo=!0;var e=0;try{var t=Zo;Vo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Zo=null}catch(t){throw null!==Zo&&(Zo=Zo.slice(e+1)),Io(Po,$o),t}finally{Wo=!1}}}function Yo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Xo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qo={current:null},Jo=null,ei=null,ti=null;function ni(){ti=ei=Jo=null}function ri(e){var t=Qo.current;co(Qo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ii(e,t){Jo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Aa=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Jo)throw Error(a(308));ei=t,Jo.dependencies={expirationTime:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var si=!1;function li(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ci(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fi(e,t){var n=e.alternate;null!==n&&ui(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pi(e,t,n,r){var i=e.updateQueue;si=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&null!==(l=l.updateQueue)&&(l.baseQueue=s)}if(null!==a){l=a.next;var u=i.baseState,c=0,d=null,f=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var g={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=g,d=u):p=p.next=g,s>c&&(c=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ul(s,h.suspenseConfig);e:{var m=e,v=h;switch(s=t,g=n,v.tag){case 1:if("function"==typeof(m=v.payload)){u=m.call(g,u,s);break e}u=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(s="function"==typeof(m=v.payload)?m.call(g,u,s):m))break e;u=o({},u,s);break e;case 2:si=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=i.shared.pending))break;h=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===p?d=u:p.next=f,i.baseState=d,i.baseQueue=p,cl(c),e.expirationTime=c,e.memoizedState=u}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var gi=Y.ReactCurrentBatchConfig,mi=(new r.Component).refs;function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ys(),o=gi.suspense;(o=ci(r=Xs(r,e,o),o)).payload=t,null!=n&&(o.callback=n),di(e,o),Qs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ys(),o=gi.suspense;(o=ci(r=Xs(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),di(e,o),Qs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ys(),r=gi.suspense;(r=ci(n=Xs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),di(e,r),Qs(e,n)}};function bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Fr(n,r)&&Fr(o,i))}function wi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(o=yo(t)?mo:ho.current,i=(r=null!=(r=t.contextTypes))?vo(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ei(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function Oi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=mi,li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ai(i):(i=yo(t)?mo:ho.current,o.context=vo(e,i)),pi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),pi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var xi=Array.isArray;function Si(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===mi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ii(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ci(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Si(e,t,n),r.return=e,r):((r=Rl(n.type,n.key,n.props,null,e.mode,r)).ref=Si(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Al(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=jl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Rl(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case te:return(t=Nl(t,e.mode,n)).return=e,t}if(xi(t)||ge(t))return(t=Al(t,e.mode,n,null)).return=e,t;Ii(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?d(e,t,n.props.children,r,o):u(e,t,n,r):null;case te:return n.key===o?c(e,t,n,r):null}if(xi(n)||ge(n))return null!==o?null:d(e,t,n,r,null);Ii(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,o,r.key):u(t,e,r,o);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(xi(r)||ge(r))return d(t,e=e.get(n)||null,r,o,null);Ii(t,r)}return null}function g(o,a,s,l){for(var u=null,c=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=p(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return n(o,d),u;if(null===d){for(;g<s.length;g++)null!==(d=f(o,s[g],l))&&(a=i(d,a,g),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(o,d);g<s.length;g++)null!==(m=h(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=i(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(o,e)})),u}function m(o,s,l,u){var c=ge(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=p(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,m),null===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,u))&&(s=i(y,s,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=h(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=i(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,l){var u="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===ne){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=Si(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===ne?((r=Al(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Rl(i.type,i.key,i.props,null,e.mode,l)).ref=Si(e,r,i),l.return=e,e=l)}return s(e);case te:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Nl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=jl(i,e.mode,l)).return=e,e=r),s(e);if(xi(i))return g(e,r,i,l);if(ge(i))return m(e,r,i,l);if(c&&Ii(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var _i=Ci(!0),ki=Ci(!1),Ti={},Pi={current:Ti},Ri={current:Ti},Ai={current:Ti};function ji(e){if(e===Ti)throw Error(a(174));return e}function Ni(e,t){switch(fo(Ai,t),fo(Ri,e),fo(Pi,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:De(null,"");break;default:t=De(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Pi),fo(Pi,t)}function Di(){co(Pi),co(Ri),co(Ai)}function Mi(e){ji(Ai.current);var t=ji(Pi.current),n=De(t,e.type);t!==n&&(fo(Ri,e),fo(Pi,n))}function Li(e){Ri.current===e&&(co(Pi),co(Ri))}var Zi={current:0};function zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===mn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Wi(e,t){return{responder:e,props:t}}var Fi=Y.ReactCurrentDispatcher,Bi=Y.ReactCurrentBatchConfig,Ui=0,Hi=null,Vi=null,Gi=null,qi=!1;function $i(){throw Error(a(321))}function Ki(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Yi(e,t,n,r,o,i){if(Ui=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fi.current=null===e||null===e.memoizedState?ba:wa,e=n(r,o),t.expirationTime===Ui){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Gi=Vi=null,t.updateQueue=null,Fi.current=Ea,e=n(r,o)}while(t.expirationTime===Ui)}if(Fi.current=ya,t=null!==Vi&&null!==Vi.next,Ui=0,Gi=Vi=Hi=null,qi=!1,t)throw Error(a(300));return e}function Xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Gi?Hi.memoizedState=Gi=e:Gi=Gi.next=e,Gi}function Qi(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Gi?Hi.memoizedState:Gi.next;if(null!==t)Gi=t,Vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Gi?Hi.memoizedState=Gi=e:Gi=Gi.next=e}return Gi}function Ji(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Qi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Vi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,u=o;do{var c=u.expirationTime;if(c<Ui){var d={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,c>Hi.expirationTime&&(Hi.expirationTime=c,cl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),ul(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==o);null===l?i=r:l.next=s,zr(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Qi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);zr(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function na(e){var t=Xi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e}).dispatch=va.bind(null,Hi,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Hi.updateQueue)?(t={lastEffect:null},Hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function oa(){return Qi().memoizedState}function ia(e,t,n,r){var o=Xi();Hi.effectTag|=e,o.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var o=Qi();r=void 0===r?null:r;var i=void 0;if(null!==Vi){var a=Vi.memoizedState;if(i=a.destroy,null!==r&&Ki(r,a.deps))return void ra(t,n,i,r)}Hi.effectTag|=e,o.memoizedState=ra(1|t,n,i,r)}function sa(e,t){return ia(516,4,e,t)}function la(e,t){return aa(516,4,e,t)}function ua(e,t){return aa(4,2,e,t)}function ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function da(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,ca.bind(null,t,e),n)}function fa(){}function pa(e,t){return Xi().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Qi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=Qi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ma(e,t,n){var r=Uo();Vo(98>r?98:r,(function(){e(!0)})),Vo(97<r?97:r,(function(){var r=Bi.suspense;Bi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Bi.suspense=r}}))}function va(e,t,n){var r=Ys(),o=gi.suspense;o={expirationTime:r=Xs(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Hi||null!==i&&i===Hi)qi=!0,o.expirationTime=Ui,Hi.expirationTime=Ui;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,zr(s,a))return}catch(e){}Qs(e,r)}}var ya={readContext:ai,useCallback:$i,useContext:$i,useEffect:$i,useImperativeHandle:$i,useLayoutEffect:$i,useMemo:$i,useReducer:$i,useRef:$i,useState:$i,useDebugValue:$i,useResponder:$i,useDeferredValue:$i,useTransition:$i},ba={readContext:ai,useCallback:pa,useContext:ai,useEffect:sa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ia(4,2,e,t)},useMemo:function(e,t){var n=Xi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Xi().memoizedState=e},useState:na,useDebugValue:fa,useResponder:Wi,useDeferredValue:function(e,t){var n=na(e),r=n[0],o=n[1];return sa((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[pa(ma.bind(null,t,e),[t,e]),n]}},wa={readContext:ai,useCallback:ha,useContext:ai,useEffect:la,useImperativeHandle:da,useLayoutEffect:ua,useMemo:ga,useReducer:ea,useRef:oa,useState:function(){return ea(Ji)},useDebugValue:fa,useResponder:Wi,useDeferredValue:function(e,t){var n=ea(Ji),r=n[0],o=n[1];return la((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(Ji),n=t[0];return t=t[1],[ha(ma.bind(null,t,e),[t,e]),n]}},Ea={readContext:ai,useCallback:ha,useContext:ai,useEffect:la,useImperativeHandle:da,useLayoutEffect:ua,useMemo:ga,useReducer:ta,useRef:oa,useState:function(){return ta(Ji)},useDebugValue:fa,useResponder:Wi,useDeferredValue:function(e,t){var n=ta(Ji),r=n[0],o=n[1];return la((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ta(Ji),n=t[0];return t=t[1],[ha(ma.bind(null,t,e),[t,e]),n]}},Oa=null,xa=null,Sa=!1;function Ia(e,t){var n=kl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function _a(e){if(Sa){var t=xa;if(t){var n=t;if(!Ca(e,t)){if(!(t=xn(n.nextSibling))||!Ca(e,t))return e.effectTag=-1025&e.effectTag|2,Sa=!1,void(Oa=e);Ia(Oa,n)}Oa=e,xa=xn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Sa=!1,Oa=e}}function ka(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Oa=e}function Ta(e){if(e!==Oa)return!1;if(!Sa)return ka(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wn(t,e.memoizedProps))for(t=xa;t;)Ia(e,t),t=xn(t.nextSibling);if(ka(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xa=xn(e.nextSibling);break e}t--}else"$"!==n&&n!==mn&&n!==gn||t++}e=e.nextSibling}xa=null}}else xa=Oa?xn(e.stateNode.nextSibling):null;return!0}function Pa(){xa=Oa=null,Sa=!1}var Ra=Y.ReactCurrentOwner,Aa=!1;function ja(e,t,n,r){t.child=null===e?ki(t,null,n,r):_i(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=Yi(e,t,n,r,i,o),null===e||Aa?(t.effectTag|=1,ja(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ya(e,t,o))}function Da(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Tl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(o,r)&&e.ref===t.ref)?Ya(e,t,i):(t.effectTag|=1,(e=Pl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,o,i){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Aa=!1,o<i)?(t.expirationTime=e.expirationTime,Ya(e,t,i)):Za(e,t,n,r,i)}function La(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Za(e,t,n,r,o){var i=yo(n)?mo:ho.current;return i=vo(t,i),ii(t,o),n=Yi(e,t,n,r,i,o),null===e||Aa?(t.effectTag|=1,ja(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ya(e,t,o))}function za(e,t,n,r,o){if(yo(n)){var i=!0;Oo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),wi(t,n,r),Oi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?ai(u):vo(t,u=yo(n)?mo:ho.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Ei(t,a,r,u),si=!1;var f=t.memoizedState;a.state=f,pi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||go.current||si?("function"==typeof c&&(vi(t,n,c,r),l=t.memoizedState),(s=si||bi(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ui(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Xo(t.type,s),l=a.context,u="object"==typeof(u=n.contextType)&&null!==u?ai(u):vo(t,u=yo(n)?mo:ho.current),(d="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Ei(t,a,r,u),si=!1,l=t.memoizedState,a.state=l,pi(t,r,a,o),f=t.memoizedState,s!==r||l!==f||go.current||si?("function"==typeof c&&(vi(t,n,c,r),f=t.memoizedState),(c=si||bi(t,n,s,r,l,f,u))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Wa(e,t,n,r,i,o)}function Wa(e,t,n,r,o,i){La(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&xo(t,n,!1),Ya(e,t,i);r=t.stateNode,Ra.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):ja(e,t,s,i),t.memoizedState=r.state,o&&xo(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ni(e,t.containerInfo)}var Ba,Ua,Ha,Va={dehydrated:null,retryTime:0};function Ga(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Zi.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),fo(Zi,1&a),null===e){if(void 0!==i.fallback&&_a(t),s){if(s=i.fallback,(i=Al(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Al(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=Va,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=ki(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=Pl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Pl(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,o}return n=_i(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=Al(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Al(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Va,t.child=i,n}return t.memoizedState=null,t.child=_i(t,e,i.children,n)}function qa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oi(e.return,t)}function $a(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Ka(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=Zi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qa(e,n);else if(19===e.tag)qa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(Zi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$a(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$a(t,!0,n,null,i,t.lastEffect);break;case"together":$a(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ya(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&cl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Pl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&bo(),null;case 3:return Di(),co(go),co(ho),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ta(t)||(t.effectTag|=4),null;case 5:Li(t),n=ji(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ua(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=ji(Pi.current),Ta(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[Cn]=t,r[_n]=s,i){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Ke.length;e++)Gt(Ke[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":xe(r,s),Gt("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),sn(n,"onChange");break;case"textarea":Re(r,s),Gt("invalid",r),sn(n,"onChange")}for(var l in rn(i,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):S.hasOwnProperty(l)&&null!=u&&sn(n,l)}switch(i){case"input":we(r),Ce(r,s,!0);break;case"textarea":we(r),je(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Ne(i)),e===an?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[Cn]=t,e[_n]=r,Ba(e,t),t.stateNode=e,l=on(i,r),i){case"iframe":case"object":case"embed":Gt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Ke.length;u++)Gt(Ke[u],e);u=r;break;case"source":Gt("error",e),u=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),u=r;break;case"form":Gt("reset",e),Gt("submit",e),u=r;break;case"details":Gt("toggle",e),u=r;break;case"input":xe(e,r),u=Oe(e,r),Gt("invalid",e),sn(n,"onChange");break;case"option":u=ke(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=o({},r,{value:void 0}),Gt("invalid",e),sn(n,"onChange");break;case"textarea":Re(e,r),u=Pe(e,r),Gt("invalid",e),sn(n,"onChange");break;default:u=r}rn(i,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?tn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Ze(e,d):"children"===s?"string"==typeof d?("textarea"!==i||""!==d)&&ze(e,d):"number"==typeof d&&ze(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=d&&sn(n,s):null!=d&&X(e,s,d,l))}switch(i){case"input":we(e),Ce(e,r,!1);break;case"textarea":we(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Te(e,!!r.multiple,n,!1):null!=r.defaultValue&&Te(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=ln)}bn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ha(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=ji(Ai.current),ji(Pi.current),Ta(t)?(n=t.stateNode,r=t.memoizedProps,n[Cn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Cn]=t,t.stateNode=n)}return null;case 13:return co(Zi),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ta(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Zi.current)?Rs===Ss&&(Rs=Is):(Rs!==Ss&&Rs!==Is||(Rs=Cs),0!==Ms&&null!==ks&&(Ll(ks,Ps),Zl(ks,Ms)))),(n||r)&&(t.effectTag|=4),null);case 4:return Di(),null;case 10:return ri(t),null;case 19:if(co(Zi),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=r.rendering)){if(i)Xa(r,!1);else if(Rs!==Ss||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=zi(s))){for(t.effectTag|=64,Xa(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return fo(Zi,1&Zi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=zi(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Xa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Xa(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=Zi.current,fo(Zi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ja(e){switch(e.tag){case 1:yo(e.type)&&bo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Di(),co(go),co(ho),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Li(e),null;case 13:return co(Zi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return co(Zi),null;case 4:return Di(),null;case 10:return ri(e),null;default:return null}}function es(e,t){return{value:e,source:t,stack:ve(t)}}Ba=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ua=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,l,u=t.stateNode;switch(ji(Pi.current),e=null,n){case"input":a=Oe(u,a),r=Oe(u,r),e=[];break;case"option":a=ke(u,a),r=ke(u,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(u,a),r=Pe(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=ln)}for(s in rn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=c&&sn(i,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ha=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ts="function"==typeof WeakSet?WeakSet:Set;function ns(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function rs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ol(e,t)}else t.current=null}function os(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ss(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void as(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))))}throw Error(a(163))}function ls(e,t,n){switch("function"==typeof Cl&&Cl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Vo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Ol(o,e)}}e=e.next}while(e!==r)}))}break;case 1:rs(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ol(e,t)}}(t,n);break;case 5:rs(t);break;case 4:hs(e,t,n)}}function us(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&us(t)}function cs(e){return 5===e.tag||3===e.tag||4===e.tag}function ds(e){e:{for(var t=e.return;null!==t;){if(cs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?fs(e,n,t):ps(e,n,t)}function fs(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ln));else if(4!==r&&null!==(e=e.child))for(fs(e,t,n),e=e.sibling;null!==e;)fs(e,t,n),e=e.sibling}function ps(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ps(e,t,n),e=e.sibling;null!==e;)ps(e,t,n),e=e.sibling}function hs(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,u=i,c=n,d=u;;)if(ls(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break e;for(;null===d.sibling;){if(null===d.return||d.return===u)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(l=r,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(ls(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function gs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void is(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[_n]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),on(e,o),t=on(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?tn(n,l):"dangerouslySetInnerHTML"===s?Ze(n,l):"children"===s?ze(n,l):X(n,s,l,t)}switch(e){case"input":Ie(n,r);break;case"textarea":Ae(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Te(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Te(n,!!r.multiple,r.defaultValue,!0):Te(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Zs=Bo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=en("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ms(t);case 19:return void ms(t)}throw Error(a(163))}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ts),t.forEach((function(t){var r=Sl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var vs="function"==typeof WeakMap?WeakMap:Map;function ys(e,t,n){(n=ci(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Fs=r),ns(e,t)},n}function bs(e,t,n){(n=ci(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ns(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bs?Bs=new Set([this]):Bs.add(this),ns(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ws,Es=Math.ceil,Os=Y.ReactCurrentDispatcher,xs=Y.ReactCurrentOwner,Ss=0,Is=3,Cs=4,_s=0,ks=null,Ts=null,Ps=0,Rs=Ss,As=null,js=1073741823,Ns=1073741823,Ds=null,Ms=0,Ls=!1,Zs=0,zs=null,Ws=!1,Fs=null,Bs=null,Us=!1,Hs=null,Vs=90,Gs=null,qs=0,$s=null,Ks=0;function Ys(){return 0!=(48&_s)?1073741821-(Bo()/10|0):0!==Ks?Ks:Ks=1073741821-(Bo()/10|0)}function Xs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Uo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&_s))return Ps;if(null!==n)e=Yo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Yo(e,150,100);break;case 97:case 96:e=Yo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ks&&e===Ps&&--e,e}function Qs(e,t){if(50<qs)throw qs=0,$s=null,Error(a(185));if(null!==(e=Js(e,t))){var n=Uo();1073741823===t?0!=(8&_s)&&0==(48&_s)?rl(e):(tl(e),0===_s&&$o()):tl(e),0==(4&_s)||98!==n&&99!==n||(null===Gs?Gs=new Map([[e,t]]):(void 0===(n=Gs.get(e))||n>t)&&Gs.set(e,t))}}function Js(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(ks===o&&(cl(t),Rs===Cs&&Ll(o,Ps)),Zl(o,t)),o}function el(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ml(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function tl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qo(rl.bind(null,e));else{var t=el(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ys();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Do&&Co(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?qo(rl.bind(null,e)):Go(r,nl.bind(null,e),{timeout:10*(1073741821-t)-Bo()}),e.callbackNode=t}}}function nl(e,t){if(Ks=0,t)return zl(e,t=Ys()),tl(e),null;var n=el(e);if(0!==n){if(t=e.callbackNode,0!=(48&_s))throw Error(a(327));if(bl(),e===ks&&n===Ps||al(e,n),null!==Ts){var r=_s;_s|=16;for(var o=ll();;)try{fl();break}catch(t){sl(e,t)}if(ni(),_s=r,Os.current=o,1===Rs)throw t=As,al(e,n),Ll(e,n),tl(e),t;if(null===Ts)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Rs,ks=null,r){case Ss:case 1:throw Error(a(345));case 2:zl(e,2<n?2:n);break;case Is:if(Ll(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gl(o)),1073741823===js&&10<(o=Zs+500-Bo())){if(Ls){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,al(e,n);break}}if(0!==(i=el(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=En(ml.bind(null,e),o);break}ml(e);break;case Cs:if(Ll(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gl(o)),Ls&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,al(e,n);break}if(0!==(o=el(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ns?r=10*(1073741821-Ns)-Bo():1073741823===js?r=0:(r=10*(1073741821-js)-5e3,0>(r=(o=Bo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=En(ml.bind(null,e),r);break}ml(e);break;case 5:if(1073741823!==js&&null!==Ds){i=js;var s=Ds;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Bo()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Ll(e,n),e.timeoutHandle=En(ml.bind(null,e),r);break}}ml(e);break;default:throw Error(a(329))}if(tl(e),e.callbackNode===t)return nl.bind(null,e)}}return null}function rl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&_s))throw Error(a(327));if(bl(),e===ks&&t===Ps||al(e,t),null!==Ts){var n=_s;_s|=16;for(var r=ll();;)try{dl();break}catch(t){sl(e,t)}if(ni(),_s=n,Os.current=r,1===Rs)throw n=As,al(e,t),Ll(e,t),tl(e),n;if(null!==Ts)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ks=null,ml(e),tl(e)}return null}function ol(e,t){var n=_s;_s|=1;try{return e(t)}finally{0===(_s=n)&&$o()}}function il(e,t){var n=_s;_s&=-2,_s|=8;try{return e(t)}finally{0===(_s=n)&&$o()}}function al(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,On(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bo();break;case 3:Di(),co(go),co(ho);break;case 5:Li(r);break;case 4:Di();break;case 13:case 19:co(Zi);break;case 10:ri(r)}n=n.return}ks=e,Ts=Pl(e.current,null),Ps=t,Rs=Ss,As=null,Ns=js=1073741823,Ds=null,Ms=0,Ls=!1}function sl(e,t){for(;;){try{if(ni(),Fi.current=ya,qi)for(var n=Hi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ui=0,Gi=Vi=Hi=null,qi=!1,null===Ts||null===Ts.return)return Rs=1,As=t,Ts=null;e:{var o=e,i=Ts.return,a=Ts,s=t;if(t=Ps,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&Zi.current),d=i;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(f){var g=d.updateQueue;if(null===g){var m=new Set;m.add(l),d.updateQueue=m}else g.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=ci(1073741823,null);v.tag=2,di(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new vs,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=xl.bind(null,o,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Rs&&(Rs=2),s=es(s,a),d=i;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,fi(d,ys(d,l,t));break e;case 1:l=s;var w=d.type,E=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Bs||!Bs.has(E)))){d.effectTag|=4096,d.expirationTime=t,fi(d,bs(d,l,t));break e}}d=d.return}while(null!==d)}Ts=hl(Ts)}catch(e){t=e;continue}break}}function ll(){var e=Os.current;return Os.current=ya,null===e?ya:e}function ul(e,t){e<js&&2<e&&(js=e),null!==t&&e<Ns&&2<e&&(Ns=e,Ds=t)}function cl(e){e>Ms&&(Ms=e)}function dl(){for(;null!==Ts;)Ts=pl(Ts)}function fl(){for(;null!==Ts&&!Mo();)Ts=pl(Ts)}function pl(e){var t=ws(e.alternate,e,Ps);return e.memoizedProps=e.pendingProps,null===t&&(t=hl(e)),xs.current=null,t}function hl(e){Ts=e;do{var t=Ts.alternate;if(e=Ts.return,0==(2048&Ts.effectTag)){if(t=Qa(t,Ts,Ps),1===Ps||1!==Ts.childExpirationTime){for(var n=0,r=Ts.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ts.firstEffect),null!==Ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ts.firstEffect),e.lastEffect=Ts.lastEffect),1<Ts.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ts:e.firstEffect=Ts,e.lastEffect=Ts))}else{if(null!==(t=Ja(Ts)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ts.sibling))return t;Ts=e}while(null!==Ts);return Rs===Ss&&(Rs=5),null}function gl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function ml(e){var t=Uo();return Vo(99,vl.bind(null,e,t)),null}function vl(e,t){do{bl()}while(null!==Hs);if(0!=(48&_s))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=gl(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ks&&(Ts=ks=null,Ps=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=_s;_s|=32,xs.current=null,vn=Vt;var s=pn();if(hn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var f=0,p=-1,h=-1,g=0,m=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==c&&3!==v.nodeType||(p=f+c),v!==d||0!==u&&3!==v.nodeType||(h=f+u),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++g===c&&(p=f),y===d&&++m===u&&(h=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:l},Vt=!1,zs=o;do{try{yl()}catch(e){if(null===zs)throw Error(a(330));Ol(zs,e),zs=zs.nextEffect}}while(null!==zs);zs=o;do{try{for(s=e,l=t;null!==zs;){var w=zs.effectTag;if(16&w&&ze(zs.stateNode,""),128&w){var E=zs.alternate;if(null!==E){var O=E.ref;null!==O&&("function"==typeof O?O(null):O.current=null)}}switch(1038&w){case 2:ds(zs),zs.effectTag&=-3;break;case 6:ds(zs),zs.effectTag&=-3,gs(zs.alternate,zs);break;case 1024:zs.effectTag&=-1025;break;case 1028:zs.effectTag&=-1025,gs(zs.alternate,zs);break;case 4:gs(zs.alternate,zs);break;case 8:hs(s,c=zs,l),us(c)}zs=zs.nextEffect}}catch(e){if(null===zs)throw Error(a(330));Ol(zs,e),zs=zs.nextEffect}}while(null!==zs);if(O=yn,E=pn(),w=O.focusedElem,l=O.selectionRange,E!==w&&w&&w.ownerDocument&&fn(w.ownerDocument.documentElement,w)){null!==l&&hn(w)&&(E=l.start,void 0===(O=l.end)&&(O=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(O,w.value.length)):(O=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(O=O.getSelection(),c=w.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!O.extend&&s>l&&(c=l,l=s,s=c),c=dn(w,s),d=dn(w,l),c&&d&&(1!==O.rangeCount||O.anchorNode!==c.node||O.anchorOffset!==c.offset||O.focusNode!==d.node||O.focusOffset!==d.offset)&&((E=E.createRange()).setStart(c.node,c.offset),O.removeAllRanges(),s>l?(O.addRange(E),O.extend(d.node,d.offset)):(E.setEnd(d.node,d.offset),O.addRange(E))))),E=[];for(O=w;O=O.parentNode;)1===O.nodeType&&E.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<E.length;w++)(O=E[w]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Vt=!!vn,yn=vn=null,e.current=n,zs=o;do{try{for(w=e;null!==zs;){var x=zs.effectTag;if(36&x&&ss(w,zs.alternate,zs),128&x){E=void 0;var S=zs.ref;if(null!==S){var I=zs.stateNode;zs.tag,E=I,"function"==typeof S?S(E):S.current=E}}zs=zs.nextEffect}}catch(e){if(null===zs)throw Error(a(330));Ol(zs,e),zs=zs.nextEffect}}while(null!==zs);zs=null,Lo(),_s=i}else e.current=n;if(Us)Us=!1,Hs=e,Vs=t;else for(zs=o;null!==zs;)t=zs.nextEffect,zs.nextEffect=null,zs=t;if(0===(t=e.firstPendingTime)&&(Bs=null),1073741823===t?e===$s?qs++:(qs=0,$s=e):qs=0,"function"==typeof Il&&Il(n.stateNode,r),tl(e),Ws)throw Ws=!1,e=Fs,Fs=null,e;return 0!=(8&_s)||$o(),null}function yl(){for(;null!==zs;){var e=zs.effectTag;0!=(256&e)&&os(zs.alternate,zs),0==(512&e)||Us||(Us=!0,Go(97,(function(){return bl(),null}))),zs=zs.nextEffect}}function bl(){if(90!==Vs){var e=97<Vs?97:Vs;return Vs=90,Vo(e,wl)}}function wl(){if(null===Hs)return!1;var e=Hs;if(Hs=null,0!=(48&_s))throw Error(a(331));var t=_s;for(_s|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:is(5,n),as(5,n)}}catch(t){if(null===e)throw Error(a(330));Ol(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return _s=t,$o(),!0}function El(e,t,n){di(e,t=ys(e,t=es(n,t),1073741823)),null!==(e=Js(e,1073741823))&&tl(e)}function Ol(e,t){if(3===e.tag)El(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){El(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bs||!Bs.has(r))){di(n,e=bs(n,e=es(t,e),1073741823)),null!==(n=Js(n,1073741823))&&tl(n);break}}n=n.return}}function xl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ks===e&&Ps===n?Rs===Cs||Rs===Is&&1073741823===js&&Bo()-Zs<500?al(e,Ps):Ls=!0:Ml(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,tl(e)))}function Sl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=Xs(t=Ys(),e,null)),null!==(e=Js(e,t))&&tl(e)}ws=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||go.current)Aa=!0;else{if(r<n){switch(Aa=!1,t.tag){case 3:Fa(t),Pa();break;case 5:if(Mi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:yo(t.type)&&Oo(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,fo(Qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ga(e,t,n):(fo(Zi,1&Zi.current),null!==(t=Ya(e,t,n))?t.sibling:null);fo(Zi,1&Zi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ka(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),fo(Zi,Zi.current),!r)return null}return Ya(e,t,n)}Aa=!1}}else Aa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=vo(t,ho.current),ii(t,n),o=Yi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;Oo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,li(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&vi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternalFiber=t,Oi(t,r,e,n),t=Wa(null,t,r,!0,i,n)}else t.tag=0,ja(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Tl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=Za(null,t,o,e,n);break e;case 1:t=za(null,t,o,e,n);break e;case 11:t=Na(null,t,o,e,n);break e;case 14:t=Da(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Za(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),pi(t,r,null,n),(r=t.memoizedState.element)===o)Pa(),t=Ya(e,t,n);else{if((o=t.stateNode.hydrate)&&(xa=xn(t.stateNode.containerInfo.firstChild),Oa=t,o=Sa=!0),o)for(n=ki(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ja(e,t,r,n),Pa();t=t.child}return t;case 5:return Mi(t),null===e&&_a(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,wn(r,o)?s=null:null!==i&&wn(r,i)&&(t.effectTag|=16),La(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ja(e,t,s,n),t=t.child),t;case 6:return null===e&&_a(t),null;case 13:return Ga(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Na(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(fo(Qo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0==(i=zr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!go.current){t=Ya(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=ci(n,null)).tag=2,di(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),oi(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}ja(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.effectTag|=1,ja(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Da(e,t,o,i=Xo(o.type,i),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,yo(r)?(e=!0,Oo(t)):e=!1,ii(t,n),wi(t,r,o),Oi(t,r,o,n),Wa(null,t,r,!0,e,n);case 19:return Ka(e,t,n)}throw Error(a(156,t.tag))};var Il=null,Cl=null;function _l(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function kl(e,t,n,r){return new _l(e,t,n,r)}function Tl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=kl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Tl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Al(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=kl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ue:return(e=kl(13,n,t,o)).type=ue,e.elementType=ue,e.expirationTime=i,e;case ce:return(e=kl(19,n,t,o)).elementType=ce,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case fe:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=kl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Al(e,t,n,r){return(e=kl(7,e,r,t)).expirationTime=n,e}function jl(e,t,n){return(e=kl(6,e,null,t)).expirationTime=n,e}function Nl(e,t,n){return(t=kl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ml(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ll(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Zl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function zl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Wl(e,t,n,r){var o=t.current,i=Ys(),s=gi.suspense;i=Xs(i,o,s);e:if(n){t:{if(Qe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(yo(u)){n=Eo(n,u,l);break e}}n=l}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),Qs(o,i),i}function Fl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Bl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Ul(e,t){Bl(e,t),(e=e.alternate)&&Bl(e,t)}function Hl(e,t,n){var r=new Dl(e,t,n=null!=n&&!0===n.hydrate),o=kl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,li(o),e[kn]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);It.forEach((function(e){pt(e,t,n)})),Ct.forEach((function(e){pt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Vl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Fl(a);s.call(e)}}Wl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Hl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Fl(a);l.call(e)}}il((function(){Wl(t,a,e,o)}))}return Fl(a)}function ql(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function $l(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vl(t))throw Error(a(200));return ql(e,t,null,n)}Hl.prototype.render=function(e){Wl(e,this._internalRoot,null,null)},Hl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Wl(null,e,null,(function(){t[kn]=null}))},ht=function(e){if(13===e.tag){var t=Yo(Ys(),150,100);Qs(e,t),Ul(e,t)}},gt=function(e){13===e.tag&&(Qs(e,3),Ul(e,3))},mt=function(e){if(13===e.tag){var t=Ys();Qs(e,t=Xs(t,e,null)),Ul(e,t)}},k=function(e,t,n){switch(t){case"input":if(Ie(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=An(r);if(!o)throw Error(a(90));Ee(r),Ie(r,o)}}}break;case"textarea":Ae(e,n);break;case"select":null!=(t=n.value)&&Te(e,!!n.multiple,t,!1)}},N=ol,D=function(e,t,n,r,o){var i=_s;_s|=4;try{return Vo(98,e.bind(null,t,n,r,o))}finally{0===(_s=i)&&$o()}},M=function(){0==(49&_s)&&(function(){if(null!==Gs){var e=Gs;Gs=null,e.forEach((function(e,t){zl(t,e),tl(t)})),$o()}}(),bl())},L=function(e,t){var n=_s;_s|=2;try{return e(t)}finally{0===(_s=n)&&$o()}};var Kl={Events:[Pn,Rn,An,C,x,zn,function(e){rt(e,Zn)},A,j,Yt,at,bl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Il=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Cl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Tn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kl,t.createPortal=$l,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&_s))throw Error(a(187));var n=_s;_s|=1;try{return Vo(99,e.bind(null,t))}finally{_s=n,$o()}},t.hydrate=function(e,t,n){if(!Vl(t))throw Error(a(200));return Gl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Vl(t))throw Error(a(200));return Gl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Vl(e))throw Error(a(40));return!!e._reactRootContainer&&(il((function(){Gl(null,null,e,!1,(function(){e._reactRootContainer=null,e[kn]=null}))})),!0)},t.unstable_batchedUpdates=ol,t.unstable_createPortal=function(e,t){return $l(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Gl(e,t,n,!1,r)},t.version="16.14.0"},73935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(64448)},75668:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(67294)),i=h(n(45697)),a=h(n(73935)),s=h(n(86010)),l=n(81825),u=n(2849),c=n(9280),d=h(n(80783)),f=h(n(55904)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function O(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&E(e,t)}(g,e);var t,n,r,i,c,h=(i=g,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S(i);if(c){var n=S(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return O(this,e)});function g(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),I(x(t=h.call(this,e)),"onDragStart",(function(e,n){if((0,f.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,u.createDraggableData)(x(t),n)))return!1;t.setState({dragging:!0,dragged:!0})})),I(x(t),"onDrag",(function(e,n){if(!t.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",n);var r,o,i=(0,u.createDraggableData)(x(t),n),a={x:i.x,y:i.y};if(t.props.bounds){var s=a.x,l=a.y;a.x+=t.state.slackX,a.y+=t.state.slackY;var c=(r=(0,u.getBoundPosition)(x(t),a.x,a.y),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(r,o)||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.")}()),d=c[0],p=c[1];a.x=d,a.y=p,a.slackX=t.state.slackX+(s-a.x),a.slackY=t.state.slackY+(l-a.y),i.x=a.x,i.y=a.y,i.deltaX=a.x-t.state.x,i.deltaY=a.y-t.state.y}if(!1===t.props.onDrag(e,i))return!1;t.setState(a)})),I(x(t),"onDragStop",(function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,u.createDraggableData)(x(t),n)))return!1;(0,f.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:y({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=g,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:y({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,c=t.defaultClassNameDragged,f=t.position,h=t.positionOffset,g=(t.scale,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,p)),v={},b=null,w=!Boolean(f)||this.state.dragging,E=f||r,O={x:(0,u.canDragX)(this)&&w?this.state.x:E.x,y:(0,u.canDragY)(this)&&w?this.state.y:E.y};this.state.isElementSVG?b=(0,l.createSVGTransform)(O,h):v=(0,l.createCSSTransform)(O,h);var x=(0,s.default)(n.props.className||"",i,(I(e={},a,this.state.dragging),I(e,c,this.state.dragged),e));return o.createElement(d.default,m({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:x,style:y(y({},n.props.style),v),transform:b}))}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.Component);t.default=C,I(C,"displayName","Draggable"),I(C,"propTypes",y(y({},d.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),I(C,"defaultProps",y(y({},d.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80783:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(67294)),i=d(n(45697)),a=d(n(73935)),s=n(81825),l=n(2849),u=n(9280),c=d(n(55904));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||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.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},S=x,I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&v(e,t)}(d,e);var t,n,r,i,u=(r=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(i){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function d(){var e;g(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return E(b(e=u.call.apply(u,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),E(b(e),"mounted",!1),E(b(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,s.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,s.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,s.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,l.getControlPosition)(t,o,b(e));if(null!=i){var a=i.x,u=i.y,d=(0,l.createCoreData)(b(e),a,u);(0,c.default)("DraggableCore: handleDragStart: %j",d),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,d)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:a,lastY:u}),(0,s.addEvent)(r,S.move,e.handleDrag),(0,s.addEvent)(r,S.stop,e.handleDragStop))}}})),E(b(e),"handleDrag",(function(t){var n=(0,l.getControlPosition)(t,e.state.touchIdentifier,b(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i=r-e.state.lastX,a=o-e.state.lastY,s=p((0,l.snapToGrid)(e.props.grid,i,a),2);if(i=s[0],a=s[1],!i&&!a)return;r=e.state.lastX+i,o=e.state.lastY+a}var u=(0,l.createCoreData)(b(e),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1!==e.props.onDrag(t,u)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(d)}}})),E(b(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,l.getControlPosition)(t,e.state.touchIdentifier,b(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i=r-e.state.lastX||0,a=o-e.state.lastY||0,u=p((0,l.snapToGrid)(e.props.grid,i,a),2);i=u[0],a=u[1],r=e.state.lastX+i,o=e.state.lastY+a}var d=(0,l.createCoreData)(b(e),r,o);if(!1===e.props.onStop(t,d)||!1===e.mounted)return!1;var f=e.findDOMNode();f&&e.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(f.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",d),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),f&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(f.ownerDocument,S.move,e.handleDrag),(0,s.removeEvent)(f.ownerDocument,S.stop,e.handleDragStop))}}})),E(b(e),"onMouseDown",(function(t){return S=x,e.handleDragStart(t)})),E(b(e),"onMouseUp",(function(t){return S=x,e.handleDragStop(t)})),E(b(e),"onTouchStart",(function(t){return S=O,e.handleDragStart(t)})),E(b(e),"onTouchEnd",(function(t){return S=O,e.handleDragStop(t)})),e}return t=d,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,s.addEvent)(e,O.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,s.removeEvent)(t,x.move,this.handleDrag),(0,s.removeEvent)(t,O.move,this.handleDrag),(0,s.removeEvent)(t,x.stop,this.handleDragStop),(0,s.removeEvent)(t,O.stop,this.handleDragStop),(0,s.removeEvent)(e,O.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.Component);t.default=I,E(I,"displayName","DraggableCore"),E(I,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),E(I,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},61193:(e,t,n)=>{"use strict";var r=n(75668),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},81825:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=p,t.addEvent=function(e,t,n,r){if(e){var o=l({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&p(e.body,"react-draggable-transparent-selection")}},t.createCSSTransform=function(e,t){var n=f(e,t,"px");return u({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return f(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=f,t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingTop))-(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,o.int)(n.paddingLeft))-(0,o.int)(n.paddingRight)},t.matchesSelector=d,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(d(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderTopWidth))+(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,o.int)(n.borderLeftWidth))+(0,o.int)(n.borderRightWidth)},t.removeClassName=h,t.removeEvent=function(e,t,n,r){if(e){var o=l({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var o=n(9280),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(38650));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c="";function d(e,t){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[c])&&e[c](t)}function f(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},38650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;var n=["Moz","Webkit","O","ms"];function r(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(var a=0;a<n.length;a++)if(o(r,n[a])in i)return n[a];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=r();t.default=i},55904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},2849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),s=i(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=i(e);if("string"==typeof a){var l,u=s.ownerDocument,c=u.defaultView;if(!((l="parent"===a?s.parentNode:u.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var d=l,f=c.getComputedStyle(s),p=c.getComputedStyle(d);a={left:-s.offsetLeft+(0,r.int)(p.paddingLeft)+(0,r.int)(f.marginLeft),top:-s.offsetTop+(0,r.int)(p.paddingTop)+(0,r.int)(f.marginTop),right:(0,o.innerWidth)(d)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(p.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,o.innerHeight)(d)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(p.paddingBottom)-(0,r.int)(f.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var r=n(9280),o=n(81825);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},9280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},78573:(e,t,n)=>{"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(67294),i=l(o),a=l(n(45697)),s=l(n(22007));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.fullScreenElement=null,n.detectFullScreen=n.detectFullScreen.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),r(t,[{key:"componentDidMount",value:function(){s.default.addEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentWillUnmount",value:function(){s.default.removeEventListener("fullscreenchange",this.detectFullScreen)}},{key:"componentDidUpdate",value:function(){this.handleProps(this.props)}},{key:"handleProps",value:function(e){var t=s.default.fullscreenElement===this.node;t&&!e.enabled?this.leaveFullScreen():!t&&e.enabled&&this.enterFullScreen()}},{key:"detectFullScreen",value:function(){s.default.fullscreenElement===this.node?(this.fullScreenElement=s.default.fullscreenElement,this.props.onChange(!0)):!s.default.fullscreenElement&&this.fullScreenElement&&(this.fullScreenElement=null,this.props.onChange(!1))}},{key:"enterFullScreen",value:function(){s.default.fullscreenEnabled&&s.default.requestFullscreen(this.node)}},{key:"leaveFullScreen",value:function(){s.default.fullscreenEnabled&&s.default.exitFullscreen()}},{key:"render",value:function(){var e=this,t=["fullscreen"];return this.props.enabled&&t.push("fullscreen-enabled"),i.default.createElement("div",{className:t.join(" "),ref:function(t){return e.node=t},style:this.props.enabled?{height:"100%",width:"100%"}:void 0},this.props.children)}}]),t}(o.Component);u.propTypes={children:a.default.node.isRequired,enabled:a.default.bool.isRequired,onChange:a.default.func},u.defaultProps={enabled:!1,onChange:function(){}},t.Z=u},97031:(e,t,n)=>{"use strict";n.d(t,{OO:()=>h,zv:()=>m,JP:()=>g,nI:()=>v,Db:()=>y});var r=n(15671),o=n(43144),i=n(4942),a=n(67294),s=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,l={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},u=function(e){return l[e]};function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f,p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(s,u)}},h=(0,a.createContext)();function g(){return p}var m=function(){function e(){(0,r.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function v(){return f}var y={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p=d(d({},p),e)}(e.options.react),function(e){f=e}(e)}}},87217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(4942),o=n(29439),i=n(45987),a=n(67294),s=n(97031);function l(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var u={};function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&u[t[0]]||("string"==typeof t[0]&&(u[t[0]]=new Date),l.apply(void 0,t))}function d(e,t,n){e.loadNamespaces(t,(function(){e.isInitialized?n():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}))}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return c("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):f(e,t,n)}function h(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e,t){var n=(0,a.useRef)();return(0,a.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,a.useContext)(s.OO)||{},i=r.i18n,l=r.defaultNS,u=n||i||(0,s.nI)();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new s.zv),!u){c("You will need to pass in an i18next instance by using initReactI18next");var f=function(e){return Array.isArray(e)?e[e.length-1]:e},h=[f,{},!1];return h.t=f,h.i18n={},h.ready=!1,h}u.options.react&&void 0!==u.options.react.wait&&c("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var g=m(m(m({},(0,s.JP)()),u.options.react),t),y=g.useSuspense,b=g.keyPrefix,w=e||l||u.options&&u.options.defaultNS;w="string"==typeof w?[w]:w||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(w);var E=(u.isInitialized||u.initializedStoreOnce)&&w.every((function(e){return p(e,u,g)}));function O(){return u.getFixedT(null,"fallback"===g.nsMode?w:w[0],b)}var x=(0,a.useState)(O),S=(0,o.Z)(x,2),I=S[0],C=S[1],_=w.join(),k=v(_),T=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=g.bindI18n,t=g.bindI18nStore;function n(){T.current&&C(O)}return T.current=!0,E||y||d(u,w,(function(){T.current&&C(O)})),E&&k&&k!==_&&T.current&&C(O),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){T.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[u,_]);var P=(0,a.useRef)(!0);(0,a.useEffect)((function(){T.current&&!P.current&&C(O),P.current=!1}),[u,b]);var R=[I,u,E];if(R.t=I,R.i18n=u,R.ready=E,E)return R;if(!E&&!y)return R;throw new Promise((function(e){d(u,w,(function(){e()}))}))}var b=["forwardedRef"];function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var s=r.forwardedRef,l=(0,i.Z)(r,b),u=y(e,E(E({},l),{},{keyPrefix:t.keyPrefix})),c=(0,o.Z)(u,3),d=c[0],f=c[1],p=c[2],h=E(E({},l),{},{t:d,i18n:f,tReady:p});return t.withRef&&s?h.ref=s:!t.withRef&&s&&(h.forwardedRef=s),(0,a.createElement)(n,h)}return r.displayName="withI18nextTranslation(".concat(h(n),")"),r.WrappedComponent=n,t.withRef?(0,a.forwardRef)((function(e,t){return(0,a.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}},13324:function(e,t,n){!function(e,t,n,r){"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function a(e){var t=e.srcList,r=e.imgPromise,o=void 0===r?l({decode:!0}):r,a=e.useSuspense,s=void 0===a||a,p=n.useState(!0)[1],h=u(c(t)),g=h.join("");if(d[g]||(d[g]={promise:f(h,o),cache:"pending",error:null}),d[g].promise.then((function(e){d[g]=i(i({},d[g]),{},{cache:"resolved",src:e}),s||p(!1)})).catch((function(e){d[g]=i(i({},d[g]),{},{cache:"rejected",error:e}),s||p(!1)})),"resolved"===d[g].cache)return{src:d[g].src,isLoading:!1,error:null};if("rejected"===d[g].cache){if(s)throw d[g].error;return{isLoading:!1,error:d[g].error,src:void 0}}if(s)throw d[g].promise;return{isLoading:!0,src:void 0,error:null}}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var s="default"in n?n.default:n;r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var l=function(e){var t=e.decode,n=e.crossOrigin,r=void 0===n?"":n;return function(e){return new Promise((function(n,o){var i=new Image;r&&(i.crossOrigin=r),i.onload=function(){(void 0===t||t)&&i.decode?i.decode().then(n).catch(o):n()},i.onerror=o,i.src=e}))}},u=function(e){return e.filter((function(e){return e}))},c=function(e){return Array.isArray(e)?e:[e]},d={},f=function(e,t){var n=!1;return new Promise((function(r,o){var i=function(e){return t(e).then((function(){n=!0,r(e)}))};e.reduce((function(e,t){return e.catch((function(){if(!n)return i(t)}))}),i(e.shift())).catch(o)}))},p=function(e){return e};e.Img=function(e){var n=e.decode,r=e.src,o=void 0===r?[]:r,i=e.loader,u=void 0===i?null:i,c=e.unloader,d=void 0===c?null:c,f=e.container,h=void 0===f?p:f,g=e.loaderContainer,m=void 0===g?p:g,v=e.unloaderContainer,y=void 0===v?p:v,b=e.imgPromise,w=e.crossorigin,E=e.useSuspense,O=void 0!==E&&E,x=t(e,["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"]),S=a({srcList:o,imgPromise:b=b||l({decode:!(void 0!==n)||n,crossOrigin:w}),useSuspense:O}),I=S.src,C=S.isLoading;return I?h(s.createElement("img",Object.assign({src:I},x))):!O&&C?m(u):!O&&d?y(d):null},e.useImage=a,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(7071),n(67294),n(38416))},69921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),o=h("react.fragment"),i=h("react.strict_mode"),a=h("react.profiler"),s=h("react.provider"),l=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),d=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}var g=u,m=f;t.ForwardRef=g,t.Memo=m,t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case f:case s:return e;default:return t}}case r:return t}}}(e)===l}},59864:(e,t,n)=>{"use strict";e.exports=n(69921)},28216:(e,t,n)=>{"use strict";n.d(t,{zt:()=>c,$j:()=>U});var r=n(67294),o=r.createContext(null),i=function(e){e()},a=function(){return i},s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function o(){l.onStateChange&&l.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=a(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var l={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const c=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);u((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var c=n||o;return r.createElement(c.Provider,{value:a},i)};var d=n(87462),f=n(63366),p=n(8679),h=n.n(p),g=n(59864),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],v=["reactReduxForwardedRef"],y=[],b=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function E(e,t,n){u((function(){return e.apply(void 0,t)}),n)}function O(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function x(e,t,n,r,o,i,a,s,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var S=function(){return[null,0]};function I(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,u=void 0===s?"connectAdvanced":s,c=n.renderCountProp,p=void 0===c?void 0:c,I=n.shouldHandleStateChanges,C=void 0===I||I,_=n.storeKey,k=void 0===_?"store":_,T=(n.withRef,n.forwardRef),P=void 0!==T&&T,R=n.context,A=void 0===R?o:R,j=(0,f.Z)(n,m),N=A;return function(t){var n=t.displayName||t.name||"Component",o=a(n),i=(0,d.Z)({},j,{getDisplayName:a,methodName:u,renderCountProp:p,shouldHandleStateChanges:C,storeKey:k,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=j.pure,c=s?r.useMemo:function(e){return e()};function m(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,f.Z)(n,v);return[n.context,e,t]}),[n]),a=o[0],s=o[1],u=o[2],p=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,g.isContextConsumer)(r.createElement(a.Consumer,null))?a:N}),[a,N]),h=(0,r.useContext)(p),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(h)&&Boolean(h.store);var I=m?n.store:h.store,_=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,i)}(I)}),[I]),k=(0,r.useMemo)((function(){if(!C)return b;var e=l(I,m?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[I,m,h]),T=k[0],P=k[1],R=(0,r.useMemo)((function(){return m?h:(0,d.Z)({},h,{subscription:T})}),[m,h,T]),A=(0,r.useReducer)(w,y,S),j=A[0][0],D=A[1];if(j&&j.error)throw j.error;var M=(0,r.useRef)(),L=(0,r.useRef)(u),Z=(0,r.useRef)(),z=(0,r.useRef)(!1),W=c((function(){return Z.current&&u===L.current?Z.current:_(I.getState(),u)}),[I,j,u]);E(O,[L,M,z,u,W,Z,P]),E(x,[C,I,T,_,L,M,z,Z,P,D],[I,T,_]);var F=(0,r.useMemo)((function(){return r.createElement(t,(0,d.Z)({},W,{ref:s}))}),[s,t,W]);return(0,r.useMemo)((function(){return C?r.createElement(p.Provider,{value:R},F):F}),[p,F,R])}var I=s?r.memo(m):m;if(I.WrappedComponent=t,I.displayName=m.displayName=o,P){var _=r.forwardRef((function(e,t){return r.createElement(I,(0,d.Z)({},e,{reactReduxForwardedRef:t}))}));return _.displayName=o,_.WrappedComponent=t,h()(_,t)}return h()(I,t)}}function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!C(e[n[o]],t[n[o]]))return!1;return!0}function k(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function T(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(t,n)),o},r}}const R=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:k((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?k((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],A=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:k((function(){return{}}))}];function j(e,t,n){return(0,d.Z)({},n,e,t)}const N=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function M(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function L(e,t,n,r,o){var i,a,s,l,u,c=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;return function(o,h){return p?function(o,p){var h,g,m=!d(p,a),v=!c(o,i,p,a);return i=o,a=p,m&&v?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?(h=e(i,a),g=!f(h,s),s=h,g&&(u=n(s,l,a)),u):u}(o,h):(s=e(i=o,a=h),l=t(r,a),u=n(s,l,a),p=!0,u)}}function Z(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,f.Z)(t,D),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?L:M)(a,s,l,e,i)}var z=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function W(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function F(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?I:n,o=t.mapStateToPropsFactories,i=void 0===o?A:o,a=t.mapDispatchToPropsFactories,s=void 0===a?R:a,l=t.mergePropsFactories,u=void 0===l?N:l,c=t.selectorFactory,p=void 0===c?Z:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,c=void 0===l||l,h=a.areStatesEqual,g=void 0===h?F:h,m=a.areOwnPropsEqual,v=void 0===m?_:m,y=a.areStatePropsEqual,b=void 0===y?_:y,w=a.areMergedPropsEqual,E=void 0===w?_:w,O=(0,f.Z)(a,z),x=W(e,i,"mapStateToProps"),S=W(t,s,"mapDispatchToProps"),I=W(n,u,"mergeProps");return r(p,(0,d.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:S,initMergeProps:I,pure:c,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:E},O))}}const U=B();var H;H=n(73935).unstable_batchedUpdates,i=H},61090:(e,t,n)=>{"use strict";n.d(t,{s:()=>R});var r=n(67294),o=n(61193),i=n.n(o),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return a(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:s(s({position:"absolute",userSelect:"none"},l[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),c=n(53316),d=n.n(c),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},h={width:"auto",height:"auto"},g=d()((function(e,t,n){return Math.max(Math.min(e,n),t)})),m=d()((function(e,t){return Math.round(e/t)*t})),v=d()((function(e,t){return new RegExp(e,"i").test(t)})),y=function(e){return Boolean(e.touches&&e.touches.length)},b=d()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),w=d()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),E=d()((function(e){return"auto"===(e=e.toString())||w(e,"px")||w(e,"%")||w(e,"vh")||w(e,"vw")||w(e,"vmax")||w(e,"vmin")?e:e+"px"})),O=function(e,t,n,r){if(e&&"string"==typeof e){if(w(e,"px"))return Number(e.replace("px",""));if(w(e,"%"))return t*(Number(e.replace("%",""))/100);if(w(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(w(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},x=d()((function(e,t,n,r,o,i,a){return r=O(r,e.width,t,n),o=O(o,e.height,t,n),i=O(i,e.width,t,n),a=O(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),S=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],I="__resizable_base__",C=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(I):t.className+=I,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return f(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&w(e.propsSize[t].toString(),"%")){if(w(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return E(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?E(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?E(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&v("left",i),s=o&&v("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,u=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=u||0,h=c||0;return v("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(f=(d-h)/this.ratio+p)),v("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(f=(d-h)/this.ratio+p)),v("bottom",i)&&(f=a.height+(t-a.y)*r/n,l&&(d=(f-p)*this.ratio+h)),v("top",i)&&(f=a.height-(t-a.y)*r/n,l&&(d=(f-p)*this.ratio+h)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,u=void 0===n.width||n.width<0?e:n.width,c=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(i){var h=(c-f)*this.ratio+p,m=(d-f)*this.ratio+p,v=(l-p)/this.ratio+f,y=(u-p)/this.ratio+f,b=Math.max(l,h),w=Math.min(u,m),E=Math.max(c,v),O=Math.min(d,y);e=g(e,b,w),t=g(t,E,O)}else e=g(e,l,u),t=g(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&y(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable&&!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:p(p({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&y(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=y(e)?e.touches[0].clientX:e.clientX,s=y(e)?e.touches[0].clientY:e.clientY,l=this.state,u=l.direction,c=l.original,d=l.width,f=l.height,p=this.getParentSize(),h=x(p,this.window.innerWidth,this.window.innerHeight,n,r,o,i);n=h.maxWidth,r=h.maxHeight,o=h.minWidth,i=h.minHeight;var g=this.calculateNewSizeFromDirection(a,s),v=g.newHeight,E=g.newWidth,O=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(E=b(E,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=b(v,this.props.snap.y,this.props.snapGap));var S=this.calculateNewSizeFromAspectRatio(E,v,{width:O.maxWidth,height:O.maxHeight},{width:o,height:i});if(E=S.newWidth,v=S.newHeight,this.props.grid){var I=m(E,this.props.grid[0]),C=m(v,this.props.grid[1]),_=this.props.snapGap||0;E=0===_||Math.abs(I-E)<=_?I:E,v=0===_||Math.abs(C-v)<=_?C:v}var k={width:E-c.width,height:v-c.height};d&&"string"==typeof d&&(w(d,"%")?E=E/p.width*100+"%":w(d,"vw")?E=E/this.window.innerWidth*100+"vw":w(d,"vh")&&(E=E/this.window.innerHeight*100+"vh")),f&&"string"==typeof f&&(w(f,"%")?v=v/p.height*100+"%":w(f,"vw")?v=v/this.window.innerWidth*100+"vw":w(f,"vh")&&(v=v/this.window.innerHeight*100+"vh"));var T={width:this.createSizeForCssProperty(E,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?T.flexBasis=T.width:"column"===this.flexDir&&(T.flexBasis=T.height),this.setState(T),this.props.onResize&&this.props.onResize(e,u,this.resizable,k)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:p(p({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var c=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(u,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},l&&l[t]?l[t]:null):null}));return r.createElement("div",{className:s,style:a},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==S.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=p(p(p({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,p({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent),_=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},_(e,t)},k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)},T=i(),P={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},R=function(e){function t(t){var n=e.call(this,t)||this;return n.resizingPosition={x:0,y:0},n.offsetFromParent={left:0,top:0},n.resizableElement={current:null},n.originalPosition={x:0,y:0},n.refDraggable=function(e){e&&(n.draggable=e)},n.refResizable=function(e){e&&(n.resizable=e,n.resizableElement.current=e.resizable)},n.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},n.onResizeStart=n.onResizeStart.bind(n),n.onResize=n.onResize.bind(n),n.onResizeStop=n.onResizeStop.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDrag=n.onDrag.bind(n),n.onDragStop=n.onDragStop.bind(n),n.getMaxSizesFromProps=n.getMaxSizesFromProps.bind(n),n}return function(e,t){function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.updateOffsetFromParent();var e=this.offsetFromParent,t=e.left,n=e.top,r=this.getDraggablePosition(),o=r.x,i=r.y;this.draggable.setState({x:o-t,y:i-n}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},t.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},t.prototype.onDragStart=function(e,t){this.props.onDragStart&&this.props.onDragStart(e,t);var n=this.getDraggablePosition();if(this.originalPosition=n,this.props.bounds){var r,o=this.getParent(),i=this.props.scale;if("parent"===this.props.bounds)r=o;else{if("body"===this.props.bounds){var a=o.getBoundingClientRect(),s=a.left,l=a.top,u=document.body.getBoundingClientRect(),c=-(s-o.offsetLeft*i-u.left)/i,d=-(l-o.offsetTop*i-u.top)/i,f=(document.body.offsetWidth-this.resizable.size.width*i)/i+c,p=(document.body.offsetHeight-this.resizable.size.height*i)/i+d;return this.setState({bounds:{top:d,right:f,bottom:p,left:c}})}if("window"===this.props.bounds){if(!this.resizable)return;var h=o.getBoundingClientRect(),g=h.left,m=h.top,v=-(g-o.offsetLeft*i)/i,y=-(m-o.offsetTop*i)/i;return f=(window.innerWidth-this.resizable.size.width*i)/i+v,p=(window.innerHeight-this.resizable.size.height*i)/i+y,this.setState({bounds:{top:y,right:f,bottom:p,left:v}})}"string"==typeof this.props.bounds?r=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(r=this.props.bounds)}if(r instanceof HTMLElement&&o instanceof HTMLElement){var b=r.getBoundingClientRect(),w=b.left,E=b.top,O=o.getBoundingClientRect(),x=(w-O.left)/i,S=E-O.top;if(this.resizable){this.updateOffsetFromParent();var I=this.offsetFromParent;this.setState({bounds:{top:S-I.top,right:x+(r.offsetWidth-this.resizable.size.width)-I.left/i,bottom:S+(r.offsetHeight-this.resizable.size.height)-I.top,left:x-I.left/i}})}}}},t.prototype.onDrag=function(e,t){if(this.props.onDrag){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(e,k(k({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(e,k(k({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDrag(e,k(k({},t),{x:t.x-r,y:t.y-o}))}},t.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(e,k(k({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(e,k(k({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDragStop(e,k(k({},t),{x:t.x+r,y:t.y+o}))}},t.prototype.onResizeStart=function(e,t,n){e.stopPropagation(),this.setState({resizing:!0});var r=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.originalPosition=i,this.props.bounds){var a=this.getParent(),s=void 0;"parent"===this.props.bounds?s=a:"body"===this.props.bounds?s=document.body:"window"===this.props.bounds?s=window:"string"==typeof this.props.bounds?s=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(s=this.props.bounds);var l=this.getSelfElement();if(l instanceof Element&&(s instanceof HTMLElement||s===window)&&a instanceof HTMLElement){var u=this.getMaxSizesFromProps(),c=u.maxWidth,d=u.maxHeight,f=this.getParentSize();if(c&&"string"==typeof c)if(c.endsWith("%")){var p=Number(c.replace("%",""))/100;c=f.width*p}else c.endsWith("px")&&(c=Number(c.replace("px","")));d&&"string"==typeof d&&(d.endsWith("%")?(p=Number(d.replace("%",""))/100,d=f.width*p):d.endsWith("px")&&(d=Number(d.replace("px",""))));var h=l.getBoundingClientRect(),g=h.left,m=h.top,v="window"===this.props.bounds?{left:0,top:0}:s.getBoundingClientRect(),y=v.left,b=v.top,w=this.getOffsetWidth(s),E=this.getOffsetHeight(s),O=t.toLowerCase().endsWith("left"),x=t.toLowerCase().endsWith("right"),S=t.startsWith("top"),I=t.startsWith("bottom");if((O||S)&&this.resizable){var C=(g-y)/r+this.resizable.size.width;this.setState({maxWidth:C>Number(c)?c:C})}(x||this.props.lockAspectRatio&&!O&&!S)&&(C=w+(y-g)/r,this.setState({maxWidth:C>Number(c)?c:C})),(S||O)&&this.resizable&&(C=(m-b)/r+this.resizable.size.height,this.setState({maxHeight:C>Number(d)?d:C})),(I||this.props.lockAspectRatio&&!S&&!O)&&(C=E+(b-m)/r,this.setState({maxHeight:C>Number(d)?d:C}))}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){var o={x:this.originalPosition.x,y:this.originalPosition.y},i=-r.width,a=-r.height;-1!==["top","left","topLeft","bottomLeft","topRight"].indexOf(t)&&("bottomLeft"===t?o.x+=i:("topRight"===t||(o.x+=i),o.y+=a)),o.x===this.draggable.state.x&&o.y===this.draggable.state.y||this.draggable.setState(o),this.updateOffsetFromParent();var s=this.offsetFromParent,l=this.getDraggablePosition().x+s.left,u=this.getDraggablePosition().y+s.top;this.resizingPosition={x:l,y:u},this.props.onResize&&this.props.onResize(e,t,n,r,{x:l,y:u})},t.prototype.onResizeStop=function(e,t,n,r){this.setState({resizing:!1});var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition(),l=t.scrollLeft,u=t.scrollTop;this.offsetFromParent={left:a.left-o+l-s.x*e,top:a.top-i+u-s.y*e}},t.prototype.render=function(){var e=this.props,t=e.disableDragging,n=e.style,o=e.dragHandleClassName,i=e.position,a=e.onMouseDown,s=e.onMouseUp,l=e.dragAxis,u=e.dragGrid,c=e.bounds,d=e.enableUserSelectHack,f=e.cancel,p=e.children,h=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),g=e.resizeHandleClasses,m=e.resizeHandleComponent,v=e.enableResizing,y=e.resizeGrid,b=e.resizeHandleWrapperClass,w=e.resizeHandleWrapperStyle,E=e.scale,O=e.allowAnyClick,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),S=this.props.default?k({},this.props.default):void 0;delete x.default;var I,_=t||o?{cursor:"auto"}:{cursor:"move"},R=k(k(k({},P),_),n),A=this.offsetFromParent,j=A.left,N=A.top;i&&(I={x:i.x-j,y:i.y-N});var D,M=this.state.resizing?void 0:I,L=this.state.resizing?"both":l;return(0,r.createElement)(T,{ref:this.refDraggable,handle:o?".".concat(o):void 0,defaultPosition:S,onMouseDown:a,onMouseUp:s,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:L,disabled:t,grid:u,bounds:c?this.state.bounds:void 0,position:M,enableUserSelectHack:d,cancel:f,scale:E,allowAnyClick:O,nodeRef:this.resizableElement},(0,r.createElement)(C,k({},x,{ref:this.refResizable,defaultSize:S,size:this.props.size,enable:"boolean"==typeof v?(D=v,{bottom:D,bottomLeft:D,bottomRight:D,left:D,right:D,top:D,topLeft:D,topRight:D}):v,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:R,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:y,handleWrapperClass:b,handleWrapperStyle:w,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:h,handleClasses:g,handleComponent:m,scale:this.props.scale}),p))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(r.PureComponent)},8935:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(67294),i=r(o),a=r(n(73935)),s=r(n(41143)),l=n(3774),u=r(n(63844)),c=r(n(96774));function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?O(e):t}var S={};function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return S[e]||(S[e]=u({strategy:e})),S[e]}var C="react-sizeme: an error occurred whilst stopping to listen to node size changes",_={monitorWidth:!0,monitorHeight:!1,monitorPosition:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function k(e){return e.displayName||e.name||"Component"}var T=function(e){function t(){return d(this,t),x(this,b(t).apply(this,arguments))}return y(t,e),p(t,[{key:"render",value:function(){return o.Children.only(this.props.children)}}]),t}(o.Component);function P(e){var t=e.className,n=e.style,r={};return t||n?(t&&(r.className=t),n&&(r.style=n)):r.style={width:"100%",height:"100%"},i.createElement("div",r)}h(T,"displayName","SizeMeReferenceWrapper"),P.displayName="SizeMePlaceholder";var R=function(e){function t(t){var n=t.explicitRef,r=t.className,o=t.style,a=t.size,s=t.disablePlaceholder,l=(t.onSize,E(t,["explicitRef","className","style","size","disablePlaceholder","onSize"])),u=(null==a||null==a.width&&null==a.height&&null==a.position)&&!s,c={className:r,style:o};null!=a&&(c.size=a);var d=u?i.createElement(P,{className:r,style:o}):i.createElement(e,g({},c,l));return i.createElement(T,{ref:n},d)}return t.displayName="SizeMeRenderer(".concat(k(e),")"),t};function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=e.monitorWidth,n=void 0===t?_.monitorWidth:t,r=e.monitorHeight,o=void 0===r?_.monitorHeight:r,u=e.monitorPosition,c=void 0===u?_.monitorPosition:u,f=e.refreshRate,m=void 0===f?_.refreshRate:f,w=e.refreshMode,E=void 0===w?_.refreshMode:w,S=e.noPlaceholder,T=void 0===S?_.noPlaceholder:S,P=e.resizeDetectorStrategy,j=void 0===P?_.resizeDetectorStrategy:P;s(n||o||c,'You have to monitor at least one of the width, height, or position when using "sizeMe"'),s(m>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),s("throttle"===E||"debounce"===E,'The refreshMode should have a value of "throttle" or "debounce"');var N="throttle"===E?l.throttle:l.debounce;return function(e){var t=R(e),r=function(e){function r(){var e,t;d(this,r);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return h(O(t=x(this,(e=b(r)).call.apply(e,[this].concat(a)))),"domEl",null),h(O(t),"state",{width:void 0,height:void 0,position:void 0}),h(O(t),"uninstall",(function(){if(t.domEl){try{t.detector.uninstall(t.domEl)}catch(e){console.warn(C)}t.domEl=null}})),h(O(t),"determineStrategy",(function(e){e.onSize?(t.callbackState||(t.callbackState=v({},t.state)),t.strategy="callback"):t.strategy="render"})),h(O(t),"strategisedSetState",(function(e){"callback"===t.strategy&&(t.callbackState=e,t.props.onSize(e)),t.setState(e)})),h(O(t),"strategisedGetState",(function(){return"callback"===t.strategy?t.callbackState:t.state})),h(O(t),"refCallback",(function(e){t.element=e})),h(O(t),"hasSizeChanged",(function(e,t){var r=e,i=t,a=r.position||{},s=i.position||{};return n&&r.width!==i.width||o&&r.height!==i.height||c&&(a.top!==s.top||a.left!==s.left||a.bottom!==s.bottom||a.right!==s.right)})),h(O(t),"checkIfSizeChanged",N(m,(function(e){var r=e.getBoundingClientRect(),i=r.width,a=r.height,s=r.right,l=r.left,u=r.top,d=r.bottom,f={width:n?i:null,height:o?a:null,position:c?{right:s,left:l,top:u,bottom:d}:null};t.hasSizeChanged(t.strategisedGetState(),f)&&t.strategisedSetState(f)}))),t}return y(r,e),p(r,[{key:"componentDidMount",value:function(){this.detector=I(j),this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentDidUpdate",value:function(){this.determineStrategy(this.props),this.handleDOMNode()}},{key:"componentWillUnmount",value:function(){this.hasSizeChanged=function(){},this.checkIfSizeChanged=function(){},this.uninstall()}},{key:"handleDOMNode",value:function(){var e=this.element&&a.findDOMNode(this.element);e?this.domEl?(this.domEl.isSameNode&&!this.domEl.isSameNode(e)||this.domEl!==e)&&(this.uninstall(),this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):(this.domEl=e,this.detector.listenTo(this.domEl,this.checkIfSizeChanged)):this.uninstall()}},{key:"render",value:function(){var e=A.enableSSRBehaviour||A.noPlaceholders||T||"callback"===this.strategy,n=v({},this.state);return i.createElement(t,g({explicitRef:this.refCallback,size:"callback"===this.strategy?null:n,disablePlaceholder:e},this.props))}}]),r}(i.Component);return h(r,"displayName","SizeMe(".concat(k(e),")")),r.WrappedComponent=e,r}}A.enableSSRBehaviour=!1,A.noPlaceholders=!1;var j=function(e){function t(e){var n;d(this,t),h(O(n=x(this,b(t).call(this,e))),"createComponent",(function(e){n.SizeAware=A(e)((function(e){return e.children}))})),h(O(n),"onSize",(function(e){return n.setState({size:e})})),e.children,e.render;var r=E(e,["children","render"]);return n.createComponent(r),n.state={size:{width:void 0,height:void 0}},n}return y(t,e),p(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=(t.children,t.render,E(t,["children","render"])),r=(e.children,e.render,E(e,["children","render"]));c(n,r)||this.createComponent(n)}},{key:"render",value:function(){var e=this.SizeAware,t=this.props.children||this.props.render;return i.createElement(e,{onSize:this.onSize},t({size:this.state.size}))}}]),t}(o.Component);h(j,"defaultProps",{children:void 0,render:void 0}),A.SizeMe=j,A.withSize=A,e.exports=A},58052:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g});var r=n(63366),o=n(94578),i=n(67294),a=n(73935);var s=n(220),l="unmounted",u="exited",c="entering",d="entered",f="exiting",p=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=u,r.appearStatus=c):o=d:o=t.unmountOnExit||t.mountOnEnter?l:u,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==d&&(t=c):n!==c&&n!==d||(t=f)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],s=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:c},(function(){t.props.onEntering(i,s),t.onTransitionEnd(u,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:d},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:f},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(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,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(s.Z.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function h(){}p.contextType=s.Z,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=l,p.EXITED=u,p.ENTERING=c,p.ENTERED=d,p.EXITING=f;const g=p},220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(67294).createContext(null)},72408:(e,t,n)=>{"use strict";var r=n(27418),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function E(){}function O(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=w.prototype;var x=O.prototype=new E;x.constructor=O,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},I=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)I.call(t,r)&&!C.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:S.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g,P=[];function R(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function j(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+D(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=t+D(o=e[l],l);s+=j(o,u,n,r)}else if("function"==typeof(u=null===e||"object"!=typeof e?null:"function"==typeof(u=m&&e[m]||e["@@iterator"])?u:null))for(e=u.call(e),l=0;!(o=e.next()).done;)s+=j(o=o.value,u=t+D(o,l++),n,r);else if("object"===o)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function N(e,t,n){return null==e?0:j(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Z(e,r,n,(function(e){return e})):null!=e&&(k(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+n)),r.push(e))}function Z(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(T,"$&/")+"/"),N(e,L,t=R(t,i,r,o)),A(t)}var z={current:null};function W(){var e=z.current;if(null===e)throw Error(v(321));return e}var F={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return Z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,M,t=R(null,null,t,n)),A(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return Z(e,t,null,(function(e){return e})),t},only:function(e){if(!k(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=u,t.PureComponent=O,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)I.call(t,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return W().useCallback(e,t)},t.useContext=function(e,t){return W().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return W().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return W().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return W().useLayoutEffect(e,t)},t.useMemo=function(e,t){return W().useMemo(e,t)},t.useReducer=function(e,t,n){return W().useReducer(e,t,n)},t.useRef=function(e){return W().useRef(e)},t.useState=function(e){return W().useState(e)},t.version="16.14.0"},67294:(e,t,n)=>{"use strict";e.exports=n(72408)},28500:(e,t,n)=>{"use strict";var r=n(97779).qC;t.Uo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__},97779:(e,t,n)=>{"use strict";n.d(t,{md:()=>m,DE:()=>h,UY:()=>f,qC:()=>g,MT:()=>d});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,l=[],f=l,p=!1;function h(){f===l&&(f=l.slice())}function g(){if(p)throw new Error(a(3));return i}function m(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),f.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=f.indexOf(e);f.splice(n,1),l=null}}}function v(e){if(!c(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=l=f,n=0;n<t.length;n++)(0,t[n])();return e}function y(e){if("function"!=typeof e)throw new Error(a(10));o=e,v({type:u.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return v({type:u.INIT}),(r={dispatch:v,subscribe:m,getState:g,replaceReducer:y})[s]=b,r}function f(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<s.length;l++){var u=s[l],c=n[u],d=e[u],f=c(d,t);if(void 0===f)throw t&&t.type,new Error(a(14));o[u]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?o:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=p(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return r=g.apply(void 0,s)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},20573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSelector:()=>l,createSelectorCreator:()=>s,createStructuredSelector:()=>u,defaultEqualityCheck:()=>o,defaultMemoize:()=>i});var r="NOT_FOUND",o=function(e,t){return e===t};function i(e,t){var n,i,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=void 0===s?o:s,u=a.maxSize,c=void 0===u?1:u,d=a.resultEqualityCheck,f=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(l),p=1===c?(n=f,{get:function(e){return i&&n(i.key,e)?i.value:r},put:function(e,t){i={key:e,value:t}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,f);function h(){var t=p.get(arguments);if(t===r){if(t=e.apply(null,arguments),d){var n=p.getEntries(),o=n.find((function(e){return d(e.value,t)}));o&&(t=o.value)}p.put(arguments,t)}return t}return h.clearCache=function(){return p.clear()},h}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,s=0,l={memoizeOptions:void 0},u=r.pop();if("object"==typeof u&&(l=u,u=r.pop()),"function"!=typeof u)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof u+"]");var c=l,d=c.memoizeOptions,f=void 0===d?n:d,p=Array.isArray(f)?f:[f],h=a(r),g=e.apply(void 0,[function(){return s++,u.apply(null,arguments)}].concat(p)),m=e((function(){for(var e=[],t=h.length,n=0;n<t;n++)e.push(h[n].apply(null,arguments));return i=g.apply(null,e)}));return Object.assign(m,{resultFunc:u,memoizedResultFunc:g,dependencies:h,lastResult:function(){return i},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),m};return o}var l=s(i),u=function(e,t){if(void 0===t&&(t=l),"object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e),r=t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t,r){return e[n[r]]=t,e}),{})}));return r}},31474:(e,t)=>{"use strict";function n(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e[r]=n,e}),{})}function r(e){return"boolean"==typeof e}function o(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return null==e}function s(e){return e&&"object"==typeof e}function l(e){return"string"==typeof e}function u(e,t){return-1!==e.indexOf(t)}function c(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function d(e,t,n,r){return t+c(n)+r}function f(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var n=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(n)+"%"}return e}function p(e){return e.replace(/ +/g," ").split(" ").map((function(e){return e.trim()})).filter(Boolean).reduce((function(e,t){var n=e.list,r=e.state,o=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return r.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+t:n.push(t),r.parensDepth+=o-i,{list:n,state:r}}),{list:[],state:{parensDepth:0}}).list}function h(e){var t=p(e);if(t.length<=3||t.length>4)return e;var n=t[0],r=t[1],o=t[2];return[n,t[3],o,r].join(" ")}function g(e){return!r(e)&&!a(e)}function m(e){for(var t=[],n=0,r=0,o=!1;r<e.length;)o||","!==e[r]?"("===e[r]?(o=!0,r++):")"===e[r]?(o=!1,r++):r++:(t.push(e.substring(n,r).trim()),n=++r);return n!=r&&t.push(e.substring(n,r+1)),t}var v={padding:function(e){var t=e.value;return i(t)?t:h(t)},textShadow:function(e){return m(e.value).map((function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,(function(e,t,n,r){return"0"===r?e:t+(""===n?"-":"")+r}))})).join(",")},borderColor:function(e){return h(e.value)},borderRadius:function(e){var t=e.value;if(i(t))return t;if(u(t,"/")){var n=t.split("/"),r=n[0],o=n[1];return v.borderRadius({value:r.trim()})+" / "+v.borderRadius({value:o.trim()})}var a=p(t);switch(a.length){case 2:return a.reverse().join(" ");case 4:var s=a[0],l=a[1],c=a[2];return[l,s,a[3],c].join(" ");default:return t}},background:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex;if(i(t))return t;var s=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(s,v.backgroundPosition({value:s,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:a})),v.backgroundImage({value:t,valuesToConvert:n,bgImgDirectionRegex:o})},backgroundImage:function(e){var t=e.value,n=e.valuesToConvert,r=e.bgImgDirectionRegex;return u(t,"url(")||u(t,"linear-gradient(")?t.replace(r,(function(e,t,r){return e.replace(r,n[r])})):t},backgroundPosition:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return t.replace(r?/^((-|\d|\.)+%)/:null,(function(e,t){return f(t)})).replace(o,(function(e){return n[e]}))},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return i(t)?t:v.backgroundPosition({value:t,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:o})},transition:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){var t=e.split(" ");return t[0]=n[t[0]]||t[0],t.join(" ")})).join(", ")},transitionProperty:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){return n[e]||e})).join(", ")},transform:function(e){var t=e.value,n="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",r="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+n+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+n+")*)?)|(?:inherit|auto))",o=new RegExp("(translateX\\s*\\(\\s*)"+r+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+r+"((?:\\s*,\\s*"+r+"){0,1}\\s*\\))","gi"),a=new RegExp("(translate3d\\s*\\(\\s*)"+r+"((?:\\s*,\\s*"+r+"){0,2}\\s*\\))","gi"),s=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+r+"(\\s*\\))","gi");return t.replace(o,d).replace(i,d).replace(a,d).replace(s,d)}};v.objectPosition=v.backgroundPosition,v.margin=v.padding,v.borderWidth=v.padding,v.boxShadow=v.textShadow,v.webkitBoxShadow=v.boxShadow,v.mozBoxShadow=v.boxShadow,v.WebkitBoxShadow=v.boxShadow,v.MozBoxShadow=v.boxShadow,v.borderStyle=v.borderColor,v.webkitTransform=v.transform,v.mozTransform=v.transform,v.WebkitTransform=v.transform,v.MozTransform=v.transform,v.transformOrigin=v.backgroundPosition,v.webkitTransformOrigin=v.transformOrigin,v.mozTransformOrigin=v.transformOrigin,v.WebkitTransformOrigin=v.transformOrigin,v.MozTransformOrigin=v.transformOrigin,v.webkitTransition=v.transition,v.mozTransition=v.transition,v.WebkitTransition=v.transition,v.MozTransition=v.transition,v.webkitTransitionProperty=v.transitionProperty,v.mozTransitionProperty=v.transitionProperty,v.WebkitTransitionProperty=v.transitionProperty,v.MozTransitionProperty=v.transitionProperty,v["text-shadow"]=v.textShadow,v["border-color"]=v.borderColor,v["border-radius"]=v.borderRadius,v["background-image"]=v.backgroundImage,v["background-position"]=v.backgroundPosition,v["background-position-x"]=v.backgroundPositionX,v["object-position"]=v.objectPosition,v["border-width"]=v.padding,v["box-shadow"]=v.textShadow,v["-webkit-box-shadow"]=v.textShadow,v["-moz-box-shadow"]=v.textShadow,v["border-style"]=v.borderColor,v["-webkit-transform"]=v.transform,v["-moz-transform"]=v.transform,v["transform-origin"]=v.transformOrigin,v["-webkit-transform-origin"]=v.transformOrigin,v["-moz-transform-origin"]=v.transformOrigin,v["-webkit-transition"]=v.transition,v["-moz-transition"]=v.transition,v["transition-property"]=v.transitionProperty,v["-webkit-transition-property"]=v.transitionProperty,v["-moz-transition-property"]=v.transitionProperty;var y=n([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),b=["content"],w=n([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),E=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),O=new RegExp("(left)|(right)");function x(e){return Object.keys(e).reduce((function(t,n){var r=e[n];if(l(r)&&(r=r.trim()),u(b,n))return t[n]=r,t;var o=S(n,r),i=o.key,a=o.value;return t[i]=a,t}),Array.isArray(e)?[]:{})}function S(e,t){var n=/\/\*\s?@noflip\s?\*\//.test(t),r=n?e:I(e);return{key:r,value:n?t:C(r,t)}}function I(e){return y[e]||e}function C(e,t){if(!g(t))return t;if(s(t))return x(t);var n,r=i(t),a=o(t),l=r||a?t:t.replace(/ !important.*?$/,""),u=!r&&l.length!==t.length,c=v[e];return n=c?c({value:l,valuesToConvert:w,propertiesToConvert:y,isRtl:!0,bgImgDirectionRegex:E,bgPosDirectionRegex:O}):w[l]||l,u?n+" !important":n}t.arrayToObject=n,t.calculateNewBackgroundPosition=f,t.canConvertValue=g,t.convert=x,t.convertProperty=S,t.flipSign=c,t.flipTransformSign=d,t.getPropertyDoppelganger=I,t.getValueDoppelganger=C,t.getValuesAsList=p,t.handleQuartetValues=h,t.includes=u,t.isBoolean=r,t.isFunction=o,t.isNullOrUndefined=a,t.isNumber=i,t.isObject=s,t.isString=l,t.propertiesToConvert=y,t.propertyValueConverters=v,t.propsToIgnore=b,t.splitShadow=m,t.valuesToConvert=w},85658:(e,t,n)=>{"use strict";var r=n(31474);e.exports=r.convert},60053:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(u,0))},r=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=f.now();t.unstable_now=function(){return f.now()-m}}var v=!1,y=null,b=-1,w=5,E=0;i=function(){return t.unstable_now()>=E},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,x=O.port2;O.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+w;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(e){throw x.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,x.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function I(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>_(a,n))void 0!==l&&0>_(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>_(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],T=[],P=1,R=null,A=3,j=!1,N=!1,D=!1;function M(e){for(var t=I(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,S(k,t)}t=I(T)}}function L(e){if(D=!1,M(e),!N)if(null!==I(k))N=!0,n(Z);else{var t=I(T);null!==t&&r(L,t.startTime-e)}}function Z(e,n){N=!1,D&&(D=!1,o()),j=!0;var a=A;try{for(M(n),R=I(k);null!==R&&(!(R.expirationTime>n)||e&&!i());){var s=R.callback;if(null!==s){R.callback=null,A=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===I(k)&&C(k),M(n)}else C(k);R=I(k)}if(null!==R)var u=!0;else{var c=I(T);null!==c&&r(L,c.startTime-n),u=!1}return u}finally{R=null,A=a,j=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||j||(N=!0,n(Z))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return I(k)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=W,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:P++,callback:i,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(T,e),null===I(k)&&e===I(T)&&(D?o():D=!0,r(L,l-s))):(e.sortIndex=a,S(k,e),N||j||(N=!0,n(Z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=I(k);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},63840:(e,t,n)=>{"use strict";e.exports=n(60053)},96774:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}},93379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],u=r.base?l[0]+r.base:l[0],c=i[u]||0,d="".concat(u," ").concat(c);i[u]=c+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),u=0;u<i.length;u++){var c=n(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},90569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},19216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},44589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3774:function(e,t){!function(e){"use strict";function t(e,t,n,r){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var d=this,f=Date.now()-a;function p(){a=Date.now(),n.apply(d,u)}function h(){o=void 0}i||(r&&!o&&p(),s(),void 0===r&&f>e?p():!0!==t&&(o=setTimeout(r?h:p,void 0===r?e-f:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),i=!0},l}e.debounce=function(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},25869:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)}))}n.r(t),n.d(t,{default:()=>r})},8575:(e,t,n)=>{"use strict";var r=n(74971),o=n(62502);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),d=["%","/","?",";","#"].concat(c),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(17673);i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var b=e=u.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var w=l.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=a.exec(b);if(E){var O=(E=E[0]).toLowerCase();this.protocol=O,b=b.substr(E.length)}if(n||E||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===b.substr(0,2);!x||E&&m[E]||(b=b.substr(2),this.slashes=!0)}if(!m[E]&&(x||E&&!v[E])){for(var S,I,C=-1,_=0;_<f.length;_++)-1!==(k=b.indexOf(f[_]))&&(-1===C||k<C)&&(C=k);for(-1!==(I=-1===C?b.lastIndexOf("@"):b.lastIndexOf("@",C))&&(S=b.slice(0,I),b=b.slice(I+1),this.auth=decodeURIComponent(S)),C=-1,_=0;_<d.length;_++){var k;-1!==(k=b.indexOf(d[_]))&&(-1===C||k<C)&&(C=k)}-1===C&&(C=b.length),this.host=b.slice(0,C),b=b.slice(C),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var P=this.hostname.split(/\./),R=(_=0,P.length);_<R;_++){var A=P[_];if(A&&!A.match(p)){for(var j="",N=0,D=A.length;N<D;N++)A.charCodeAt(N)>127?j+="x":j+=A[N];if(!j.match(p)){var M=P.slice(0,_),L=P.slice(_+1),Z=A.match(h);Z&&(M.push(Z[1]),L.unshift(Z[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!g[O])for(_=0,R=c.length;_<R;_++){var F=c[_];if(-1!==b.indexOf(F)){var B=encodeURIComponent(F);B===F&&(B=escape(F)),b=b.split(F).join(B)}}var U=b.indexOf("#");-1!==U&&(this.hash=b.substr(U),b=b.slice(0,U));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),v[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var V=this.search||"";this.path=z+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=e[c])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var g=n.pathname||"",y=n.search||"";n.path=g+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=w||b||n.host&&e.pathname,O=E,x=n.pathname&&n.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),E=E&&(""===h[0]||""===x[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search))return S&&(n.hostname=n.host=x.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var I=x.slice(-1)[0],C=(n.host||e.host||x.length>1)&&("."===I||".."===I)||""===I,_=0,k=x.length;k>=0;k--)"."===(I=x[k])?x.splice(k,1):".."===I?(x.splice(k,1),_++):_&&(x.splice(k,1),_--);if(!E&&!O)for(;_--;_)x.unshift("..");!E||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),C&&"/"!==x.join("/").substr(-1)&&x.push("");var T,P=""===x[0]||x[0]&&"/"===x[0].charAt(0);return S&&(n.hostname=n.host=P?"":x.length?x.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift())),(E=E||n.host&&x.length)&&!P&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},62502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},45327:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},85217:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},71171:(e,t,n)=>{var r=n(85217),o=n(45327);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},38416:(e,t,n)=>{var r=n(64062);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},10434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},75263:(e,t,n)=>{var r=n(18698).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},70215:(e,t,n)=>{var r=n(7071);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},7071:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},17061:(e,t,n)=>{var r=n(18698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),s=new k(r||[]);return a(i,"_invoke",{value:S(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function g(){}function m(){}function v(){}var y={};d(y,l,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&i.call(w,l)&&(y=w);var E=v.prototype=g.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,a,s,l){var u=p(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function I(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,I(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=v,a(E,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:m,configurable:!0}),m.displayName=d(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},O(x.prototype),d(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),d(E,c,"Generator"),d(E,l,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},95036:(e,t,n)=>{var r=n(18698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:(e,t,n)=>{var r=n(18698).default,o=n(95036);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64687:(e,t,n)=>{var r=n(17061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30907:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},97326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},15671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},43144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(49142);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(49142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},94578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(89611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},59199:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},25267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},45987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},89611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},29439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83878),o=n(40181),i=n(25267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},93433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(30907),o=n(59199),i=n(40181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},49142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},40181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".mirador.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="mirador-simplifed:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/viewer/sites/all/modules/dlts_viewer/mirador/integration/dist/",(()=>{var e={179:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);l&&l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkmirador_simplifed=self.webpackChunkmirador_simplifed||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e={};o.r(e),o.d(e,{default:()=>_s});var t={};o.r(t),o.d(t,{accessTokensReducer:()=>Zr,annotationsReducer:()=>Br,authReducer:()=>Gr,catalogReducer:()=>Qr,companionWindowsReducer:()=>ao,configReducer:()=>po,elasticLayoutReducer:()=>vo,errorsReducer:()=>Co,infoResponsesReducer:()=>Po,layersReducer:()=>No,manifestsReducer:()=>Zo,searchesReducer:()=>Ho,viewersReducer:()=>$o,windowsReducer:()=>Qo,workspaceReducer:()=>ai});var n={};o.r(n),o.d(n,{getAccessTokens:()=>ki.f2,getAllowedWindowViewTypes:()=>la.Gh,getAnnotationResourcesByMotivation:()=>ts.aW,getAnnotationResourcesByMotivationForCanvas:()=>ts.OY,getAnnotations:()=>ts.fy,getAuth:()=>ki.v0,getAuthProfiles:()=>ki.CC,getCanvas:()=>Ti.o_,getCanvasDescription:()=>Ti.TI,getCanvasForAnnotation:()=>sa.QW,getCanvasGrouping:()=>Ti.jE,getCanvasGroupings:()=>Ti.hY,getCanvasIndex:()=>Ws.Dr,getCanvasLabel:()=>Ti.vt,getCanvasLayers:()=>zs.o4,getCanvases:()=>Ti.LU,getCatalog:()=>Pi.R4,getCompanionAreaVisibility:()=>aa.a5,getCompanionWindow:()=>aa.KW,getCompanionWindowIdsForPosition:()=>aa.AP,getCompanionWindows:()=>aa.SR,getCompanionWindowsForContent:()=>aa.ig,getCompanionWindowsForPosition:()=>aa.Ve,getConfig:()=>O.iE,getContainerId:()=>O.vW,getCurrentCanvas:()=>Ti.Pm,getCurrentCanvasWorld:()=>Bs.B,getDefaultSidebarVariant:()=>Zs.U_,getDestructuredMetadata:()=>ia.Ez,getElasticLayout:()=>x.Fr,getExpandedNodeIds:()=>Zs.$p,getExportableState:()=>O.iU,getFullScreenEnabled:()=>x.By,getLanguagesFromConfigWithCurrent:()=>O.yX,getLatestError:()=>x.xp,getLayers:()=>zs.xb,getLayersForVisibleCanvases:()=>zs.SF,getManifest:()=>Pi.WC,getManifestAutocompleteService:()=>ia.DH,getManifestDescription:()=>ia.LJ,getManifestError:()=>ia.P3,getManifestHomepage:()=>ia.Ar,getManifestLocale:()=>ia.j8,getManifestLogo:()=>ia.Fx,getManifestMetadata:()=>ia.Qm,getManifestProvider:()=>ia.CA,getManifestRelatedContent:()=>ia.V9,getManifestRenderings:()=>ia.h,getManifestSearchService:()=>ia.Oo,getManifestStatus:()=>ia.JK,getManifestThumbnail:()=>ia._3,getManifestTitle:()=>ia.Yq,getManifestUrl:()=>ia.BP,getManifestoInstance:()=>ia.hi,getManifests:()=>Pi.Eq,getManuallyExpandedNodeIds:()=>Zs.VZ,getMaximizedWindowsIds:()=>la.lV,getMetadataLocales:()=>ia.ys,getNextCanvasGrouping:()=>Ti.m7,getNextSearchId:()=>sa.uQ,getNodeIdToScrollTo:()=>Zs.jh,getPresentAnnotationsOnSelectedCanvases:()=>ts.A7,getPreviousCanvasGrouping:()=>Ti.iQ,getRequestsConfig:()=>O.$0,getRequiredStatement:()=>ia.AI,getResourceAnnotationForSearchHit:()=>sa.hv,getResourceAnnotationLabel:()=>sa.YM,getRights:()=>ia.Sy,getSearchAnnotationsForCompanionWindow:()=>sa.ku,getSearchAnnotationsForWindow:()=>sa.kM,getSearchForWindow:()=>sa.zm,getSearchIsFetching:()=>sa.x6,getSearchNumTotal:()=>sa.fB,getSearchQuery:()=>sa.uP,getSelectedAnnotationId:()=>ts.EO,getSelectedAnnotationsOnCanvases:()=>ts.zB,getSelectedContentSearchAnnotationIds:()=>sa.iV,getSequence:()=>Ws.Mv,getSequenceBehaviors:()=>Ws.rm,getSequenceTreeStructure:()=>Ws.OL,getSequenceViewingDirection:()=>Ws.Xf,getSequenceViewingHint:()=>Ws.qN,getSequences:()=>Ws.nH,getShowZoomControlsConfig:()=>O._M,getSortedLayers:()=>zs.e4,getSortedSearchAnnotationsForCompanionWindow:()=>sa.IC,getSortedSearchHitsForCompanionWindow:()=>sa.b2,getTheme:()=>O.gh,getThemeDirection:()=>O.tt,getThemeIds:()=>O.CX,getThumbnailNavigationPosition:()=>aa.js,getViewer:()=>Pi.gA,getVisibleCanvasAudioResources:()=>Ti.Ul,getVisibleCanvasCaptions:()=>Ti.U$,getVisibleCanvasIds:()=>Ti.Lc,getVisibleCanvasNonTiledResources:()=>Ti.Fg,getVisibleCanvasVideoResources:()=>Ti.e0,getVisibleCanvases:()=>Ti.cw,getVisibleNodeIds:()=>Zs.q0,getWindow:()=>Pi.Jj,getWindowConfig:()=>la.Em,getWindowDraggability:()=>la.$h,getWindowIds:()=>Pi.BF,getWindowManifests:()=>Pi.FU,getWindowTitles:()=>la.ZK,getWindowViewType:()=>la.ys,getWindows:()=>Pi.Ao,getWorkspace:()=>Pi.oq,getWorkspaceType:()=>x.WM,isFocused:()=>x.$Z,miradorSlice:()=>Fs.z,selectCompanionWindowDimensions:()=>aa.mT,selectCurrentAuthServices:()=>ki.pB,selectInfoResponse:()=>Ti.h2,selectInfoResponses:()=>Ti.k5,sortSearchAnnotationsByCanvasOrder:()=>sa.rZ});var r=o(67294),i=o(73935),a=o(28216),s=o(65114),l=o(93425),u=o.n(l),c=o(23894);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e){return e.mapStateToProps||e.mapDispatchToProps?a.$j.apply(void 0,[e.mapStateToProps,e.mapDispatchToProps].concat(h(e.connectOptions||[])))(e.component):e.component}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){var t,n,o=e.plugins,i=e.children,a=(t=(0,r.useState)({}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(t,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.")}()),l=a[0],d=a[1];return(0,r.useEffect)((function(){var e=function(e){return e.map((function(e){return f(f({},e),{},{component:m(e)})}))}(o);!function(e){e.filter((function(e){return e.companionWindowKey})).forEach((function(e){c.Z[e.companionWindowKey]=e.component})),c.Z}(e),d(function(e){return e.reduce((function(e,t){return u()(e,[t.target,t.mode],(function(e){return[].concat(h(e||[]),[t])}))}),{})}(e))}),[o]),r.createElement(s.Z.Provider,{value:l},i)}y.defaultProps={children:null,plugins:[]};var b=o(97779),w=o(11196),E=o(41328),O=o(1172),x=o(31001),S=o(78573),I=o(97031);function C(e){var t=e.i18n,n=e.defaultNS,o=e.children,i=(0,r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,r.createElement)(I.OO.Provider,{value:i},o)}var _=o(86746),k=o(5034),T=o(13457),P=o(34549),R=o(26975),A=o(60246),j=o(89862),N=o(5293),D=o(95320),M=o(42790),L=o(54013),Z=o(45448),z=o(71002),W=o(4942);function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,W.Z)(e,t,n[t])}))}return e}var B=o(15671),U=o(43144),H=o(97326);function V(e,t){if(t&&("object"===(0,z.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,H.Z)(e)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var q=o(89611);function $(e,t){if("function"!=typeof t&&null!==t)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&&(0,q.Z)(e,t)}var K={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,B.Z)(this,e),this.init(t,n)}return(0,U.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||K,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,F({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),X=new Y,Q=function(){function e(){(0,B.Z)(this,e),this.observers={}}return(0,U.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function J(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ee(e){return null==e?"":""+e}function te(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ne(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function re(e,t,n){var r=ne(e,t,Object);r.obj[r.k]=n}function oe(e,t){var n=ne(e,t),r=n.obj,o=n.k;if(r)return r[o]}function ie(e,t,n){var r=oe(e,n);return void 0!==r?r:oe(t,n)}function ae(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):ae(e[r],t[r],n):e[r]=t[r]);return e}function se(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var le={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ue(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return le[e]})):e}var ce="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,de=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,B.Z)(this,t),n=V(this,G(t).call(this)),ce&&Q.call((0,H.Z)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return $(t,e),(0,U.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),oe(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),re(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=oe(this.data,a)||{};r?ae(s,n,o):s=F({},s,n),re(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?F({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(Q),fe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},pe={},he=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,B.Z)(this,t),n=V(this,G(t).call(this)),ce&&Q.call((0,H.Z)(n)),te(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,H.Z)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=X.create("translator"),n}return $(t,e),(0,U.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==(0,z.Z)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),s=a.key,l=a.namespaces,u=l[l.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var f=n.nsSeparator||this.options.nsSeparator;return u+f+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,m=p&&p.exactUsedKey||s,v=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&y.indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,n):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var O="[object Array]"===v,x=O?[]:{},S=O?m:g;for(var I in h)if(Object.prototype.hasOwnProperty.call(h,I)){var C="".concat(S).concat(i).concat(I);x[I]=this.translate(C,F({},n,{joinArrays:!1,ns:l})),x[I]===C&&(x[I]=h[I])}h=x}}else if(w&&"string"==typeof b&&"[object Array]"===v)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var _=!1,k=!1,T=void 0!==n.count&&"string"!=typeof n.count,P=t.hasDefaultValue(n),R=T?this.pluralResolver.getSuffix(c,n.count):"",A=n["defaultValue".concat(R)]||n.defaultValue;!this.isValidLookup(h)&&P&&(_=!0,h=A),this.isValidLookup(h)||(k=!0,h=s);var j=P&&A!==h&&this.options.updateMissing;if(k||_||j){if(this.logger.log(j?"updateKey":"missingKey",c,u,s,j?A:h),i){var N=this.resolve(s,F({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var L=0;L<M.length;L++)D.push(M[L]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var Z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,t,j?r:h,j,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,t,j?r:h,j,n),o.emit("missingKey",e,u,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?D.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){Z([e],s+t,n["defaultValue".concat(t)]||A)}))})):Z(D,s,A))}h=this.extendTranslation(h,e,n,p,r),k&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(u,":").concat(s)),k&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(F({},n,{interpolation:F({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=F({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=fe.handle(f,e,t,this.options&&this.options.postProcessPassResolved?F({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!pe["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(pe["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l,c=u,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,u,n,e,s):(d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(c+i),f&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),d&&p.push(c+=i));l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(Q);function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}var me=function(){function e(t){(0,B.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=X.create("languageUtils")}return(0,U.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ge(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ge(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ge(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),ve=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ye={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function be(){var e={};return ve.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:ye[t.fc]}}))})),e}var we=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,B.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=X.create("pluralResolver"),this.rules=be()}return(0,U.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,B.Z)(this,e),this.logger=X.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,U.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ue,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?se(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?se(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?se(t.nestingPrefix):t.nestingPrefixEscaped||se("$t("),this.nestingSuffix=t.nestingSuffix?se(t.nestingSuffix):t.nestingSuffixEscaped||se(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=ie(t,l,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(ie(t,l,a),u,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=ee(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=F({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=F({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],u=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=ee(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Oe=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,B.Z)(this,t),o=V(this,G(t).call(this)),ce&&Q.call((0,H.Z)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=X.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return $(t,e),(0,U.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,l,u,c;r=n.loaded,s=i,l=ne(r,[o],Object),u=l.obj,c=l.k,u[c]=u[c]||[],u[c].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,F({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(Q);function xe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,z.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,z.Z)(e[2])||"object"===(0,z.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Se(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ie(){}var Ce=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,B.Z)(this,t),e=V(this,G(t).call(this)),ce&&Q.call((0,H.Z)(e)),e.options=Se(n),e.services={},e.logger=X,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),V(e,(0,H.Z)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return $(t,e),(0,U.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=F({},xe(),this.options,Se(t)),this.format=this.options.interpolation.format,n||(n=Ie),!this.options.isClone){this.modules.logger?X.init(r(this.modules.logger),this.options):X.init(null,this.options);var o=new me(this.options);this.store=new de(this.options.resources,this.options);var i=this.services;i.logger=X,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new we(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Ee(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Oe(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new he(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=J(),c=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=J();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Ie),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&fe.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=J();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==(0,z.Z)(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=F({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=J();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=J();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie,o=F({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=F({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new he(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(Q);const _e=new Ce,ke=JSON.parse('{"translation":{"aboutThisItem":"عن هذا العنصر","addedFromUrl":"(تمت إضافته من الرابط)","addManifestUrl":"موقع المصدر","addManifestUrlHelp":"الرابط لمصدر IIIF ","addResource":"اضف مصدر","annotationCanvasLabel_1/1":"العنصر: [{{الملصق}}]","annotationCanvasLabel_1/2":"يسار: [{{الملصق }}]","annotationCanvasLabel_2/2":"يمين: [{{الملصق}}]","annotations":"ملاحظات","attribution":"إسناد","attributionTitle":"حقوق","authenticationFailed":"التوثيق لم ينجح","authenticationRequired":"يجب توثيق الحساب لمنح الدخول الكامل","backToResults":"الرجوع الى النتائج","book":"كتاب","bottom":"أسفل","cancel":"الغاء","canvasIndex":"فهرس","changeTheme":"قم بتغيير الموضوع","clearSearch":"امسح","closeAddResourceForm":"إغلاق الإستمارة","closeAddResourceMenu":"إغلاق قائمة المصادر","closeCompanionWindow":"إغلاق اللوحة","closeWindow":"إغلاق النافذة","collapseSection":"تصغير جزء {{section}}","collapseSidePanel":"تصغير الشريط الجانبي","itemList":"قائمة العناصر","continue":"استمر","copy":"نسخ","currentItem":"العنصر الحالي","currentItem_1/1":"العنصر الحالي","currentItem_1/2":"يسار","currentItem_2/2":"يمين","dark":"موضوع داكن","dismiss":"تجاهل","highlightAllAnnotations":"تحديد الكل","downloadExport":"تصدير مساحة العمل","downloadExportWorkspace":"تصدير مساحة العمل","elastic":"مرن","elasticDescription":"حرك النوافذ و غير حجمها بحرية في مساحة عمل غير محدودة. يمكن أن تتداخل النوافذ أيضاً .","emptyResourceList":"قائمة المصادر الخاصة بك فارغة.","errorDialogConfirm":"حسناً","errorDialogTitle":"لقد حدث خطأ","exitFullScreen":"خروج من الشاشة الكاملة","expandSection":"توسيع الجزء {{section}}","expandSidePanel":"توسيع الشريط الجانبي","fetchManifest":"أضف","fullScreen":"شاشة كاملة","gallery":"المعرض","hideZoomControls":"إخفاء ضوابط التكبير","iiif_homepage":"عن هذه المصدر","iiif_manifest":"IIIF قائمة ","iiif_renderings":"تنسيقات بديلة","iiif_seeAlso":"أنظر أيضا","import":"استورد ","importWorkspace":"استيراد مساحة العمل","importWorkspaceHint":"قم بلصق تركيبة Mirador 3 ليتم استيراده","item":"العنصر: {{label}}","language":"اللغة","layer_hide":"إخفاء الطبقة","layer_move":"تحريك الطبقة","layer_opacity":"تعتيم الطبقة","layer_show":"إظهار الطبقة","layer_moveToTop":"حرك الطبقة إلى الأعلى","layers":"طبقات","light":"موضوع فاتح","links":"الروابط","listAllOpenWindows":"انتقل بسرعة للنافذة","login":"تسجيل الدخول","logout":"تسجيل الخروج","manifestError":"لا يمكن إضافة المصدر:","maximizeWindow":"تكبير النافذة إلى الحد الاكبر","minimizeWindow":"تصغير النافذة إلى الحد الأدنى","mirador":"Mirador","miradorResources":"مصادر Mirador ","miradorViewer":"مشاهد Mirador","more":"أكثر...","moreResults":"نتائج إضافية","mosaic":"فسيفساء","mosaicDescription":"حرك وغيٌر حجم النوافذ المتعلقة ببعضها البعض داخل الإطار المرئي.","moveCompanionWindowToBottom":"انتقل للأسفل","moveCompanionWindowToRight":"انتقل لليمين","nextCanvas":"العنصر التالي","numItems":"{{number}} عناصر","off":"ايقاف","openCompanionWindow_annotations":"ملاحظات","openCompanionWindow_attribution":"حقوق","openCompanionWindow_canvas":"فهرس","openCompanionWindow_info":"معلومات","openCompanionWindow_layers":"طبقات","openCompanionWindow_search":"بحث","openInCompanionWindow":"افتح في صفحة جديدة","openWindows":"النوافذ الحالية المفتوحة","pagination":"{{current}} من {{total}}","position":"مركز","previewWindowTitle":"عنوان","previousCanvas":"العنصر السابق","related":"ذات صلة","resource":"مصدر","retry":"أعد المحاولة ","right":"حق","rights":"ترخيص","searchInputLabel":"مصطلحات البحث","searchNextResult":"النتيجة التالية","searchNoResults":"لم يتم العثور على نتائج","searchPreviousResult":"النتيجة السابقة","searchSubmitAria":"ابحث","searchTitle":"بحث","selectWorkspaceMenu":"اختر نوع مساحة العمل","showingNumAnnotations":"تظهر {{number}} ملاحظات","showZoomControls":"اظهر عناصر التحكم بالتكبير و التصغير","sidebarPanelsNavigation":"تصفح لوح الشريط الجانبي","single":"مفرد","startHere":"إبدأ هنا","suggestSearch":"ابحث في هذا المستند عن \\"{{ query }}\\"","tableOfContentsList":"جدول المحتويات","theme":"موضوع","thumbnailList":"قائمة الصور المصغرة","thumbnailNavigation":"الصور المصغرة","thumbnails":"الصور المصغرة","toggleWindowSideBar":"تبديل الشريط الجانبي","tryAgain":"حاول مرة أخرى","untitled":"[بدون عنوان]","view":"شاهد","welcome":"مرحباً بكم في Mirador","window":"النافذة: {{label}}","windowMenu":"عرض النوافذ و الصور المصغرة","windowNavigation":"تصفح النافذة","windowPluginButtons":"خيارات","windowPluginMenu":"خيارات النافذة","workspace":"مساحة العمل","workspaceFullScreen":"شاشة كاملة","workspaceMenu":"اعدادات مساحة العمل","workspaceOptions":"خيارات مساحة العمل ","workspaceSelectionTitle":"اختر نوع مساحة العمل","zoomIn":"تكبير الصورة","zoomOut":"تصغير الصورة","zoomReset":"الرجوع لحجم الصورة الأساسي"}}'),Te=JSON.parse('{"translation":{"aboutMirador":"Über Mirador","aboutThisItem":"Über dieses Element","addedFromUrl":"(Via URL hinzugefügt)","addManifestUrl":"Ort der Ressource","addManifestUrlHelp":"Die URL einer IIIF-Ressource","addResource":"Ressource hinzufügen","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotationen","attribution":"Zuschreibung","attributionTitle":"Rechte","authenticationFailed":"Authentifizierung fehlgeschlagen","authenticationRequired":"Für vollen Zugriff ist eine Authentifizierung nötig.","backToResults":"Zurück zur Trefferansicht","book":"Buch","bottom":"Unten","cancel":"Abbrechen","canvasIndex":"Index","changeTheme":"Farbschema ändern","clearSearch":"zurücksetzen","closeAddResourceForm":"Formular schließen","closeAddResourceMenu":"Ressourcenliste schließen","closeCompanionWindow":"Hilfsfenster schließen","closeWindow":"Fenster schließen","collapseSection":"Bereich \\"{{section}}\\" zuklappen","collapseSidePanel":"Seitenleiste zuklappen","itemList":"Kompaktliste","continue":"Fortfahren","copy":"Kopieren","currentItem":"Aktuelles Objekt","currentItem_1/1":"Aktuelles Objekt","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Dunkel","digitizedView":"Digitalisat-Ansicht","dismiss":"Verwerfen","highlightAllAnnotations":"Alle hervorheben","displayNoAnnotations":"Keine hervorheben","downloadExport":"Arbeitsfläche exportieren","downloadExportWorkspace":"Arbeitsfläche exportieren","elastic":"Elastisch","elasticDescription":"Fenster können frei und unbegrenzt innerhalb der Arbeitsfläche bewegt werden und sich überlappen","emptyResourceList":"Ihre Ressourcenliste ist leer","error":"Fehler","errorDialogConfirm":"OK","errorDialogTitle":"Es ist ein Fehler aufgetreten","exitFullScreen":"Vollbildmodus verlassen","expandSection":"Bereich \\"{{section}}\\" aufklappen","expandSidePanel":"Seitenleiste aufklappen","exportCopied":"Die Konfiguration der Arbeitsfläche wurde in die Zwischenablage kopiert.","fetchManifest":"Hinzufügen","fullScreen":"Vollbild","gallery":"Galerie","hideZoomControls":"Zoomsteuerung verbergen","iiif_homepage":"Über diese Ressource","iiif_manifest":"IIIF-Manifest","iiif_renderings":"Alternative Formate","iiif_seeAlso":"Siehe auch","import":"Importieren","importWorkspace":"Arbeitsfläche importieren","importWorkspaceHint":"Fügen Sie eine Mirador-3-Konfiguration ein, die importiert werden soll.","item":"Objekt: {{label}}","jsError":"Technische Details","jsStack":"{{ stack }}","language":"Sprache","layer_hide":"Ebene verbergen","layer_move":"Ebene verschieben","layer_opacity":"Ebenendeckkraft","layer_show":"Ebene anzeigen","layer_moveToTop":"Ebene ganz nach vorn bringen","layers":"Ebenen","light":"Hell","links":"Links","listAllOpenWindows":"Zu Fenster springen","login":"Anmelden","logout":"Abmelden","manifestError":"Die Ressource konnte nicht hinzugefügt werden:","maximizeWindow":"Fenster maximieren","minimizeWindow":"Fenster minimieren","mirador":"Mirador","miradorResources":"Mirador-Ressourcen","miradorViewer":"Mirador","more":"mehr...","moreResults":"Mehr Treffer","mosaic":"Mosaik","mosaicDescription":"Fenster können innerhalb der Arbeitsfläche in Relation zueinander verschoben und ihrer Größe verändert werden.","moveCompanionWindowToBottom":"Unten anordnen","moveCompanionWindowToRight":"Rechts anordnen","nextCanvas":"Nächstes Objekt","numItems":"{{number}} Elemente","off":"Keine","openCompanionWindow_annotations":"Annotationen","openCompanionWindow_attribution":"Rechte","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informationen","openCompanionWindow_layers":"Ebenen","openCompanionWindow_search":"Suche","openInCompanionWindow":"In Hilfsfenster öffnen","openWindows":"Aktuell offene Fenster","pagination":"{{current}} von {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Vorheriges Objekt","related":"Verwandtes","resource":"Ressource","retry":"Erneut versuchen","right":"Rechts","rights":"Lizenz","scroll":"Kontinuierlich","searchInputLabel":"Suchbegriffe","searchNextResult":"Nächster Treffer","searchNoResults":"Keine Treffer","searchPreviousResult":"Vorheriger Treffer","searchResultsRemaining":"{{numLeft}} weitere","searchSubmitAria":"Suchen","searchTitle":"Suche","selectWorkspaceMenu":"Wählen Sie einen Arbeitsflächentyp","showingNumAnnotations":"{{number}} Annotationen werden angezeigt","showZoomControls":"Zoomsteuerung anzeigen","sidebarPanelsNavigation":"Hilfsfensternavigation","single":"Einzeln","startHere":"Hier starten","suggestSearch":"Dieses Dokument durchsuchen nach \\"{{ query }}\\"","tableOfContentsList":"Inhaltsverzeichnis","theme":"Farbschema","thumbnailList":"Miniaturansicht","thumbnailNavigation":"Miniaturansicht","thumbnails":"Miniaturansicht","toggleWindowSideBar":"Seitenleiste umschalten","tryAgain":"Wiederholen","untitled":"[Unbenannt]","view":"Ansicht","welcome":"Willkommen bei Mirador","window":"Fenster: {{label}}","windowMenu":"Fenstermenü und Miniaturansicht","windowNavigation":"Fensternavigation","windowPluginButtons":"Optionen","windowPluginMenu":"Fensteroptionen","workspace":"Arbeitsfläche","workspaceNavigation":"Arbeitsflächensteuerung","workspaceFullScreen":"Vollbild","workspaceMenu":"Arbeitsflächenmenü","workspaceOptions":"Arbeitsflächenoptionen","workspaceSelectionTitle":"Bitte wählen Sie einen Arbeitsflächentyp","zoomIn":"Vergrößern","zoomOut":"Verkleinern","zoomReset":"Ansicht zurücksetzen"}}'),Pe=JSON.parse('{"translation":{"aboutMirador":"About Project Mirador","aboutThisItem":"About this item","addedFromUrl":"(Added from URL)","addManifestUrl":"Resource location","addManifestUrlHelp":"The URL of a IIIF resource","addResource":"Add resource","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Left: [{{label}}]","annotationCanvasLabel_2/2":"Right: [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Rights","authenticationFailed":"Authentication failed.","authenticationRequired":"Authentication required for full access","backToResults":"Back to results","book":"Book","bottom":"Bottom","cancel":"Cancel","canvasIndex":"Index","changeTheme":"Change theme","clearSearch":"clear","close":"Close","closeAddResourceForm":"Close form","closeAddResourceMenu":"Close resource list","closeCompanionWindow":"Close panel","closeWindow":"Close window","collapseSection":"Collapse \\"{{section}}\\" section","collapseSidePanel":"Collapse sidebar","collection":"Collection","itemList":"Item list","continue":"Continue","copy":"Copy","currentItem":"Current item","currentItem_1/1":"Current item","currentItem_1/2":"Left","currentItem_2/2":"Right","dark":"Dark theme","digitizedView":"Digitized view","dismiss":"Dismiss","highlightAllAnnotations":"Highlight all","displayNoAnnotations":"Highlight none","downloadExport":"Export workspace","downloadExportWorkspace":"Export workspace","elastic":"Elastic","elasticDescription":"Move and size windows freely in an unlimited workspace. Windows can overlap.","emptyResourceList":"Your resource list is empty","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"An error occurred","exitFullScreen":"Exit full screen","expandSection":"Expand \\"{{section}}\\" section","expandSidePanel":"Expand sidebar","exportCopied":"The workspace configuration was copied to your clipboard","fetchManifest":"Add","fullScreen":"Full Screen","gallery":"Gallery","hideZoomControls":"Hide zoom controls","iiif_homepage":"About this resource","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternate formats","iiif_seeAlso":"See also","import":"Import","importWorkspace":"Import workspace","importWorkspaceHint":"Paste a Mirador 3 configuration to be imported","item":"Item: {{label}}","jsError":"Technical details","jsStack":"{{ stack }}","language":"Language","layer_hide":"Hide layer","layer_move":"Move layer","layer_opacity":"Layer opacity","layer_show":"Show layer","layer_moveToTop":"Move layer to top","layers":"Layers","light":"Light theme","links":"Links","listAllOpenWindows":"Jump to window","login":"Log in","logout":"Log out","manifestError":"The resource cannot be added:","maximizeWindow":"Maximize window","minimizeWindow":"Minimize window","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"more...","moreResults":"More results","mosaic":"Mosaic","mosaicDescription":"Move and size windows in relation to each other, within the visible frame.","moveCompanionWindowToBottom":"Move to bottom","moveCompanionWindowToRight":"Move to right","nextCanvas":"Next item","noItemSelected":"No item selected","numItems":"{{number}} item","numItems_plural":"{{number}} items","off":"Off","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Rights","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Layers","openCompanionWindow_search":"Search","openInCompanionWindow":"Open in separate panel","openWindows":"Current open windows","pagination":"{{current}} of {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Related","resource":"Resource","retry":"Retry","right":"Right","rights":"License","scroll":"Scroll","searchInputLabel":"search terms","searchNextResult":"Next result","searchNoResults":"No results found","searchPreviousResult":"Previous result","searchResultsRemaining":"{{numLeft}} remaining","searchSubmitAria":"Submit search","searchTitle":"Search","selectWorkspaceMenu":"Select workspace type","showingNumAnnotations":"Showing {{number}} annotation","showingNumAnnotations_plural":"Showing {{number}} annotations","showCollection":"Show collection","showZoomControls":"Show zoom controls","sidebarPanelsNavigation":"Sidebar panels navigation","single":"Single","startHere":"Start Here","suggestSearch":"Search this document for \\"{{ query }}\\"","tableOfContentsList":"Table of contents","theme":"Theme","thumbnailList":"Thumbnail list","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toggle sidebar","totalCollections":"{{count}} collection","totalCollections_plural":"{{count}} collections","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Try again","untitled":"[Untitled]","view":"View","viewWorkspaceConfiguration":"View workspace configuration","welcome":"Welcome to Mirador","window":"Window: {{label}}","windowMenu":"Window views & thumbnail display","windowNavigation":"Window navigation","windowPluginButtons":"Options","windowPluginMenu":"Window options","workspace":"Workspace","workspaceNavigation":"Workspace navigation","workspaceFullScreen":"Full screen","workspaceMenu":"Workspace settings","workspaceOptions":"Workspace options","workspaceSelectionTitle":"Select a workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),Re=JSON.parse('{"translation":{"aboutThisItem":"有关此物件","addedFromUrl":"(从URL添加)","addManifestUrl":"来源","addManifestUrlHelp":"IIIF资源的URL","addResource":"添加资源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"注释","attribution":"着作权","attributionTitle":"着作权","book":"书籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"变更佈景主题","closeAddResourceForm":"关闭表格","closeAddResourceMenu":"关闭资源列表","closeCompanionWindow":"关闭附属视窗","closeWindow":"关闭视窗","collapseSection":"关闭{{section}}分页","collapseSidePanel":"关闭边栏","itemList":"标题列表","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"黑色主题","dismiss":"关闭信息","highlightAllAnnotations":"显示所有注释","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"弹性","elasticDescription":"在桌面上自由摆放视窗","emptyResourceList":"资源列表没有物件","errorDialogConfirm":"确定","errorDialogTitle":"发生错误","exitFullScreen":"退出全萤幕","expandSection":"开启{{section}}分页","expandSidePanel":"开启边栏","fetchManifest":"添加","fullScreen":"全萤幕","gallery":"矩列","hideZoomControls":"隐藏缩放选项","iiif_homepage":"有关此资源","iiif_manifest":"IIIF","iiif_renderings":"其他格式","iiif_seeAlso":"另见","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此贴上Mirador 3排版设定码","item":"物件: {{label}}","language":"语言","light":"白色主题","links":"连结","listAllOpenWindows":"切换至视窗","login":"登入","manifestError":"无法增添资源:","maximizeWindow":"视窗最大化","minimizeWindow":"视窗最小化","mirador":"Mirador","miradorResources":"Mirador资源","miradorViewer":"Mirador阅览器","mosaic":"马赛克","mosaicDescription":"在桌面上以格状方式排列视窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","nextCanvas":"下一页","numItems":"{{number}} 项物件","off":"关闭","openCompanionWindow_annotations":"注释","openCompanionWindow_attribution":"着作权","openCompanionWindow_canvas":"目录","openCompanionWindow_info":"资讯","openInCompanionWindow":"移至新附属视窗","openWindows":"现有视窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一页","related":"相关资讯","resource":"资源","right":"右方","rights":"版权","selectWorkspaceMenu":"选择桌面排版方式","showingNumAnnotations":"显示 {{number}} 项注释","showZoomControls":"显示缩放选项","sidebarPanelsNavigation":"切换边栏","single":"单项","startHere":"按此开始","theme":"佈景主题","thumbnailList":"缩图列表","thumbnailNavigation":"缩图","thumbnails":"显示缩图","toggleWindowSideBar":"切换边栏开关","tryAgain":"请重试","untitled":"[无标题]","view":"物件排列方式","welcome":"欢迎使用Mirador","window":"视窗: {{label}}","windowMenu":"视窗选项","windowNavigation":"切换视窗","windowPluginButtons":"选项","workspace":"桌面","workspaceFullScreen":"全萤幕","workspaceMenu":"桌面设定","workspaceOptions":"桌面选项","workspaceSelectionTitle":"选择桌面排版方式","zoomIn":"放大","zoomOut":"放小","zoomReset":"重设缩放"}}'),Ae=JSON.parse('{"translation":{"aboutThisItem":"有關此物件","addedFromUrl":"(從URL添加)","addManifestUrl":"來源","addManifestUrlHelp":"IIIF資源的URL","addResource":"添加資源","annotationCanvasLabel_1/1":"物件: [{{label}}]","annotationCanvasLabel_1/2":"左方: [{{label}}]","annotationCanvasLabel_2/2":"右方: [{{label}}]","annotations":"注釋","attribution":"著作權","attributionTitle":"著作權","book":"書籍","bottom":"下方","cancel":"取消","canvasIndex":"索引","changeTheme":"變更佈景主題","closeAddResourceForm":"關閉表格","closeAddResourceMenu":"關閉資源列表","closeCompanionWindow":"關閉附屬視窗","closeWindow":"關閉視窗","collapseSection":"關閉{{section}}分頁","collapseSidePanel":"關閉邊欄","itemList":"標題列表","copy":"複製","currentItem":"目前物件","currentItem_1/1":"目前物件","currentItem_1/2":"左方","currentItem_2/2":"右方","dark":"黑色主題","dismiss":"關閉信息","highlightAllAnnotations":"顯示所有注釋","downloadExport":"滙出桌面排版","downloadExportWorkspace":"滙出桌面排版","elastic":"彈性","elasticDescription":"在桌面上自由擺放視窗","emptyResourceList":"資源列表沒有物件","errorDialogConfirm":"確定","errorDialogTitle":"發生錯誤","exitFullScreen":"退出全螢幕","expandSection":"開啟{{section}}分頁","expandSidePanel":"開啟邊欄","fetchManifest":"添加","fullScreen":"全螢幕","gallery":"矩列","hideZoomControls":"隱藏縮放選項","iiif_homepage":"有關此資源","iiif_manifest":"IIIF","iiif_renderings":"其他格式","iiif_seeAlso":"另見","import":"滙入","importWorkspace":"滙入桌面排版","importWorkspaceHint":"在此貼上Mirador 3排版設定碼","item":"物件: {{label}}","language":"語言","light":"白色主題","links":"連結","listAllOpenWindows":"切換至視窗","login":"登入","manifestError":"無法增添資源:","maximizeWindow":"視窗最大化","minimizeWindow":"視窗最小化","mirador":"Mirador","miradorResources":"Mirador資源","miradorViewer":"Mirador閱覽器","mosaic":"馬賽克","mosaicDescription":"在桌面上以格狀方式排列視窗","moveCompanionWindowToBottom":"移至下方","moveCompanionWindowToRight":"移至右方","nextCanvas":"下一頁","numItems":"{{number}} 項物件","off":"關閉","openCompanionWindow_annotations":"注釋","openCompanionWindow_attribution":"著作權","openCompanionWindow_canvas":"目錄","openCompanionWindow_info":"資訊","openInCompanionWindow":"移至新附屬視窗","openWindows":"現有視窗","pagination":"{{current}} / {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"上一頁","related":"相關資訊","resource":"資源","right":"右方","rights":"版權","selectWorkspaceMenu":"選擇桌面排版方式","showingNumAnnotations":"顯示 {{number}} 項注釋","showZoomControls":"顯示縮放選項","sidebarPanelsNavigation":"切換邊欄","single":"單項","startHere":"按此開始","theme":"佈景主題","thumbnailList":"縮圖列表","thumbnailNavigation":"縮圖","thumbnails":"顯示縮圖","toggleWindowSideBar":"切換邊欄開關","tryAgain":"請重試","untitled":"[無標題]","view":"物件排列方式","welcome":"歡迎使用Mirador","window":"視窗: {{label}}","windowMenu":"視窗選項","windowNavigation":"切換視窗","windowPluginButtons":"插件","workspace":"桌面","workspaceFullScreen":"全螢幕","workspaceMenu":"桌面設定","workspaceOptions":"桌面選項","workspaceSelectionTitle":"選擇桌面排版方式","zoomIn":"放大","zoomOut":"放小","zoomReset":"重設縮放"}}'),je=JSON.parse('{"translation":{"aboutMirador":"A propos du projet Mirador","aboutThisItem":"Informations","addedFromUrl":"(Ajouté depuis une URL)","addManifestUrl":"Emplacement de la ressource","addManifestUrlHelp":"Coller ici l\'URL de la ressource IIIF","addResource":"Ajouter une ressource","annotationCanvasLabel_1/1":"Item : [{{label}}]","annotationCanvasLabel_1/2":"Gauche : [{{label}}]","annotationCanvasLabel_2/2":"Droite : [{{label}}]","annotations":"Annotations","attribution":"Attribution","attributionTitle":"Droits","authenticationFailed":"L\'authentification a échoué.","authenticationRequired":"Authentification requise pour un accès complet","backToResults":"Retour aux résultats","book":"Livre","bottom":"Bas","cancel":"Annuler","canvasIndex":"Index","changeTheme":"Changer le thème","clearSearch":"effacer","closeAddResourceForm":"Fermer le panneau","closeAddResourceMenu":"Fermer la liste des ressources","closeCompanionWindow":"Fermer le panneau","closeWindow":"Fermer cette fenêtre","collapseSection":"Replier la section \\"{{section}}\\"","collapseSidePanel":"Replier le panneau","itemList":"Liste compacte","continue":"Continuer","copy":"Copier","currentItem":"Image courante","currentItem_1/1":"Image courante","currentItem_1/2":"Gauche","currentItem_2/2":"Droite","dark":"Thème sombre","digitizedView":"Vue de l\'objet numérique","dismiss":"Rejeter","highlightAllAnnotations":"Afficher tout","displayNoAnnotations":"Masquer tout","downloadExport":"Exporter l\'espace de travail","downloadExportWorkspace":"Exporter l\'espace de travail","elastic":"Elastique","elasticDescription":"Déplacer et redimensionner librement les fenêtres dans un espace de travail non limité par l\'écran. Les fenêtres peuvent être superposées.","emptyResourceList":"Votre liste de ressource est vide","error":"Erreur","errorDialogConfirm":"OK","errorDialogTitle":"Une erreur est survenue","exitFullScreen":"Quitter le plein écran","expandSection":"Déplier la section \\"{{section}}\\"","expandSidePanel":"Déplier le panneau","exportCopied":"La configuration de l\'espace de travail a été copiée dans votre presse-papier","fetchManifest":"Ajouter","fullScreen":"Plein écran","gallery":"Galerie","hideZoomControls":"Désactiver les commandes de zoom","iiif_homepage":"A propos de cette ressource","iiif_manifest":"Manifeste IIIF","iiif_renderings":"Formats alternatifs","iiif_seeAlso":"Voir aussi","import":"Importer","importWorkspace":"Importer un espace de travail","importWorkspaceHint":"Insérer une configuration Mirador 3 à importer","item":"Item : {{label}}","jsError":"Détails techniques","jsStack":"{{ stack }}","language":"Langue","layer_hide":"Masquer le calque","layer_move":"Déplacer le calque","layer_opacity":"Opacité du calque","layer_show":"Afficher le calque","layer_moveToTop":"Déplacer le calque en haut","layers":"Calques","light":"Thème clair","links":"Liens","listAllOpenWindows":"Lister les fenêtres","login":"Se connecter","logout":"Se déconnecter","manifestError":"Cette ressource ne peut pas être ajoutée :","maximizeWindow":"Agrandir cette fenêtre","minimizeWindow":"Réduire cette fenêtre","mirador":"Mirador","miradorResources":"Ressources Mirador","miradorViewer":"Visualiseur Mirador","more":"plus...","moreResults":"Plus de résultats","mosaic":"Mosaïque","mosaicDescription":"Déplacer et redimensionner les fenêtres les unes par rapport aux autres dans l\'espace disponible sur l\'écran","moveCompanionWindowToBottom":"Déplacer en bas","moveCompanionWindowToRight":"Déplacer à droite","nextCanvas":"Suivant","noItemSelected":"Aucun élément sélectionné","numItems":"{{number}} image","numItems_plural":"{{number}} images","off":"aucun","openCompanionWindow_annotations":"Annotations","openCompanionWindow_attribution":"Droits","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informations","openCompanionWindow_layers":"Calques","openCompanionWindow_search":"Rechercher","openInCompanionWindow":"Ouvrir dans un panneau séparé","openWindows":"Fenêtres ouvertes","pagination":"{{current}} sur {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Précédent","related":"En relation","resource":"Ressource","retry":"Réessayer","right":"Droite","rights":"Licence","scroll":"Défilement horizontal","searchInputLabel":"Chercher un mot","searchNextResult":"Résultat suivant","searchNoResults":"Aucun résultat trouvé","searchPreviousResult":"Résultat précédent","searchSubmitAria":"Lancer la recherche","searchTitle":"Rechercher","selectWorkspaceMenu":"Changer de type d\'espace de travail","showingNumAnnotations":"{{number}} annotation affichée","showingNumAnnotations_plural":"{{number}} annotations affichées","showCollection":"Voir la collection","showZoomControls":"Activer les commandes de zoom","sidebarPanelsNavigation":"Navigation dans les panneaux latéraux","single":"Simple","startHere":"Commencer ici","suggestSearch":"Rechercher \\"{{ query }}\\" dans ce document","tableOfContentsList":"Sommaire","theme":"Thème","thumbnailList":"Liste des vignettes","thumbnailNavigation":"Vignettes","thumbnails":"Afficher les vignettes","toggleWindowSideBar":"Afficher le menu latéral","totalCollections":"{{count}} collection","totalCollections_plural":"{{count}} collections","totalManifests":"{{count}} manifeste","totalManifests_plural":"{{count}} manifestes","tryAgain":"Essayer à nouveau","untitled":"[Sans titre]","view":"Voir les images en mode","welcome":"Bienvenue dans Mirador","window":"Fenêtre : {{label}}","windowMenu":"Options de fenêtre","windowNavigation":"Navigation dans les fenêtres","windowPluginButtons":"Options","windowPluginMenu":"Autres options et outils","workspace":"Espace de travail","workspaceNavigation":"Menu de l\'espace de travail","workspaceFullScreen":"Plein écran","workspaceMenu":"Réglages de l\'espace de travail","workspaceOptions":"Options de l\'espace de travail","workspaceSelectionTitle":"Sélectionner un type d\'espace de travail","zoomIn":"Zoom avant","zoomOut":"Zoom arrière","zoomReset":"Réinitialiser le zoom"}}'),Ne=JSON.parse('{"translation":{"aboutMirador":"Project Miradorについて","aboutThisItem":"この資料について","addedFromUrl":"(URLで追加)","addManifestUrl":"資料のURL","addManifestUrlHelp":"IIIF資料のURL","addResource":"資料の追加","annotationCanvasLabel_1/1":"アイテム: [{{label}}]","annotationCanvasLabel_1/2":"左: [{{label}}]","annotationCanvasLabel_2/2":"右: [{{label}}]","annotations":"アノテーション","attribution":"帰属","attributionTitle":"権利","authenticationFailed":"認証失敗","authenticationRequired":"フルアクセスには認証が必要","backToResults":"結果に戻る","book":"見開き","bottom":"下部","cancel":"キャンセル","canvasIndex":"インデックス","changeTheme":"テーマの変更","clearSearch":"クリア","close":"閉じる","closeAddResourceForm":"フォームを閉じる","closeAddResourceMenu":"資料一覧を閉じる","closeCompanionWindow":"パネルを閉じる","closeWindow":"ウインドウを閉じる","collapseSection":"{{section}} セクションを畳む","collapseSidePanel":"サイドバーを畳む","collection":"コレクション","itemList":"アイテム一覧","continue":"続ける","copy":"コピー","currentItem":"現在のアイテム","currentItem_1/1":"現在のアイテム","currentItem_1/2":"左","currentItem_2/2":"右","dark":"ダークなテーマ","digitizedView":"デジタルビュー","dismiss":"片付け","highlightAllAnnotations":"すべてを表示","displayNoAnnotations":"アノテーションを非表示","downloadExport":"ワークスペースをエクスポート","downloadExportWorkspace":"ワークスペースをエクスポート","elastic":"伸縮","elasticDescription":"自由なウインドウの伸縮","emptyResourceList":"資料の一覧が空です","error":"エラー","errorDialogConfirm":"OK","errorDialogTitle":"エラー発生","exitFullScreen":"全画面を解除","expandSection":"セクション {{section}}を拡大","expandSidePanel":"サイドバーを拡大","exportCopied":"ワークスペースの設定がクリップボードにコピーされました。","fetchManifest":"追加","fullScreen":"全画面","gallery":"ギャラリー","hideZoomControls":"zoom制御を隠す","iiif_homepage":"IIIFホームページ","iiif_manifest":"IIIF マニフェスト","iiif_renderings":"別の形式","iiif_seeAlso":"参照","import":"取り込み","importWorkspace":"ワークスペースの取り込み","importWorkspaceHint":"Mirador3の設定を貼り付け","item":"アイテム: {{label}}","jsError":"技術的な詳細","jsStack":"{{ stack }}","language":"言語","layer_hide":"レイヤーを隠す","layer_move":"レイヤーを動かす","layer_opacity":"レイヤーの透過度","layer_show":"レイヤーを表示","layer_moveToTop":"レイヤーをトップへ","layers":"レイヤー","light":"明るいテーマ","links":"リンク","listAllOpenWindows":"ウインドウにジャンプ","login":"ログイン","logout":"ログアウト","manifestError":"資料追加に失敗:","maximizeWindow":"ウインドウを最大化","minimizeWindow":"ウインドウを最小化","mirador":"Mirador","miradorResources":"Mirador資料","miradorViewer":"Miradorビューワ","more":"さらに...","moreResults":"さらに結果を","mosaic":"モザイク","mosaicDescription":"モザイク表示","moveCompanionWindowToBottom":"下部に移動","moveCompanionWindowToRight":"右に移動","nextCanvas":"次のアイテム","noItemSelected":"アイテムが未選択","numItems":"{{number}} アイテム","off":"オフ","openCompanionWindow_annotations":"アノテーション","openCompanionWindow_attribution":"権利","openCompanionWindow_canvas":"インデックス","openCompanionWindow_info":"情報","openCompanionWindow_layers":"レイヤー","openCompanionWindow_search":"検索","openInCompanionWindow":"別のパネルで開く","openWindows":"現在開いているウインドウ","pagination":"{{current}} of {{total}}","position":"位置","previewWindowTitle":"{{title}}","previousCanvas":"前のアイテム","related":"関連","resource":"資料","retry":"リトライ","right":"右側","rights":"利用条件","scroll":"スクロール","searchInputLabel":"検索語","searchNextResult":"次の結果","searchNoResults":"ヒットせず","searchPreviousResult":"前の結果","searchSubmitAria":"検索","searchTitle":"検索","selectWorkspaceMenu":"ワークスペースタイプの選択","showingNumAnnotations":"アノテーション {{number}} を表示","showCollection":"コレクションを表示","showZoomControls":"ズーム操作を表示","sidebarPanelsNavigation":"サイドバーパネルの操作","single":"単一","startHere":"ここから始める","suggestSearch":"この文書を \\"{{ query }}\\" で検索","tableOfContentsList":"目次","theme":"テーマ","thumbnailList":"サムネイル一覧","thumbnailNavigation":"サムネイル","thumbnails":"サムネイル表示","toggleWindowSideBar":"サイドバー切り替え","totalCollections":"{{count}} コレクション","totalManifests":"{{count}} マニフェスト","tryAgain":"もう一度試す","untitled":"[タイトル無し]","view":"表示の仕方","welcome":"Miradorにようこそ","window":"{{label}} ウインドウ","windowMenu":"ウインドウメニュー","windowNavigation":"ウィンドウ操作","windowPluginButtons":"オプション","windowPluginMenu":"ウインドウオプション","workspace":"ワークスペース","workspaceNavigation":"ワークスペースナビ","workspaceFullScreen":"全画面","workspaceMenu":"ワークスペースの設定","workspaceOptions":"ワークスペースのオプション","workspaceSelectionTitle":"ワークスペースのタイプを選択","zoomIn":"ズームイン","zoomOut":"ズームアウト","zoomReset":"ズームを戻す"}}'),De=JSON.parse('{"translation":{"aboutMirador":"Mirador 프로젝트에 대하여","aboutThisItem":"해당 아이템에 대하여","addedFromUrl":"(URL에서 추가됨)","addManifestUrl":"리소스의 위치","addManifestUrlHelp":"IIIF 리소스의 URL","addResource":"리소스 추가","annotationCanvasLabel_1/1":"아이템: [{{label}}]","annotationCanvasLabel_1/2":"왼쪽: [{{label}}]","annotationCanvasLabel_2/2":"오른쪽: [{{label}}]","annotations":"주석","attribution":"귀속","attributionTitle":"권리","authenticationFailed":"인증 실패.","authenticationRequired":"모든 정보에 접근하기 위해선 인증이 필요합니다.","backToResults":"결과로 돌아가기","book":"책","bottom":"아래","cancel":"취소","canvasIndex":"인덱스","changeTheme":"테마 변경","clearSearch":"지우기","close":"닫기","closeAddResourceForm":"폼 닫기","closeAddResourceMenu":"리소스 목록 닫기","closeCompanionWindow":"패널 닫기","closeWindow":"윈도우 닫기","collapseSection":"\\"{{section}}\\" 섹션 접기","collapseSidePanel":"사이드바 접기","collection":"컬렉션","itemList":"아이템 목록","continue":"계속하기","copy":"복사","currentItem":"현재 아이템","currentItem_1/1":"현재 아이템","currentItem_1/2":"왼쪽","currentItem_2/2":"오른쪽","dark":"다크 모드","digitizedView":"디지털 뷰","dismiss":"무시하기","highlightAllAnnotations":"모두 하이라이트하기","displayNoAnnotations":"하이라이트 해제","downloadExport":"작업공간 내보내기","downloadExportWorkspace":"작업공간 내보내기","elastic":"신축성","elasticDescription":"무한한 작업공간에서 윈도우를 자유롭게 움직이고 조절해보세요. 윈도우는 서로 겹칠 수 있습니다.","emptyResourceList":"리소스 목록이 비어있습니다","error":"오류","errorDialogConfirm":"허락","errorDialogTitle":"오류 발생","exitFullScreen":"전체화면에서 나가기","expandSection":"\\"{{section}}\\" 섹션 확장","expandSidePanel":"사이드바 확장","exportCopied":"작업공간 환경설정을 클립보드에 복사했습니다","fetchManifest":"추가하기","fullScreen":"전체화면","gallery":"갤러리","hideZoomControls":"확대/축소 기능 숨기기","iiif_homepage":"해당 리소스에 대하여","iiif_manifest":"IIIF 매니페스트","iiif_renderings":"대체 포맷","iiif_seeAlso":"참고","import":"가져오기","importWorkspace":"작업공간 가져오기","importWorkspaceHint":"Mirador 3 환경설정 가져와 붙여넣기","item":"아이템: {{label}}","jsError":"기술적인 세부사항","jsStack":"{{ stack }}","language":"언어","layer_hide":"레이어 숨기기","layer_move":"레이어 움직이기","layer_opacity":"레이어 불투명도","layer_show":"레이어 보이기","layer_moveToTop":"레이어를 위로 옮기기","layers":"레이어","light":"라이트 모드","links":"링크","listAllOpenWindows":"윈도우로 이동하기","login":"로그인","logout":"로그아웃","manifestError":"리소스를 추가할 수 없습니다:","maximizeWindow":"윈도우 크기 최대화","minimizeWindow":"윈도우 크기 최소화","mirador":"Mirador","miradorResources":"Mirador 리소스","miradorViewer":"Mirador 뷰어","more":"더 보기...","moreResults":"결과 더 보기","mosaic":"모자이크","mosaicDescription":"프레임 내에서 윈도우를 이동하고 크기를 조정합니다.","moveCompanionWindowToBottom":"아래로 옮기기","moveCompanionWindowToRight":"오른쪽으로 옮기기","nextCanvas":"다음 아이템","noItemSelected":"아이템이 선택되지 않았습니다","numItems":"{{number}}개의 아이템","numItems_plural":"{{number}}개의 아이템","off":"끄기","openCompanionWindow_annotations":"주석","openCompanionWindow_attribution":"권리","openCompanionWindow_canvas":"인덱스","openCompanionWindow_info":"정보","openCompanionWindow_layers":"레이어","openCompanionWindow_search":"검색","openInCompanionWindow":"별도의 패널에서 열기","openWindows":"현재 열려있는 윈도우","pagination":"{{current}} of {{total}}","position":"배치","previewWindowTitle":"{{title}}","previousCanvas":"이전 아이템","related":"관련","resource":"리소스","retry":"재시도","right":"오른쪽","rights":"라이선스","scroll":"스크롤","searchInputLabel":"용어 찾기","searchNextResult":"다음 결과","searchNoResults":"해당 결과 없음","searchPreviousResult":"이전 결과","searchResultsRemaining":"{{numLeft}}개 남음","searchSubmitAria":"검색하기","searchTitle":"검색","selectWorkspaceMenu":"작업공간 유형 선택","showingNumAnnotations":"{{number}}개의 주석 나타내기","showingNumAnnotations_plural":"{{number}}개의 주석 나타내기","showCollection":"컬렉션 보이기","showZoomControls":"확대/축소 기능 보이기","sidebarPanelsNavigation":"사이드바 패널 탐색","single":"한 개","startHere":"시작하기","suggestSearch":"이 문서를 \\"{{ query }}\\"로 검색하기","tableOfContentsList":"목차","theme":"테마","thumbnailList":"썸네일 목록","thumbnailNavigation":"썸네일","thumbnails":"썸네일","toggleWindowSideBar":"사이드바 전환","totalCollections":"{{count}}개의 컬렉션","totalCollections_plural":"{{count}}개의 컬렉션","totalManifests":"{{count}}개의 매니페스트","totalManifests_plural":"{{count}}개의 매니페스트","tryAgain":"다시 시도하세요","untitled":"[타이틀 없음]","view":"뷰","viewWorkspaceConfiguration":"작업공간 환경설정 ㅂ괴","welcome":"Mirador에 오신 것을 환영합니다","window":"윈도우: {{label}}","windowMenu":"윈도우 뷰 & 썸네일 표시","windowNavigation":"윈도우 탐색","windowPluginButtons":"옵션","windowPluginMenu":"윈도우 옵션","workspace":"작업공간","workspaceNavigation":"작업공간 탐색","workspaceFullScreen":"전체화면","workspaceMenu":"작업공간 설정","workspaceOptions":"작업공간 옵션","workspaceSelectionTitle":"작업공간 유형을 선택하세요","zoomIn":"확대","zoomOut":"축소","zoomReset":"줌 재설정"}}'),Me=JSON.parse('{"translation":{"aboutThisItem":"Over dit item","addedFromUrl":"(Toegevoegd via URL)","addManifestUrl":"Locatie bron","addManifestUrlHelp":"De URL van een IIIF-resource","addResource":"Voeg bron toe","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Links: [{{label}}]","annotationCanvasLabel_2/2":"Rechts: [{{label}}]","annotations":"Annotaties","attribution":"Naamsvermelding","attributionTitle":"Rechten","authenticationFailed":"Authenticatie gefaald.","authenticationRequired":"Authenticatie is vereist voor volledige toegang","backToResults":"Terug naar resultaten","book":"Boek","bottom":"Onderaan","cancel":"Annuleer","canvasIndex":"Index","changeTheme":"Wijzig thema","clearSearch":"clear","closeAddResourceForm":"Sluit formulier","closeAddResourceMenu":"Sluit lijst met bronnen","closeCompanionWindow":"Sluit paneel","closeWindow":"Sluit venster","collapseSection":"Klap \\"{{section}}\\" sectie in","collapseSidePanel":"Klap zijbalk in","itemList":"Compacte lijst","continue":"Ga verder","copy":"Kopieer","currentItem":"Huidig item","currentItem_1/1":"Huidig item","currentItem_1/2":"Links","currentItem_2/2":"Rechts","dark":"Donker thema","dismiss":"Dismiss","highlightAllAnnotations":"Markeer alles","downloadExport":"Exporteer workspace","downloadExportWorkspace":"Exporteer workspace","elastic":"Elastisch","elasticDescription":"Verplaats en rangschik vensters vrij in een onbeperkte workspace. Vensters kunnen elkaar overlappen.","emptyResourceList":"Je lijst met bronnen is leeg","errorDialogConfirm":"OK","errorDialogTitle":"Er is een fout opgetreden","exitFullScreen":"Verlaat volledig scherm","expandSection":"Klap \\"{{section}}\\" sectie uit","expandSidePanel":"Klap zijbalk uit","fetchManifest":"Voeg toe","fullScreen":"Volledig scherm","gallery":"Gallerij","hideZoomControls":"Verberg zoomknoppen","iiif_homepage":"Over deze bron","iiif_manifest":"IIIF-manifest","iiif_renderings":"Alternatieve formaten","iiif_seeAlso":"Zie ook","import":"Importeer","importWorkspace":"Importeer workspace","importWorkspaceHint":"Plak een Mirador 3 configuratie die geïmporteerd moet worden","item":"Item: {{label}}","language":"Taal","light":"Licht thema","links":"Links","listAllOpenWindows":"Ga naar venster","login":"Log in","manifestError":"De bron kan niet worden toegevoegd:","maximizeWindow":"Maximaliseer venster","minimizeWindow":"Minimaliseer venster","mirador":"Mirador","miradorResources":"Mirador resources","miradorViewer":"Mirador viewer","more":"meer...","moreResults":"Meer resultaten","mosaic":"Mozaïek","mosaicDescription":"Verplaats en rangschik vensters in verhouding tot elkaar binnen het zichtbare kader.","moveCompanionWindowToBottom":"Verplaats naar beneden","moveCompanionWindowToRight":"Verplaats naar rechts","nextCanvas":"Volgend item","numItems":"{{number}} item","numItems_plural":"{{number}} items","off":"Uit","openCompanionWindow_annotations":"Annotaties","openCompanionWindow_attribution":"Rechten","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Informatie","openCompanionWindow_search":"Zoeken","openInCompanionWindow":"Open in een apart paneel","openWindows":"Geopende vensters","pagination":"{{current}} van {{total}}","position":"Positie","previewWindowTitle":"{{title}}","previousCanvas":"Vorig item","related":"Verwant","resource":"Bron","retry":"Probeer opnieuw","right":"Rechts","rights":"Licentie","searchInputLabel":"zoek termen","searchNextResult":"Volgend resultaat","searchNoResults":"Geen resultaten gevonden","searchPreviousResult":"Vorig resultaat","searchSubmitAria":"Zoeken","searchTitle":"Zoek","selectWorkspaceMenu":"Selecteer workspacetype","showingNumAnnotations":"{{number}} annotatie weergegeven","showingNumAnnotations_plural":"{{number}} annotaties weergegeven","showZoomControls":"Toon zoomknoppen","sidebarPanelsNavigation":"Zijbalk panelen navigatie","single":"Enkel","startHere":"Begin Hier","suggestSearch":"Zoek in dit document naar \\"{{ query }}\\"","theme":"Thema","thumbnailList":"Lijst thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Toon zijbalk","totalCollections":"{{count}} collectie","totalCollections_plural":"{{count}} collecties","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Probeer opnieuw","untitled":"[Zonder titel]","view":"Weergave","welcome":"Welkom in Mirador","window":"Venster: {{label}}","windowMenu":"Vensters- en miniatuurweergave","windowNavigation":"Navigatie venster","windowPluginButtons":"Opties","windowPluginMenu":"Vensteropties","workspace":"Workspace","workspaceFullScreen":"Volledig scherm","workspaceMenu":"Workspace instellingen","workspaceOptions":"Workspace opties","workspaceSelectionTitle":"Selecteer een workspace type","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),Le=JSON.parse('{"translation":{"aboutMirador":"O Projekcie Mirador","aboutThisItem":"O bieżącej pozycji","addedFromUrl":"(Dodano z URL)","addManifestUrl":"Lokalizacja zasobów","addManifestUrlHelp":"URL zasobów IIIF","addResource":"Dodaj zasoby","annotationCanvasLabel_1/1":"Pozycja: [{{label}}]","annotationCanvasLabel_1/2":"Lewo: [{{label}}]","annotationCanvasLabel_2/2":"Prawo: [{{label}}]","annotations":"Adnotacje","attribution":"Atrybucja","attributionTitle":"Prawa","authenticationFailed":"Uwierzytelnianie nie powiodło się.","authenticationRequired":"Do pełnego dostępu wymagane jest uwierzytelnienie","backToResults":"Powrót do wyników","book":"Książka","bottom":"Dół","cancel":"Anuluj","canvasIndex":"Indeks","changeTheme":"Zmień motyw","clearSearch":"wyczyść","close":"Zamknij","closeAddResourceForm":"Zamknij formularz","closeAddResourceMenu":"Zamknij listę zasobów","closeCompanionWindow":"Zamknij panel","closeWindow":"Zamknij okno","collapseSection":"Zwiń sekcję \\"{{section}}\\"","collapseSidePanel":"Zwiń panel boczny","collection":"Zbiór","itemList":"Lista pozycji","continue":"Kontynuuj","copy":"Kopiuj","currentItem":"Bieżąca pozycja","currentItem_1/1":"Bieżąca pozycja","currentItem_1/2":"Lewo","currentItem_2/2":"Prawo","dark":"Ciemny motyw","digitizedView":"Widok zdigitalizowany","dismiss":"Odrzuć","highlightAllAnnotations":"Podświetl wszystko","displayNoAnnotations":"Nie podświetlaj","downloadExport":"Eksportuj obszar roboczy","downloadExportWorkspace":"Eksportuj obszar roboczy","elastic":"Elastyczny","elasticDescription":"Swobodnie przesuwaj i dopasowuj okna w nieograniczonej przestrzeni roboczej. Okna mogą zachodzić na siebie.","emptyResourceList":"Twoja lista zasobów jest pusta","error":"Błąd","errorDialogConfirm":"OK","errorDialogTitle":"Wystąpił błąd","exitFullScreen":"Wyłącz tryb pełnoekranowy","expandSection":"Rozwiń sekcję \\"{{section}}\\"","expandSidePanel":"Rozwiń panel boczny","exportCopied":"Konfiguracja obszaru roboczego została skopiowana do schowka","fetchManifest":"Dodaj","fullScreen":"Pełny ekran","gallery":"Galeria","hideZoomControls":"Ukryj kontrolki powiększenia","iiif_homepage":"O tym zasobie","iiif_manifest":"Manifest IIIF","iiif_renderings":"Alternatywne formaty","iiif_seeAlso":"Zobacz też","import":"Importuj","importWorkspace":"Importuj obszar roboczy","importWorkspaceHint":"Wklej konfigurację Mirador 3 do zaimportowania","item":"Pozycja: {{label}}","jsError":"Szczegóły techniczne","jsStack":"{{ stack }}","language":"Język","layer_hide":"Ukryj warstwę","layer_move":"Przenieś warstwę","layer_opacity":"Krycie warstwy","layer_show":"Pokaż warstwę","layer_moveToTop":"Przenieś warstwę na górę","layers":"Warstwy","light":"Jasny motyw","links":"Linki","listAllOpenWindows":"Przejdź do okna","login":"Zaloguj","logout":"Wyloguj","manifestError":"Następujące zasoby nie mogą być dodane:","maximizeWindow":"Maksymalizuj okno","minimizeWindow":"Minimalizuj okno","mirador":"Mirador","miradorResources":"Zasoby Mirador","miradorViewer":"Przeglądarka Mirador","more":"więcej...","moreResults":"Więcej wyników","mosaic":"Mozaika","mosaicDescription":"Przesuwaj i zmieniaj rozmiary okien względem siebie, w widocznej ramce.","moveCompanionWindowToBottom":"Przesuń na dół","moveCompanionWindowToRight":"Przesuń w prawo","nextCanvas":"Następna pozycja","noItemSelected":"Nie wybrano pozycji","numItems":"{{number}} pozycja","numItems_plural":"{{number}} pozycje","off":"Wyłącz","openCompanionWindow_annotations":"Adnotacje","openCompanionWindow_attribution":"Prawa","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informacje","openCompanionWindow_layers":"Warstwy","openCompanionWindow_search":"Szukaj","openInCompanionWindow":"Otwórz w oddzielnym panelu","openWindows":"Aktualnie otwarte okna","pagination":"{{current}} of {{total}}","position":"Pozycja","previewWindowTitle":"{{title}}","previousCanvas":"Poprzednia pozycja","related":"Powiązane","resource":"Zasoby","retry":"Spróbuj ponownie","right":"Prawo","rights":"Licencja","scroll":"Przewiń","searchInputLabel":"szukane słowa","searchNextResult":"Następny wynik","searchNoResults":"Nie znaleziono wyników","searchPreviousResult":"Poprzedni wynik","searchResultsRemaining":"Pozostało {{numLeft}}","searchSubmitAria":"Wyszukaj","searchTitle":"Wyszukaj","selectWorkspaceMenu":"Wybierz typ obszaru roboczego","showingNumAnnotations":"Wyświetlanie {{number}} adnotacji","showingNumAnnotations_plural":"Wyświetlanie {{number}} adnotacji","showCollection":"Pokaż zbiór","showZoomControls":"Pokaż kontrolki powiększenia","sidebarPanelsNavigation":"Nawigacja pasków panelu bocznego","single":"Pojedynczy","startHere":"Zacznij tutaj","suggestSearch":"Przeszukaj ten dokument pod kątem \\"{{ query }}\\"","tableOfContentsList":"Spis treści","theme":"Motyw","thumbnailList":"Lista miniatur","thumbnailNavigation":"Miniatury","thumbnails":"Miniatury","toggleWindowSideBar":"Przełącz panel boczny","totalCollections":"{{count}} zbiór","totalCollections_plural":"{{count}} zbiorów","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifestów","tryAgain":"Spróbuj ponownie","untitled":"[Bez nazwy]","view":"Widok","viewWorkspaceConfiguration":"Wyświetl konfigurację obszaru roboczego","welcome":"Witaj w Miradorze","window":"Okno: {{label}}","windowMenu":"Widoki okien i wyświetlanie miniatur","windowNavigation":"Nawigacja okna","windowPluginButtons":"Opcje","windowPluginMenu":"Opcje okna","workspace":"Obszar roboczy","workspaceNavigation":"Nawigacja obszaru roboczego","workspaceFullScreen":"Pełny ekran","workspaceMenu":"Ustawienia obszaru roboczego","workspaceOptions":"Opcje obszaru roboczego","workspaceSelectionTitle":"Wybierz typ obszaru roboczego","zoomIn":"Przybliż","zoomOut":"Oddal","zoomReset":"Zresetuj powiększenie"}}'),Ze=JSON.parse('{"translation":{"aboutThisItem":"Sobre esse item","addedFromUrl":"(Adicionado por URL)","addManifestUrl":"Localização do manifesto","addManifestUrlHelp":"URL do manifesto IIIF","addResource":"Adicionar conteúdo","annotationCanvasLabel_1/1":"Item: [{{label}}]","annotationCanvasLabel_1/2":"Esquerda: [{{label}}]","annotationCanvasLabel_2/2":"Direita: [{{label}}]","annotations":"Anotações","attribution":"Atribuições","attributionTitle":"Direitos","authenticationFailed":"Falha na autenticação.","authenticationRequired":"Autenticação necessária para acesso completo","backToResults":"Voltar aos resultados","book":"Livro","bottom":"Embaixo","cancel":"Cancelar","canvasIndex":"Índice","changeTheme":"Mudar tema","clearSearch":"limpar","closeAddResourceForm":"Fechar formulário","closeAddResourceMenu":"Fechar lista de conteúdo","closeCompanionWindow":"Fechar painel","closeWindow":"Fechar janela","collapseSection":"Suprimir seção \\"{{section}}\\"","collapseSidePanel":"Suprimir barra lateral","itemList":"Lista compacta","continue":"Continuar","copy":"Copiar","currentItem":"Item atual","currentItem_1/1":"Item atual","currentItem_1/2":"Esquerda","currentItem_2/2":"Direita","dark":"Tema escuro","dismiss":"Cancelar","highlightAllAnnotations":"Exibir todas","downloadExport":"Exportar área de trabalho","downloadExportWorkspace":"Exportar área de trabalho","elastic":"Elástico","elasticDescription":"Mova e redimensione janelas livremente numa área de trabalho ilimitada. Janelas podem se sobrepor.","emptyResourceList":"Sua lista de conteúdos está vazia","errorDialogConfirm":"OK","errorDialogTitle":"Um erro ocorreu","exitFullScreen":"Sair do modo tela cheia","expandSection":"Expandir seção \\"{{section}}\\"","expandSidePanel":"Expandir barra lateral","fetchManifest":"Adicionar","fullScreen":"Tela cheia","gallery":"Galeria","hideZoomControls":"Ocultar controles de zoom","iiif_homepage":"Sobre esse conteúdo","iiif_manifest":"Manifesto IIIF","iiif_renderings":"Outros formatos","iiif_seeAlso":"Veja também","import":"Importar","importWorkspace":"Importar área de trabalho","importWorkspaceHint":"Cole uma configuração do Mirador 3 para importar","item":"Item: {{label}}","language":"Idioma","light":"Tema claro","links":"Links","listAllOpenWindows":"Pular para janela","login":"Login","manifestError":"O conteúdo não pode ser adicionado:","maximizeWindow":"Maximizar janela","minimizeWindow":"Minimizar janela","mirador":"Mirador","miradorResources":"conteúdo Mirador","miradorViewer":"visualizador Mirador","more":"mais...","moreResults":"Mais resultados","mosaic":"Mosáico","mosaicDescription":"Mova e redimensione janelas em relação entre si, dentro de uma área visível (grid).","moveCompanionWindowToBottom":"Mover para baixo","moveCompanionWindowToRight":"Mover para direita","nextCanvas":"Próximo item","numItems":"{{number}} itens","off":"Desativado","openCompanionWindow_annotations":"Anotações","openCompanionWindow_attribution":"Direitos","openCompanionWindow_canvas":"Índice","openCompanionWindow_info":"Informações","openCompanionWindow_search":"Busca","openInCompanionWindow":"Abrir em janela separada","openWindows":"Janelas abertas","pagination":"{{current}} de {{total}}","position":"Posição","previewWindowTitle":"{{title}}","previousCanvas":"Item anterior","related":"Relacionado","resource":"Conteúdo","retry":"Tentar novamente","right":"Direita","rights":"Licenças","searchInputLabel":"termos de busca","searchNextResult":"Próximo resultado","searchNoResults":"Nenhum resultado encontrado","searchPreviousResult":"Resultado anterior","searchSubmitAria":"Realizar busca","searchTitle":"Busca","selectWorkspaceMenu":"Selecione um tipo de área de trabalho","showingNumAnnotations":"Mostrando {{number}} anotações","showZoomControls":"Mostrar controles de zoom","sidebarPanelsNavigation":"Navegação por paineis na barra lateral","single":"Individual","startHere":"Comece aqui","suggestSearch":"Procurar neste documento por \\"{{ query }}\\"","theme":"Tema","thumbnailList":"Lista de thumbnails","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Ver barra lateral","tryAgain":"Tente novamente","untitled":"[Sem título]","view":"Visualizações","welcome":"Bem-vindo ao Mirador","window":"Janela: {{label}}","windowMenu":"Opções de visualização de janelas e thumbnails","windowNavigation":"Navegação de janelas","windowPluginButtons":"Opções","windowPluginMenu":"Opções de janela","workspace":"Área de trabalho","workspaceFullScreen":"Tela cheia","workspaceMenu":"Configurações de área de trabalho","workspaceOptions":"Opções de área de trabalho","workspaceSelectionTitle":"Selecionar tipo de área de trabalho","zoomIn":"Mais zoom","zoomOut":"Menos zoom","zoomReset":"Zerar zoom"}}'),ze=JSON.parse('{"translation":{"aboutMirador":"Informazioni su Mirador","aboutThisItem":"Informazioni sull\'oggetto","addManifestUrl":"URL della risorsa","addManifestUrlHelp":"L\'URL di una risorsa IIIF","addResource":"Aggiungi una risorsa","addedFromUrl":"(Aggiunto dall\'URL)","annotationCanvasLabel_1/1":"Oggetto: [{{label}}]","annotationCanvasLabel_1/2":"Sinistra: [{{label}}]","annotationCanvasLabel_2/2":"Destra: [{{label}}]","annotations":"Annotazioni","attribution":"Attribuzione","attributionTitle":"Diritti","authenticationFailed":"Autenticazione fallita.","authenticationRequired":"Autenticazione richiesta per l\'accesso completo","backToResults":"Torna ai risultati","book":"Libro","bottom":"Fondo","cancel":"Cancella","canvasIndex":"Indice","changeTheme":"Cambia tema","clearSearch":"pulisci","close":"Chiudi","closeAddResourceForm":"Chiudi il modulo","closeAddResourceMenu":"Chiudi la lista di risorse","closeCompanionWindow":"Chiudi il pannello","closeWindow":"Chiudi finestra","collapseSection":"Collassa la sezione \\"{{section}}\\"","collapseSidePanel":"Collassa la barra laterale","collection":"Collezione","continue":"Continua","copy":"Copia","currentItem":"Oggetto corrente","currentItem_1/1":"Oggetto corrente","currentItem_1/2":"Sinistra","currentItem_2/2":"Destra","dark":"Tema scuro","digitizedView":"Digitized view","dismiss":"Dismiss","displayNoAnnotations":"Nascondi evidenziazione","downloadExport":"Esporta il workspace","downloadExportWorkspace":"Esporta il workspace","elastic":"Elastico","elasticDescription":"Muovi e ridimensiona le finestre liberamente in un workspace illimitato. Le finestre possono sovrapporsi.","emptyResourceList":"La tua lista di risorse è vuota.","error":"Errore","errorDialogConfirm":"OK","errorDialogTitle":"Si è verificato un errore.","exitFullScreen":"Esci da schermo intero","expandSection":"Espandi la sezione \\"{{section}}\\"","expandSidePanel":"Espandi la barra laterale","exportCopied":"La configurazione del workspace è stata copiata nella tua clipboard","fetchManifest":"Aggiungi","fullScreen":"Schermo intero","gallery":"Galleria","hideZoomControls":"Nascondi i controlli di zoom","highlightAllAnnotations":"Evidenzia tutto","iiif_homepage":"Informazioni su questa risorsa","iiif_manifest":"IIIF manifest","iiif_renderings":"Formati alternativi","iiif_seeAlso":"Vedi anche","import":"Importa","importWorkspace":"Importa workspace","importWorkspaceHint":"Incolla una configurazione di Mirador 3 da importare","item":"Oggetto: {{label}}","itemList":"Lista compatta","jsError":"Dettagli tecnici","jsStack":"{{ stack }}","language":"Lingua","layer_hide":"Nascondi livello","layer_move":"Sposta livello","layer_moveToTop":"Sposta il livello in alto","layer_opacity":"Opacità del livello","layer_show":"Visualizza livello","layers":"Livelli","light":"Tema chiaro","links":"Link","listAllOpenWindows":"Vai alla finestra","login":"Entra","logout":"Esci","manifestError":"La risorsa non può essere aggiunta:","maximizeWindow":"Massimizza la finestra","minimizeWindow":"Minimizza la finestra","mirador":"Mirador","miradorResources":"Risorse Mirador","miradorViewer":"Visualizzatore Mirador","more":"ancora...","moreResults":"Più risultati","mosaic":"Mosaico","mosaicDescription":"Muovi e ridimensiona le finestre, tenendole all\'interno dell\'area visibile","moveCompanionWindowToBottom":"Sposta in fondo","moveCompanionWindowToRight":"Sposta a destra","nextCanvas":"Prossimo oggetto","noItemSelected":"Nessun oggetto selezionato","numItems":"{{number}} oggetti","numItems_plural":"{{number}} oggetti","off":"Off","openCompanionWindow_annotations":"Annotazioni","openCompanionWindow_attribution":"Diritti","openCompanionWindow_canvas":"Indice","openCompanionWindow_info":"Informazioni","openCompanionWindow_layers":"Livelli","openCompanionWindow_search":"Cerca","openInCompanionWindow":"Apri in un pannello separato","openWindows":"Finestre aperte in questo momento","pagination":"{{current}} di {{total}}","position":"Posizione","previewWindowTitle":"{{title}}","previousCanvas":"Previous item","related":"Contenuti collegati","resource":"Risorsa","retry":"Riprova","right":"Right","rights":"Licenza","scroll":"Scorri","searchInputLabel":"termini di ricerca","searchNextResult":"Prossimo risultato","searchNoResults":"Nessun risultato","searchPreviousResult":"Risultato precedente","searchResultsRemaining":"{{numLeft}} rimanenti","searchSubmitAria":"Cerca","searchTitle":"Cerca","selectWorkspaceMenu":"Selezione il tipo di workspace","showCollection":"Visualizza la collezione","showZoomControls":"Mostra i controlli di zoom","showingNumAnnotations":"Sto mostrando {{number}} annotazioni","showingNumAnnotations_plural":"Visualizzando {{number}} annotazioni","sidebarPanelsNavigation":"Navigazione dei pannelli della barra laterale","single":"Singolo","startHere":"Inizia qui","suggestSearch":"Cerca in questo documento: \\"{{ query }}\\"","tableOfContentsList":"Sommario","theme":"Tema","thumbnailList":"Lista thumbnail","thumbnailNavigation":"Thumbnails","thumbnails":"Thumbnails","toggleWindowSideBar":"Apri/Chiudi la barra","totalCollections":"{{count}} collezione","totalCollections_plural":"{{count}} collezioni","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifests","tryAgain":"Riprova","untitled":"[senza titolo]","view":"Visualizza","viewWorkspaceConfiguration":"Visualizza la configurazione del workspace","welcome":"Benvenuto in Mirador","window":"Finestra: {{label}}","windowMenu":"Visualizzazioni finestra e display thumbnail","windowNavigation":"Navigazione finestra","windowPluginButtons":"Opzioni","windowPluginMenu":"Opzioni finestra","workspace":"Workspace","workspaceFullScreen":"Schermo intero","workspaceMenu":"Configurazioni Workspace","workspaceNavigation":"Navigazione del workspace","workspaceOptions":"Opzioni Workspace","workspaceSelectionTitle":"Seleziona il tipo di workspace","zoomIn":"Zoom in","zoomOut":"Zoom out","zoomReset":"Reset zoom"}}'),We=JSON.parse('{"translation":{"aboutMirador":"О пројекту Mirador","aboutThisItem":"Опис","addedFromUrl":"(Додато са URL)","addManifestUrl":"Локација ресурса","addManifestUrlHelp":"URL IIIF ресурса","addResource":"Додајте ресурс","annotationCanvasLabel_1/1":"Страница: [{{label}}]","annotationCanvasLabel_1/2":"Лева: [{{label}}]","annotationCanvasLabel_2/2":"Десна: [{{label}}]","annotations":"Анотације","attribution":"Приступ","attributionTitle":"Права","authenticationFailed":"Неуспела аутентификација.","authenticationRequired":"За потпуни приступ неопходна је аутентификација","backToResults":"Повратак на резултате","book":"Књига","bottom":"На дну","cancel":"Одустаните","canvasIndex":"Индекс","changeTheme":"Промените тему","clearSearch":"обришите","close":"Затворите","closeAddResourceForm":"Затворите","closeAddResourceMenu":"Затворите листу ресурса","closeCompanionWindow":"Затворите панел","closeWindow":"Затворите приказ","collapseSection":"Сакријте \\"{{section}}\\" секцију","collapseSidePanel":"Сакријте","collection":"Колекција","itemList":"Листа страница","continue":"Наставите","copy":"Копирајте","currentItem":"Тренутна страница","currentItem_1/1":"Тренутна страница","currentItem_1/2":"Лева","currentItem_2/2":"Десна","dark":"Тамна тема","digitizedView":"Приказ дигиталног објекта","dismiss":"Откажите","highlightAllAnnotations":"Приказ свих","displayNoAnnotations":"Без приказа","downloadExport":"Извезите радно окружење","downloadExportWorkspace":"Извезите радно окружење","elastic":"Еластични","elasticDescription":"Слободно померајте и одредите величину приказа у неограниченом радном простору. Прикази могу бити већи од радног простора.","emptyResourceList":"Ваша листа ресурса је празна","error":"Грешка","errorDialogConfirm":"OK","errorDialogTitle":"Дошло је до грешке","exitFullScreen":"Изађите из приказа преко целог екрана","expandSection":"Проширите \\"{{section}}\\" секцију","expandSidePanel":"Прикажите","exportCopied":"Конфигурација радног окружења је копирана у привремену меморију","fetchManifest":"Додајте","fullScreen":"Приказ у пуном екрану","gallery":"Галерија","hideZoomControls":"Сакријте контроле зума","iiif_homepage":"О ресурсу","iiif_manifest":"IIIF manifest","iiif_renderings":"Додатни формати","iiif_seeAlso":"Погледајте и","import":"Увезите","importWorkspace":"Увезите радно окружење","importWorkspaceHint":"Убаците конфигурацију Mirador 3 како би могли да је увезете","item":"Страница: {{label}}","jsError":"Технички детаљи","jsStack":"{{ stack }}","language":"Језик приказа","layer_hide":"Сакријте слој","layer_move":"Померите слој","layer_opacity":"Видљивост слоја","layer_show":"Приказ слоја","layer_moveToTop":"Померите слој на врх","layers":"Слојеви","light":"Светла тема","links":"Линкови","listAllOpenWindows":"Идите на приказ","login":"Улогујте се","logout":"Излогујте се","manifestError":"Ресурс се не може додати","maximizeWindow":"Максималан приказ","minimizeWindow":"Минималан приказ","mirador":"Mirador","miradorResources":"Mirador ресурси","miradorViewer":"Mirador прегледач","more":"још...","moreResults":"Још резултата","mosaic":"Мозаик","mosaicDescription":"Померајте и одредите величину приказа који су у међусобној релацији, унутар видљивог оквира.","moveCompanionWindowToBottom":"Пребаците на дно","moveCompanionWindowToRight":"Померите у десну страну","nextCanvas":"Следећа","noItemSelected":"Нема изабраних објеката","numItems":"{{number}} страница/це","off":"Искључене","openCompanionWindow_annotations":"Анотације","openCompanionWindow_attribution":"Права","openCompanionWindow_canvas":"Индекс","openCompanionWindow_info":"Информације","openCompanionWindow_layers":"Слојеви","openCompanionWindow_search":"Претрага","openInCompanionWindow":"Отворите у засебном панелу","openWindows":"Тренутно отворени прикази","pagination":"{{current}} од {{total}}","position":"Позиција","previewWindowTitle":"{{title}}","previousCanvas":"Претходна","related":"Релације","resource":"Ресурс","retry":"Покушајте поново","right":"Десно","rights":"Лиценца","scroll":"Померајте","searchInputLabel":"претражите појам","searchNextResult":"Следећи резултат","searchNoResults":"Тражени појам није пронађен","searchPreviousResult":"Претходни резултат","searchSubmitAria":"Претражите","searchTitle":"Претрага","selectWorkspaceMenu":"Изаберите тип радног окружења","showingNumAnnotations":"Приказ {{number}} анотација/је","showCollection":"Прикажи колекцију","showZoomControls":"Приказ контрола зума","sidebarPanelsNavigation":"Навигација сајдбар панела","single":"Појединачно","startHere":"Започните","suggestSearch":"Пронађите појам \\"{{ query }}\\" у овом документу","tableOfContentsList":"Садржај","theme":"Тема","thumbnailList":"Листа сличица","thumbnailNavigation":"Сличице","thumbnails":"Сличице","toggleWindowSideBar":"Сајдбар","totalCollections":"{{count}} колекција/е","totalManifests":"{{count}} објек(а)та","tryAgain":"Покушајте поново","untitled":"[Без наслова]","view":"Преглед","welcome":"Добродошли у прегледач Mirador","window":"Приказ: {{label}}","windowMenu":"Изглед прегледа и позиција сличица","windowNavigation":"Навигација приказа","windowPluginButtons":"Опције","windowPluginMenu":"Опције приказа","workspace":"Радни простор","workspaceFullScreen":"Приказ преко целог екрана","workspaceMenu":"Уређивање радног простора","workspaceOptions":"Опције радног окружења","workspaceSelectionTitle":"Изаберите тип радног окружења","zoomIn":"Увећајте","zoomOut":"Умањите","zoomReset":"Ресет зума"}}'),Fe=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om det här objektet","addedFromUrl":"(Tillagd från URL)","addManifestUrl":"Webbadress till samling eller manifest","addManifestUrlHelp":"URL till en IIIF-resurs","addResource":"Lägg till resurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Vänster: [{{label}}]","annotationCanvasLabel_2/2":"Höger: [{{label}}]","annotations":"Noteringar","attribution":"Tillskrivning","attributionTitle":"Rättigheter","authenticationFailed":"Autentisering misslyckades.","authenticationRequired":"Autentisering krävs för full åtkomst","backToResults":"Tillbaka till resultat","book":"Bok","bottom":"Nederkant","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Ändra tema","clearSearch":"Ta bort sökning","close":"Stäng","closeAddResourceForm":"Stäng formulär","closeAddResourceMenu":"Stäng resurslista","closeCompanionWindow":"Stäng panel","closeWindow":"Stäng fönster","collapseSection":"Stäng sektionen \\"{{section}}\\"","collapseSidePanel":"Stäng sidofält","collection":"Samling","itemList":"Objektlista","continue":"Fortsätt","copy":"Kopiera","currentItem":"Aktuellt objekt","currentItem_1/1":"Aktuellt objekt","currentItem_1/2":"Vänster","currentItem_2/2":"Höger","dark":"Mörkt tema","digitizedView":"Digitaliserad vy","dismiss":"Stäng","highlightAllAnnotations":"Markera alla","displayNoAnnotations":"Avmarkera alla","downloadExport":"Exportera arbetsyta","downloadExportWorkspace":"Exportera arbetsyta","elastic":"Elastisk","elasticDescription":"Flytta och ändra storlek på fönster fritt i en obegränsad arbetsyta. Fönster kan överlappa.","emptyResourceList":"Din resurslista är tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Ett problem uppstod","exitFullScreen":"Lämna helskärmsläge","expandSection":"Expandera sektionen \\"{{section}}\\"","expandSidePanel":"Expandera sidofält","exportCopied":"Konfiguration av arbetsytan har kopierats till dina urklipp","fetchManifest":"Lägg till","fullScreen":"Helskärmsläge","gallery":"Galleri","hideZoomControls":"Dölj zoomkontroller","iiif_homepage":"Om den här resursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativa format","iiif_seeAlso":"Se även","import":"Importera","importWorkspace":"Importera arbetsyta","importWorkspaceHint":"Klistra in en Mirador 3 konfiguration att importera","item":"Objekt: {{label}}","jsError":"Tekniska detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Dölj lager","layer_move":"Flytta lager","layer_opacity":"Lageropacitet","layer_show":"Visa lager","layer_moveToTop":"Flytta lager till toppen","layers":"Lager","light":"Ljust tema","links":"Länkar","listAllOpenWindows":"Gå till fönster","login":"Logga in","logout":"Logga ut","manifestError":"Resursen kan inte läggas till:","maximizeWindow":"Maximera fönster","minimizeWindow":"Minimera fönster","mirador":"Mirador","miradorResources":"Miradorresurser","miradorViewer":"Mirador bildvisare","more":"mer...","moreResults":"Fler resultat","mosaic":"Mosaik","mosaicDescription":"Flytta och ändra storlek på fönster i relation till varandra, innanför den synliga ramen.","moveCompanionWindowToBottom":"Flytta till botten","moveCompanionWindowToRight":"Flytta till höger","nextCanvas":"Nästa objekt","noItemSelected":"Inga valda objekt","numItems":"{{number}} objekt","off":"Av","openCompanionWindow_annotations":"Noteringar","openCompanionWindow_attribution":"Rättigheter","openCompanionWindow_canvas":"Index","openCompanionWindow_info":"Information","openCompanionWindow_layers":"Lager","openCompanionWindow_search":"Sök","openInCompanionWindow":"Öppna i separat panel","openWindows":"Öppna fönster","pagination":"{{current}} av {{total}}","position":"Position","previewWindowTitle":"{{title}}","previousCanvas":"Föregående objekt","related":"Relaterat","resource":"Resurs","retry":"Försök igen","right":"Till höger","rights":"Licens","scroll":"Scrolla","searchInputLabel":"Sökord","searchNextResult":"Nästa resultat","searchNoResults":"Inga resultat hittades","searchPreviousResult":"Föregående resultat","searchResultsRemaining":"{{numLeft}} kvar","searchSubmitAria":"Sök","searchTitle":"Sök","selectWorkspaceMenu":"Välj typ av arbetsyta","showingNumAnnotations":"Visar {{number}} noteringar","showCollection":"Visa samling","showZoomControls":"Visa zoomkontroller","sidebarPanelsNavigation":"Sidofältspaneler navigering","single":"En och en","startHere":"Börja här","suggestSearch":"Sök i detta dokument efter \\"{{ query }}\\"","tableOfContentsList":"Innehållsförteckning","theme":"Tema","thumbnailList":"Miniatyrlista","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Visa/dölj sidofält","totalCollections":"{{count}} samlingar","totalManifests":"{{count}} manifest","tryAgain":"Försök igen","untitled":"[namnlös]","view":"Vy","welcome":"Välkommen till Mirador","window":"Fönster: {{label}}","windowMenu":"Fönstervyer & miniatyrdisplay","windowNavigation":"Fönsternavigation","windowPluginButtons":"Inställningar","windowPluginMenu":"Fönsterinställningar","workspace":"Arbetsyta","workspaceNavigation":"Navigera i arbetsyta","workspaceFullScreen":"Helskärmsläge","workspaceMenu":"Inställningar för arbetsyta","workspaceOptions":"Fler val för arbetsyta","workspaceSelectionTitle":"Välj typ av arbetsyta","zoomIn":"Zooma in","zoomOut":"Zooma ut","zoomReset":"Återställ zoom"}}'),Be=JSON.parse('{"translation":{"aboutMirador":"Apie Project Mirador","aboutThisItem":"Apie šį įrašą","addedFromUrl":"(Pridėta naudojant URL)","addManifestUrl":"Šaltinio adresas","addManifestUrlHelp":"Nuoroda į IIIF šaltinį","addResource":"Pridėti šaltinį","annotationCanvasLabel_1/1":"Įrašas: [{{label}}]","annotationCanvasLabel_1/2":"Kairė: [{{label}}]","annotationCanvasLabel_2/2":"Dešinė: [{{label}}]","annotations":"Anotacijos","attribution":"Priskyrimas","attributionTitle":"Teisės","authenticationFailed":"Autentifikavimo klaida.","authenticationRequired":"Pilnai prieigai būtina autentifikacija","backToResults":"Grįžti į rezultatus","book":"Knyga","bottom":"Apačia","cancel":"Atšaukti","canvasIndex":"Indeksas","changeTheme":"Keisti temą","clearSearch":"valyti","closeAddResourceForm":"Uždaryti paraišką","closeAddResourceMenu":"Uždaryti šaltinių sąrašą","closeCompanionWindow":"Uždaryti panelę","closeWindow":"Uždaryti langą","collapseSection":"Suskleisti \\"{{section}}\\" sekciją","collapseSidePanel":"Suskleisti šoninę juostą","itemList":"Įrašų sąrašas","continue":"Tęsti","copy":"Kopijuoti","currentItem":"Dabartinis įrašas","currentItem_1/1":"Dabartinis įrašas","currentItem_1/2":"Kairė","currentItem_2/2":"Dešinė","dark":"Tamsi tema","digitizedView":"Skaitmenintas vaizdas","dismiss":"Atmesti","highlightAllAnnotations":"Paryškinti viską","displayNoAnnotations":"Slėpti viską","downloadExport":"Išsaugoti darbalaukį","downloadExportWorkspace":"Išsaugoti darbalaukį","elastic":"Lankstus","elasticDescription":"Langų dydis ir vieta gali būti laisvai valdomi. Langai gali persidengti.","emptyResourceList":"Jūsų šaltinių sąrašas yra tuščias","error":"Klaida","errorDialogConfirm":"Gerai","errorDialogTitle":"Įvyko klaida","exitFullScreen":"Išjungti pilno ekrano režimą","expandSection":"Išplėsti \\"{{section}}\\" sekciją","expandSidePanel":"Išplėsti šoninę juostą","exportCopied":"Darbalaukio nustatymai nukopijuoti","fetchManifest":"Pridėti","fullScreen":"Pilnas ekranas","gallery":"Galerija","hideZoomControls":"Slėpti priartinimo valdymą","iiif_homepage":"Apie šį šaltinį","iiif_manifest":"IIIF manifestas","iiif_renderings":"Kiti formatai","iiif_seeAlso":"Susiję","import":"Įkelti","importWorkspace":"Įkelti darbalaukį","importWorkspaceHint":"Įterpkite Mirador 3 nustatymus įkėlimui","item":"Įrašas: {{label}}","jsError":"Techninė informacija","jsStack":"{{ stack }}","language":"Kalba","layer_hide":"Slėpti sluoksnį","layer_move":"Perkelti sluoksnį","layer_opacity":"Sluoksnio nepermatomumas","layer_show":"Rodyti sluoksnį","layer_moveToTop":"Perkelti sluoksnį į viršų","layers":"Sluoksniai","light":"Šviesi tema","links":"Nuorodos","listAllOpenWindows":"Rodyti aktyvius langus","login":"Prisijungti","logout":"Atsijungti","manifestError":"Šaltinis negali būti pridėtas:","maximizeWindow":"Išdidinti langą","minimizeWindow":"Sumažinti langą","mirador":"Mirador","miradorResources":"Mirador šaltiniai","miradorViewer":"Mirador žiūryklė","more":"daugiau...","moreResults":"Daugiau rezultatų","mosaic":"Mosaic","mosaicDescription":"Langų dydžio ir pozicijos keitimai apribojami ekrano erdvėje.","moveCompanionWindowToBottom":"Perkelti į apačią","moveCompanionWindowToRight":"Perkelti į dešinę","nextCanvas":"Kitas įrašas","numItems":"{{number}} įrašas (-ai)","off":"Išjungti","openCompanionWindow_annotations":"Anotacijos","openCompanionWindow_attribution":"Teisės","openCompanionWindow_canvas":"Indeksas","openCompanionWindow_info":"Informacija","openCompanionWindow_layers":"Sluoksniai","openCompanionWindow_search":"Paieška","openInCompanionWindow":"Atidaryti kaip naują panelę","openWindows":"Aktyvųs langai","pagination":"{{current}} iš {{total}}","position":"Pozicija","previewWindowTitle":"{{title}}","previousCanvas":"Buvęs įrašas","related":"Susiję","resource":"Šaltinis","retry":"Pabandyti iš naujo","right":"Dešinė","rights":"Teisės","scroll":"Paslinkti","searchInputLabel":"paieškos terminas","searchNextResult":"Kitas rezultatas","searchNoResults":"Nėra rezultatų","searchPreviousResult":"Buvęs rezultatas","searchSubmitAria":"Pateikti paieškos užklausą","searchTitle":"Ieškoti","selectWorkspaceMenu":"Pasirinkti darbalaukio tipą","showingNumAnnotations":"Rodoma {{number}} anotacija (-os)","showCollection":"Rodyti kolekciją","showZoomControls":"Rodyti priartinimo valdymą","sidebarPanelsNavigation":"Šoninės juostos valdymas","single":"Atskiras","startHere":"Pradėkite čia","suggestSearch":"Ieškoti \\"{{ query }}\\" visame documente","tableOfContentsList":"Turinys","theme":"Tema","thumbnailList":"Miniatiūrų sąrašas","thumbnailNavigation":"Miniatiūros","thumbnails":"Miniatiūros","toggleWindowSideBar":"Perjungti šoninę juostą","totalCollections":"{{count}} kolekcija (-os)","totalManifests":"{{count}} šaltinis (-iai)","tryAgain":"Bandykite dar kartą","untitled":"[Be pavadinimo]","view":"Žiūrėti","welcome":"Sveiki atvykę į Mirador","window":"Langas: {{label}}","windowMenu":"Langų & miniatiūrų atvaizdavimas","windowNavigation":"Langų valdymas","windowPluginButtons":"Pasirinkimai","windowPluginMenu":"Langų pasirinkimai","workspace":"Darbalaukis","workspaceNavigation":"Darbalaukio valdymas","workspaceFullScreen":"Pilnas ekranas","workspaceMenu":"Darbalaukio nustatymai","workspaceOptions":"Darbalaukio pasirinkimai","workspaceSelectionTitle":"Pasirinkite darbalaukio tipą","zoomIn":"Priartinti","zoomOut":"Atitolinti","zoomReset":"Atstatyti priartinimą"}}'),Ue=JSON.parse('{"translation":{"aboutMirador":"Về dự án Mirador","aboutThisItem":"Về khoản mục này","addedFromUrl":"(Được thêm từ URL)","addManifestUrl":"Vị trí tài nguyên","addManifestUrlHelp":"URL của tài nguyên IIIF","addResource":"Bổ sung tài nguyên","annotationCanvasLabel_1/1":"Khoản mục: [{{label}}]","annotationCanvasLabel_1/2":"Trái: [{{label}}]","annotationCanvasLabel_2/2":"Phải: [{{label}}]","annotations":"Chú giải","attribution":"Quyền hạn","attributionTitle":"Quyền","authenticationFailed":"Xác thực thất bại.","authenticationRequired":"Xác thực được yêu cầu cho truy nhập đầy đủ","backToResults":"Trở lại kết quả","book":"Sách","bottom":"Đáy","cancel":"Huỷ bỏ","canvasIndex":"Chỉ mục","changeTheme":"Đổi chủ đề","clearSearch":"xoá","close":"Đóng","closeAddResourceForm":"Đóng mẫu","closeAddResourceMenu":"Đóng danh sách tài nguyên","closeCompanionWindow":"Đóng panel","closeWindow":"Đóng cửa sổ","collapseSection":"Co sập {{section}} mục","collapseSidePanel":"Co sập thanh bên","collection":"Tuyển tập","itemList":"Danh sách khoản mục","continue":"Tiếp tục","copy":"Sao","currentItem":"Khoản mục hiện thời","currentItem_1/1":"Khoản mục hiện thời","currentItem_1/2":"Trái","currentItem_2/2":"Phải","dark":"Chủ đề tối","digitizedView":"Cái nhìn số hoá","dismiss":"Bác bỏ","highlightAllAnnotations":"Làm nổi bật tất","displayNoAnnotations":"Không làm nổi bật","downloadExport":"Vùng xuất khẩu","downloadExportWorkspace":"Vùng xuất khẩu","elastic":"Co giãn","elasticDescription":"Di chuyển và định cỡ cửa sổ tự do trong vùng vô giới hạn. Cửa sổ có thể chèn lấp.","emptyResourceList":"Danh sách tài nguyên của bạn là trống","error":"Lỗi","errorDialogConfirm":"OK","errorDialogTitle":"Lỗi đã xuất hiện","exitFullScreen":"Ra khỏi toàn màn hình","expandSection":"Mở rộng {{section}} mục","expandSidePanel":"Mở rộng thanh bên","exportCopied":"Cấu hình vùng làm việc được sao vào bảng đệm của bạn","fetchManifest":"Thêm","fullScreen":"Toàn màn hình","gallery":"Phòng tranh","hideZoomControls":"Ẩn điều khiển thu phóng","iiif_homepage":"Về tài nguyên này","iiif_manifest":"Bản kê IIIF","iiif_renderings":"Dạng thức luân phiên","iiif_seeAlso":"Cũng xem","import":"Nhập khẩu","importWorkspace":"Vùng nhập khẩu","importWorkspaceHint":"Dán cấu hình Mirador 3 để được nhập khẩu","item":"Khoản mục: {{label}}","jsError":"Chi tiết kĩ thuật","jsStack":"{{ stack }}","language":"Ngôn ngữ","layer_hide":"Giấu tầng","layer_move":"Chuyển tầng","layer_opacity":"Làm mờ tầng","layer_show":"Hiện tầng","layer_moveToTop":"Chuyển tầng lên đỉnh","layers":"Tầng","light":"Chủ đề sáng","links":"Móc nối","listAllOpenWindows":"Nhảy tới cửa sổ","login":"Đăng nhập","logout":"Đăng xuất","manifestError":"Tài nguyên không thể được bổ sung:","maximizeWindow":"Cực đại cửa sổ","minimizeWindow":"Cực tiểu cửa sổ","mirador":"Mirador","miradorResources":"Tài nguyên Mirador","miradorViewer":"Bộ xem Mirador","more":"thêm...","moreResults":"Thêm kết quả","mosaic":"Mosaic","mosaicDescription":"Di chuyển và định cỡ cửa sổ trong quan hệ lẫn nhau, bên trong khung thấy được.","moveCompanionWindowToBottom":"Chuyển tới đáy","moveCompanionWindowToRight":"Chuyển sang phải","nextCanvas":"Khoản mục tiếp","noItemSelected":"Không khoản mục nào được chọn","numItems":"{{number}} khoản mục","off":"Off","openCompanionWindow_annotations":"Chú giải","openCompanionWindow_attribution":"Quyền","openCompanionWindow_canvas":"Chỉ mục","openCompanionWindow_info":"Thông tin","openCompanionWindow_layers":"Tầng","openCompanionWindow_search":"Tìm","openInCompanionWindow":"Mở trong ngăn tách rời","openWindows":"Cửa sổ mở hiện thời","pagination":"{{current}} trong {{total}}","position":"Vị trí","previewWindowTitle":"{{title}}","previousCanvas":"Khoản mục trước","related":"Có liên quan","resource":"Tài nguyên","retry":"Thử lại","right":"Quyền","rights":"Cấp phép","scroll":"Cuộn","searchInputLabel":"Từ tìm kiếm","searchNextResult":"Kết quả tiếp","searchNoResults":"Không tìm được kết quả nào","searchPreviousResult":"Kết quả trước","searchSubmitAria":"Đệ trình việc tìm","searchTitle":"Tìm","selectWorkspaceMenu":"Chọn kiểu vùng làm việc","showingNumAnnotations":"Hiện {{number}} chú giải","showCollection":"Hiện bộ sưu tập","showZoomControls":"Hiện kiểm soát thu phóng","sidebarPanelsNavigation":"Dẫn lái ngăn thanh bên","single":"Chỉ một","startHere":"Bắt đầu ở đây","suggestSearch":"Tìm tài liệu này cho \\"{{ query }}\\"","tableOfContentsList":"Mục lục","theme":"Chủ đề","thumbnailList":"Danh sách ảnh thu nhỏ","thumbnailNavigation":"Ảnh thu nhỏ","thumbnails":"Ảnh thu nhỏ","toggleWindowSideBar":"chốt thanh bên","totalCollections":"{{count}} bộ sưu tập","totalManifests":"{{count}} bản kê","tryAgain":"Thử lại","untitled":"[Untitled]","view":"Xem","welcome":"Chào mừng bạn tới Mirador","window":"Cửa sổ: {{label}}","windowMenu":"Xem cửa sổ & hiển thị ảnh thu nhỏ","windowNavigation":"Dẫn lái cửa sổ","windowPluginButtons":"Tuỳ chọn","windowPluginMenu":"Tuỳ chọn cửa sổ","workspace":"Vùng làm việc","workspaceNavigation":"Dẫn lái vùng làm việc","workspaceFullScreen":"Toàn màn hình","workspaceMenu":"Thiết đặt vùng làm việc","workspaceOptions":"Tuỳ chọn vùng làm việc","workspaceSelectionTitle":"Chọn kiểu vùng làm việc","zoomIn":"Thu nhỏ","zoomOut":"Phóng to","zoomReset":"Đặt lại thu phóng"}}'),He=JSON.parse('{"translation":{"aboutMirador":"Om Projekt Mirador","aboutThisItem":"Om dette objektet","addedFromUrl":"(Lagt til fra URL)","addManifestUrl":"Nettadresse til samling eller manifest","addManifestUrlHelp":"URL til en IIIF-ressurs","addResource":"Legg til ressurs","annotationCanvasLabel_1/1":"Objekt: [{{label}}]","annotationCanvasLabel_1/2":"Venstre: [{{label}}]","annotationCanvasLabel_2/2":"Høyre: [{{label}}]","annotations":"Annoteringer","attribution":"Tilskrivelse","attributionTitle":"Rettigheter","authenticationFailed":"Autentiseringen feilet.","authenticationRequired":"Autentisering kreves for full tilgang","backToResults":"Tilbake til resultat","book":"Bok","bottom":"Nederst","cancel":"Avbryt","canvasIndex":"Index","changeTheme":"Skift tema","clearSearch":"Fjern søket","close":"Lukk","closeAddResourceForm":"Lukk skjemaet","closeAddResourceMenu":"Lukk ressurslisten","closeCompanionWindow":"Lukk panelet","closeWindow":"Lukk vinduet","collapseSection":"Lukk seksjonen \\"{{section}}\\"","collapseSidePanel":"Lukk sidemenyen","collection":"Samling","itemList":"Objektliste","continue":"Fortsett","copy":"Kopiere","currentItem":"Valgt objekt","currentItem_1/1":"Valgt objekt","currentItem_1/2":"Venstre","currentItem_2/2":"Høyre","dark":"Mørkt tema","digitizedView":"Digitalisert visning","dismiss":"Lukk","highlightAllAnnotations":"Markér alle","displayNoAnnotations":"Avmarkér alle","downloadExport":"Eksportér arbeidsområde","downloadExportWorkspace":"Eksportér arbeidsområde","elastic":"Elastisk","elasticDescription":"Flytt og endre størrelsen på vinduet fritt i et ubegrenset arbeidsområde. Vindu kan overlappe.","emptyResourceList":"Din resursliste er tom","error":"Error","errorDialogConfirm":"OK","errorDialogTitle":"Et problem oppstod","exitFullScreen":"Forlat fullskjermsvisning","expandSection":"Ekspandér seksjonen \\"{{section}}\\"","expandSidePanel":"Ekspandér sidemenyen","exportCopied":"Konfiguration av arbeidsområdet ble kopiert til din utklippstavle","fetchManifest":"Legg til","fullScreen":"Fullskjermsvisning","gallery":"Galleri","hideZoomControls":"Skjul zoomkontroll","iiif_homepage":"Om denne ressursen","iiif_manifest":"IIIF manifest","iiif_renderings":"Alternativt format","iiif_seeAlso":"Se også","import":"Importér","importWorkspace":"Importér arbeidsområde","importWorkspaceHint":"Lim inn en Mirador 3 konfigurasjon for import","item":"Objekt: {{label}}","jsError":"Tekniske detaljer","jsStack":"{{ stack }}","language":"Språk","layer_hide":"Skjul lag","layer_move":"Flytt lag","layer_opacity":"Lag-gjennomsiktighet","layer_show":"Vis lag","layer_moveToTop":"Flytt laget øverst","layers":"Lag","light":"Lyst tema","links":"Lenker","listAllOpenWindows":"Gå til vindu","login":"Logg inn","logout":"Logg ut","manifestError":"Ressursen kan ikke legges til:","maximizeWindow":"Maksimér vinduet","minimizeWindow":"Minimér vinduet","mirador":"Mirador","miradorResources":"Miradorressurser","miradorViewer":"Mirador bildeviser","more":"mer...","moreResults":"Flere resultat","mosaic":"Mosaik","mosaicDescription":"Flytt og endre størrelse på vinduet i relasjon til hverandre, innenfor den synlige rammen.","moveCompanionWindowToBottom":"Flytt til bunnen","moveCompanionWindowToRight":"Flytt til høyre","nextCanvas":"Neste objekt","noItemSelected":"Ingen valgte objekt","numItems":"{{number}} objekt","numItems_plural":"{{number}} objekter","off":"Av","openCompanionWindow_annotations":"Annoteringer","openCompanionWindow_attribution":"Rettigheter","openCompanionWindow_canvas":"Indeks","openCompanionWindow_info":"Informasjon","openCompanionWindow_layers":"Lag","openCompanionWindow_search":"Søk","openInCompanionWindow":"Åpne i eget panel","openWindows":"Åpne vindu","pagination":"{{current}} av {{total}}","position":"Posisjon","previewWindowTitle":"{{title}}","previousCanvas":"Forrige objekt","related":"Relatert","resource":"Ressurs","retry":"Forsøk igjen","right":"Til høyre","rights":"Lisens","scroll":"Bla","searchInputLabel":"Søkeord","searchNextResult":"Neste resultat","searchNoResults":"Ingen treff","searchPreviousResult":"Forrige resultat","searchResultsRemaining":"{{numLeft}} igjen","searchSubmitAria":"Søk","searchTitle":"Søk","selectWorkspaceMenu":"Velg arbeidsområde-type","showingNumAnnotations":"Vis {{number}} annotasjon","showingNumAnnotations_plural":"Vis {{number}} annotasjoner","showCollection":"Vis samling","showZoomControls":"Vis zoomkontroll","sidebarPanelsNavigation":"Sidemeny-panel navigering","single":"En og en","startHere":"Start her","suggestSearch":"Søk etter \\"{{ query }}\\" i dette dokument","tableOfContentsList":"Innholdsfortegnelse","theme":"Tema","thumbnailList":"Miniatyrliste","thumbnailNavigation":"Miniatyrer","thumbnails":"Miniatyrer","toggleWindowSideBar":"Vis/skjul sidemenyen","totalCollections":"{{count}} samling","totalCollections_plural":"{{count}} samlinger","totalManifests":"{{count}} manifest","totalManifests_plural":"{{count}} manifester","tryAgain":"Forsøk igjen","untitled":"[uten tittel]","view":"Visning","viewWorkspaceConfiguration":"Vis konfigurasjon av arbeidsområde.","welcome":"Velkommen til Mirador","window":"Vindu: {{label}}","windowMenu":"Vindusvisning & miniatyrvisning","windowNavigation":"Vindusnavigasjon","windowPluginButtons":"Innstillinger","windowPluginMenu":"Vindusinnstillinger","workspace":"Arbeidsområde","workspaceNavigation":"Navigasjon i arbeidsområdet","workspaceFullScreen":"Fullskjermsvisning","workspaceMenu":"Innstillinger for arbeidsområdet","workspaceOptions":"Flere valg for arbeidsområdet","workspaceSelectionTitle":"Velg arbeidsområde-type","zoomIn":"Zoom inn","zoomOut":"Zoom ut","zoomReset":"Tilbakestill zoom"}}');function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,t){return qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qe(e,t)}function $e(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}var Ye=function(e){var t=e.dndManager,n=e.children;return!1===t?n:void 0===t?r.createElement(j.W,{backend:D.default,options:M.default},n):r.createElement(N.L.Provider,{value:t},n)},Xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qe(e,t)}(s,e);var t,n,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ke(o);if(i){var n=Ke(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $e(this,e)});function s(e){var t,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).i18n=(n={ar:ke,de:Te,en:Pe,fr:je,it:ze,ja:Ne,kr:De,lt:Be,"nb-NO":He,nl:Me,pl:Le,"pt-BR":Ze,sr:We,sv:Fe,vi:Ue,"zh-CN":Re,"zh-TW":Ae},(r=_e.createInstance()).use(I.Db).init({fallbackLng:"en",interpolation:{escapeValue:!1},lng:"en",resources:n}),r),t}return t=s,n=[{key:"componentDidMount",value:function(){var e=this.props.language;this.i18n.changeLanguage(e)}},{key:"componentDidUpdate",value:function(e){var t=this.props.language;e.language!==t&&this.i18n.changeLanguage(t)}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.children,i=n.createGenerateClassNameOptions,a=n.isFullscreenEnabled,s=n.setWorkspaceFullscreen,l=n.theme,u=n.translations,c=n.dndManager,d=(0,k.Z)(i);return Object.keys(u).forEach((function(e){t.i18n.addResourceBundle(e,"translation",u[e],!0,!0)})),r.createElement(S.Z,{enabled:a,onChange:s},r.createElement(C,{i18n:this.i18n},r.createElement(_.Kd,null,r.createElement(T.Z,{theme:(0,P.A)(l)},r.createElement(R.ZP,{jss:(0,L.Ue)({plugins:[].concat((e=(0,A.Z)().plugins,function(e){if(Array.isArray(e))return Ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[(0,Z.Z)()])}),generateClassName:d},r.createElement(Ye,{dndManager:c},o))))))}}],n&&Ge(t.prototype,n),s}(r.Component);Xe.defaultProps={children:null,createGenerateClassNameOptions:{},dndManager:void 0,isFullscreenEnabled:!1};var Qe={setWorkspaceFullscreen:E.jL},Je=(0,b.qC)((0,a.$j)((function(e){return{createGenerateClassNameOptions:(0,O.iE)(e).createGenerateClassNameOptions,isFullscreenEnabled:(0,x.By)(e),language:(0,O.iE)(e).language,theme:(0,O.gh)(e),translations:(0,O.iE)(e).translations}}),Qe),(0,w.A)("AppProviders"));const et=Je(Xe);function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e,t){return rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rt(e,t)}function ot(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}var at=(0,r.lazy)((function(){return o.e(38).then(o.bind(o,73038))})),st=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(s,e);var t,n,o,i,a=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=it(o);if(i){var n=it(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ot(this,e)});function s(){return tt(this,s),a.apply(this,arguments)}return t=s,n=[{key:"render",value:function(){var e=this.props,t=e.dndManager,n=e.plugins;return r.createElement(y,{plugins:n},r.createElement(et,{dndManager:t},r.createElement(r.Suspense,{fallback:r.createElement("div",null)},r.createElement(at,null))))}}],n&&nt(t.prototype,n),s}(r.Component);st.defaultProps={dndManager:void 0,plugins:[]};const lt=st;var ut=o(9996),ct=o.n(ut),dt=o(47037),ft=o.n(dt),pt=o(52353),ht=o.n(pt),gt=o(23560),mt=o.n(gt),vt=o(13218),yt=o.n(vt),bt=o(45220),wt=o.n(bt),Et=o(52628),Ot=o.n(Et),xt=function(e){return[St,It,Ct,_t,kt,Tt,Pt].every((function(t){return t(e)}))},St=function(e){return yt()(e)},It=function(e){var t=e.name;return ht()(t)||ft()(t)},Ct=function(e){var t=e.mode,n=e.target;return ht()(t)?ht()(n):ft()(n)},_t=function(e){var t=e.mode;return ht()(t)||["add","wrap"].some((function(e){return e===t}))},kt=function(e){var t=e.mapStateToProps;return ht()(t)||wt()(t)||mt()(t)},Tt=function(e){var t=e.mapDispatchToProps;return ht()(t)||wt()(t)||mt()(t)||yt()(t)},Pt=function(e){var t=e.reducers;return ht()(t)||yt()(t)&&Ot()(t).every(mt())};function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nt(e){return function(e){if(Array.isArray(e))return Dt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e){var t=function(e){var t=[],n=[];return e.forEach((function(e){Array.isArray(e)?e.every((function(e){return xt(e)}))?n.push.apply(n,Nt(e)):t.push.apply(t,Nt(e)):xt(e)?n.push(e):t.push(e)})),{invalidPlugins:t,validPlugins:n}}(e),n=t.validPlugins;return function(e){e.forEach((function(e){return console.log("Mirador: Plugin ".concat(e.name," is not valid and was rejected."))}))}(t.invalidPlugins),n}function Lt(e){return e&&e.reduce((function(e,t){return At(At({},e),t.reducers)}),{})}function Zt(e){return e&&e.reduce((function(e,t){return ct()(e,t.config||{})}),{})}function zt(e){return e&&e.filter((function(e){return e.saga})).map((function(e){return e.saga}))}function Wt(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Ft=Wt();Ft.withExtraArgument=Wt;const Bt=Ft;var Ut=function(e){return"@@redux-saga/"+e},Ht=Ut("CANCEL_PROMISE"),Vt=Ut("CHANNEL_END"),Gt=Ut("IO"),qt=Ut("MATCH"),$t=Ut("MULTICAST"),Kt=Ut("SAGA_ACTION"),Yt=Ut("SELF_CANCELLATION"),Xt=Ut("TASK"),Qt=Ut("TASK_CANCEL"),Jt=Ut("TERMINATE"),en=Ut("LOCATION"),tn=o(87462),nn=o(63366),rn=function(e){return null==e},on=function(e){return null!=e},an=function(e){return"function"==typeof e},sn=function(e){return"string"==typeof e},ln=Array.isArray,un=function(e){return e&&an(e.then)},cn=function(e){return e&&an(e.next)&&an(e.throw)},dn=function e(t){return t&&(sn(t)||hn(t)||an(t)||ln(t)&&t.every(e))},fn=function(e){return e&&an(e.take)&&an(e.close)},pn=function(e){return an(e)&&e.hasOwnProperty("toString")},hn=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};const gn=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[Ht]=function(){clearTimeout(n)},r};var mn=function(e){return function(){return true}}(),vn=function(){},yn=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var bn=function(e,t){(0,tn.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function wn(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var En=function(e){throw e},On=function(e){return{value:e,done:!0}};function xn(e,t,n){void 0===t&&(t=En),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:On,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Sn(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var In=function(e){return Array.apply(null,new Array(e))},Cn=function(e){return function(t){return e(Object.defineProperty(t,Kt,{value:!0}))}},_n=function(e){return e===Jt},kn=function(e){return e===Qt},Tn=function(e){return _n(e)||kn(e)};function Pn(e,t){var n,r=Object.keys(e),o=r.length,i=0,a=ln(e)?In(o):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||Tn(r)?(t.cancel(),t(r,s)):(a[e]=r,++i===o&&(n=!0,t(a))))};r.cancel=vn,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Rn(e){return{name:e.name||"anonymous",location:An(e)}}function An(e){return e[en]}var jn=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var u;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:u=2*e,n=l(),r=n.length,o=n.length,i=0,n.length=u,e=u,a(s)}},take:s,flush:l}}(e,4)},Nn="TAKE",Dn="CALL",Mn="FORK",Ln="SELECT",Zn=function(e,t){var n;return(n={})[Gt]=!0,n.combinator=!1,n.type=e,n.payload=t,n},zn=function(e){return Zn(Mn,(0,tn.Z)({},e.payload,{detached:!0}))};function Wn(e,t){return void 0===e&&(e="*"),dn(e)?(on(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Zn(Nn,{pattern:e})):fn(n=e)&&n[$t]&&on(t)&&dn(t)?Zn(Nn,{channel:e,pattern:t}):fn(e)?(on(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Zn(Nn,{channel:e})):void 0;var n}function Fn(e,t){return rn(t)&&(t=e,e=void 0),Zn("PUT",{channel:e,action:t})}function Bn(e){var t=Zn("ALL",e);return t.combinator=!0,t}function Un(e,t){var n,r=null;return an(e)?n=e:(ln(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&sn(n)&&an(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Hn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zn(Dn,Un(e,n))}function Vn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zn(Mn,Un(e,n))}function Gn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return zn(Vn.apply(void 0,[e].concat(n)))}function qn(e){void 0===e&&(e=yn);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zn(Ln,{selector:e,args:n})}var $n=Hn.bind(null,gn);const Kn=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var Yn=[],Xn=0;function Qn(e){try{tr(),e()}finally{nr()}}function Jn(e){Yn.push(e),Xn||(tr(),rr())}function er(e){try{return tr(),e()}finally{rr()}}function tr(){Xn++}function nr(){Xn--}function rr(){var e;for(nr();!Xn&&void 0!==(e=Yn.shift());)Qn(e)}var or=function(e){return function(t){return e.some((function(e){return ur(e)(t)}))}},ir=function(e){return function(t){return e(t)}},ar=function(e){return function(t){return t.type===String(e)}},sr=function(e){return function(t){return t.type===e}},lr=function(){return mn};function ur(e){var t="*"===e?lr:sn(e)?ar:ln(e)?or:pn(e)?ar:an(e)?ir:hn(e)?sr:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var cr={type:Vt},dr=function(e){return e&&e.type===Vt};function fr(){var e,t,n,r,o,i,a=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(cr)}))},(e={})[$t]=!0,e.put=function(e){if(!t)if(dr(e))i();else for(var o=n=r,a=0,s=o.length;a<s;a++){var l=o[a];l[qt](e)&&(l.cancel(),l(e))}},e.take=function(e,n){var i,a;void 0===n&&(n=lr),t?e(cr):(e[qt]=n,o(),r.push(e),e.cancel=(i=function(){o(),wn(r,e)},a=!1,function(){a||(a=!0,i())}))},e.close=i,e),s=a.put;return a.put=function(e){e[Kt]?s(e):Jn((function(){s(e)}))},a}function pr(e,t){var n=e[Ht];an(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var hr,gr=0,mr=function(){return++gr};function vr(e){e.isRunning()&&e.cancel()}var yr=((hr={}).TAKE=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!dr(e)||a?n(e):n(Jt)};try{o.take(s,on(i)?ur(i):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},hr.PUT=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;Jn((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}i&&un(t)?pr(t,n):n(t)}))},hr.ALL=function(e,t,n,r){var o=r.digestEffect,i=gr,a=Object.keys(t);if(0!==a.length){var s=Pn(t,n);a.forEach((function(e){o(t[e],i,s[e],e)}))}else n(ln(t)?[]:{})},hr.RACE=function(e,t,n,r){var o=r.digestEffect,i=gr,a=Object.keys(t),s=ln(t)?In(a.length):{},l={},u=!1;a.forEach((function(e){var t=function(t,r){u||(r||Tn(t)?(n.cancel(),n(t,r)):(n.cancel(),u=!0,s[e]=t,n(s)))};t.cancel=vn,l[e]=t})),n.cancel=function(){u||(u=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){u||o(t[e],i,l[e],e)}))},hr.CALL=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=r.task;try{var l=i.apply(o,a);if(un(l))return void pr(l,n);if(cn(l))return void kr(e,l,s.context,gr,Rn(i),!1,n);n(l)}catch(e){n(e,!0)}},hr.CPS=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){rn(e)?n(t):n(e,!0)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},hr.FORK=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=t.detached,l=r.task,u=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(cn(o))return o;var i=!1;return xn((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!un(o)})}))}catch(e){return xn((function(){throw e}))}}({context:o,fn:i,args:a}),c=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Rn(t)}(u,i);er((function(){var t=kr(e,u,l.context,gr,c,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},hr.JOIN=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&wn(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(ln(t)){if(0===t.length)return void n([]);var a=Pn(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},hr.CANCEL=function(e,t,n,r){var o=r.task;t===Yt?vr(o):ln(t)?t.forEach(vr):vr(t),n()},hr.SELECT=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},hr.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=function(e){void 0===e&&(e=jn());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(cr):e.isEmpty()?(n.push(r),r.cancel=function(){wn(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(cr):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++)(0,e[r])(cr)}}}}(t.buffer),i=ur(r),a=function t(n){dr(n)||e.channel.take(t,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),n(o)},hr.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},hr.FLUSH=function(e,t,n){t.flush(n)},hr.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},hr.SET_CONTEXT=function(e,t,n,r){var o=r.task;bn(o.context,t),n()},hr);function br(e,t){return e+"?"+t}function wr(e){var t=e.name,n=e.location;return n?t+" "+br(n.fileName,n.lineNumber):t}function Er(e){var t,n,r,o=(t=function(e){return e.cancelledTasks},n=e,(r=[]).concat.apply(r,n.map(t)));return o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):""}var Or=null,xr=[],Sr=function(e){e.crashedEffect=Or,xr.push(e)},Ir=function(){Or=null,xr.length=0},Cr=function(){var e,t,n=xr[0],r=xr.slice(1),o=n.crashedEffect?(e=n.crashedEffect,(t=An(e))?t.code+" "+br(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+wr(n.meta)+(o?" \n when executing effect "+o:"")].concat(r.map((function(e){return" created by "+wr(e.meta)})),[Er(xr)]).join("\n")};function _r(e,t,n,r,o,i,a){var s;void 0===a&&(a=vn);var l,u,c=0,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name}))),l(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,l){i||(wn(o,t),t.cont=vn,l?a(s):(t===e&&(r=s),o.length||(i=!0,n(r))))}}function l(){i||(i=!0,o.forEach((function(e){e.cont=vn,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return o}}}(t,0,g);function g(t,n){if(n){if(c=2,Sr({meta:o,cancelledTasks:f}),m.isRoot){var r=Cr();Ir(),e.onError(t,{sagaStack:r})}u=t,d&&d.reject(t)}else t===Qt?c=1:1!==c&&(c=3),l=t,d&&d.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Xt]=!0,s.id=r,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===c&&(c=1,h.cancelAll(),g(Qt,!1))},s.cont=a,s.end=g,s.setContext=function(e){bn(p,e)},s.toPromise=function(){return d||(d=Kn(),2===c?d.reject(u):0!==c&&d.resolve(l)),d.promise},s.isRunning=function(){return 0===c},s.isCancelled=function(){return 1===c||0===c&&1===t.status},s.isAborted=function(){return 2===c},s.result=function(){return l},s.error=function(){return u},s);return m}function kr(e,t,n,r,o,i,a){var s=e.finalizeRunEffect((function(t,n,r){un(t)?pr(t,r):cn(t)?kr(e,t,u.context,n,o,!1,r):t&&t[Gt]?(0,yr[t.type])(e,t.payload,r,c):r(t)}));d.cancel=vn;var l={meta:o,cancel:function(){0===l.status&&(l.status=1,d(Qt))},status:0},u=_r(e,l,n,r,o,i,a),c={task:u,digestEffect:f};return a&&(a.cancel=u.cancel),d(),u;function d(e,n){try{var o;n?(o=t.throw(e),Ir()):kn(e)?(l.status=1,d.cancel(),o=an(t.return)?t.return(Qt):{done:!0,value:Qt}):o=_n(e)?an(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==l.status&&(l.status=3),l.cont(o.value)):f(o.value,r,d)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function f(t,n,r,o){void 0===o&&(o="");var i,a=mr();function l(n,o){i||(i=!0,r.cancel=vn,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&function(e){Or=e}(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),l.cancel=vn,r.cancel=function(){i||(i=!0,l.cancel(),l.cancel=vn,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Tr(e,t){for(var n=e.channel,r=void 0===n?fr():n,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,u=e.effectMiddlewares,c=e.onError,d=void 0===c?Sn:c,f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var g,m=t.apply(void 0,p),v=mr();if(l&&(l.rootSagaStarted=l.rootSagaStarted||vn,l.effectTriggered=l.effectTriggered||vn,l.effectResolved=l.effectResolved||vn,l.effectRejected=l.effectRejected||vn,l.effectCancelled=l.effectCancelled||vn,l.actionDispatched=l.actionDispatched||vn,l.rootSagaStarted({effectId:v,saga:t,args:p})),u){var y=b.qC.apply(void 0,u);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=yn;var w={channel:r,dispatch:Cn(o),getState:i,sagaMonitor:l,onError:d,finalizeRunEffect:g};return er((function(){var e=kr(w,m,s,v,Rn(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const Pr=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?fr():i,s=n.sagaMonitor,l=(0,nn.Z)(n,["context","channel","sagaMonitor"]);function u(e){var n=e.getState,r=e.dispatch;return t=Tr.bind(null,(0,tn.Z)({},l,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return u.run=function(){return t.apply(void 0,arguments)},u.setContext=function(e){bn(o,e)},u};var Rr=o(28500),Ar=o(57557),jr=o.n(Ar),Nr=o(7903);function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.RESOLVE_AUTHENTICATION_REQUEST:return Mr(Mr({},e),{},Lr({},t.tokenServiceId,{authId:t.id,id:t.tokenServiceId,isFetching:!0}));case Nr.Z.REQUEST_ACCESS_TOKEN:return Mr(Mr({},e),{},Lr({},t.serviceId,{authId:t.authId,id:t.serviceId,isFetching:!0}));case Nr.Z.RECEIVE_ACCESS_TOKEN:return Mr(Mr({},e),{},Lr({},t.serviceId,Mr(Mr({},e[t.serviceId]),{},{isFetching:!1,json:t.json})));case Nr.Z.RECEIVE_ACCESS_TOKEN_FAILURE:return Mr(Mr({},e),{},Lr({},t.serviceId,Mr(Mr({},e[t.serviceId]),{},{error:t.error,isFetching:!1})));case Nr.Z.RESET_AUTHENTICATION_STATE:return jr()(e,t.tokenServiceId);case Nr.Z.RECEIVE_INFO_RESPONSE:return t.tokenServiceId?e[t.tokenServiceId].success?e:Mr(Mr({},e),{},Lr({},t.tokenServiceId,Mr(Mr({},e[t.tokenServiceId]),{},{success:!0}))):e;default:return e}}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Fr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Br=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.REQUEST_ANNOTATION:return Wr(Wr({},e),{},Fr({},t.targetId,Wr(Wr({},e[t.targetId]),{},Fr({},t.annotationId,{id:t.annotationId,isFetching:!0}))));case Nr.Z.RECEIVE_ANNOTATION:return Wr(Wr({},e),{},Fr({},t.targetId,Wr(Wr({},e[t.targetId]),{},Fr({},t.annotationId,{id:t.annotationId,isFetching:!1,json:t.annotationJson}))));case Nr.Z.RECEIVE_ANNOTATION_FAILURE:return Wr(Wr({},e),{},Fr({},t.targetId,Wr(Wr({},e[t.targetId]),{},Fr({},t.annotationId,{error:t.error,id:t.annotationId,isFetching:!1}))));case Nr.Z.IMPORT_MIRADOR_STATE:return{};default:return e}};function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){Vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.ADD_AUTHENTICATION_REQUEST:return Hr(Hr({},e),{},Vr({},t.id,{id:t.id,isFetching:!0,profile:t.profile,windowId:t.windowId}));case Nr.Z.RESOLVE_AUTHENTICATION_REQUEST:return Hr(Hr({},e),{},Vr({},t.id,Hr(Hr({},e[t.id]),{},{isFetching:!1,ok:t.ok})));case Nr.Z.RECEIVE_ACCESS_TOKEN:return t.authId?Hr(Hr({},e),{},Vr({},t.authId,Hr(Hr({},e[t.authId]),{},{ok:!0}))):e;case Nr.Z.RESET_AUTHENTICATION_STATE:return jr()(e,t.id);default:return e}};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Kr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){return function(e){if(Array.isArray(e))return Xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.ADD_RESOURCE:return e.some((function(e){return e.manifestId===t.manifestId}))?e:[$r({manifestId:t.manifestId},t.payload)].concat(Yr(e));case Nr.Z.ADD_WINDOW:return e.some((function(e){return e.manifestId===t.window.manifestId}))?e:[{manifestId:t.window.manifestId}].concat(Yr(e));case Nr.Z.UPDATE_WINDOW:return t.payload.manifestId?e.some((function(e){return e.manifestId===t.payload.manifestId}))?e:[{manifestId:t.payload.manifestId}].concat(Yr(e)):e;case Nr.Z.REMOVE_RESOURCE:return e.filter((function(e){return e.manifestId!==t.manifestId}));case Nr.Z.IMPORT_CONFIG:return t.config.catalog||[];case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.catalog||[];default:return e}},Jr=o(28252),eo=o.n(Jr),to=o(69898),no=o.n(to);function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach((function(t){io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.ADD_COMPANION_WINDOW:return eo()([t.id],t.payload,e);case Nr.Z.ADD_WINDOW:return oo(oo({},e),(t.companionWindows||[]).reduce((function(n,r){return n[r.id]=oo(oo(oo({},e[r.id]),r),{},{windowId:t.id}),n}),{}));case Nr.Z.REMOVE_WINDOW:return Object.keys(e).reduce((function(n,r){return e[r].windowId!==t.windowId&&(n[r]=e[r]),n}),{});case Nr.Z.UPDATE_COMPANION_WINDOW:return no()([t.id],(function(e){return oo(oo({},e||{}),t.payload)}),e);case Nr.Z.REMOVE_COMPANION_WINDOW:return jr()(e,t.id);case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.companionWindows||[];case Nr.Z.TOGGLE_TOC_NODE:return no()([t.id,"tocNodes"],(function(e){return oo(oo({},e||{}),t.payload)}),e);default:return e}}var so=o(73818);function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var co=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach((function(t){uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},so.Z),fo=function(e,t,n){return t},po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:co,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.UPDATE_CONFIG:case Nr.Z.IMPORT_CONFIG:return ct()(e,t.config,{arrayMerge:fo});case Nr.Z.SET_CONFIG:return t.config;case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.config||{};default:return e}};function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.ADD_WINDOW:return go(go({},e),{},mo({},t.window.id,go({windowId:t.window.id},t.elasticLayout)));case Nr.Z.UPDATE_ELASTIC_WINDOW_LAYOUT:return no()([t.windowId],(function(e){return go(go({},e||{}),t.payload)}),e);case Nr.Z.REMOVE_WINDOW:return jr()(e,t.windowId);case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.elasticLayout||{};default:return e}},yo=o(82569),bo=o.n(yo);function wo(e){return function(e){if(Array.isArray(e))return Eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){So(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Io={items:[]},Co=function(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case Nr.Z.ADD_ERROR:return xo(xo({},o),{},(So(e={},i.id,{id:i.id,message:i.message}),So(e,"items",[].concat(wo(o.items),[i.id])),e));case Nr.Z.RECEIVE_INFO_RESPONSE_FAILURE:return xo(xo({},o),{},(So(t={},i.infoId,{id:i.infoId,message:i.error}),So(t,"items",[].concat(wo(o.items),[i.infoId])),t));case Nr.Z.RECEIVE_SEARCH_FAILURE:return xo(xo({},o),{},(So(n={},i.searchId,{id:i.searchId,message:i.error}),So(n,"items",[].concat(wo(o.items),[i.searchId])),n));case Nr.Z.REMOVE_ERROR:return(r=Object.keys(o).reduce((function(e,t){return t!==i.id&&(e[t]=o[t]),e}),{})).items=bo()(r.items,i.id),r;case Nr.Z.IMPORT_MIRADOR_STATE:return Io;default:return o}};function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){To(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function To(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.REQUEST_INFO_RESPONSE:return ko(ko({},e),{},To({},t.infoId,{id:t.infoId,isFetching:!0}));case Nr.Z.RECEIVE_INFO_RESPONSE:return ko(ko({},e),{},To({},t.infoId,{degraded:!1,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case Nr.Z.RECEIVE_DEGRADED_INFO_RESPONSE:return ko(ko({},e),{},To({},t.infoId,{degraded:!0,id:t.infoId,isFetching:!1,json:t.infoJson,tokenServiceId:t.tokenServiceId}));case Nr.Z.RECEIVE_INFO_RESPONSE_FAILURE:return ko(ko({},e),{},To({},t.infoId,{error:t.error,id:t.infoId,isFetching:!1,tokenServiceId:t.tokenServiceId}));case Nr.Z.REMOVE_INFO_RESPONSE:return Object.keys(e).reduce((function(n,r){return r!==t.infoId&&(n[r]=e[r]),n}),{});case Nr.Z.IMPORT_MIRADOR_STATE:return{};default:return e}};function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.UPDATE_LAYERS:return Ao(Ao({},e),{},jo({},t.windowId,Ao(Ao({},e[t.windowId]),{},jo({},t.canvasId,ct()((e[t.windowId]||{})[t.canvasId]||{},t.payload)))));case Nr.Z.REMOVE_WINDOW:return jr()(e,[t.windowId]);default:return e}};function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.REQUEST_MANIFEST:return Mo(Lo({},t.manifestId,Mo(Mo(Mo({},e[t.manifestId]),t.properties),{},{id:t.manifestId})),jr()(e,t.manifestId));case Nr.Z.RECEIVE_MANIFEST:return Mo(Mo({},e),{},Lo({},t.manifestId,Mo(Mo({},e[t.manifestId]),{},{error:null,id:t.manifestId,isFetching:!1,json:t.manifestJson})));case Nr.Z.RECEIVE_MANIFEST_FAILURE:return Mo(Mo({},e),{},Lo({},t.manifestId,Mo(Mo({},e[t.manifestId]),{},{error:t.error,id:t.manifestId,isFetching:!1})));case Nr.Z.REMOVE_MANIFEST:return Object.keys(e).reduce((function(n,r){return r!==t.manifestId&&(n[r]=e[r]),n}),{});case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.manifests||{};default:return e}},zo=o(85564),Wo=o.n(zo);function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ho=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=(e[t.windowId]||{})[t.companionWindowId]||{};switch(t.type){case Nr.Z.REQUEST_SEARCH:return n.query!==t.query?Bo(Bo({},e),{},Uo({},t.windowId,Bo(Bo({},e[t.windowId]),{},Uo({},t.companionWindowId,Bo(Bo({},n),{},{data:Uo({},t.searchId,{isFetching:!0}),query:t.query,selectedContentSearchAnnotation:[]}))))):Bo(Bo({},e),{},Uo({},t.windowId,Bo(Bo({},e[t.windowId]),{},Uo({},t.companionWindowId,Bo(Bo({},n),{},{data:Bo(Bo({},n.data),{},Uo({},t.searchId,{isFetching:!0}))})))));case Nr.Z.RECEIVE_SEARCH:return Bo(Bo({},e),{},Uo({},t.windowId,Bo(Bo({},e[t.windowId]),{},Uo({},t.companionWindowId,Bo(Bo({},n),{},{data:Bo(Bo({},n.data),{},Uo({},t.searchId,{isFetching:!1,json:t.searchJson}))})))));case Nr.Z.RECEIVE_SEARCH_FAILURE:return Bo(Bo({},e),{},Uo({},t.windowId,Bo(Bo({},e[t.windowId]),{},Uo({},t.companionWindowId,Bo(Bo({},n),{},{data:Bo(Bo({},n.data),{},Uo({},t.searchId,{error:t.error,isFetching:!1}))})))));case Nr.Z.REMOVE_SEARCH:return Bo(Bo({},e),{},Uo({},t.windowId,Object.keys(e[t.windowId]).reduce((function(n,r){return r!==t.companionWindowId&&(n[r]=e[t.windowId][r]),n}),{})));case Nr.Z.SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:return Bo(Bo({},e),{},Uo({},t.windowId,Bo(Bo({},e[t.windowId]),{},Uo({},t.companionWindowId,Bo(Bo({},n),{},{selectedContentSearchAnnotationIds:t.annotationIds})))));case Nr.Z.SELECT_ANNOTATION:return e[t.windowId]?Bo(Bo({},e),{},Uo({},t.windowId,Object.keys(e[t.windowId]).reduce((function(n,r){var o=e[t.windowId][r],i=o.data&&Object.values(o.data).filter((function(e){return e.json&&e.json.resources})).some((function(e){return Wo()([e.json.resources]).some((function(e){return e["@id"]===t.annotationId}))}));return n[r]=i?Bo(Bo({},o),{},{selectedContentSearchAnnotationIds:[t.annotationId]}):o,n}),{}))):e;case Nr.Z.IMPORT_MIRADOR_STATE:return{};case Nr.Z.REMOVE_WINDOW:return jr()(e,t.windowId);case Nr.Z.REMOVE_COMPANION_WINDOW:return e[t.windowId]?Bo(Bo({},e),{},Uo({},t.windowId,Bo({},jr()(e[t.windowId],t.id)))):e;default:return e}};function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.UPDATE_VIEWPORT:return Go(Go({},e),{},qo({},t.windowId,Go(Go({},e[t.windowId]),t.payload)));case Nr.Z.REMOVE_WINDOW:return jr()(e,t.windowId);case Nr.Z.SET_WINDOW_VIEW_TYPE:return eo()([t.windowId],null,e);case Nr.Z.SET_CANVAS:return t.preserveViewport?e:eo()([t.windowId],null,e);case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.viewers||{};default:return e}};function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach((function(t){Xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Nr.Z.ADD_WINDOW:return Yo(Yo({},e),{},Xo({},t.window.id,t.window));case Nr.Z.MAXIMIZE_WINDOW:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{maximized:!0})));case Nr.Z.MINIMIZE_WINDOW:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{maximized:!1})));case Nr.Z.UPDATE_WINDOW:return no()([t.id],(function(e){return Yo(Yo({},e||{}),t.payload)}),e);case Nr.Z.REMOVE_WINDOW:return jr()(e,[t.windowId]);case Nr.Z.TOGGLE_WINDOW_SIDE_BAR:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{sideBarOpen:!e[t.windowId].sideBarOpen})));case Nr.Z.SET_WINDOW_VIEW_TYPE:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{view:t.viewType})));case Nr.Z.UPDATE_WINDOW_POSITION:return Yo(Yo({},e),{},Xo({},t.payload.windowId,Yo(Yo({},e[t.payload.windowId]),{},{x:t.payload.position.x,y:t.payload.position.y})));case Nr.Z.SET_WINDOW_SIZE:return Yo(Yo({},e),{},Xo({},t.payload.windowId,Yo(Yo({},e[t.payload.windowId]),{},{height:t.payload.size.height,width:t.payload.size.width,x:t.payload.size.x,y:t.payload.size.y})));case Nr.Z.SET_CANVAS:return e[t.windowId]?no()([t.windowId],(function(e){return Yo(Yo({},e||{}),{},{canvasId:t.canvasId,visibleCanvases:t.visibleCanvases||[]})}),e):e;case Nr.Z.ADD_COMPANION_WINDOW:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.concat([t.id])},"left"===t.payload.position?{companionAreaOpen:!0,sideBarPanel:t.payload.content}:{})));case Nr.Z.UPDATE_COMPANION_WINDOW:return"left"!==t.payload.position?e:Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{companionAreaOpen:!0})));case Nr.Z.REMOVE_COMPANION_WINDOW:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{companionWindowIds:e[t.windowId].companionWindowIds.filter((function(e){return e!==t.id}))})));case Nr.Z.SELECT_ANNOTATION:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{selectedAnnotationId:t.annotationId})));case Nr.Z.DESELECT_ANNOTATION:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{selectedAnnotationId:void 0})));case Nr.Z.HOVER_ANNOTATION:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{hoveredAnnotationIds:t.annotationIds})));case Nr.Z.TOGGLE_ANNOTATION_DISPLAY:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{highlightAllAnnotations:!e[t.windowId].highlightAllAnnotations})));case Nr.Z.IMPORT_MIRADOR_STATE:return t.state.windows||[];case Nr.Z.REQUEST_SEARCH:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{suggestedSearches:void 0})));case Nr.Z.SHOW_COLLECTION_DIALOG:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{collectionDialogOn:!0,collectionManifestId:t.manifestId,collectionPath:t.collectionPath})));case Nr.Z.HIDE_COLLECTION_DIALOG:return Yo(Yo({},e),{},Xo({},t.windowId,Yo(Yo({},e[t.windowId]),{},{collectionDialogOn:!1})));default:return e}};function Jo(e){return function(e){if(Array.isArray(e))return ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oi(e){return void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height}function ii(e,t){return t.x-t.width/2>e.x-e.width/2&&t.y-t.height/2>e.y-e.height/2&&t.x+t.width/2<e.x+e.width/2&&t.y+t.height/2<e.y+e.height/2}var ai=function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ni(ni({},so.Z.workspace),{},{windowIds:[]}),o=arguments.length>1?arguments[1]:void 0;switch(o.type){case Nr.Z.UPDATE_WORKSPACE:return ni(ni({},r),o.config);case Nr.Z.FOCUS_WINDOW:return ni(ni({},r),{},{focusedWindowId:o.windowId,viewportPosition:ni(ni({},r.viewportPosition),o.position)});case Nr.Z.ADD_WINDOW:return ni(ni({},r),{},{focusedWindowId:o.window.id,windowIds:[].concat(Jo(r.windowIds||[]),[o.window.id])});case Nr.Z.REMOVE_WINDOW:return n=(r.windowIds||[]).filter((function(e){return e!==o.windowId})),ni(ni({},r),{},{focusedWindowId:o.windowId===r.focusedWindowId?n[n.length-1]:r.focusedWindowId,windowIds:n});case Nr.Z.SET_WORKSPACE_FULLSCREEN:return ni(ni({},r),{},{isFullscreenEnabled:o.isFullscreenEnabled});case Nr.Z.TOGGLE_ZOOM_CONTROLS:return ni(ni({},r),{},{showZoomControls:o.showZoomControls});case Nr.Z.UPDATE_WORKSPACE_MOSAIC_LAYOUT:return ni(ni({},r),{},{layout:o.layout});case Nr.Z.SET_WORKSPACE_ADD_VISIBILITY:return ni(ni({},r),{},{isWorkspaceAddVisible:o.isWorkspaceAddVisible});case Nr.Z.SET_WORKSPACE_VIEWPORT_POSITION:return e={},oi(t=ni(ni({},r.viewportPosition),o.payload.position))&&!ii({height:r.height,width:r.width,x:0,y:0},t)&&(e={height:2*r.height,width:2*r.width}),ni(ni(ni({},r),e),{},{viewportPosition:t});case Nr.Z.SET_CONFIG:case Nr.Z.IMPORT_CONFIG:case Nr.Z.UPDATE_CONFIG:return ni(ni({},r),o.config.workspace);case Nr.Z.IMPORT_MIRADOR_STATE:return o.state.workspace||{};case Nr.Z.TOGGLE_DRAGGING:return ni(ni({},r),{},{draggingEnabled:!r.draggingEnabled});default:return r}};function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e){return(0,b.UY)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({accessTokens:Zr,annotations:Br,auth:Gr,catalog:Qr,companionWindows:ao,config:po,elasticLayout:vo,errors:Co,infoResponses:Po,layers:No,manifests:Zo,searches:Ho,viewers:$o,windows:Qo,workspace:ai},e))}var ci=o(64687),di=o.n(ci),fi=function(e){return{done:!0,value:e}},pi={};function hi(e){return fn(e)?"channel":pn(e)?String(e):an(e)?e.name:String(e)}function gi(e,t,n){var r,o,i,a=t;function s(t,n){if(a===pi)return fi(t);if(n&&!o)throw a=pi,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===pi?fi(t):i}return xn(s,(function(e){return s(null,e)}),n)}function mi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a={done:!1,value:Wn(e)},s=function(e){return{done:!1,value:Vn.apply(void 0,[t].concat(r,[e]))}},l=function(e){return i=e};return gi({q1:function(){return{nextState:"q2",effect:a,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:s(i)}}},"q1","takeEvery("+hi(e)+", "+t.name+")")}function vi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Vn.apply(void 0,[mi,e,t].concat(r))}var yi=o(53001),bi=o(80204),wi=o.n(bi),Ei=o(66947),Oi=o(40015),xi=o.n(Oi),Si=o(83502),Ii=o(91861),Ci=o(76337),_i=o(73953),ki=o(97193),Ti=o(49455),Pi=o(81610);function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){ji(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ni=di().mark(Vi),Di=di().mark(Gi),Mi=di().mark(qi),Li=di().mark($i),Zi=di().mark(Ki),zi=di().mark(Yi),Wi=di().mark(Xi),Fi=di().mark(Qi),Bi=di().mark(Ji),Ui=di().mark(ea);function Hi(e,t,n){var r=n.success,o=n.degraded,i=n.failure;return wi()(e,t).then((function(e){return e.json().then((function(t){return 401===e.status?(o||r)({json:t,response:e}):e.ok?r({json:t,response:e}):i({error:e.statusText,json:t,response:e})})).catch((function(t){return i({error:t,response:e})}))})).catch((function(e){return i({error:e})}))}function Vi(e,t,n){var r,o,i,a,s,l,u,c,d,f;return di().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return r=n.success,o=n.degraded,i=n.failure,p.next=3,qn(O.$0);case 3:return a=p.sent,s=a.preprocessors,l=void 0===s?[]:s,u=a.postprocessors,c=void 0===u?[]:u,p.prev=8,d=l.reduce((function(t,n){return n(e,t)||t}),t),p.next=12,Hn(Hi,e,d,{degraded:o,failure:i,success:r});case 12:return f=p.sent,f=c.reduce((function(t,n){return n(e,t)||t}),f),p.abrupt("return",f);case 17:return p.prev=17,p.t0=p.catch(8),p.abrupt("return",i({error:p.t0}));case 20:case"end":return p.stop()}}),Ni,null,[[8,17]])}function Gi(e,t,n,r){var o,i,a,s,l,u,c,d,f,p,h,g;return di().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(o=r.degraded,i=r.failure,a=r.success,s=Ai({},n),!t){m.next=8;break}return m.next=5,Hn($i,t);case 5:u=m.sent,l=u&&u.id,u&&u.json&&(s.headers=Ai({Authorization:"Bearer ".concat(u.json.accessToken)},n.headers));case 8:return m.next=10,Hn(Vi,e,s,{failure:function(e){return e},success:function(e){return e}});case 10:if(c=m.sent,d=c.error,f=c.json,p=c.response,!d){m.next=18;break}return m.next=17,Fn(i({error:d,json:f,response:p,tokenServiceId:l}));case 17:return m.abrupt("return");case 18:if(h=f["@id"]||f.id,!p.ok){m.next=26;break}if(xi()(h,{stripAuthentication:!1})!==xi()(e.replace(/info\.json$/,""),{stripAuthentication:!1})){m.next=24;break}return m.next=23,Fn(a({json:f,response:p,tokenServiceId:l}));case 23:return m.abrupt("return");case 24:m.next=30;break;case 26:if(401===p.status){m.next=30;break}return m.next=29,Fn(i({error:d,json:f,response:p,tokenServiceId:l}));case 29:return m.abrupt("return");case 30:return m.next=32,Hn($i,f);case 32:if(!(g=m.sent)||g.id===l){m.next=37;break}return m.next=36,Hn(Gi,e,f,n,{degraded:o,failure:i,success:a});case 36:return m.abrupt("return");case 37:return m.next=39,Fn((o||a)({json:f,response:p,tokenServiceId:l}));case 39:case"end":return m.stop()}}),Di)}function qi(e){var t,n,r;return di().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.manifestId,n={failure:function(e){var n=e.error;return e.json,e.response,(0,Si.d1)(t,"object"==typeof n?String(n):n)},success:function(e){var n=e.json;return e.response,(0,Si.gk)(t,n)}},o.next=4,Hn(Vi,t,{},n);case 4:return r=o.sent,o.next=7,Fn(r);case 7:case"end":return o.stop()}}),Mi)}function $i(e){var t,n,r,o,i,a,s;return di().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=e&&e.__jsonld?e:Ai(Ai({},e),{},{options:{}}),0!==(n=Ei.Utils.getServices(t).filter((function(e){return e.getProfile().match(/http:\/\/iiif.io\/api\/auth\//)}))).length){l.next=4;break}return l.abrupt("return",void 0);case 4:return l.next=6,qn(ki.f2);case 6:if(r=l.sent){l.next=9;break}return l.abrupt("return",void 0);case 9:o=0;case 10:if(!(o<n.length)){l.next=19;break}if(i=n[o],a=Ei.Utils.getService(i,"http://iiif.io/api/auth/1/token")||Ei.Utils.getService(i,"http://iiif.io/api/auth/0/token"),!(s=a&&r[a.id])||!s.json){l.next=16;break}return l.abrupt("return",s);case 16:o+=1,l.next=10;break;case 19:return l.abrupt("return",void 0);case 20:case"end":return l.stop()}}),Li)}function Ki(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.imageResource,n=e.infoId,r=e.windowId,o=t){a.next=6;break}return a.next=5,qn(Ti.h2,{infoId:n});case 5:o=a.sent;case 6:return i={degraded:function(e){var t=e.json,o=e.response,i=e.tokenServiceId;return(0,Ii.bJ)(n,t,o.ok,i,r)},failure:function(e){var t=e.error,r=(e.json,e.response,e.tokenServiceId);return(0,Ii.WQ)(n,t,r)},success:function(e){var t=e.json,r=e.response,o=e.tokenServiceId;return(0,Ii.Xr)(n,t,r.ok,o)}},a.next=9,Hn(Gi,"".concat(n.replace(/\/$/,""),"/info.json"),o,{},i);case 9:case"end":return a.stop()}}),Zi)}function Yi(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.windowId,n=e.companionWindowId,e.query,r=e.searchId,o={failure:function(e){var o=e.error;return e.json,e.response,(0,Ci.Pf)(t,n,r,o)},success:function(e){var o=e.json;return e.response,(0,Ci.wt)(t,n,r,o)}},a.next=4,Hn(Vi,r,{},o);case 4:return i=a.sent,a.next=7,Fn(i);case 7:case"end":return a.stop()}}),zi)}function Xi(e){var t,n,r,o;return di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.targetId,n=e.annotationId,r={failure:function(e){var r=e.error;return e.json,e.response,(0,_i.WI)(t,n,r)},success:function(e){var r=e.json;return e.response,(0,_i.zS)(t,n,r)}},i.next=4,Hn(Vi,n,{},r);case 4:return o=i.sent,i.next=7,Fn(o);case 7:case"end":return i.stop()}}),Wi)}function Qi(e){var t,n;return di().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.manifestId,!(n=e.manifestJson)){r.next=5;break}return r.next=4,Fn((0,Si.gk)(t,n));case 4:return r.abrupt("return");case 5:if(t){r.next=7;break}return r.abrupt("return");case 7:return r.next=9,qn(Pi.Eq)||{};case 9:if(r.sent[t]){r.next=12;break}return r.delegateYield(qi({manifestId:t}),"t0",12);case 12:case"end":return r.stop()}}),Fi)}function Ji(){var e,t,n,r=arguments;return di().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,qn(Pi.Eq);case 2:e=o.sent,t=0;case 4:if(!(t<r.length)){o.next=12;break}if(n=t<0||r.length<=t?void 0:r[t],e[n]){o.next=9;break}return o.next=9,Hn(qi,{manifestId:n});case 9:t+=1,o.next=4;break;case 12:case"end":return o.stop()}}),Bi)}function ea(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn([vi(Nr.Z.REQUEST_MANIFEST,qi),vi(Nr.Z.REQUEST_INFO_RESPONSE,Ki),vi(Nr.Z.REQUEST_SEARCH,Yi),vi(Nr.Z.REQUEST_ANNOTATION,Xi),vi(Nr.Z.ADD_RESOURCE,Qi)]);case 2:case"end":return e.stop()}}),Ui)}var ta=o(24287),na=o(7590),ra=o(36691),oa=o(50166),ia=o(49676),aa=o(80923),sa=o(51580),la=o(89875),ua=di().mark(Ia),ca=di().mark(Ca),da=di().mark(_a),fa=di().mark(ka),pa=di().mark(Ta),ha=di().mark(Pa),ga=di().mark(Aa),ma=di().mark(ja),va=di().mark(Na),ya=di().mark(Da),ba=di().mark(Ma),wa=di().mark(La),Ea=di().mark(Za),Oa=di().mark(za);function xa(e){return function(e){if(Array.isArray(e))return Sa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Sa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ia(e){var t,n,r,o;return di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.payload||e.window,n=t.collectionPath,r=t.id,o=t.manifestId){i.next=3;break}return i.abrupt("return");case 3:if(!e.manifest){i.next=8;break}return i.next=6,Fn((0,Si.gk)(o,e.manifest));case 6:i.next=10;break;case 8:return i.next=10,Hn.apply(void 0,[Ji,o].concat(xa(n||[])));case 10:return i.next=12,Hn(Ta,e);case 12:return i.next=14,Hn(Pa,e);case 14:if(n){i.next=17;break}return i.next=17,Hn(_a,{manifestId:o,windowId:e.id||e.window.id});case 17:return i.next=19,Hn(Za,o,r);case 19:case"end":return i.stop()}}),ua)}function Ca(e){var t,n,r;return di().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=e.id,e&&e.payload&&e.payload.sequenceId){o.next=3;break}return o.abrupt("return");case 3:return o.next=5,qn(Ti.LU,{windowId:t});case 5:if((n=o.sent)&&n[0]&&n[0].id){o.next=8;break}return o.abrupt("return");case 8:return o.next=10,Hn(ra.ji,t,n[0].id);case 10:return r=o.sent,o.next=13,Fn(r);case 13:case"end":return o.stop()}}),ca)}function _a(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.manifestId,n=e.windowId,a.next=3,qn(ia.hi,{manifestId:t});case 3:if(!(r=a.sent)){a.next=10;break}if(o=r.getProperty("partOf"),!(i=Array.isArray(o)?o[0]:o)||!i.id){a.next=10;break}return a.next=10,Fn((0,oa.zw)(n,{collectionPath:[i.id]}));case 10:case"end":return a.stop()}}),da)}function ka(e){var t;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.payload.collectionPath){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,Hn.apply(void 0,[Ji].concat(xa(t)));case 5:case"end":return n.stop()}}),fa)}function Ta(e){var t,n,r,o,i,a,s,l,u,c;return di().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(t=e.payload||e.window,n=t.canvasId,r=t.canvasIndex,o=t.manifestId,i=e.id||e.window.id,!n){d.next=10;break}return d.next=5,Hn(ra.ji,i,n,null,{preserveViewport:!!e.payload});case 5:return a=d.sent,d.next=8,Fn(a);case 8:d.next=22;break;case 10:return d.next=12,qn(ia.hi,{manifestId:o});case 12:if(!(s=d.sent)){d.next=22;break}if(l=new ta.Z(s),!(u=l.startCanvas||l.canvasAt(r||0)||l.canvasAt(0))){d.next=22;break}return d.next=19,Hn(ra.ji,i,u.id);case 19:return c=d.sent,d.next=22,Fn(c);case 22:case"end":return d.stop()}}),pa)}function Pa(e){var t,n,r,o,i,a,s;return di().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e.window&&e.window.defaultSearchQuery){l.next=2;break}return l.abrupt("return");case 2:return t=e.window,n=t.id,r=t.defaultSearchQuery,l.next=5,qn(ia.Oo,{windowId:n});case 5:return o=l.sent,l.next=8,qn(aa.AP,{position:"left",windowId:n});case 8:if(i=l.sent,a=i[0],!o||!a){l.next=14;break}return s=o&&"".concat(o.id,"?q=").concat(r),l.next=14,Fn((0,Ci.on)(n,a,s,r));case 14:case"end":return l.stop()}}),ha)}function Ra(e,t){var n=t.canvasIds,r=t.companionWindowIds,o=t.windowId;return r.reduce((function(t,r){var i=(0,sa.ku)(e,{companionWindowId:r,windowId:o}).resources.find((function(e){return n.includes(e.targetId)}));return i&&(t[r]=[i.id]),t}),{})}function Aa(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e.annotationId,t=e.windowId,n=e.visibleCanvases,a.next=3,qn(sa.zm,{windowId:t});case 3:if(r=a.sent,0!==(o=Object.keys(r||{})).length){a.next=7;break}return a.abrupt("return");case 7:return a.next=9,qn(Ra,{canvasIds:n,companionWindowIds:o,windowId:t});case 9:return i=a.sent,a.next=12,Bn(Object.keys(i).map((function(e){return Fn((0,Ci.px)(t,e,i[e]))})));case 12:if(!(Object.values(i).length>0)){a.next=15;break}return a.next=15,Fn((0,_i.XD)(t,Object.values(i)[0][0]));case 15:case"end":return a.stop()}}),ga)}function ja(e){var t,n,r,o,i,a,s,l,u,c,d,f;return di().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(t=e.pan,n=e.windowId,t){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,qn(x.Fr);case 5:return r=p.sent,o=r[n]||{},i=o.x,a=o.y,s=o.width,l=o.height,p.next=9,qn(Pi.oq);case 9:return u=p.sent,c=u.viewportPosition,d=c.width,f=c.height,p.next=15,Fn((0,E.bj)({x:i+s/2-d/2,y:a+l/2-f/2}));case 15:case"end":return p.stop()}}),ma)}function Na(e){var t,n,r,o;return di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.windowId,i.next=3,qn(Pi.Jj,{windowId:t});case 3:return n=i.sent,r=n.canvasId,i.next=7,qn(Ti.jE,{canvasId:r,windowId:t});case 7:return o=i.sent,i.next=10,Fn((0,oa.zw)(t,{visibleCanvases:(o||[]).map((function(e){return e.id}))}));case 10:case"end":return i.stop()}}),va)}function Da(e){var t,n,r;return di().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.companionWindowId,n=e.windowId,o.next=3,qn(la.Em,{windowId:n});case 3:if(o.sent.switchCanvasOnSearch){o.next=7;break}return o.abrupt("return");case 7:return o.next=9,qn(sa.iV,{companionWindowId:t,windowId:n});case 9:if(0===o.sent.length){o.next=12;break}return o.abrupt("return");case 12:return o.next=14,qn(sa.IC,{companionWindowId:t,windowId:n});case 14:if((r=o.sent)&&0!==r.length){o.next=17;break}return o.abrupt("return");case 17:return o.next=19,Fn((0,_i.XD)(n,r[0].id));case 19:case"end":return o.stop()}}),ya)}function Ma(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.annotationId,n=e.windowId,a.next=3,qn(Ti.Lc,{windowId:n});case 3:return r=a.sent,a.next=6,qn(sa.QW,{annotationId:t,windowId:n});case 6:if((o=a.sent)&&!r.includes(o.id)){a.next=9;break}return a.abrupt("return");case 9:return a.next=11,Hn(ra.ji,n,o.id);case 11:return i=a.sent,a.next=14,Fn(i);case 14:case"end":return a.stop()}}),ba)}function La(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.visibleCanvases,n=e.windowId,a.next=3,qn(Ti.LU,{windowId:n});case 3:return r=a.sent,a.next=6,qn(Ti.k5);case 6:return o=a.sent,i=(r||[]).filter((function(e){return t.includes(e.id)})),a.next=10,Bn(i.map((function(e){return Bn(new na.Z(e).iiifImageResources.map((function(e){return!o[e.getServices()[0].id]&&Fn((0,Ii.vs)({imageResource:e,windowId:n}))})).filter(Boolean))})));case 10:case"end":return a.stop()}}),wa)}function Za(e,t){var n;return di().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,qn(ia.hi,{manifestId:e});case 2:if(!(n=r.sent)||!n.isCollection()){r.next=6;break}return r.next=6,Fn((0,oa.FK)(e,[],t));case 6:case"end":return r.stop()}}),Ea)}function za(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn([vi(Nr.Z.ADD_WINDOW,Ia),vi(Nr.Z.UPDATE_WINDOW,Ia),vi(Nr.Z.UPDATE_WINDOW,Ca),vi(Nr.Z.SET_CANVAS,Aa),vi(Nr.Z.SET_CANVAS,La),vi(Nr.Z.UPDATE_COMPANION_WINDOW,ka),vi(Nr.Z.SET_WINDOW_VIEW_TYPE,Na),vi(Nr.Z.RECEIVE_SEARCH,Da),vi(Nr.Z.SELECT_ANNOTATION,Ma),vi(Nr.Z.FOCUS_WINDOW,ja)]);case 2:case"end":return e.stop()}}),Oa)}function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(n),!0).forEach((function(t){Ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ua=di().mark(Xa),Ha=di().mark(Qa),Va=di().mark(Ja),Ga=di().mark(es);function qa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Ka(e,t)||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.")}()}function $a(e){return function(e){if(Array.isArray(e))return Ya(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ka(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ka(e,t){if(e){if("string"==typeof e)return Ya(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ya(e,t):void 0}}function Ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xa(e){return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Bn([].concat($a(Object.entries(e.state.windows||{}).map((function(e){var t=qa(e,2),n=(t[0],t[1]);return Hn(Ia,{id:n.id,payload:n})}))),$a(Object.entries(e.state.manifests||{}).filter((function(e){var t=qa(e,2);return t[0],!t[1].json})).map((function(e){var t=qa(e,2);return t[0],Hn(Ji,t[1].id)})))));case 2:case"end":return t.stop()}}),Ua)}function Qa(e){var t,n,r,o;return di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.config,n=t.thumbnailNavigation,(r=t.windows)&&0!==r.length){i.next=3;break}return i.abrupt("return");case 3:return i.next=5,Bn(r.map((function(e){var t="window-".concat((0,yi.Z)()),r=e.manifestId||e.loadedManifest;return Hn(oa.QX,Fa({id:t,manifestId:r,thumbnailNavigationPosition:n&&n.defaultPosition},e))})));case 5:return o=i.sent,i.next=8,Bn(o.map((function(e){return Fn(e)})));case 8:case"end":return i.stop()}}),Ha)}function Ja(e){var t,n;return di().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.collectionPath,n=e.manifestId,r.next=3,Hn.apply(void 0,[Ji,n].concat($a(t)));case 3:case"end":return r.stop()}}),Va)}function es(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn([vi(Nr.Z.IMPORT_MIRADOR_STATE,Xa),vi(Nr.Z.IMPORT_CONFIG,Qa),vi(Nr.Z.SHOW_COLLECTION_DIALOG,Ja)]);case 2:case"end":return e.stop()}}),Ga)}var ts=o(32012),ns=di().mark(ss),rs=di().mark(ls),os=di().mark(us);function is(e){return function(e){if(Array.isArray(e))return as(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return as(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?as(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function as(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ss(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.canvasId,n=e.windowId,a.next=3,qn(Ti.o_,{canvasId:t,windowId:n});case 3:return r=a.sent,a.next=6,qn(ts.fy);case 6:return o=a.sent,i=new na.Z(r),a.next=10,Bn([].concat(is(i.annotationListUris.filter((function(e){return!(o[r.id]&&o[r.id][e])})).map((function(e){return Fn((0,_i.kX)(r.id,e))}))),is(i.canvasAnnotationPages.filter((function(e){return!(o[r.id]&&o[r.id][e.id])})).map((function(e){return e.items?Fn((0,_i.zS)(r.id,e.id,e)):Fn((0,_i.kX)(r.id,e.id))})))));case 10:return a.abrupt("return",a.sent);case 11:case"end":return a.stop()}}),ns)}function ls(e){var t,n,r;return di().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.visibleCanvases,n=void 0===t?[]:t,r=e.windowId,o.next=3,Bn(n.map((function(e){return Fn((0,_i.pj)(r,e))})));case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}}),rs)}function us(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn([vi(Nr.Z.REQUEST_CANVAS_ANNOTATIONS,ss),vi(Nr.Z.SET_CANVAS,ls)]);case 2:case"end":return e.stop()}}),os)}var cs=o(27693),ds=di().mark(vs),fs=di().mark(ys),ps=di().mark(bs),hs=di().mark(ws),gs=di().mark(Es),ms=di().mark(Os);function vs(e){var t;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.tokenServiceId,n.next=3,$n(2e3);case 3:return n.next=5,Hn(ys,{serviceId:t});case 5:case"end":return n.stop()}}),ds)}function ys(e){var t,n,r,o,i,a,s;return di().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.serviceId,l.next=3,qn(Pi.Ao);case 3:return n=l.sent,l.next=6,Bn(Object.keys(n).map((function(e){return qn(Ti.cw,{windowId:e})})));case 6:return r=l.sent,o=Wo()(Wo()(r).map((function(e){return new na.Z(e).imageServiceIds}))),l.next=10,qn(Ti.k5);case 10:return i=l.sent,a=function(e){return Ei.Utils.getServices(e).some((function(e){var n=Ei.Utils.getService(e,"http://iiif.io/api/auth/1/token")||Ei.Utils.getService(e,"http://iiif.io/api/auth/0/token");return n&&n.id===t}))},s=Object.values(i).filter((function(e){return e.json&&a(e.json)})),l.next=15,Bn(s.map((function(e){var t=e.id;return o.includes(t)?Hn(Ki,{infoId:t}):Fn({infoId:t,type:Nr.Z.REMOVE_INFO_RESPONSE})})));case 15:case"end":return l.stop()}}),fs)}function bs(e){var t,n,r,o,i,a,s,l,u,c;return di().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.infoJson,n=e.windowId,d.next=3,qn(ki.v0);case 3:return r=d.sent,d.next=6,qn(O.iE);case 6:if(o=d.sent,i=o.auth,a=(i=void 0===i?{}:i).serviceProfiles,s=(void 0===a?[]:a).filter((function(e){return e.external||e.kiosk})),l=Ei.Utils.getServices(t).filter((function(e){return!r[e.id]})).find((function(e){return s.some((function(t){return t.profile===e.getProfile()}))}))){d.next=14;break}return d.abrupt("return");case 14:if(!(u=s.find((function(e){return e.profile===l.getProfile()}))).kiosk){d.next=20;break}return d.next=18,Fn((0,cs.P0)(n,l.id,l.getProfile()));case 18:d.next=28;break;case 20:if(!u.external){d.next=28;break}if(c=Ei.Utils.getService(l,"http://iiif.io/api/auth/1/token")||Ei.Utils.getService(l,"http://iiif.io/api/auth/0/token")){d.next=24;break}return d.abrupt("return");case 24:return d.next=26,Fn((0,cs.gk)(l.id,c.id));case 26:return d.next=28,Fn((0,cs.Tc)(c.id,l.id));case 28:case"end":return d.stop()}}),ps)}function ws(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.infoJson,e.windowId,n=e.tokenServiceId){a.next=3;break}return a.abrupt("return");case 3:if(r=Ei.Utils.getServices(t).find((function(e){var t=Ei.Utils.getService(e,"http://iiif.io/api/auth/1/token")||Ei.Utils.getService(e,"http://iiif.io/api/auth/0/token");return t&&t.id===n})),r){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,qn(ki.f2);case 8:if(o=a.sent,(i=o[n])&&i.success){a.next=12;break}return a.abrupt("return");case 12:return a.next=14,Fn((0,cs.Tc)(n,r.id));case 14:case"end":return a.stop()}}),hs)}function Es(e){var t,n,r,o,i;return di().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.serviceId,a.next=3,qn(ki.f2);case 3:return n=a.sent,a.next=6,qn(ki.v0);case 6:if(r=a.sent,o=n[t]){a.next=10;break}return a.abrupt("return");case 10:if(i=r[o.authId]){a.next=13;break}return a.abrupt("return");case 13:if(!o.success){a.next=18;break}return a.next=16,Fn((0,cs.ZN)({authServiceId:i.id,tokenServiceId:o.id}));case 16:a.next=20;break;case 18:return a.next=20,Fn((0,cs.gk)(i.id,o.id,{ok:!1}));case 20:case"end":return a.stop()}}),gs)}function Os(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn([vi(Nr.Z.RECEIVE_DEGRADED_INFO_RESPONSE,ws),vi(Nr.Z.RECEIVE_ACCESS_TOKEN_FAILURE,Es),vi(Nr.Z.RECEIVE_DEGRADED_INFO_RESPONSE,bs),vi(Nr.Z.RECEIVE_ACCESS_TOKEN,ys),vi(Nr.Z.RESET_AUTHENTICATION_STATE,vs)]);case 2:case"end":return e.stop()}}),ms)}function xs(e){return function(e){if(Array.isArray(e))return Ss(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ss(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ss(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Is=di().mark(Cs);function Cs(e){return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=1,t.next=4,Hn(e);case 4:return t.abrupt("break",12);case 7:t.prev=7,t.t0=t.catch(1),console.log(t.t0);case 10:t.next=0;break;case 12:case"end":return t.stop()}}),Is,null,[[1,7]])}const _s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return di().mark((function t(){var n;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[us,es,ea,za,Os].concat(xs(e)),t.next=3,Bn(n.map((function(e){return Gn(Cs,e)})));case 3:case"end":return t.stop()}}),t)}))};function ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ts=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=ui(e),r=so.Z.state.slice?(0,b.UY)(ks({},so.Z.state.slice,n)):n,o=Pr(),i=(0,b.MT)(r,(0,Rr.Uo)((0,b.md)(Bt,o)));return o.run(_s(t)),i};var Ps=o(29767);const Rs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Mt(t),r=Ts(Lt(n),zt(n));return r.dispatch((0,Ps.bS)(ct()(Zt(n),e))),r};function As(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function js(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ns=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};As(this,e),this.plugins=Mt(n.plugins||[]),this.config=t,this.store=n.store||Rs(this.config,this.plugins),t.id&&i.render(this.render(),document.getElementById(t.id))}var t,n;return t=e,n=[{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.createElement(a.zt,{store:this.store},r.createElement(lt,Object.assign({plugins:this.plugins},e)))}},{key:"unmount",value:function(){this.config.id&&i.unmountComponentAtNode(document.getElementById(this.config.id))}}],n&&js(t.prototype,n),e}();const Ds=Ns,Ms={viewer:function(e,t){var n;return n=Array.isArray(t)?{plugins:t}:t,new Ds(e,n)}};var Ls=o(1124),Zs=o(31456),zs=o(89658),Ws=o(95981),Fs=o(2311),Bs=o(42383);const Us={actions:Ls,createStore:Ts,reducers:t,sagas:e,selectors:n};function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hs(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qs=Vs(Vs({},Ms),Us);var $s=o(82313),Ks=o(47745),Ys=o.n(Ks),Xs=o(88943),Qs=o(39324),Js=o(32892),el=o(18646),tl=o(76861),nl=o(23221),rl=o(95378),ol=o(33038),il=o(59114),al=o(78252),sl=o(58884),ll=o(44180),ul=o(44845),cl=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.state={open:n.open},r.handleChange=r.handleChange.bind(r),r.handleClick=r.handleClick.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.prototype.handleClick=function(){var e=this.props,t=e.value;"toggle"===e.variant?this.handleChange({},0===t?100:0):this.setState((function(e){return{open:!e.open}}))},t.prototype.handleChange=function(e,t){(0,this.props.onChange)(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.containerId,o=e.label,i=e.max,a=e.min,s=e.value,l=e.type,u=e.variant,c=e.windowId,d=e.foregroundColor,f=e.classes,p=e.width,h=this.state.open,g=c+"-"+l,m=void 0;return(h||"toggle"===u&&s>0)&&(m=(0,il.fade)(d,h?.1:.25)),r.createElement("div",{style:{display:"inline-block"}},r.createElement(ll.S,{id:g+"-label","aria-label":o,containerId:n,onClick:this.handleClick,"aria-expanded":h,"aria-controls":g,style:{backgroundColor:m}},t),h&&r.createElement("div",{id:g,"aria-labelledby":g+"-label",className:"MuiPaper-elevation4 "+f.slider},r.createElement(ul.Z,{orientation:["xs","sm"].indexOf(p)>=0?"horizontal":"vertical",min:a,max:i,value:s,onChange:this.handleChange})))},t}(r.Component);cl.propTypes={},cl.defaultProps={foregroundColor:"rgb(0, 0, 0)",min:0,max:100,open:!1,variant:"slider"};const dl=Ys()((0,al.Z)((function(e){var t,n=e.palette,r=e.breakpoints;return{slider:(t={backgroundColor:(0,il.fade)(n.shades.main,.8),borderRadius:25,top:48,marginTop:2,position:"absolute",height:150,zIndex:100,marginLeft:2,padding:[[2,7,2,7]]},t[r.down("sm")]={top:"auto",right:48,width:150,height:"auto",marginTop:-46,marginBottom:2,padding:[[4,2,4,2]]},t)}})),(0,sl.ZP)())(cl);var fl=o(97419),pl=o(44779),hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ml(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var vl=function(e){function t(){return gl(this,t),ml(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.variant,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["label","variant"]);return r.createElement(ll.S,hl({"aria-label":t},o),"left"===n?r.createElement(pl.Z,null):r.createElement(fl.Z,null))},t}(r.Component);vl.propTypes={};var yl=o(60796),bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function wl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ol=function(e){function t(){return wl(this,t),El(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.prototype.render=function(){var e=this.props,t=e.flipped,n=e.label,o=e.backgroundColor,i=e.foregroundColor,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["flipped","label","backgroundColor","foregroundColor"]);return r.createElement(ll.S,bl({"aria-label":n,style:{backgroundColor:t&&(0,il.fade)(i,.25)}},a),r.createElement(yl.Z,{style:{color:t&&o}}))},t}(r.Component);Ol.propTypes={},Ol.defaultProps={backgroundColor:"rgb(255, 255, 255)",foregroundColor:"rgb(0, 0, 0)"};var xl=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.toggleState=r.toggleState.bind(r),r.toggleRotate=r.toggleRotate.bind(r),r.toggleFlip=r.toggleFlip.bind(r),r.handleChange=r.handleChange.bind(r),r.handleReset=r.handleReset.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)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)}(t,e),t.prototype.componentDidMount=function(){this.props.viewer&&this.applyFilters()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.viewConfig;t.viewer&&n!==e.viewConfig&&this.applyFilters()},t.prototype.handleChange=function(e){var t=this.props,n=t.updateViewport,r=t.windowId;return function(t){var o;return n(r,((o={})[e]=t,o))}},t.prototype.handleReset=function(){var e=this.props;(0,e.updateViewport)(e.windowId,{rotation:0,flip:!1,brightness:100,contrast:100,saturate:100,grayscale:0,invert:0})},t.prototype.applyFilters=function(){var e=this.props,t=e.viewConfig,n=t.brightness,r=void 0===n?100:n,o=t.contrast,i=void 0===o?100:o,a=t.saturate,s=void 0===a?100:a,l=t.grayscale,u=void 0===l?0:l,c=t.invert,d=void 0===c?0:c,f=e.viewer.canvas;if(f){var p=["brightness","contrast","saturate","grayscale","invert"],h=f.style.filter.split(" ").filter((function(e){return!p.some((function(t){return e.includes(t)}))}));h.push("brightness("+r+"%)"),h.push("contrast("+i+"%)"),h.push("saturate("+s+"%)"),h.push("grayscale("+u+"%)"),h.push("invert("+d+"%)"),f.style.filter=h.join(" ")}},t.prototype.toggleState=function(){var e=this.props,t=e.open;(0,e.updateWindow)(e.windowId,{imageToolsOpen:!t})},t.prototype.toggleRotate=function(e){var t=this.props,n=t.updateViewport,r=t.viewConfig,o=r.flip,i=void 0!==o&&o,a=r.rotation,s=void 0===a?0:a;n(t.windowId,{rotation:(s+(i?-1*e:e))%360})},t.prototype.toggleFlip=function(){var e=this.props,t=e.updateViewport,n=e.viewConfig.flip,r=void 0!==n&&n;t(e.windowId,{flip:!r})},t.prototype.render=function(){var e=this,t=this.props,n=t.classes,o=t.containerId,i=t.enabled,a=t.open,s=t.viewer,l=t.windowId,u=t.width,c=t.theme.palette,d=t.viewConfig,f=d.flip,p=void 0!==f&&f,h=d.brightness,g=void 0===h?100:h,m=d.contrast,v=void 0===m?100:m,y=d.saturate,b=void 0===y?100:y,w=d.grayscale,E=void 0===w?0:w,O=d.invert,x=void 0===O?0:O,S=t.t;if(!s||!i)return null;var I=c.shades.main,C=c.getContrastText(I),_=["xs","sm"].indexOf(u)>=0,k=r.createElement("div",{className:_&&a?n.borderContainer:""},r.createElement(ll.S,{"aria-expanded":a,"aria-haspopup":!0,"aria-label":S("collapse",{context:a?"open":"close"}),containerId:o,onClick:this.toggleState},a?r.createElement(rl.Z,null):r.createElement(nl.Z,null)));return r.createElement("div",{className:"MuiPaper-elevation4 "+n.root},_&&k,a&&r.createElement(r.Fragment,null,r.createElement("div",{className:n.borderContainer},r.createElement(vl,{containerId:o,label:S("rotateRight"),onClick:function(){return e.toggleRotate(90)},variant:"right"}),r.createElement(vl,{containerId:o,label:S("rotateLeft"),onClick:function(){return e.toggleRotate(-90)},variant:"left"}),r.createElement(Ol,{label:S("flip"),onClick:this.toggleFlip,flipped:p,containerId:o})),r.createElement("div",{className:n.borderContainer},r.createElement(dl,{type:"brightness",label:S("brightness"),max:200,windowId:l,value:g,foregroundColor:C,containerId:o,onChange:this.handleChange("brightness")},r.createElement(Xs.Z,null)),r.createElement(dl,{type:"contrast",label:S("contrast"),max:200,windowId:l,value:v,foregroundColor:C,containerId:o,onChange:this.handleChange("contrast")},r.createElement(el.Z,{style:{transform:"rotate(180deg)"}})),r.createElement(dl,{type:"saturate",label:S("saturation"),max:200,windowId:l,value:b,foregroundColor:C,containerId:o,onChange:this.handleChange("saturate")},r.createElement(Js.Z,null)),r.createElement(dl,{type:"grayscale",variant:"toggle",label:S("greyscale"),windowId:l,value:E,backgroundColor:I,foregroundColor:C,containerId:o,onChange:this.handleChange("grayscale")},r.createElement(Qs.Z,null)),r.createElement(dl,{type:"invert",variant:"toggle",label:S("invert"),windowId:l,value:x,foregroundColor:C,containerId:o,onChange:this.handleChange("invert")},r.createElement(tl.Z,null))),r.createElement("div",{className:_?"":n.borderContainer},r.createElement(ll.S,{"aria-label":S("revert"),containerId:o,onClick:this.handleReset},r.createElement(ol.Z,null)))),!_&&k)},t}(r.Component);xl.propTypes={},xl.defaultProps={enabled:!0,open:!0,viewer:void 0,viewConfig:{}};const Sl=Ys()((0,al.Z)((function(e){var t,n,r=e.breakpoints,o=e.palette,i=o.shades.main,a=o.getContrastText(i),s="1px solid "+(0,il.fade)(a,.2),l="linear-gradient(to bottom, "+(0,il.fade)(a,0)+" 20%, "+(0,il.fade)(a,.2)+" 20% 80%, "+(0,il.fade)(a,0)+" 80% )",u=l.replace("to bottom","to right");return{root:(t={backgroundColor:(0,il.fade)(i,.8),borderRadius:25,position:"absolute",top:8,right:8,zIndex:999,display:"flex",flexDirection:"row"},t[r.down("sm")]={flexDirection:"column"},t),borderContainer:(n={border:0,borderRight:s,borderImageSlice:1,borderImageSource:l,display:"flex",flexDirection:"row"},n[r.down("sm")]={flexDirection:"column",borderBottom:s,borderRight:"none",borderImageSource:u},n)}})),(0,sl.ZP)())(xl);var Il=o(85639),Cl=o(46869),_l=o(95757),kl=function(e){var t=e.enabled,n=e.handleClose,o=e.t,i=e.updateWindow,a=e.windowId;return r.createElement(Il.Z,{onClick:function(){n(),i(a,{imageToolsEnabled:!t})}},r.createElement(Cl.Z,null,r.createElement(nl.Z,null)),r.createElement(_l.Z,{primaryTypographyProps:{variant:"body1"}},o(t?"hide":"show")))};kl.propTypes={},kl.defaultProps={enabled:!0};const Tl=kl,Pl=[{target:"OpenSeadragonViewer",mapDispatchToProps:{updateWindow:oa.zw,updateViewport:ra.WH},mapStateToProps:function(e,t){var n=t.windowId;return{containerId:(0,O.vW)(e),enabled:(0,la.Em)(e,{windowId:n}).imageToolsEnabled||!1,open:(0,la.Em)(e,{windowId:n}).imageToolsOpen||!1,viewConfig:(0,Pi.gA)(e,{windowId:n})||{}}},mode:"add",component:(0,$s.Z)(Sl),config:{translations:{de:{brightness:"Helligkeit",collapse_open:"Bildbearbeitung ausblenden",collapse_close:"Bildbearbeitung einblenden",contrast:"Kontrast",flip:"Spiegeln",greyscale:"Darstellung in Graustufen",hide:"Bildbearbeitung verbergen",invert:"Umkehrung der Farben",revert:"Einstellungen zurücksetzen",rotateLeft:"Rotation links",rotateRight:"Rotation rechts",saturation:"Sättigung",show:"Bildbearbeitung anzeigen"},en:{brightness:"Brightness",collapse_open:"Collapse image tools",collapse_close:"Expand image tools",contrast:"Contrast",flip:"Flip",greyscale:"Greyscale",hide:"Hide image tools",invert:"Invert colors",revert:"Revert image",rotateLeft:"Rotate left",rotateRight:"Rotate right",saturation:"Saturation",show:"Show image tools"},fr:{brightness:"Luminosité",collapse_open:"Fermer les outils de réglages de l'image",collapse_close:"Ouvrir les outils de réglages de l'image",contrast:"Contraste",flip:"Miroir",greyscale:"Niveaux de gris",invert:"Inverser les couleurs",revert:"Réinitialiser les réglages",rotateLeft:"Rotation vers la gauche",rotateRight:"Rotation vers la droite",saturation:"Saturation"},sr:{brightness:"Осветљење",collapse_open:"Затворите алат",collapse_close:"Отворите алат",contrast:"Контраст",flip:"Окрени",greyscale:"Црнобело",hideImageTools:"Сакријте алат",invert:"Инверзија боја",revert:"Поништи подешавања",rotateLeft:"Ротирај лево",rotateRight:"Ротирај десно",saturation:"Сатурација",showImageTools:"Прикажите алат"}}}},{target:"WindowTopBarPluginMenu",component:Tl,mode:"add",mapDispatchToProps:{updateWindow:oa.zw},mapStateToProps:function(e,t){var n=t.windowId;return{enabled:(0,la.Em)(e,{windowId:n}).imageToolsEnabled||!1}}}];var Rl=o(64436),Al=o(3409),jl=o(91736),Nl=o(45697),Dl=o.n(Nl);var Ml={container:{marginTop:"16px",paddingTop:"16px",paddingLeft:"0",paddingRight:"8px",paddingBottom:"8px",borderBottom:"none",borderTop:"0.5px solid rgba(0, 0, 0, 0.25)"},content:{display:"flex",justifyContent:"space-around",alignItems:"start",flexDirection:"column",margin:".5em 0"},formControl:{width:"100%"},selectMenu:{"&::before":{content:"''",borderBottom:".1px solid rgba(0, 0, 0, 0.2)"}}},Ll=function(e){var t=e.rootElem,n=e.handleClick,o=e.languages,i=e.t,a=e.resourceLanguages;return a.length<2?r.createElement(r.Fragment,null):r.createElement("div",{style:Ml.container},r.createElement(jl.Z,{label:i("availableLanguages")},r.createElement(Rl.Z,{style:Ml.formControl},o.map((function(e){if(a.includes(e.locale))return r.createElement(Il.Z,{button:!e.current,key:e.locale,onClick:function(){n({rootElem:t,language:e})}},r.createElement(Cl.Z,null,e.current&&r.createElement(Al.Z,null)),r.createElement(_l.Z,{primaryTypographyProps:{variant:"body1"}},e.label))})))))};Ll.propTypes={handleClick:Dl().func.isRequired,t:Dl().func.isRequired,languages:Dl().array.isRequired,resourceLanguages:Dl().array.isRequired,rootElem:Dl().object},Ll.defaultProps={handleClick:function(){},t:function(){},languages:[],resourceLanguages:[],rootElem:{}};const Zl={target:"CanvasInfo",mode:"add",component:Ll,mapDispatchToProps:function(e,t){var n=t.afterSelect;return{handleClick:function(t){var r=t.rootElem,o=t.language.locale,i="ltr";"ar"!==o&&"fa"!==o||(i="rtl"),r.dir=i,e((0,Ps.rF)({language:o})),n&&n()}}},mapStateToProps:function(e,t){var n=t.windowId;return{languages:(0,O.yX)(e),resourceLanguages:(0,ia.hi)(e,{windowId:n}).getLabel().reduce((function(e,t){return e.push(t._locale),e}),[]),rootElem:document.getElementById(e.config.id)}},config:{translations:{en:{availableLanguages:"Available languages"},ar:{availableLanguages:"اللغات المتوفرة"},fa:{availableLanguages:"Available languages"}}}};var zl=o(93379),Wl=o.n(zl),Fl=o(7795),Bl=o.n(Fl),Ul=o(90569),Hl=o.n(Ul),Vl=o(3565),Gl=o.n(Vl),ql=o(19216),$l=o.n(ql),Kl=o(44589),Yl=o.n(Kl),Xl=o(85426),Ql={};function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach((function(t){tu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ql.styleTagTransform=Yl(),Ql.setAttributes=Gl(),Ql.insert=Hl().bind(null,"head"),Ql.domAPI=Bl(),Ql.insertStyleElement=$l(),Wl()(Xl.Z,Ql),Xl.Z&&Xl.Z.locals&&Xl.Z.locals;var nu="mirador-app",ru=document.getElementById(nu).dataset,ou=ru.endpoint,iu=ru.identifier,au=ru.type,su=ru.language,lu=ru.sequence,uu="".concat(ou,"/api/presentation/").concat(au,"/").concat(iu,"/manifest.json"),cu=eu(eu({},{id:null,selectedTheme:"dark",language:"en",windows:[],window:{allowClose:!1,allowFullscreen:!0,allowMaximize:!1,allowTopMenuButton:!0,panels:{info:!0,attribution:!0,canvas:!1,annotations:!1,search:!0,layers:!1},sideBarOpen:!0,allowWindowSideBar:!0,authNewWindowCenter:"screen"},workspace:{draggingEnabled:!1,allowNewWindows:!1,isWorkspaceAddVisible:!1,exposeModeOn:!1,height:5e3,showZoomControls:!0,type:"mosaic"},workspaceControlPanel:{enabled:!1},themes:{dark:{palette:{type:"dark",primary:{main:"#84fef2"},secondary:{main:"#4db6ac"}}}},theme:{typography:{body1:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.5",fontWeight:300},body2:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},button:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem",textTransform:"uppercase"},caption:{fontSize:"0.772rem",letterSpacing:"0.033em",lineHeight:"1.6rem"},body1Next:{fontSize:"1rem",letterSpacing:"0em",lineHeight:"1.6em"},body2Next:{fontSize:"0.878rem",letterSpacing:"0.015em",lineHeight:"1.6em"},buttonNext:{fontSize:"0.878rem",letterSpacing:"0.09em",lineHeight:"2.25rem"},captionNext:{fontSize:"0.772rem",letterSpacing:"0.33em",lineHeight:"1.6rem"},overline:{fontSize:"0.678rem",fontWeight:500,letterSpacing:"0.166em",lineHeight:"2em",textTransform:"uppercase"},h1:{fontSize:"2.822rem",letterSpacing:"-0.015em",lineHeight:"1.2em"},h2:{fontSize:"1.575rem",letterSpacing:"0em",lineHeight:"1.33em"},h3:{fontSize:"1.383rem",fontWeight:300,letterSpacing:"0em",lineHeight:"1.33em"},h4:{fontSize:"1.215rem",letterSpacing:"0.007em",lineHeight:"1.35em",fontWeight:300},h5:{fontSize:"1.138rem",letterSpacing:"0.005em",lineHeight:"1em"},h6:{fontSize:"1.067rem",fontWeight:400,letterSpacing:"0.01em",lineHeight:"1.6em"},subtitle1:{fontSize:"0.937rem",letterSpacing:"0.015em",lineHeight:"1.6em",fontWeight:300},subtitle2:{fontSize:"0.678rem",fontWeight:300,letterSpacing:"0.02em",lineHeight:"1.75em",textTransform:"uppercase"},useNextVariants:!0}}}),{id:nu,language:su,windows:[{manifestId:uu,imageToolsEnabled:!0,imageToolsOpen:!1,canvasIndex:Number(lu)-1,view:"single",hideWindowTitle:"photos"===au}]}),du=[Pl,Zl];qs.viewer(cu,du)})()})(); </script> </body> </html>