PageSourceSearch

https://group403-jukebox-music.onrender.com/_next/static/chunks/305.0cfdb74aba9f42b0.js

js group403-jukebox-music.onrender.com collected 2026-10-03 11:41:03 UTC 2,000,756 bytes, 163 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[305],{88429:function(e,t,n){"use strict";n.d(t,{UQ:function(){return I},KF:function(){return Z},XE:function(){return V},Qd:function(){return F},Hk:function(){return z}});var r=n(10894),o=n(5993),i=n(37496),a=n(15031),s=n(26450),u=n(67294);function c(){return c=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},c.apply(this,arguments)}function l(e){return e.sort((function(e,t){var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function f(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function d(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}var p="undefined"!==typeof window?u.useLayoutEffect:u.useEffect,h=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=l(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()}
1,this.assignIndex=function(t){e.descendants.forEach((function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,t){return e.index-t.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(t)}))},this.next=function(t,n){void 0===n&&(n=!0);var r=f(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=f(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=d(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=d(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=l(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var o=c({node:t,index:-1},n);e.descendants.set(t,o),e.assignIndex(r)}}};var v=(0,s.kr)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),m=v[0],y=v[1];var g=n(97375);function b(){return b=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},b.apply(this,arguments)}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}var w=["onChange","defaultIndex","index","allowMultiple","allowToggle"],x=["isDisabled","isFocusable","id"],k=[m,function(){return y()},function(){return function(){var e=(0,u.useRef)(new h);return p((function(){return function(){return e.current.destroy()}})),e.current}()},function(e){return function(e){var t=y(),n=(0,u.useState)(-1),r=n[0],o=n[1],i=(0,u.useRef)(null);p((function(){return function(){i.current&&t.unregister(i.current)}}),[]),p((function(){if(i.current){var e=Number(i.current.dataset.index);r==e||Number.isNaN(e)||o(e)}}));var a=e?t.register(e):t.register;return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:(0,s.lq)(a,i)}}(e)}],S=k[0],E=k[2],O=k[3];function P(e){var t=e.onChange,n=e.defaultIndex,r=e.index,o=e.allowMultiple,i=e.allowToggle,s=_(e,w);!function(e){var t=e.index||e.defaultIndex,n=!(0,a.o8)(t)&&!(0,a.kJ)(t)&&e.allowMultiple;(0,a.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,a.ZK)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var c=E(),l=(0,u.useState)(-1),f=l[0],d=l[1];(0,g.zq)((function(){d(-1)}));var p=(0,g.Tx)({value:r,defaultValue:function(){return o?null!=n?n:[]:null!=n?n:-1},onChange:t}),h=p[0],v=p[1];return{index:h,setIndex:v,htmlProps:s,getAccordionItemProps:function(e){var t=!1;null!==e&&(t=(0,a.kJ)(h)?h.includes(e):h===e);return{isOpen:t,onChange:function(t){if(null!==e)if(o&&(0,a.kJ)(h)){var n=t?(0,a.jX)(h,e):(0,a.cl)(h,e);v(n)}else t?v(e):i&&v(-1)}}},focusedIndex:f,setFocusedIndex:d,descendants:c}}var T=(0,s.kr)({name:"AccordionContext",errorMessage:"useAccordionContext: `
1context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`"}),C=T[0],A=T[1];function j(e){var t=e.isDisabled,n=e.isFocusable,r=e.id,o=_(e,x),i=A(),c=i.getAccordionItemProps,l=i.setFocusedIndex,f=(0,u.useRef)(null),d=(0,g.ZS)(r,"accordion-button","accordion-panel"),p=d[0],h=d[1];!function(e){(0,a.ZK)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n    "})}(e);var v=O({disabled:t&&!n}),m=v.register,y=v.index,w=v.descendants,k=c(-1===y?null:y),S=k.isOpen,E=k.onChange;!function(e){(0,a.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:S,isDisabled:t});var P=(0,u.useCallback)((function(){null==E||E(!S),l(y)}),[y,l,S,E]),T=(0,u.useCallback)((function(e){var t={ArrowDown:function(){var e=w.nextEnabled(y);e&&(0,a.T_)(e.node)},ArrowUp:function(){var e=w.prevEnabled(y);e&&(0,a.T_)(e.node)},Home:function(){var e=w.firstEnabled();e&&(0,a.T_)(e.node)},End:function(){var e=w.lastEnabled();e&&(0,a.T_)(e.node)}}[(0,a.uh)(e)];t&&(e.preventDefault(),t(e))}),[w,y]),C=(0,u.useCallback)((function(){l(y)}),[l,y]),j=(0,u.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),b({},e,{type:"button",ref:(0,s.lq)(m,f,n),id:p,disabled:!!t,"aria-expanded":!!S,"aria-controls":h,onClick:(0,a.v0)(e.onClick,P),onFocus:(0,a.v0)(e.onFocus,C),onKeyDown:(0,a.v0)(e.onKeyDown,T)})}),[p,t,S,P,C,T,h,m]),R=(0,u.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),b({},e,{ref:t,role:"region",id:h,"aria-labelledby":p,hidden:!S})}),[p,S,h]);return{isOpen:S,isDisabled:t,isFocusable:n,onOpen:function(){null==E||E(!0)},onClose:function(){null==E||E(!1)},getButtonProps:j,getPanelProps:R,htmlProps:o}}var R=["children","reduceMotion"],M=["htmlProps","descendants"],D=["htmlProps"],I=(0,o.Gp)((function(e,t){var n=e.children,r=e.reduceMotion,i=_(e,R),s=(0,o.jC)("Accordion",i),c=P((0,o.Lr)(i)),l=c.htmlProps,f=c.descendants,d=_(c,M),p=u.useMemo((function(){return b({},d,{reduceMotion:!!r})}),[d,r]);return u.createElement(S,{value:f},u.createElement(C,{value:p},u.createElement(o.Fo,{value:s},u.createElement(o.m$.div,b({ref:t},l,{className:(0,a.cx)("chakra-accordion",i.className),__css:s.root}),n))))}));a.Ts&&(I.displayName="Accordion");var L=(0,s.kr)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` "}),N=L[0],B=L[1],F=(0,o.Gp)((function(e,t){var n=e.children,r=e.className,i=j(e),s=i.htmlProps,c=_(i,D),l=b({},(0,o.yK)().container,{overflowAnchor:"none"}),f=u.useMemo((function(){return c}),[c]);return u.createElement(N,{value:f},u.createElement(o.m$.div,b({ref:t},s,{className:(0,a.cx)("chakra-accordion__item",r),__css:l}),(0,a.Pu)(n,{isExpanded:!!c.isOpen,isDisabled:!!c.isDisabled})))}));a.Ts&&(F.displayName="AccordionItem");var Z=(0,o.Gp)((function(e,t){var n=(0,B().getButtonProps)(e,t),r=b({display:"flex",alignItems:"center",width:"100%",outline:0},(0,o.yK)().button);return u.createElement(o.m$.button,b({},n,{className:(0,a.cx)("chakra-accordion__button",e.className),__css:r}))}));a.Ts&&(Z.displayName="AccordionButton");var z=(0,o.Gp)((function(e,t){var n=A().reduceMotion,r=B(),s=r.getPanelProps,c=r.isOpen,l=s(e,t),f=(0,a.cx)("chakra-accordion__panel",e.className),d=(0,o.yK)();n||delete l.hidden;var p=u.createElement(o.m$.div,b({},l,{__css:d.panel,className:f}));return n?p:u.createElement(i.UO,{in:c},p)}));a.Ts&&(z.displayName="AccordionPanel");var V=function(e){var t=B(),n=t.isOpen,i=t.isDisabled,s=A().reduceMotion,c=(0,a.cx)("chakra-accordion__icon",e.className),l=b({opacity:i?.4:1,transform:n?"rotate(-180deg)":void 0,transition:s?void 0:"transform 0.2s",transformOrigin:"center"},(0,o.yK)().icon);return u.createElement(r.JO,b({viewBox:"0 0 24 24","aria-hidden":!0,className:c,__css:l},e),u.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};a.Ts&&(V.displayName="AccordionIcon")},26723:function(e,t,n){"use strict";n.d(t,{zx:function(){return T},hU:function(){return j}});var r=n(97375),o=n(5993),i=n(15031),a=n(38554),s=n.n(a),u=n(67294),c=n(26450),l=n(70917),f=n(1358);function d(){return d=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},d.apply(this,arguments)}var p=["label","thickness","speed","emptyColor","className"],h=(0,l.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),v=(0,o.Gp)((function(e,t){var n=(0,o.mq)("Spinner",e),r=(0,o.Lr)(e),a=r.label,s=void 0===a?"Loading...":a,c=r.thickness,l=void 0===c?"2px":c,v=r.speed,m=void 0===v?"0.45s":v,y=r.emptyColor,g=void 0===y?"transparent":y,b=r.className,_=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}(r,p),w=(0,i.cx)("chakra-spinner",b),x=d({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:g,borderLeftColor:g,animation:h+" "+m+" linear infinite"},n);return u.createElement(o.m$.div,d({ref:t,__css:x,className:w},_),s&&u.createElement(f.TX,null,s))}
1));function m(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}function y(){return y=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},y.apply(this,arguments)}i.Ts&&(v.displayName="Spinner");var g=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],b=(0,c.kr)({strict:!1,name:"ButtonGroupContext"}),_=b[0],w=b[1],x=(0,o.Gp)((function(e,t){var n=e.size,r=e.colorScheme,a=e.variant,s=e.className,c=e.spacing,l=void 0===c?"0.5rem":c,f=e.isAttached,d=e.isDisabled,p=m(e,g),h=(0,i.cx)("chakra-button__group",s),v=u.useMemo((function(){return{size:n,colorScheme:r,variant:a,isDisabled:d}}),[n,r,a,d]),b={display:"inline-flex"};return b=y({},b,f?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),u.createElement(_,{value:v},u.createElement(o.m$.div,y({ref:t,role:"group",__css:b,className:h},p)))}));i.Ts&&(x.displayName="ButtonGroup");var k=["label","placement","spacing","children","className","__css"],S=function(e){var t=e.label,n=e.placement,r=e.spacing,a=void 0===r?"0.5rem":r,s=e.children,c=void 0===s?u.createElement(v,{color:"currentColor",width:"1em",height:"1em"}):s,l=e.className,f=e.__css,d=m(e,k),p=(0,i.cx)("chakra-button__spinner",l),h="start"===n?"marginEnd":"marginStart",g=u.useMemo((function(){var e;return y(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[h]=t?a:0,e.fontSize="1em",e.lineHeight="normal",e),f)}),[f,t,h,a]);return u.createElement(o.m$.div,y({className:p},d,{__css:g}),c)};i.Ts&&(S.displayName="ButtonSpinner");var E=["children","className"],O=function(e){var t=e.children,n=e.className,r=m(e,E),a=u.isValidElement(t)?u.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=(0,i.cx)("chakra-button__icon",n);return u.createElement(o.m$.span,y({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:s}),a)};i.Ts&&(O.displayName="ButtonIcon");var P=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],T=(0,o.Gp)((function(e,t){var n=w(),a=(0,o.mq)("Button",y({},n,e)),c=(0,o.Lr)(e),l=c.isDisabled,f=void 0===l?null==n?void 0:n.isDisabled:l,d=c.isLoading,p=c.isActive,h=c.isFullWidth,v=c.children,g=c.leftIcon,b=c.rightIcon,_=c.loadingText,x=c.iconSpacing,k=void 0===x?"0.5rem":x,E=c.type,O=c.spinner,T=c.spinnerPlacement,A=void 0===T?"start":T,j=c.className,R=c.as,M=m(c,P),D=u.useMemo((function(){var e,t=s()({},null!=(e=null==a?void 0:a._focus)?e:{},{zIndex:1});return y({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:h?"100%":"auto"},a,!!n&&{_focus:t})}),[a,n,h]),I=function(e){var t=u.useState(!e),n=t[0],r=t[1];return{ref:u.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),type:n?"button":void 0}}(R),L=I.ref,N=I.type,B={rightIcon:b,leftIcon:g,iconSpacing:k,children:v};return u.createElement(o.m$.button,y({disabled:f||d,ref:(0,r.qq)(t,L),as:R,type:null!=E?E:N,"data-active":(0,i.PB)(p),"data-loading":(0,i.PB)(d),__css:D,className:(0,i.cx)("chakra-button",j)},M),d&&"start"===A&&u.createElement(S,{className:"chakra-button__spinner--start",label:_,placement:"start",spacing:k},O),d?_||u.createElement(o.m$.span,{opacity:0},u.createElement(C,B)):u.createElement(C,B),d&&"end"===A&&u.createElement(S,{className:"chakra-button__spinner--end",label:_,placement:"end",spacing:k},O))}));function C(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,o=e.iconSpacing;return u.createElement(u.Fragment,null,t&&u.createElement(O,{marginEnd:o},t),r,n&&u.createElement(O,{marginStart:o},n))}i.Ts&&(T.displayName="Button");var A=["icon","children","isRound","aria-label"],j=(0,o.Gp)((function(e,t){var n=e.icon,r=e.children,o=e.isRound,i=e["aria-label"],a=m(e,A),s=n||r,c=u.isValidElement(s)?u.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return u.createElement(T,y({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i},a),c)}));i.Ts&&(j.displayName="IconButton")},68133:function(e,t,n){"use strict";n.d(t,{XZ:function(){return T}});var r=n(15031),o=n(26450),i=n(67294),a=n(44697),s=n(97375),u=n(5993),c=n(75814),l=n(21190),f=n(79762),d=n(1358);function p(){return 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},p.apply(this,arguments)}var h=(0,o.kr)({name:"CheckboxGroupContext",strict:!1}),v=(h[0],h[1]);function m(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}r.Ts;var y=["isIndeterminate","isChecked"];var g=function(e){var t=c.E;return"custom"in t&&"function"===typeof t.custom?t.custom(e):t(e)}(u.m$.svg),b=function(e){return i.createElement(g,p({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),i.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},_=function(e){return i.createElement(g,p({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0}
1,checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),i.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},w=function(e){var t=e.open,n=e.children;return i.createElement(l.M,{initial:!1},t&&i.createElement(c.E.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},n))},x=function(e){var t=e.isIndeterminate,n=e.isChecked,r=m(e,y),o=t?_:b;return i.createElement(w,{open:n||t},i.createElement(o,r))},k=["defaultIsChecked","defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function S(e){e.preventDefault(),e.stopPropagation()}var E=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],O=(0,u.m$)("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),P=(0,u.m$)("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),T=(0,u.Gp)((function(e,t){var n=v(),c=p({},n,e),l=(0,u.jC)("Checkbox",c),h=(0,u.Lr)(e),y=h.spacing,g=void 0===y?"0.5rem":y,b=h.className,_=h.children,w=h.iconColor,T=h.iconSize,C=h.icon,A=void 0===C?i.createElement(x,null):C,j=h.isChecked,R=h.isDisabled,M=void 0===R?null==n?void 0:n.isDisabled:R,D=h.onChange,I=h.inputProps,L=m(h,E),N=j;null!=n&&n.value&&h.value&&(N=n.value.includes(h.value));var B=D;null!=n&&n.onChange&&h.value&&(B=(0,r.PP)(n.onChange,D));var F=function(e){void 0===e&&(e={});var t=(0,f.Kn)(e),n=t.isDisabled,u=t.isReadOnly,c=t.isRequired,l=t.isInvalid,h=t.id,v=t.onBlur,y=t.onFocus,g=t["aria-describedby"],b=e,_=b.defaultIsChecked,w=b.defaultChecked,x=void 0===w?_:w,E=b.isChecked,O=b.isFocusable,P=b.onChange,T=b.isIndeterminate,C=b.name,A=b.value,j=b.tabIndex,R=void 0===j?void 0:j,M=b["aria-label"],D=b["aria-labelledby"],I=b["aria-invalid"],L=m(b,k),N=(0,r.CE)(L,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),B=(0,a.u)(P),F=(0,a.u)(v),Z=(0,a.u)(y),z=(0,s.kt)(),V=z[0],U=z[1],W=(0,s.kt)(),H=W[0],q=W[1],$=(0,s.kt)(),G=$[0],Y=$[1],K=(0,i.useRef)(null),X=(0,i.useState)(!0),Q=X[0],J=X[1],ee=(0,i.useState)(!!x),te=ee[0],ne=ee[1],re=(0,s.pY)(E,te),oe=re[0],ie=re[1];(0,r.ZK)({condition:!!_,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var ae=(0,i.useCallback)((function(e){u||n?e.preventDefault():(oe||ne(ie?e.target.checked:!!T||e.target.checked),null==B||B(e))}),[u,n,ie,oe,T,B]);(0,a.a)((function(){K.current&&(K.current.indeterminate=Boolean(T))}),[T]),(0,s.rf)((function(){n&&U.off()}),[n,U]);var se=n&&!O,ue=(0,i.useCallback)((function(e){" "===e.key&&Y.on()}),[Y]),ce=(0,i.useCallback)((function(e){" "===e.key&&Y.off()}),[Y]);(0,a.a)((function(){K.current&&K.current.checked!==ie&&ne(K.current.checked)}),[K.current]);var le=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:t,"data-active":(0,r.PB)(G),"data-hover":(0,r.PB)(H),"data-checked":(0,r.PB)(ie),"data-focus":(0,r.PB)(V),"data-indeterminate":(0,r.PB)(T),"data-disabled":(0,r.PB)(n),"data-invalid":(0,r.PB)(l),"data-readonly":(0,r.PB)(u),"aria-hidden":!0,onMouseDown:(0,r.v0)(e.onMouseDown,(function(e){e.preventDefault(),Y.on()})),onMouseUp:(0,r.v0)(e.onMouseUp,Y.off),onMouseEnter:(0,r.v0)(e.onMouseEnter,q.on),onMouseLeave:(0,r.v0)(e.onMouseLeave,q.off)})}),[G,ie,n,V,H,T,l,u,Y,q.off,q.on]),fe=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},N,e,{ref:(0,o.lq)(t,(function(e){e&&J("LABEL"===e.tagName)})),onClick:(0,r.v0)(e.onClick,(function(){var e;Q||(null==(e=K.current)||e.click(),(0,r.T_)(K.current,{nextTick:!0}))})),"data-disabled":(0,r.PB)(n),"data-checked":(0,r.PB)(ie),"data-invalid":(0,r.PB)(l)})}),[N,n,ie,l,Q]),de=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:(0,o.lq)(K,t),type:"checkbox",name:C,value:A,id:h,tabIndex:R,onChange:(0,r.v0)(e.onChange,ae),onBlur:(0,r.v0)(e.onBlur,F,U.off),onFocus:(0,r.v0)(e.onFocus,Z,U.on),onKeyDown:(0,r.v0)(e.onKeyDown,ue),onKeyUp:(0,r.v0)(e.onKeyUp,ce),required:c,checked:ie,disabled:se,readOnly:u,"aria-label":M,"aria-labelledby":D,"aria-invalid":I?Boolean(I):l,"aria-describedby":g,"aria-disabled":n,style:d.NL})}),[C,A,h,ae,U.off,U.on,F,Z,ue,ce,c,ie,se,u,M,D,I,l,g,n,R]),pe=(0,i.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:t,onMouseDown:(0,r.v0)(e.onMouseDown,S),onTouchStart:(0,r.v0)(e.onTouchStart,S),"data-disabled":(0,r.PB)(n),"data-checked":(0,r.PB)(ie),"data-invalid":(0,r.PB)(l)})}),[ie,n,l]);return{state:{isInvalid:l,isFocused:V,isChecked:ie,isActive:G,isHovered:H,isIndeterminate:T,isDisabled:n,isReadOnly:u,isRequired:c},getRootProps:fe,getCheckboxProps:le,getInputProps:de,getLabelProps:pe,htmlProps:N}}(p({},L,{isDisabled:M,isChecked:N,onChange:B})),Z=F.state,z=F.getInputProps,V=F.getCheckboxProps,U=F.getLabelProps,W=F.getRootProps,H=i.useMemo((function(){return p({opacity:Z.isChecked||Z.isIndeterminate?1:0,transform:Z.isChecked||Z.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:T,color:w},l.icon)}),[w,T,Z.isChecked,Z.isIndeterminate,l.icon]),q=i.cloneElement(A,{__css:H,isIndeterminate:Z.isIndeterminate,isChecked:Z.isChecked});return i.createElement(P,p({__css:l.container,className:(0,r.cx)("chakra-checkbox",b)},W()),i.createElement("input",p({className:"chakra-checkbox__input"},z(I,t))),i.createElement(O,p({__css:l.control,className:"chakra-checkbox__control"},V()),q),_&&i.createElement(u.m$.span,p({className:"chakra-checkbox__label"},U(),{__css:p({marginStart:g},l.label)}),_))}));r.Ts&&(T.displayName="Checkbox")}
1,84746:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(10894),o=n(5993),i=n(15031),a=n(67294);function s(){return s=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},s.apply(this,arguments)}var u=["children","isDisabled","__css"],c=function(e){return a.createElement(r.JO,s({focusable:"false","aria-hidden":!0},e),a.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},l=(0,o.Gp)((function(e,t){var n=(0,o.mq)("CloseButton",e),r=(0,o.Lr)(e),i=r.children,l=r.isDisabled,f=r.__css,d=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}(r,u);return a.createElement(o.m$.button,s({type:"button","aria-label":"Close",ref:t,disabled:l,__css:s({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,f)},d),i||a.createElement(c,{width:"1em",height:"1em"}))}));i.Ts&&(l.displayName="CloseButton")},20949:function(e,t,n){"use strict";n.d(t,{If:function(){return g},SG:function(){return b},kc:function(){return y}});var r=n(85393),o=n(15031),i=n(67294);var a="chakra-ui-light",s="chakra-ui-dark",u={classList:{add:o.ZT,remove:o.ZT}};function c(e,t){var n=function(e){return o.jU?e.body:u}(t);n.classList.add(e?s:a),n.classList.remove(e?a:s)}var l="(prefers-color-scheme: dark)";function f(e){var t;return(null!=(t=function(e){var t=null==window.matchMedia?void 0:window.matchMedia(e);if(t)return!!t.media===t.matches}(l))?t:"dark"===e)?"dark":"light"}var d=function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")||document.documentElement.dataset.theme},p=function(e){o.jU&&(document.documentElement.style.setProperty("--chakra-ui-color-mode",e),document.documentElement.setAttribute("data-theme",e))},h=function(){return"undefined"!==typeof Storage},v="chakra-ui-color-mode",m={get:function(e){if(!h())return e;try{var t=localStorage.getItem(v);return null!=t?t:e}catch(n){return o.Ts&&console.log(n),e}},set:function(e){if(h())try{localStorage.setItem(v,e)}catch(t){o.Ts&&console.log(t)}},type:"localStorage"},y=i.createContext({});o.Ts&&(y.displayName="ColorModeContext");var g=function(){var e=i.useContext(y);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function b(e){var t=e.value,n=e.children,a=e.options,s=a.useSystemColorMode,u=a.initialColorMode,h=e.colorModeManager,v=void 0===h?m:h,g="dark"===u?"dark":"light",b=i.useState("cookie"===v.type?v.get(g):g),_=b[0],w=b[1],x=(0,r.O)().document;i.useEffect((function(){if(o.jU&&"localStorage"===v.type){var e=f(g);if(s)return w(e);var t=d(),n=v.get();return w(t?t:n||("system"===u?e:g))}}),[v,s,g,u]),i.useEffect((function(){var e="dark"===_;c(e,x),p(e?"dark":"light")}),[_,x]);var k=i.useCallback((function(e,t){if(void 0===t&&(t=!1),t){if(v.get()&&!s)return}else v.set(e);w(e)}),[v,s]),S=i.useCallback((function(){k("light"===_?"dark":"light")}),[_,k]);i.useEffect((function(){var e,t=s||"system"===u;return t&&(e=function(e){if(!("matchMedia"in window))return o.ZT;var t=window.matchMedia(l),n=function(){e(t.matches?"dark":"light",!0)};return t.addEventListener("change",n),function(){t.removeEventListener("change",n)}}(k)),function(){e&&t&&e()}}),[k,s,u]);var E=i.useMemo((function(){return{colorMode:null!=t?t:_,toggleColorMode:t?o.ZT:S,setColorMode:t?o.ZT:k}}),[_,k,S,t]);return i.createElement(y.Provider,{value:E},n)}o.Ts&&(b.displayName="ColorModeProvider");o.Ts;o.Ts},79762:function(e,t,n){"use strict";n.d(t,{Kn:function(){return w},NI:function(){return m},Yp:function(){return _},lX:function(){return E}});var r=n(97375),o=n(5993),i=n(15031),a=n(26450),s=n(67294),u=n(10894);function c(){return c=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},c.apply(this,arguments)}function l(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}var f=["id","isRequired","isInvalid","isDisabled","isReadOnly"],d=["getRootProps","htmlProps"],p=(0,a.kr)({strict:!1,name:"FormControlContext"}),h=p[0],v=p[1];var m=(0,o.Gp)((function(e,t){var n=(0,o.jC)("Form",e),u=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,u=e.isDisabled,d=e.isReadOnly,p=l(e,f),h=(0,r.Me)(),v=t||"field-"+h,m=v+"-label",y=v+"-feedback",g
1=v+"-helptext",b=s.useState(!1),_=b[0],w=b[1],x=s.useState(!1),k=x[0],S=x[1],E=(0,r.kt)(),O=E[0],P=E[1],T=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:g},e,{ref:(0,a.lq)(t,(function(e){e&&S(!0)}))})}),[g]),C=s.useCallback((function(e,t){var n,r;return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,"data-focus":(0,i.PB)(O),"data-disabled":(0,i.PB)(u),"data-invalid":(0,i.PB)(o),"data-readonly":(0,i.PB)(d),id:null!=(n=e.id)?n:m,htmlFor:null!=(r=e.htmlFor)?r:v})}),[v,u,O,o,d,m]),A=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:y},e,{ref:(0,a.lq)(t,(function(e){e&&w(!0)})),"aria-live":"polite"})}),[y]),j=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,p,{ref:t,role:"group"})}),[p]),R=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!d,isDisabled:!!u,isFocused:!!O,onFocus:P.on,onBlur:P.off,hasFeedbackText:_,setHasFeedbackText:w,hasHelpText:k,setHasHelpText:S,id:v,labelId:m,feedbackId:y,helpTextId:g,htmlProps:p,getHelpTextProps:T,getErrorMessageProps:A,getRootProps:j,getLabelProps:C,getRequiredIndicatorProps:R}}((0,o.Lr)(e)),p=u.getRootProps;u.htmlProps;var v=l(u,d),m=(0,i.cx)("chakra-form-control",e.className);return s.createElement(h,{value:v},s.createElement(o.Fo,{value:n},s.createElement(o.m$.div,c({},p({},t),{className:m,__css:n.container}))))}));i.Ts&&(m.displayName="FormControl");var y=(0,o.Gp)((function(e,t){var n=v(),r=(0,o.yK)(),a=(0,i.cx)("chakra-form__helper-text",e.className);return s.createElement(o.m$.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));i.Ts&&(y.displayName="FormHelperText");var g=["isDisabled","isInvalid","isReadOnly","isRequired"],b=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function _(e){var t=w(e),n=t.isDisabled,r=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return c({},l(t,g),{disabled:n,readOnly:o,required:a,"aria-invalid":(0,i.Qm)(r),"aria-required":(0,i.Qm)(a),"aria-readonly":(0,i.Qm)(o)})}function w(e){var t,n,r,o=v(),a=e.id,s=e.disabled,u=e.readOnly,f=e.required,d=e.isRequired,p=e.isInvalid,h=e.isReadOnly,m=e.isDisabled,y=e.onFocus,g=e.onBlur,_=l(e,b),w=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=o&&o.hasFeedbackText&&null!=o&&o.isInvalid&&w.push(o.feedbackId),null!=o&&o.hasHelpText&&w.push(o.helpTextId),c({},_,{"aria-describedby":w.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=s?s:m)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=u?u:h)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=f?f:d)?r:null==o?void 0:o.isRequired,isInvalid:null!=p?p:null==o?void 0:o.isInvalid,onFocus:(0,i.v0)(null==o?void 0:o.onFocus,y),onBlur:(0,i.v0)(null==o?void 0:o.onBlur,g)})}var x=(0,o.Gp)((function(e,t){var n=(0,o.jC)("FormError",e),r=(0,o.Lr)(e),a=v();return null!=a&&a.isInvalid?s.createElement(o.Fo,{value:n},s.createElement(o.m$.div,c({},null==a?void 0:a.getErrorMessageProps(r,t),{className:(0,i.cx)("chakra-form__error-message",e.className),__css:c({display:"flex",alignItems:"center"},n.text)}))):null}));i.Ts&&(x.displayName="FormErrorMessage");var k=(0,o.Gp)((function(e,t){var n=(0,o.yK)(),r=v();if(null==r||!r.isInvalid)return null;var a=(0,i.cx)("chakra-form__error-icon",e.className);return s.createElement(u.ZP,c({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:a}),s.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));i.Ts&&(k.displayName="FormErrorIcon");var S=["className","children","requiredIndicator","optionalIndicator"],E=(0,o.Gp)((function(e,t){var n,r=(0,o.mq)("FormLabel",e),a=(0,o.Lr)(e);a.className;var u=a.children,f=a.requiredIndicator,d=void 0===f?s.createElement(O,null):f,p=a.optionalIndicator,h=void 0===p?null:p,m=l(a,S),y=v(),g=null!=(n=null==y?void 0:y.getLabelProps(m,t))?n:c({ref:t},m);return s.createElement(o.m$.label,c({},g,{className:(0,i.cx)("chakra-form__label",a.className),__css:c({dis
1play:"block",textAlign:"start"},r)}),u,null!=y&&y.isRequired?d:h)}));i.Ts&&(E.displayName="FormLabel");var O=(0,o.Gp)((function(e,t){var n=v(),r=(0,o.yK)();if(null==n||!n.isRequired)return null;var a=(0,i.cx)("chakra-form__required-indicator",e.className);return s.createElement(o.m$.span,c({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:a}))}));i.Ts&&(O.displayName="RequiredIndicator")},97375:function(e,t,n){"use strict";n.d(t,{Di:function(){return l},II:function(){return x},KS:function(){return O},Me:function(){return v},NW:function(){return w},PO:function(){return E},Tx:function(){return c},ZS:function(){return m},kt:function(){return s},pY:function(){return u},qY:function(){return y},qq:function(){return S},rf:function(){return g},vc:function(){return h},zq:function(){return _}});var r=n(67294),o=n(44697),i=(n(20640),n(15031)),a=n(27642);function s(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1];return[n,(0,r.useMemo)((function(){return{on:function(){return o(!0)},off:function(){return o(!1)},toggle:function(){return o((function(e){return!e}))}}}),[])]}function u(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}function c(e){var t=e.value,n=e.defaultValue,a=e.onChange,s=e.shouldUpdate,u=void 0===s?function(e,t){return e!==t}:s,c=(0,o.u)(a),l=(0,o.u)(u),f=r.useState(n),d=f[0],p=f[1],h=void 0!==t,v=h?t:d,m=r.useCallback((function(e){var t=(0,i.Pu)(e,v);l(v,t)&&(h||p(t),c(t))}),[h,c,v,l]);return[v,m]}function l(e,t){var n=r.useState(null),i=n[0],s=n[1],u=r.useRef();return(0,o.a)((function(){if(e.current){var n=e.current;return r(),t&&(window.addEventListener("resize",r),window.addEventListener("scroll",r)),function(){t&&(window.removeEventListener("resize",r),window.removeEventListener("scroll",r)),u.current&&cancelAnimationFrame(u.current)}}function r(){u.current=requestAnimationFrame((function(){var e=(0,a.iz)(n);s(e)}))}}),[t]),i}function f(){return f=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},f.apply(this,arguments)}var d={current:1},p=r.createContext(d),h=r.memo((function(e){var t=e.children;return r.createElement(p.Provider,{value:{current:1}},t)}));function v(e,t){var n=r.useContext(p),o=r.useState(n.current),i=o[0],a=o[1];return r.useEffect((function(){a(function(e){return e.current++}(n))}),[n]),r.useMemo((function(){return e||[t,i].filter(Boolean).join("-")}),[e,t,i])}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=v(e);return r.useMemo((function(){return n.map((function(e){return e+"-"+i}))}),[i,n])}function y(e){void 0===e&&(e={});var t=e,n=t.onClose,a=t.onOpen,s=t.isOpen,c=t.id,l=(0,o.u)(a),d=(0,o.u)(n),p=r.useState(e.defaultIsOpen||!1),h=p[0],m=p[1],y=u(s,h),g=y[0],b=y[1],_=v(c,"disclosure"),w=r.useCallback((function(){g||m(!1),null==d||d()}),[g,d]),x=r.useCallback((function(){g||m(!0),null==l||l()}),[g,l]),k=r.useCallback((function(){(b?w:x)()}),[b,x,w]);return{isOpen:!!b,onOpen:x,onClose:w,onToggle:k,isControlled:g,getButtonProps:function(e){return void 0===e&&(e={}),f({},e,{"aria-expanded":"true","aria-controls":_,onClick:(0,i.v0)(e.onClick,k)})},getDisclosureProps:function(e){return void 0===e&&(e={}),f({},e,{hidden:!b,id:_})}}}var g=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){if(n.current)return e();n.current=!0}),t),n.current};function b(e,t,n,r){return(0,o.b)((0,i.f7)(t),(0,i.JN)(n,"pointerdown"===t),e,r)}function _(e,t){return void 0===t&&(t=[]),r.useEffect((function(){return function(){return e()}}),t)}function w(){var e=r.useRef(!1),t=r.useState(0),n=t[0],o=t[1];return _((function(){e.current=!0})),r.useCallback((function(){e.current||o(n+1)}),[n])}function x(e){var t=r.useRef(null);return t.current=e,t}function k(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){t&&k(t,e)}))}}),t)}function E(e,t){var n=t.onPan,o=t.onPanStart,a=t.onPanEnd,s=t.onPanSessionStart,u=t.onPanSessionEnd,c=t.threshold,l=Boolean(n||o||a||s||u),f=(0,r.useRef)(null),d={onSessionStart:s,onSessionEnd:u,onStart:
1o,onMove:n,onEnd:function(e,t){f.current=null,null==a||a(e,t)}};(0,r.useEffect)((function(){var e;null==(e=f.current)||e.updateHandlers(d)})),b((function(){return e.current}),"pointerdown",l?function(e){f.current=new i.Hc(e,d,c)}:i.ZT),_((function(){var e;null==(e=f.current)||e.end(),f.current=null}))}function O(e,t){var n=(0,o.u)(e);r.useEffect((function(){if(null!=t){var e;return e=window.setTimeout((function(){n()}),t),function(){e&&window.clearTimeout(e)}}}),[t,n])}},44697:function(e,t,n){"use strict";n.d(t,{a:function(){return i},b:function(){return s},u:function(){return a}});var r=n(15031),o=n(67294),i=r.jU?o.useLayoutEffect:o.useEffect;function a(e,t){void 0===t&&(t=[]);var n=o.useRef(e);return i((function(){n.current=e})),o.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)}),t)}function s(e,t,n,i){var s=a(t);return o.useEffect((function(){var o,a=null!=(o=(0,r.Pu)(n))?o:document;if(t)return a.addEventListener(e,s,i),function(){a.removeEventListener(e,s,i)}}),[e,n,i,s,t]),function(){var t;(null!=(t=(0,r.Pu)(n))?t:document).removeEventListener(e,s,i)}}},10894:function(e,t,n){"use strict";n.d(t,{JO:function(){return c},ZP:function(){return l}});var r=n(5993),o=n(15031),i=n(67294);function a(){return a=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},a.apply(this,arguments)}var s=["as","viewBox","color","focusable","children","className","__css"],u={path:i.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},i.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),i.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),i.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},c=(0,r.Gp)((function(e,t){var n=e.as,c=e.viewBox,l=e.color,f=void 0===l?"currentColor":l,d=e.focusable,p=void 0!==d&&d,h=e.children,v=e.className,m=e.__css,y=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,s),g={ref:t,focusable:p,className:(0,o.cx)("chakra-icon",v),__css:a({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:f},m)},b=null!=c?c:u.viewBox;if(n&&"string"!==typeof n)return i.createElement(r.m$.svg,a({as:n},g,y));var _=null!=h?h:u.path;return i.createElement(r.m$.svg,a({verticalAlign:"middle",viewBox:b},g,y),_)}));o.Ts&&(c.displayName="Icon");var l=c},34651:function(e,t,n){"use strict";n.d(t,{Ee:function(){return d}});var r=n(5993),o=n(15031),i=n(67294),a=n(44697);function s(){return s=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},s.apply(this,arguments)}function u(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}var c=["htmlWidth","htmlHeight","alt"],l=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],f=i.forwardRef((function(e,t){var n=e.htmlWidth,r=e.htmlHeight,o=e.alt,a=u(e,c);return i.createElement("img",s({width:n,height:r,ref:t,alt:o},a))})),d=(0,r.Gp)((function(e,t){var n=e.fallbackSrc,c=e.fallback,d=e.src,p=e.srcSet,h=e.align,v=e.fit,m=e.loading,y=e.ignoreFallback,g=e.crossOrigin,b=u(e,l),_=null!=m||y||void 0===n&&void 0===c,w=function(e){var t=e.loading,n=e.src,r=e.srcSet,o=e.onLoad,s=e.onError,u=e.crossOrigin,c=e.sizes,l=e.ignoreFallback,f=(0,i.useState)("pending"),d=f[0],p=f[1];(0,i.useEffect)((function(){p(n?"loading":"pending")}),[n]);var h=(0,i.useRef)(),v=(0,i.useCallback)((function(){if(n){m();var e=new Image;e.src=n,u&&(e.crossOrigin=u),r&&(e.srcset=r),c&&(e.sizes=c),t&&(e.loading=t),e.onload=function(e){m(),p("loaded"),null==o||o(e)},e.onerror=function(e){m(),p("failed"),null==s||s(e)},h.current=e}}),[n,u,r,c,o,s,t]),m=function(){h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,a.a)((function(){if(!l)return"loading"===d&&v(),function(){m()}}),[d,v,l]),l?"loaded":d}(s({},e,{ignoreFallback:_})),x=s({ref:t,objectFit:v,objectPosition:h},_?b:(0,o.CE)(b,["onError","onLoad"]));return"loaded"!==w?c||i.createElement(r.m$.img,s({as:f,className:"chakra-image__placeholder",src:n},x)):i.createElement(r.m$.img,s({as:f,src:d,srcSet:p,crossOrigin:g,loading:m,className:"chakra-image"},x))}));o.Ts&&(d.displayName="Image")},4612:function(e,t,n){"use strict";n.d(t,{II:function(){return f}});var r=n(79762),o=n(5993),i=n(15031),a=n(67294),s=n(26450);function u(){return u=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},u.apply(this,arguments)}function c(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}var l=["htmlSize"],f=(0,o.Gp)((function(e,t){var n=e.htmlSize,s=c(e,l),f=(0,o.jC)("Input",s
1),d=(0,o.Lr)(s),p=(0,r.Yp)(d),h=(0,i.cx)("chakra-input",e.className);return a.createElement(o.m$.input,u({size:n},p,{__css:f.field,ref:t,className:h}))}));i.Ts&&(f.displayName="Input"),f.id="Input";var d=["placement"],p={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},h=(0,o.m$)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),v=(0,o.Gp)((function(e,t){var n,r=e.placement,i=void 0===r?"left":r,s=c(e,d),l=null!=(n=p[i])?n:{},f=(0,o.yK)();return a.createElement(h,u({ref:t},s,{__css:u({},f.addon,l)}))}));i.Ts&&(v.displayName="InputAddon");var m=(0,o.Gp)((function(e,t){return a.createElement(v,u({ref:t,placement:"left"},e,{className:(0,i.cx)("chakra-input__left-addon",e.className)}))}));i.Ts&&(m.displayName="InputLeftAddon"),m.id="InputLeftAddon";var y=(0,o.Gp)((function(e,t){return a.createElement(v,u({ref:t,placement:"right"},e,{className:(0,i.cx)("chakra-input__right-addon",e.className)}))}));i.Ts&&(y.displayName="InputRightAddon"),y.id="InputRightAddon";var g=["children","className"],b=(0,o.Gp)((function(e,t){var n=(0,o.jC)("Input",e),r=(0,o.Lr)(e),l=r.children,f=r.className,d=c(r,g),p=(0,i.cx)("chakra-input__group",f),h={},v=(0,s.WR)(l),m=n.field;v.forEach((function(e){if(n){var t,r;if(m&&"InputLeftElement"===e.type.id)h.paddingStart=null!=(t=m.height)?t:m.h;if(m&&"InputRightElement"===e.type.id)h.paddingEnd=null!=(r=m.height)?r:m.h;"InputRightAddon"===e.type.id&&(h.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(h.borderStartRadius=0)}}));var y=v.map((function(t){var n,r,o=(0,i.YU)({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return"Input"!==t.type.id?a.cloneElement(t,o):a.cloneElement(t,Object.assign(o,h,t.props))}));return a.createElement(o.m$.div,u({className:p,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},d),a.createElement(o.Fo,{value:n},y))}));i.Ts&&(b.displayName="InputGroup");var _=["placement"],w=["className"],x=["className"],k=(0,o.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),S=(0,o.Gp)((function(e,t){var n,r,i,s=e.placement,l=void 0===s?"left":s,f=c(e,_),d=(0,o.yK)(),p=d.field,h=u(((i={})["left"===l?"insetStart":"insetEnd"]="0",i.width=null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,i.height=null!=(r=null==p?void 0:p.height)?r:null==p?void 0:p.h,i.fontSize=null==p?void 0:p.fontSize,i),d.element);return a.createElement(k,u({ref:t,__css:h},f))}));S.id="InputElement",i.Ts&&(S.displayName="InputElement");var E=(0,o.Gp)((function(e,t){var n=e.className,r=c(e,w),o=(0,i.cx)("chakra-input__left-element",n);return a.createElement(S,u({ref:t,placement:"left",className:o},r))}));E.id="InputLeftElement",i.Ts&&(E.displayName="InputLeftElement");var O=(0,o.Gp)((function(e,t){var n=e.className,r=c(e,x),o=(0,i.cx)("chakra-input__right-element",n);return a.createElement(S,u({ref:t,placement:"right",className:o},r))}));O.id="InputRightElement",i.Ts&&(O.displayName="InputRightElement")},68527:function(e,t,n){"use strict";n.d(t,{GS:function(){return H},HC:function(){return $},Kq:function(){return ne},QI:function(){return q},Ug:function(){return re},W2:function(){return S},X6:function(){return M},aV:function(){return W},cX:function(){return ee},gC:function(){return oe},kC:function(){return C},rU:function(){return N},xu:function(){return y},xv:function(){return ae}});var r=n(5993),o=n(94244),i=n(15031),a=n(67294),s=n(10894),u=n(26450);function c(){return c=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},c.apply(this,arguments)}function l(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}var f=["ratio","children","className"],d=(0,r.Gp)((function(e,t){var n=e.ratio,o=void 0===n?4/3:n,s=e.children,u=e.className,d=l(e,f),p=a.Children.only(s),h=(0,i.cx)("chakra-aspect-ratio",u);return a.createElement(r.m$.div,c({ref:t,position:"relative",className:h,_before:{height:0,content:'""',dis
1play:"block",paddingBottom:(0,i.XQ)(o,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},d),p)}));i.Ts&&(d.displayName="AspectRatio");var p=["className"],h=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Badge",e),o=(0,r.Lr)(e);o.className;var s=l(o,p);return a.createElement(r.m$.span,c({ref:t,className:(0,i.cx)("chakra-badge",e.className)},s,{__css:c({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));i.Ts&&(h.displayName="Badge");var v=["size","centerContent"],m=["size"],y=(0,r.m$)("div");i.Ts&&(y.displayName="Box");var g=(0,r.Gp)((function(e,t){var n=e.size,r=e.centerContent,o=void 0===r||r,i=l(e,v),s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(y,c({ref:t,boxSize:n,__css:c({},s,{flexShrink:0,flexGrow:0})},i))}));i.Ts&&(g.displayName="Square");var b=(0,r.Gp)((function(e,t){var n=e.size,r=l(e,m);return a.createElement(g,c({size:n,ref:t,borderRadius:"9999px"},r))}));i.Ts&&(b.displayName="Circle");var _=(0,r.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});i.Ts&&(_.displayName="Center");var w=["className"],x=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Code",e),o=(0,r.Lr)(e);o.className;var s=l(o,w);return a.createElement(r.m$.code,c({ref:t,className:(0,i.cx)("chakra-code",e.className)},s,{__css:c({display:"inline-block"},n)}))}));i.Ts&&(x.displayName="Code");var k=["className","centerContent"],S=(0,r.Gp)((function(e,t){var n=(0,r.Lr)(e),o=n.className,s=n.centerContent,u=l(n,k),f=(0,r.mq)("Container",e);return a.createElement(r.m$.div,c({ref:t,className:(0,i.cx)("chakra-container",o)},u,{__css:c({},f,s&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));i.Ts&&(S.displayName="Container");var E=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],O=["className","orientation","__css"],P=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Divider",e),o=n.borderLeftWidth,s=n.borderBottomWidth,u=n.borderTopWidth,f=n.borderRightWidth,d=n.borderWidth,p=n.borderStyle,h=n.borderColor,v=l(n,E),m=(0,r.Lr)(e),y=m.className,g=m.orientation,b=void 0===g?"horizontal":g,_=m.__css,w=l(m,O),x={vertical:{borderLeftWidth:o||f||d||"1px",height:"100%"},horizontal:{borderBottomWidth:s||u||d||"1px",width:"100%"}};return a.createElement(r.m$.hr,c({ref:t,"aria-orientation":b},w,{__css:c({},v,{border:"0",borderColor:h,borderStyle:p},x[b],_),className:(0,i.cx)("chakra-divider",y)}))}));i.Ts&&(P.displayName="Divider");var T=["direction","align","justify","wrap","basis","grow","shrink"],C=(0,r.Gp)((function(e,t){var n=e.direction,o=e.align,i=e.justify,s=e.wrap,u=e.basis,f=e.grow,d=e.shrink,p=l(e,T),h={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:u,flexGrow:f,flexShrink:d};return a.createElement(r.m$.div,c({ref:t,__css:h},p))}));i.Ts&&(C.displayName="Flex");var A=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],j=(0,r.Gp)((function(e,t){var n=e.area,o=e.templateAreas,i=e.gap,s=e.rowGap,u=e.columnGap,f=e.column,d=e.row,p=e.autoFlow,h=e.autoRows,v=e.templateRows,m=e.autoColumns,y=e.templateColumns,g=l(e,A),b={display:"grid",gridArea:n,gridTemplateAreas:o,gridGap:i,gridRowGap:s,gridColumnGap:u,gridAutoColumns:m,gridColumn:f,gridRow:d,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:v,gridTemplateColumns:y};return a.createElement(r.m$.div,c({ref:t,__css:b},g))}));i.Ts&&(j.displayName="Grid");var R=["className"],M=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Heading",e),o=(0,r.Lr)(e);o.className;var s=l(o,R);return a.createElement(r.m$.h2,c({ref:t,className:(0,i.cx)("chakra-heading",e.className)},s,{__css:n}))}));i.Ts&&(M.displayName="Heading");var D=["className"],I=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Kbd",e),o=(0,r.Lr)(e),s=o.className,u=l(o,D);return a.createElement(r.m$.kbd,c({ref:t,className:(0,i.cx)("chakra-kbd",s)},u,{__css:c({fontFamily:"mono"},n)}))}));i.Ts&&(I.displayName="Kbd");var L=["className","isExternal"],N=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Link",e),o=(0,r.Lr)(e),s=o.className,u=o.isExternal,f=l(o,L);return a.createElement(r.m$.a,c({target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,i.cx)("chakra-link",s)},f,{__css:n}))}));i.Ts&&(N.displayName="Link");var B=["children","styleType","stylePosition","spacing"],F=["as"],Z=["as"],z=(0,u.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),V=z[0],U=z[1],W=(0,r.Gp)((function(e,t){var n,o=(0,r.jC)("List",e),i=(0,r.Lr)(e),s=i.children,f=i.styleType,d=void 0===f?"n
1one":f,p=i.stylePosition,h=i.spacing,v=l(i,B),m=(0,u.WR)(s),y=h?((n={})["& > *:not(style) ~ *:not(style)"]={mt:h},n):{};return a.createElement(V,{value:o},a.createElement(r.m$.ul,c({ref:t,listStyleType:d,listStylePosition:p,role:"list",__css:c({},o.container,y)},v),m))}));i.Ts&&(W.displayName="List");var H=(0,r.Gp)((function(e,t){e.as;var n=l(e,F);return a.createElement(W,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));i.Ts&&(H.displayName="OrderedList");var q=(0,r.Gp)((function(e,t){e.as;var n=l(e,Z);return a.createElement(W,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));i.Ts&&(q.displayName="UnorderedList");var $=(0,r.Gp)((function(e,t){var n=U();return a.createElement(r.m$.li,c({ref:t},e,{__css:n.item}))}));i.Ts&&($.displayName="ListItem");var G=(0,r.Gp)((function(e,t){var n=U();return a.createElement(s.JO,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));i.Ts&&(G.displayName="ListIcon");var Y=["columns","spacingX","spacingY","spacing","minChildWidth"],K=(0,r.Gp)((function(e,t){var n,r,o=e.columns,s=e.spacingX,u=e.spacingY,f=e.spacing,d=e.minChildWidth,p=l(e,Y),h=d?(r=d,(0,i.XQ)(r,(function(e){return(0,i.Ft)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,i.hj)(t)?t+"px":t)+", 1fr))");var t}))):(n=o,(0,i.XQ)(n,(function(e){return(0,i.Ft)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return a.createElement(j,c({ref:t,gap:f,columnGap:s,rowGap:u,templateColumns:h},p))}));i.Ts&&(K.displayName="SimpleGrid");var X=(0,r.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});i.Ts&&(X.displayName="Spacer");var Q="& > *:not(style) ~ *:not(style)";var J=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],ee=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__divider"},e,{__css:c({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})}))},te=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__item"},e,{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},ne=(0,r.Gp)((function(e,t){var n,o=e.isInline,s=e.direction,f=e.align,d=e.justify,p=e.spacing,h=void 0===p?"0.5rem":p,v=e.wrap,m=e.children,y=e.divider,g=e.className,b=e.shouldWrapChildren,_=l(e,J),w=o?"row":null!=s?s:"column",x=a.useMemo((function(){return function(e){var t,n=e.spacing,r=e.direction,o={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:r})[Q]=(0,i.XQ)(r,(function(e){return o[e]})),t}({direction:w,spacing:h})}),[w,h]),k=a.useMemo((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,i.XQ)(n,(function(e){return r[e]}))}}({spacing:h,direction:w})}),[h,w]),S=!!y,E=!b&&!S,O=(0,u.WR)(m),P=E?O:O.map((function(e,t){var n="undefined"!==typeof e.key?e.key:t,r=t+1===O.length,o=b?a.createElement(te,{key:n},e):e;if(!S)return o;var i=r?null:a.cloneElement(y,{__css:k});return a.createElement(a.Fragment,{key:n},o,i)})),T=(0,i.cx)("chakra-stack",g);return a.createElement(r.m$.div,c({ref:t,display:"flex",alignItems:f,justifyContent:d,flexDirection:x.flexDirection,flexWrap:v,className:T,__css:S?{}:(n={},n[Q]=x[Q],n)},_),P)}));i.Ts&&(ne.displayName="Stack");var re=(0,r.Gp)((function(e,t){return a.createElement(ne,c({align:"center"},e,{direction:"row",ref:t}))}));i.Ts&&(re.displayName="HStack");var oe=(0,r.Gp)((function(e,t){return a.createElement(ne,c({align:"center"},e,{direction:"column",ref:t}))}));i.Ts&&(oe.displayName="VStack");var ie=["className","align","decoration","casing"],ae=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Text",e),o=(0,r.Lr)(e);o.className,o.align,o.decoration,o.casing;var s=l(o,ie),u=(0,i.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return a.createElement(r.m$.p,c({ref:t,className:(0,i.cx)("chakra-text",e.className)},u,s,{__css:n}))}));i.Ts&&(ae.displayName="Text");var se=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],ue=["className"],ce=(0,r.Gp)((function(e,t){var n=e.spacing,s=void 0===n?"0.5rem":n,u=e.spacingX,f=e.spacingY,d=e.children,p=e.justify,h=e.direction,v=e.align,m=e.className,y=e.shouldWrapChildren,g=l(e,se),b=a.useMemo((function(){var e={spacingX:u,spacingY:f},t=e.spacingX,n=void 0===t?s:t,r=e.spacingY,a=void 0===r?s:r;return{"--chakra-wrap-x-spacing":function(e){return(0,i.XQ)(n,(function(t){return(0,o.fr)("space",t)(e)}))},"--chakra-wrap-y-spacing":function(e){return(0,i.XQ)(a,(function(t){return(0,o.fr)("space",t)(e)}))},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:p,al
1ignItems:v,flexDirection:h,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[s,u,f,p,v,h]),_=y?a.Children.map(d,(function(e,t){return a.createElement(le,{key:t},e)})):d;return a.createElement(r.m$.div,c({ref:t,className:(0,i.cx)("chakra-wrap",m)},g),a.createElement(r.m$.ul,{className:"chakra-wrap__list",__css:b},_))}));i.Ts&&(ce.displayName="Wrap");var le=(0,r.Gp)((function(e,t){var n=e.className,o=l(e,ue);return a.createElement(r.m$.li,c({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",n)},o))}));i.Ts&&(le.displayName="WrapItem")},56387:function(e,t,n){"use strict";n.d(t,{u_:function(){return Bt},fe:function(){return Wt},ol:function(){return qt},hz:function(){return Zt},mz:function(){return Ht},xB:function(){return Ut},ZA:function(){return Vt}});var r=n(84746),o=n(67294),i=n(63366),a=n(87462),s="data-focus-lock",u="data-focus-lock-disabled";function c(e,t){return function(e,t){var n=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var l={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},f=function(e){var t=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}),t,t&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}))};f.propTypes={},f.defaultProps={children:null};var d=n(97582);function p(e){return e}function h(e,t){void 0===t&&(t=p);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function v(e,t){return void 0===t&&(t=p),h(e,t)}function m(e){void 0===e&&(e={});var t=h(null);return t.options=(0,d.__assign)({async:!0,ssr:!1},e),t}var y=v({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),g=v(),b=v(),_=m({async:!0}),w=[],x=o.forwardRef((function(e,t){var n,r=o.useState(),i=r[0],f=r[1],d=o.useRef(),p=o.useRef(!1),h=o.useRef(null),v=e.children,m=e.disabled,b=e.noFocusGuards,x=e.persistentFocus,k=e.crossFrame,S=e.autoFocus,E=(e.allowTextSelection,e.group),O=e.className,P=e.whiteList,T=e.shards,C=void 0===T?w:T,A=e.as,j=void 0===A?"div":A,R=e.lockProps,M=void 0===R?{}:R,D=e.sideCar,I=e.returnFocus,L=e.onActivation,N=e.onDeactivation,B=o.useState({})[0],F=o.useCallback((function(){h.current=h.current||document&&document.activeElement,d.current&&L&&L(d.current),p.current=!0}),[L]),Z=o.useCallback((function(){p.current=!1,N&&N(d.current)}),[N]),z=o.useCallback((function(e){var t=h.current;if(Boolean(I)&&t&&t.focus){var n="object"===typeof I?I:void 0;h.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[I]),V=o.useCallback((function(e){p.current&&y.useMedium(e)}),[]),U=g.useMedium,W=o.useCallback((function(e){d.current!==e&&(d.current=e,f(e))}),[]);var H=(0,a.Z)(((n={})[u]=m&&"disabled",n[s]=E,n),M),q=!0!==b,$=q&&"tail"!==b,G=c([t,W]);return o.createElement(o.Fragment,null,q&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:l}),o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:l})],!m&&o.createElement(D,{id:B,sideCar:_,observed:i,disabled:m,persistentFocus:x,crossFrame:k,autoFocus:S,whiteList:P,shards:C,onActivation:F,onDeactivation:Z,returnFocus:z}),o.createElement(j,(0,a.Z)({ref:G},H,{className:O,onBlur:U,onFocus:V}),v),$&&o.createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:l}))}));x.propTypes={},x.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var k=x,S=n(75068),E=n(4942);var O=function(e,t){return function(n){var r,i=[];function a(){r=e(i.map((function(e){return e.props}))),t(r)}var s=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e),t.peek=function(){return r};var s=t.prototype;return s.componentDidMount=function(){i.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},s.render=function(){return o.createElement(n,this.props)},t}
1(o.PureComponent);return(0,E.Z)(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s}},P=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},T=function(e){return Array.isArray(e)?e:[e]},C=function(e){return e.parentNode?C(e.parentNode):e},A=function(e){return T(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(s);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(P(C(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+u+'="disabled"])'))):[t]),e}),[])},j=function(e){return Boolean(P(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},R=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&A(e).reduce((function(e,n){return e||n.contains(t)||j(n)}),!1)},M=function(e){return"INPUT"===e.tagName&&"radio"===e.type},D=function(e,t){return M(e)&&e.name?function(e,t){return t.filter(M).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},I=function(e){return e[0]&&e.length>1?D(e[0],e):e[0]},L=function(e,t){return e.length>1?e.indexOf(D(e[t],e)):t},N=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},B=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=N(t,B.bind(void 0,e));return e.set(t,r),r},F=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},Z=function(e){return!F(e)},z=function(e){return Boolean(e)},V="NEW_FOCUS",U=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=F(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),c=r?t.indexOf(r):u,l=r?e.indexOf(r):-1,f=u-c,d=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(D(n,e))})),e.filter((function(e){return t.has(e)}))}(t),v=h.indexOf(n)-(r?h.indexOf(r):u),m=L(e,0),y=L(e,o-1);return-1===u||-1===l?V:!f&&l>=0?l:u<=d&&s&&Math.abs(f)>1?y:u>=p&&s&&Math.abs(f)>1?m:f&&Math.abs(v)>1?l:u<=d?y:u>p?m:f?Math.abs(f)>1?l:(o+l+f)%o:void 0}},W=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},H=function(e,t,n){return P(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(W)},q=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),$=q+", [data-focus-guard]",G=function(e,t){return e.reduce((function(e,n){return e.concat(P(n.querySelectorAll(t?$:q)),n.parentNode?P(n.parentNode.querySelectorAll(q)).filter((function(e){return e===n})):[])}),[])},Y=function(e,t){return P(e).filter((function(e){return B(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},K=function(e,t,n){return H(Y(G(e,n),t),!0,n)},X=function(e,t){return H(Y(G(e),t),!1)},Q=function(e,t){return Y(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return P(t).map((function(e){return G([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},J=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&J(e.parentNode,t),t},ee=function(e,t){for(var n=J(e),r=J(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},te=function(e,t,n){var r=T(e),o=T(t),i=r[0],a=!1;
1return o.filter(Boolean).forEach((function(e){a=ee(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=ee(i,e);t&&(a=!a||t.contains(a)?t:ee(t,a))}))})),a},ne=function(e,t){var n=document&&document.activeElement,r=A(e).filter(Z),o=te(n||e,e,r),i=new Map,a=X(r,i),s=K(r,i).filter((function(e){var t=e.node;return Z(t)}));if(s[0]||(s=a)[0]){var u,c=X([o],i).map((function(e){return e.node})),l=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(z)}(c,s),f=l.map((function(e){return e.node})),d=U(f,c,n,t);if(d===V){var p=a.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(Q(n,t))}),[])}(r,i),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:p&&p.length?I(p):I(f)}}return void 0===d?d:l[d]}},re=0,oe=!1,ie=function(e,t){var n,r=ne(e,t);if(!oe&&r){if(re>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),oe=!0,void setTimeout((function(){oe=!1}),1);re++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.c
1ontentWindow.focus(),re--}};function ae(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var se=function(){return document&&document.activeElement===document.body||document&&P(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},ue=null,ce=null,le=null,fe=!1,de=function(){return!0};function pe(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var he=function(e){return e&&"current"in e?e.current:e},ve=function(){var e,t=!1;if(ue){var n=ue,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||le&&le.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(he).filter(Boolean));if(c&&!function(e){return(ue.whiteList||de)(e)}(c)||(o||(s?Boolean(fe):"meanwhile"===fe)||!se()||!ce&&i)&&(!u||R(l)||(e=c,le&&le.portaledElement===e)||(document&&!ce&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(t=ie(l,ce),le={})),fe=!1,ce=document&&document.activeElement),document){var f=document&&document.activeElement,d=function(e){var t=A(e).filter(Z),n=te(e,e,t),r=new Map,o=K([n],r,!0),i=K(t,r).filter((function(e){var t=e.node;return Z(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:F(t)}}))}(l),p=d.map((function(e){return e.node})).indexOf(f);p>-1&&(d.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),pe(p,d.length,1,d),pe(p,-1,-1,d))}}}return t},me=function(e){ve()&&e&&(e.stopPropagation(),e.preventDefault())},ye=function(){return ae(ve)},ge=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(le={observerNode:n,portaledElement:t})},be=function(){fe="just",setTimeout((function(){fe="meanwhile"}),0)};y.assignSyncMedium(ge),g.assignMedium(ye),b.assignMedium((function(e){return e({moveFocusInside:ie,focusInside:R})}));var _e=O((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!ue&&(document.addEventListener("focusin",me,!0),document.addEventListener("focusout",ye),window.addEventListener("blur",be));var n=ue,r=n&&t&&t.id===n.id;ue=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ce=null,r&&n.observed===t.observed||t.onActivation(),ve(),ae(ve)):(document.removeEventListener("focusin",me,!0),document.removeEventListener("focusout",ye),window.removeEventListener("blur",be),ce=null)}))((function(){return null})),we=o.forwardRef((function(e,t){return o.createElement(k,(0,a.Z)({sideCar:_e,ref:t},e))})),xe=k.propTypes||{};xe.sideCar,(0,i.Z)(xe,["sideCar"]);we.propTypes={};var ke=we,Se=n(15031),Ee=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,r=e.contentRef,i=e.restoreFocus,a=e.children,s=e.isDisabled,u=e.autoFocus,c=e.persistentFocus,l=e.lockFocusAcrossFrames,f=o.useCallback((function(){if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===(0,Se.t5)(r.current).length&&(0,Se.T_)(r.current,{nextTick:!0})}}),[t,r]),d=o.useCallback((function(){var e;null==n||null==(e=n.current)||e.focus()}),[n]),p=i&&!n;return o.createElement(ke,{crossFrame:l,persistentFocus:c,autoFocus:u,disabled:s,onActivation:f,onDeactivation:d,returnFocus:p},a)};Se.Ts&&(Ee.displayName="FocusLock");var Oe=n(46871),Pe=n(5993),Te=n(37496),Ce=n(26450),Ae=n(75814),je=n(21190),Re=n(15947);var Me=function(){return Me=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},Me.apply(this,arguments)};var De="right-scroll-bar-position",Ie="width-before-scroll-bar",Le=m(),Ne=function(){},Be=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:Ne,onWheelCapture:Ne,onTouchMoveCapture:Ne}),i=r[0],a=r[1],s=e.forwardProps,u=e.children,l=e.className,f=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,v=e.noIsolation,m=e.inert,y=e.allowPinchZoom,g=e.as,b=void 0===g?"div"
1:g,_=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,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,x=c([n,t]),k=Me({},_,i);return o.createElement(o.Fragment,null,d&&o.createElement(w,{sideCar:Le,removeScrollBar:f,shards:p,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),s?o.cloneElement(o.Children.only(u),Me({},k,{ref:x})):o.createElement(b,Me({},k,{className:l,ref:x}),u))}));Be.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Be.classNames={fullWidth:Ie,zeroRight:De};var Fe,Ze=function(e){var t=e.sideCar,n=(0,d.__rest)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,(0,d.__assign)({},n))};Ze.isSideCarExport=!0;function ze(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fe||n.nc;return t&&e.setAttribute("nonce",t),e}var Ve=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ze())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ue=function(){var e=function(){var e=Ve();return function(t,n){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},We={left:0,top:0,right:0,gap:0},He=function(e){return parseInt(e||"",10)||0},qe=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return We;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[He(n),He(r),He(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$e=Ue(),Ge=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(De," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Ie," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(De," .").concat(De," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Ie," .").concat(Ie," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Ye=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=o.useMemo((function(){return qe(i)}),[i]);return o.createElement($e,{styles:Ge(a,!t,i,n?"":"!important")})},Ke=function(e,t){var n=t;do{if(Xe(e,n)){var r=Qe(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Xe=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Qe=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Je=!1;if("undefined"!==typeof window)try{var et=Object.defineProperty({},"passive",{get:function(){return Je=!0,!0}});window.addEventListener("test",et,et),window.removeEventListener("test",et,et)}catch(Qt){Je=!1}var tt=!!Je&&{passive:!1},nt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rt=function(e){return[e.deltaX,e.deltaY]},ot=function(e){return e&&"current"in e?e.current:e},it=function(e){return"\n  .block-interactivity-"+e+" {pointer-events: none;}\n  .allow-interactivity-"+e+" {pointer-events: all;}\n"},at=0,st=[];var ut,ct=(ut=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(at++)[0],a=o.useState((function(){return Ue()}))[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+i);var t=[e.lockRef.current].concat((e.shards||[]).map(ot)).filter(
1Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+i)})),function(){document.body.classList.remove("block-interactivity-"+i),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+i)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=nt(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v",d=Ke(f,l);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=Ke(f,l)),!d)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,s=t.contains(a),u=!1,c=i>0,l=0,f=0;do{var d=Qe(e,a),p=d[0],h=d[1]-d[2]-p;(p||h)&&Xe(e,a)&&(l+=h,f+=p),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(o&&0===l||!o&&i>l)||!c&&(o&&0===f||!o&&-i>f))&&(u=!0),u}(p,t,e,"h"===p?u:c,!0)}),[]),c=o.useCallback((function(e){var n=e;if(st.length&&st[st.length-1]===a){var r="deltaY"in n?rt(n):nt(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(ot).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?u(n,i[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),l=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),f=o.useCallback((function(e){n.current=nt(e),r.current=void 0}),[]),d=o.useCallback((function(t){l(t.type,rt(t),t.target,u(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){l(t.type,nt(t),t.target,u(t,e.lockRef.current))}),[]);o.useEffect((function(){return st.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,tt),document.addEventListener("touchmove",c,tt),document.addEventListener("touchstart",f,tt),function(){st=st.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,tt),document.removeEventListener("touchmove",c,tt),document.removeEventListener("touchstart",f,tt)}}),[]);var h=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(a,{styles:it(i)}):null,h?o.createElement(Ye,{gapMode:"margin"}):null)},Le.useMedium(ut),Ze),lt=o.forwardRef((function(e,t){return o.createElement(Be,Me({},e,{ref:t,sideCar:ct}))}));lt.classNames=Be.classNames;var ft=lt,dt=n(97375),pt=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ht=new WeakMap,vt=new WeakMap,mt={},yt=0,gt=function(e){return e&&(e.host||gt(e.parentNode))},bt=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=gt(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);mt[n]||(mt[n]=new WeakMap);var i=mt[n],a=[],s=new Set,u=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var l=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))l(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(ht.get(e)||0)+1,c=(i.get(e)||0)+1;ht.set(e,u),i.set(e,c),a.push(e),1===u&&o&&vt.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return l(t),s.clear(),yt++,function(){a.forEach((function(e){var t=ht.get(e)-1,o=i.get(e)-1;ht.set(e,t),i.set(e,o),t||(vt.has(e)||e.removeAttribute(r),vt.delete(e)),o||e.removeAttribute(n)})),--yt||(ht=new WeakMap,ht=new WeakMap,vt=new WeakMap,mt={})}},_t=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||pt(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),bt(r,o,n,"aria-hidden")):function(){return null}};function wt(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}
1function xt(){return xt=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},xt.apply(this,arguments)}var kt=["preset"],St={slideInBottom:xt({},Te.Xc,{custom:{offsetY:16,reverse:!0}}),slideInRight:xt({},Te.Xc,{custom:{offsetX:16,reverse:!0}}),scale:xt({},Te.Qh,{custom:{initialScale:.95,reverse:!0}}),none:{}},Et=(0,Pe.m$)(Ae.E.section),Ot=o.forwardRef((function(e,t){var n=e.preset,r=wt(e,kt),i=St[n];return o.createElement(Et,xt({ref:t},i,r))})),Pt=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function Tt(e){var t=e.isOpen,n=e.onClose,r=e.id,i=e.closeOnOverlayClick,a=void 0===i||i,s=e.closeOnEsc,u=void 0===s||s,c=e.useInert,l=void 0===c||c,f=e.onOverlayClick,d=e.onEsc,p=(0,o.useRef)(null),h=(0,o.useRef)(null),v=(0,dt.ZS)(r,"chakra-modal","chakra-modal--header","chakra-modal--body"),m=v[0],y=v[1],g=v[2];!function(e,t){var n=e.current;(0,o.useEffect)((function(){if(e.current&&t)return _t(e.current)}),[t,e,n])}(p,t&&l),function(e,t){(0,o.useEffect)((function(){return t&&Pt.add(e),function(){Pt.remove(e)}}),[t,e])}(p,t);var b=(0,o.useRef)(null),_=(0,o.useCallback)((function(e){b.current=e.target}),[]),w=(0,o.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),u&&(null==n||n()),null==d||d())}),[u,n,d]),x=(0,o.useState)(!1),k=x[0],S=x[1],E=(0,o.useState)(!1),O=E[0],P=E[1],T=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xt({role:"dialog"},e,{ref:(0,Ce.lq)(t,p),id:m,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?y:void 0,"aria-describedby":O?g:void 0,onClick:(0,Se.v0)(e.onClick,(function(e){return e.stopPropagation()}))})}),[g,O,m,y,k]),C=(0,o.useCallback)((function(e){e.stopPropagation(),b.current===e.target&&Pt.isTopModal(p)&&(a&&(null==n||n()),null==f||f())}),[n,a,f]),A=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),xt({},e,{ref:(0,Ce.lq)(t,h),onClick:(0,Se.v0)(e.onClick,C),onKeyDown:(0,Se.v0)(e.onKeyDown,w),onMouseDown:(0,Se.v0)(e.onMouseDown,_)})}),[w,_,C]);return{isOpen:t,onClose:n,headerId:y,bodyId:g,setBodyMounted:P,setHeaderMounted:S,dialogRef:p,overlayRef:h,getDialogProps:T,getDialogContainerProps:A}}var Ct=["className","children","containerProps"],At=["className","transition"],jt=["className"],Rt=["className"],Mt=["className"],Dt=["onClick","className"],It=(0,Ce.kr)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Lt=It[0],Nt=It[1],Bt=function(e){var t=e.portalProps,n=e.children,r=e.autoFocus,i=e.trapFocus,a=e.initialFocusRef,s=e.finalFocusRef,u=e.returnFocusOnClose,c=e.blockScrollOnMount,l=e.allowPinchZoom,f=e.preserveScrollBarGap,d=e.motionPreset,p=e.lockFocusAcrossFrames,h=e.onCloseComplete,v=(0,Pe.jC)("Modal",e),m=xt({},Tt(e),{autoFocus:r,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:f,motionPreset:d,lockFocusAcrossFrames:p});return o.createElement(Lt,{value:m},o.createElement(Pe.Fo,{value:v},o.createElement(je.M,{onExitComplete:h},m.isOpen&&o.createElement(Oe.h_,t,n))))};Bt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},Se.Ts&&(Bt.displayName="Modal");var Ft=(0,Pe.m$)(Ae.E.div),Zt=(0,Pe.Gp)((function(e,t){var n=e.className,r=e.children,i=e.containerProps,a=wt(e,Ct),s=Nt(),u=s.getDialogProps,c=s.getDialogContainerProps,l=u(a,t),f=c(i),d=(0,Se.cx)("chakra-modal__content",n),p=(0,Pe.yK)(),h=xt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},p.dialog),v=xt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},p.dialogContainer),m=Nt().motionPreset;return o.createElement(zt,null,o.createElement(Pe.m$.div,xt({},f,{className:"chakra-modal__content-container",tabIndex:-1,__css:v}),o.createElement(Ot,xt({preset:m,className:d},l,{__css:h}),r)))}));
1function zt(e){var t=Nt(),n=t.autoFocus,r=t.trapFocus,i=t.dialogRef,a=t.initialFocusRef,s=t.blockScrollOnMount,u=t.allowPinchZoom,c=t.finalFocusRef,l=t.returnFocusOnClose,f=t.preserveScrollBarGap,d=t.lockFocusAcrossFrames,p=(0,Re.oO)(),h=p[0],v=p[1];return o.useEffect((function(){!h&&v&&setTimeout(v)}),[h,v]),o.createElement(Ee,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:c,restoreFocus:l,contentRef:i,lockFocusAcrossFrames:d},o.createElement(ft,{removeScrollBar:!f,allowPinchZoom:u,enabled:s,forwardProps:!0},e.children))}Se.Ts&&(Zt.displayName="ModalContent");var Vt=(0,Pe.Gp)((function(e,t){var n=e.className;e.transition;var r=wt(e,At),i=(0,Se.cx)("chakra-modal__overlay",n),a=xt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Pe.yK)().overlay),s="none"===Nt().motionPreset?{}:Te.uf;return o.createElement(Ft,xt({},s,{__css:a,ref:t,className:i},r))}));Se.Ts&&(Vt.displayName="ModalOverlay");var Ut=(0,Pe.Gp)((function(e,t){var n=e.className,r=wt(e,jt),i=Nt(),a=i.headerId,s=i.setHeaderMounted;o.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var u=(0,Se.cx)("chakra-modal__header",n),c=xt({flex:0},(0,Pe.yK)().header);return o.createElement(Pe.m$.header,xt({ref:t,className:u,id:a},r,{__css:c}))}));Se.Ts&&(Ut.displayName="ModalHeader");var Wt=(0,Pe.Gp)((function(e,t){var n=e.className,r=wt(e,Rt),i=Nt(),a=i.bodyId,s=i.setBodyMounted;o.useEffect((function(){return s(!0),function(){return s(!1)}}),[s]);var u=(0,Se.cx)("chakra-modal__body",n),c=(0,Pe.yK)();return o.createElement(Pe.m$.div,xt({ref:t,className:u,id:a},r,{__css:c.body}))}));Se.Ts&&(Wt.displayName="ModalBody");var Ht=(0,Pe.Gp)((function(e,t){var n=e.className,r=wt(e,Mt),i=(0,Se.cx)("chakra-modal__footer",n),a=xt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Pe.yK)().footer);return o.createElement(Pe.m$.footer,xt({ref:t},r,{__css:a,className:i}))}));Se.Ts&&(Ht.displayName="ModalFooter");var qt=(0,Pe.Gp)((function(e,t){var n=e.onClick,i=e.className,a=wt(e,Dt),s=Nt().onClose,u=(0,Se.cx)("chakra-modal__close-btn",i),c=(0,Pe.yK)();return o.createElement(r.P,xt({ref:t,__css:c.closeButton,className:u,onClick:(0,Se.v0)(n,(function(e){e.stopPropagation(),s()}))},a))}));Se.Ts&&(qt.displayName="ModalCloseButton");var $t=["className","children"],Gt=(0,Ce.kr)(),Yt=(Gt[0],Gt[1]);var Kt=(0,Pe.m$)(Te.Mi),Xt=(0,Pe.Gp)((function(e,t){var n=e.className,r=e.children,i=wt(e,$t),a=Nt(),s=a.getDialogProps,u=a.getDialogContainerProps,c=a.isOpen,l=s(i,t),f=u(),d=(0,Se.cx)("chakra-modal__content",n),p=(0,Pe.yK)(),h=xt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},p.dialog),v=xt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},p.dialogContainer),m=Yt().placement;return o.createElement(Pe.m$.div,xt({},f,{className:"chakra-modal__content-container",__css:v}),o.createElement(zt,null,o.createElement(Kt,xt({direction:m,in:c,className:d},l,{__css:h}),r)))}));Se.Ts&&(Xt.displayName="DrawerContent")},46871:function(e,t,n){"use strict";n.d(t,{hE:function(){return d},h_:function(){return x}});var r=n(15031),o=n(26450),i=n(67294),a=n(97375),s=n(44697),u=n(73935),c=(0,o.kr)({strict:!1,name:"PortalManagerContext"}),l=c[0],f=c[1];function d(e){var t=e.children,n=e.zIndex;return i.createElement(l,{value:{zIndex:n}},t)}function p(){return 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},p.apply(this,arguments)}r.Ts&&(d.displayName="PortalManager");var h=["containerRef"],v=(0,o.kr)({strict:!1,name:"PortalContext"}),m=v[0],y=v[1],g="chakra-portal",b=function(e){return i.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children)},_=function(e){var t=e.appendToParentPortal,n=e.children,r=i.useRef(null),o=i.useRef(null),c=(0,a.NW)(),l=y(),d=f();(0,s.a)((function(){if(r.current){var e=r.current.ownerDocument,n=t&&null!=l?l:e.body;if(n){o.current=e.createElement("div"),o.current.className=g,n.appendChild(o.current),c();var i=o.current;return function(){n.contains(i)&&n.removeChild(i)}}}}),[]);var p=null!=d&&d.zIndex?i.createElement(b,{zIndex:null==d?void 0:d.zIndex},n):n;return o.current?(0,u.createPortal)(i.createElement(m,{value:o.current},p),o.current):i.createElement("span",{ref:r})},w=function(e){var t=e.children,n=e.containerRef,o=e.appendToParentPortal,c=n.current,l=null!=c?c:r.jU?document.body:void 0,f=i.useMemo((function(){var e=null==c?void 0:c.ownerDocument.createElement("div");return e&&(e.className=g),e}),[c]),d=(0,a.NW)();return(0,s.a)((function(){d()}),[]),(0,s.a)((function(){if(f&&l)return l.appendChild(f),function(){l.removeChild(f)}}),[f,l]),l&&f?(0,u.createPortal)(i.createElement(m,{value:o?f:null},t),f):null};function x(e){var t=e.containerRef,n=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,h);return t?i.createElement(w,p({containerRef:t},n)):i.createElement(_,n)}x.defaultProps={appendToParentPortal:!0},x.className=g,x.selector=".chakra-portal",r.Ts&&(x.displayName="Portal")},85393:function(e,t,n){"use strict";n.d(t,{O:function(){return l},u:function(){return f}});var r=n(15031),o=n(67294),i={body:{classList:{add:function(){},remove:function(){}}},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}}},a=function(){},s={window:{document:i,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:a,removeEventListener:a,getComputedStyle:function(){return{getPropertyValue:function(){return""}}},matchMedia:function(){return{matches:!1,addListener:a,removeListener:a}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:function(){return 0},clearTimeout:a,setInterval:function(){return 0},clearInterval:a},document:i},u=r.jU?{window:window,document:document}:s,c=(0,o.createContext)(u);function l(){return(0,o.useContext)(c)}function f(e){var t=e.children,n=e.environment,r=(0,o.useState)(null),i=r[0],a=r[1],s=(0,o.useMemo)((function(){var e,t=null==i?void 0:i.ownerDocument,r=null==i?void 0:i.ownerDocument.defaultView;return null!=(e=null!=n?n:t?{document:t,window:r}:void 0)?e:u}),[i,n]),l=!i&&!n;return o.createElement(c.Provider,{value:s},t,l&&o.createElement("span",{ref:function(e){e&&a(e)}}))}r.Ts&&(c.displayName="EnvironmentContext"),r.Ts&&(f.displayName="EnvironmentProvider")},26450:function(e,t,n){"use strict";n.d(t,{WR:function(){return u},kr:function(){return s},lq:function(){return a}});var r=n(15031),o=n(67294);function i(e,t){if(null!=e)if((0,r.mf)(e))e(t);else try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){return i(t,e)}))}}function s(e){void 0===e&&(e={});var t=e,n=t.strict,r=void 0===n||n,i=t.errorMessage,a=void 0===i?"useContext: `
1context` is undefined. Seems you forgot to wrap component within the Provider":i,s=t.name,u=o.createContext(void 0);return u.displayName=s,[u.Provider,function e(){var t=o.useContext(u);if(!t&&r){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},u]}function u(e){return o.Children.toArray(e).filter((function(e){return o.isValidElement(e)}))}},63833:function(e,t,n){"use strict";n.d(t,{xjn:function(){return d}});var r=n(70917),o=n(67294),i=function(){return o.createElement(r.xB,{styles:'\n      html {\n        line-height: 1.5;\n        -webkit-text-size-adjust: 100%;\n        font-family: system-ui, sans-serif;\n        -webkit-font-smoothing: antialiased;\n        text-rendering: optimizeLegibility;\n        -moz-osx-font-smoothing: grayscale;\n        touch-action: manipulation;\n      }\n\n      body {\n        position: relative;\n        min-height: 100%;\n        font-feature-settings: \'kern\';\n      }\n\n      *,\n      *::before,\n      *::after {\n        border-width: 0;\n        border-style: solid;\n        box-sizing: border-box;\n      }\n\n      main {\n        display: block;\n      }\n\n      hr {\n        border-top-width: 1px;\n        box-sizing: content-box;\n        height: 0;\n        overflow: visible;\n      }\n\n      pre,\n      code,\n      kbd,\n      samp {\n        font-family: SFMono-Regular,  Menlo, Monaco, Consolas, monospace;\n        font-size: 1em;\n      }\n\n      a {\n        background-color: transparent;\n        color: inherit;\n        text-decoration: inherit;\n      }\n\n      abbr[title] {\n        border-bottom: none;\n        text-decoration: underline;\n        -webkit-text-decoration: underline dotted;\n        text-decoration: underline dotted;\n      }\n\n      b,\n      strong {\n        font-weight: bold;\n      }\n\n      small {\n        font-size: 80%;\n      }\n\n      sub,\n      sup {\n        font-size: 75%;\n        line-height: 0;\n        position: relative;\n        vertical-align: baseline;\n      }\n\n      sub {\n        bottom: -0.25em;\n      }\n\n      sup {\n        top: -0.5em;\n      }\n\n      img {\n        border-style: none;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        font-family: inherit;\n        font-size: 100%;\n        line-height: 1.15;\n        margin: 0;\n      }\n\n      button,\n      input {\n        overflow: visible;\n      }\n\n      button,\n      select {\n        text-transform: none;\n      }\n\n      button::-moz-focus-inner,\n      [type="button"]::-moz-focus-inner,\n      [type="reset"]::-moz-focus-inner,\n      [type="submit"]::-moz-focus-inner {\n        border-style: none;\n        padding: 0;\n      }\n\n      fieldset {\n        padding: 0.35em 0.75em 0.625em;\n      }\n\n      legend {\n        box-sizing: border-box;\n        color: inherit;\n        display: table;\n        max-width: 100%;\n        padding: 0;\n        white-space: normal;\n      }\n\n      progress {\n        vertical-align: baseline;\n      }\n\n      textarea {\n        overflow: auto;\n      }\n\n      [type="checkbox"],\n      [type="radio"] {\n        box-sizing: border-box;\n        padding: 0;\n      }\n\n      [type="number"]::-webkit-inner-spin-button,\n      [type="number"]::-webkit-outer-spin-button {\n        -webkit-appearance: none !important;\n      }\n\n      input[type="number"] {\n        -moz-appearance: textfield;\n      }\n\n      [type="search"] {\n        -webkit-appearance: textfield;\n        outline-offset: -2px;\n      }\n\n      [type="search"]::-webkit-search-decoration {\n        -webkit-appearance: none !important;\n      }\n\n      ::-webkit-file-upload-button {\n        -webkit-appearance: button;\n        font: inherit;\n      }\n\n      details {\n        display: block;\n      }\n\n      summary {\n        display: list-item;\n      }\n\n      template {\n        display: none;\n      }\n\n      [hidden] {\n        display: none !important;\n      }\n\n      body,\n      blockquote,\n      dl,\n      dd,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6,\n      hr,\n      figure,\n      p,\n      pre {\n        margin: 0;\n      }\n\n      button {\n        background: transparent;\n        padding: 0;\n      }\n\n      fieldset {\n        margin: 0;\n        padding: 0;\n      }\n\n      ol,\n      ul {\n        margin: 0;\n        padding: 0;\n      }\n\n      textarea {\n        resize: vertical;\n      }\n\n      button,\n      [role="button"] {\n        cursor: pointer;\n      }\n\n      button::-moz-focus-inner {\n        border: 0 !important;\n      }\n\n      table {\n        border-collapse: collapse;\n      }\n\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6 {\n        font-size: inherit;\n        font-weight: inherit;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        padding: 0;\n        line-height: inherit;\n        color: inherit;\n      }\n\n      img,\n      svg,\n      video,\n      canvas,\n      audio,\n      iframe,\n      embed,\n      object {\n        display: block;\n      }\n\n      img,\n      video {\n        max-width: 100%;\n        height: auto;\n      }\n\n      [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n        outline: none;\n        box-shadow: none;\n      }\n\n      select::-ms-expand {\n        display: none;\n      }\n    '})},a=n(46871),s=n(5993),u=n(20949),c=n(85393),l=n(97375),f=n(45485),d=function(e){var t=e.children,n=e.colorModeManager,r=e.portalZIndex,f=e.resetCSS,d=void 0===f||f,p=e.theme,h=void 0===p?{}:p,v=e.environment,m=e.cssVarsRoot,y=o.createElement(c.u,{environment:v},t);return o.createElement(l.vc,null,o.createElement(s.f6,{theme:h,cssVarsRoot:m},o.createElement(u.SG,{colorModeManager:n,options:h.config},d&&o.createElement(i,null),o.createElement(s.ZL,null),r?o.createElement(a.hE,{zIndex:r},y):y)))};d.defaultProps={theme:f.rS}},80918:function(e,t,n){"use strict";n.d(t,{Ms:function(){return Z},Uj:function(){return F},gs:function(){return B},iR:function(){return N}});var r=n(26450),o=n(5993),i=n(15031),a=n(27642),s=n(67294),u=n(44697),c=n(97375);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)}function f(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}function d(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return"vertical"===t?n:r}var p={width:0,height:0};function h(e){var t=e.orientation,n=e.thumbPercents,r=e.thumbRects,o=e.isReversed,i="vertical"===t?r.reduce((function(e,t){return e.height>t.height?e:t}),p):r.reduce((function(e,t){return e.width>t.width?e:t}),p),a=l({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},d({orientation:t,vertical:{paddingLeft:i.width/2,paddingRight:i.width/2},horizontal:{paddingTop:i.height/2,paddingBottom:i.height/2}})),s=l({position:"absolute"},d({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})),u=1===n.length,c=[0,o?100-n[0]:n[0]],f=u?c:n,h=f[0];!u&&o&&(h=100-h);var v=Math.abs(f[f.length-1]-f[0]);return{trackStyle:s,innerTrackStyle:l({},s,d({orientation:t,vertical:o?{height:v+"%",top:h+"%"}:{height:v+"%",bottom:h+"%"},horizontal:o?{width:v+"%",right:h+"%"}:{width:v+"%",left:h+"%"}})),rootStyle:a,getThumbStyle:function(e){return l({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},d({orientation:t,vertical:{bottom:"calc("+n[e]+"% - "+r[e].height/2+"px)"},horizontal:{left:"calc("+n[e]+"% - "+r[e].width/2+"px)"}}))}}}function v(e){var t=e.isReversed,n=e.direction,r=e.orientation;return"ltr"===n||"vertical"===r?t:!t}var m=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange","minStepsBetweenThumbs"],y=["index"],g=["value"],b=["index"];function _(e){var t=e.min,n=void 0===t?0:t,o=e.max,a=void 0===o?100:o,p=e.onChange,_=e.value,x=e.defaultValue,k=e.isReversed,S=e.direction,E=void 0===S?"ltr":S,O=e.orientation,P=void 0===O?"horizontal":O,T=e.id,C=e.isDisabled,A=e.isReadOnly,j=e.onCh
1angeStart,R=e.onChangeEnd,M=e.step,D=void 0===M?1:M,I=e.getAriaValueText,L=e["aria-valuetext"],N=e["aria-label"],B=e["aria-labelledby"],F=e.name,Z=e.focusThumbOnChange,z=void 0===Z||Z,V=e.minStepsBetweenThumbs,U=void 0===V?0:V,W=f(e,m),H=(0,u.u)(j),q=(0,u.u)(R),$=(0,u.u)(I),G=v({isReversed:k,direction:E,orientation:P}),Y=(0,c.Tx)({value:_,defaultValue:null!=x?x:[25,75],onChange:p}),K=Y[0],X=Y[1];if(!Array.isArray(K))throw new TypeError("[range-slider] You passed an invalid value for `value` or `defaultValue`, expected `Array` but got `"+typeof K+"`");var Q=(0,c.kt)(),J=Q[0],ee=Q[1],te=(0,c.kt)(),ne=te[0],re=te[1],oe=(0,s.useState)(-1),ie=oe[0],ae=oe[1],se=(0,s.useRef)(null),ue=!(C||A),ce=(0,s.useRef)(K),le=K.map((function(e){return(0,i.HU)(e,n,a)})),fe=(0,c.II)(le),de=w(le,n,a,U*D),pe=le.map((function(e){return a-e+n})),he=(G?pe:le).map((function(e){return(0,i.Rg)(e,n,a)})),ve="vertical"===P,me=(0,s.useState)(Array.from({length:le.length}).map((function(){return{width:0,height:0}}))),ye=me[0],ge=me[1];(0,s.useEffect)((function(){var e;if(we.current){var t=Array.from(null==(e=we.current)?void 0:e.querySelectorAll("[role=slider]")).map((function(e){return{width:e.offsetWidth,height:e.offsetHeight}}));t.length&&ge(t)}}),[]);var be,_e=(0,s.useRef)(null),we=(0,s.useRef)(null),xe=(0,c.Me)(T),ke={root:"slider-root-"+(be=xe),getThumb:function(e){return"slider-thumb-"+be+"-"+e},getInput:function(e){return"slider-input-"+be+"-"+e},track:"slider-track-"+be,innerTrack:"slider-filled-track-"+be,getMarker:function(e){return"slider-marker-"+be+"-"+e},output:"slider-output-"+be},Se=(0,s.useCallback)((function(e){var t,r;if(_e.current){se.current="pointer";var o=_e.current.getBoundingClientRect(),s=null!=(t=null==(r=e.touches)?void 0:r[0])?t:e,u=s.clientX,c=s.clientY,l=(ve?o.bottom-c:u-o.left)/(ve?o.height:o.width);return G&&(l=1-l),(0,i.WS)(l,n,a)}}),[ve,G,a,n]),Ee=(a-n)/10,Oe=D||(a-n)/100,Pe=(0,s.useMemo)((function(){return{setValueAtIndex:function(e,t){if(ue){var n=de[e];t=parseFloat((0,i.WP)(t,n.min,Oe)),t=(0,i.HU)(t,n.min,n.max);var r=[].concat(le);r[e]=t,X(r)}},setActiveIndex:ae,stepUp:function(e,t){void 0===t&&(t=Oe);var n=le[e],r=G?n-t:n+t;Pe.setValueAtIndex(e,r)},stepDown:function(e,t){void 0===t&&(t=Oe);var n=le[e],r=G?n+t:n-t;Pe.setValueAtIndex(e,r)},reset:function(){return X(ce.current)}}}),[Oe,le,G,X,ue,de]),Te=(0,s.useCallback)((function(e){var t={ArrowRight:function(){return Pe.stepUp(ie)},ArrowUp:function(){return Pe.stepUp(ie)},ArrowLeft:function(){return Pe.stepDown(ie)},ArrowDown:function(){return Pe.stepDown(ie)},PageUp:function(){return Pe.stepUp(ie,Ee)},PageDown:function(){return Pe.stepDown(ie,Ee)},Home:function(){var e=de[ie].min;Pe.setValueAtIndex(ie,e)},End:function(){var e=de[ie].max;Pe.setValueAtIndex(ie,e)}},n=t[(0,i.uh)(e)];n&&(e.preventDefault(),e.stopPropagation(),n(e),se.current="keyboard")}),[Pe,ie,Ee,de]),Ce=(0,s.useMemo)((function(){return h({isReversed:G,orientation:P,thumbRects:ye,thumbPercents:he})}),[G,P,he,ye]),Ae=Ce.getThumbStyle,je=Ce.rootStyle,Re=Ce.trackStyle,Me=Ce.innerTrackStyle,De=(0,s.useCallback)((function(e){var t=null!=e?e:ie;if(-1!==t&&z){var n,r=ke.getThumb(t),o=null==(n=we.current)?void 0:n.ownerDocument.getElementById(r);o&&setTimeout((function(){return(0,i.T_)(o)}))}}),[z,ie,ke]);(0,c.rf)((function(){"keyboard"===se.current&&(null==q||q(fe.current))}),[le,q]);(0,c.PO)(we,{onPanSessionStart:function(e){ue&&(ee.on(),function(e){var t=Se(e)||0,n=le.map((function(e){return Math.abs(e-t)})),r=Math.min.apply(Math,n),o=n.indexOf(r),i=n.filter((function(e){return e===r}));i.length>1&&t>le[o]&&(o=o+i.length-1),ae(o),Pe.setValueAtIndex(o,t),De(o)}(e),null==H||H(fe.current))},onPanSessionEnd:function(){ue&&(ee.off(),null==q||q(fe.current))},onPan:function(e){ue&&function(e){if(-1!=ie){var t=Se(e)||0;ae(ie),Pe.setValueAtIndex(ie,t),De(ie)}}(e)}});var Ie=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,W,{id:ke.root,ref:(0,r.lq)(t,we),tabIndex:-1,"aria-disabled":(0,i.Qm)(C),"data-focused":(0,i.PB)(ne),style:l({},e.style,je)})}),[W,C,ne,je,ke]),Le=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,_e),id:ke.track,"data-disabled":(0,i.PB)(C),style:l({},e.style,Re)})}),[C,Re,ke]),Ne=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,id:ke.innerTrack,style:l({},e.style,Me)})}),[Me,ke]),Be=(0,s.useCallback)((function(e,t){var n;void 0===t&&(t=null);var r=e.index,o=f(e,y),a=le[r];if(null==a)throw new TypeError("[range-slider > thumb] Cannot find value at index `"+r+"`. The `value` or `defaultValue` length is : "+le.length);var s=de[r];return l({},o,{ref:t,role:"slider",tabIndex:ue?0:void 0,id:ke.getThumb(r),"data-active":(0,i.PB)(J&&ie===r),"aria-valuetext":null!=(n=null==$?void 0:$(a))?n:null==L?void 0:L[r],"aria-valuemin":s.min,"aria-valuemax":s.max,"aria-valuenow":a,"aria-orientation":P,"aria-disabled":(0,i.Qm)(C),"aria-readonly":(0,i.Qm)(A),"aria-label":null==N?void 0:N[r],"aria-labelledby":null!=N&&N[r]||null==B?void 0:B[r],style:l({},e.style,Ae(r)),onKeyDown:(0,i.v0)(e.onKeyDown,Te),onFocus:(0,i.v0)(e.onFocus,(function(){re.on(),ae(r)})),onBlur:(0,i.v0)(e.onBlur,(function(){re.off(),ae(-1)}))})}),[ke,le,de,ue,J,ie,$,L,P,C,A,N,B,Ae,Te,re]),Fe=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,id:ke.output,htmlFor:le.map((function(e,t){return ke.getThumb(t)})).join(" "),"aria-live":"off"})}),[ke,le]),Ze=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var r=e,o=r.value,s=f(r,g),u=!(o<n||o>a),c=o>=le[0]&&o<=le[le.length-1],p=(0,i.Rg)(o,n,a),h=l({position:"absolute",pointerEvents:"none"},d({orientation:P,vertical:{bottom:(p=G?100-p:p)+"%"},horizontal:{left:p+"%"}}));return l({},s,{ref:t,id:ke.getMarker(e.value),role:"presentation","aria-hidden":!0,"data-disabled":(0,i.PB)(C),"data-invalid":(0,i.PB)(!u),"data-highlighted":(0,i.PB)(c),style:l({},e.style,h)})}),[C,G,a,n,P,le,ke]),ze=(0,s.useCallback)((function(e,t){void 0===t&&(t=null);var n=e.index;return l({},f(e,b),{ref:t,id:ke.getInput(n),type:"hidden",value:le[n],name:Array.isArray(F)?F[n]:F+"-"+n})}),[F,le,ke]);return{state:{value:le,isFocused:ne,isDragging:J,getThumbPercent:function(e){return he[e]},getThumbMinValue:function(e){return de[e].min},getThumbMaxValue:function(e){return de[e].max}},actions:Pe,getRootProps:Ie,getTrackProps:Le,getInnerTrackProps:Ne,getThumbProps:Be,getMarkerProps:Ze,getInputProps:ze,getOutputProps:Fe}}var w=function(e,t,n,r){return e.map((function(o,i){return{min:0===i?t:e[i-1]+r,max:i===e.length-1?n:e[i+1]-r}}))},x=["getRootProps"],k=(0,r.kr)({name:"SliderContext",errorMessage:"useSliderContext: `
1context` is undefined. Seems you forgot to wrap all slider components within <RangeSlider />"}),S=k[0],E=k[1],O=(0,o.Gp)((function(e,t){var n=(0,o.jC)("Slider",e),r=(0,o.Lr)(e),i=(0,o.Fg)().direction;r.direction=i;var a=_(r),u=a.getRootProps,c=f(a,x),d=s.useMemo((function(){return l({},c,{name:e.name})}),[c,e.name]);return s.createElement(S,{value:d},s.createElement(o.Fo,{value:n},s.createElement(o.m$.div,l({},u({},t),{className:"chakra-slider",__css:n.container}),e.children)))}));O.defaultProps={orientation:"horizontal"},i.Ts&&(O.displayName="RangeSlider");var P=(0,o.Gp)((function(e,t){var n=E(),r=n.getThumbProps,a=n.getInputProps,u=n.name,c=(0,o.yK)(),f=r(e,t);return s.createElement(o.m$.div,l({},f,{className:(0,i.cx)("chakra-slider__thumb",e.className),__css:c.thumb}),f.children,u&&s.createElement("input",a({index:e.index})))}));i.Ts&&(P.displayName="RangeSliderThumb");var T=(0,o.Gp)((function(e,t){var n=E().getTrackProps,r=(0,o.yK)(),a=n(e,t);return s.createElement(o.m$.div,l({},a,{className:(0,i.cx)("chakra-slider__track",e.className),__css:r.track,"data-testid":"chakra-range-slider-track"}))}));i.Ts&&(T.displayName="RangeSliderTrack");var C=(0,o.Gp)((function(e,t){var n=E().getInnerTrackProps,r=(0,o.yK)(),i=n(e,t);return s.createElement(o.m$.div,l({},i,{className:"chakra-slider__filled-track",__css:r.filledTrack}))}));i.Ts&&(C.displayName="RangeSliderFilledTrack");var A=(0,o.Gp)((function(e,t){var n=(0,E().getMarkerProps)(e,t);return s.createElement(o.m$.div,l({},n,{className:(0,i.cx)("chakra-slider__marker",e.className)}))}));i.Ts&&(A.displayName="RangeSliderMark");var j=["min","max","onChange","value","defaultValue","isReversed","direction","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"];function R(e,t){return t<e?e:e+(t-e)/2}var M=["getInputProps","getRootProps"],D=(0,r.kr)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <Slider />"}),I=D[0],L=D[1],N=(0,o.Gp)((function(e,t){var n=(0,o.jC)("Slider",e),d=(0,o.Lr)(e),p=(0,o.Fg)().direction;d.direction=p;var m=function(e){var t,n=e.min,o=void 0===n?0:n,d=e.max,p=void 0===d?100:d,m=e.onChange,y=e.value,g=e.defaultValue,b=e.isReversed,_=e.direction,w=void 0===_?"ltr":_,x=e.orientation,k=void 0===x?"horizontal":x,S=e.id,E=e.isDisabled,O=e.isReadOnly,P=e.onChangeStart,T=e.onChangeEnd,C=e.step,A=void 0===C?1:C,M=e.getAriaValueText,D=e["aria-valuetext"],I=e["aria-label"],L=e["aria-labelledby"],N=e.name,B=e.focusThumbOnChange,F=void 0===B||B,Z=f(e,j),z=(0,u.u)(P),V=(0,u.u)(T),U=(0,u.u)(M),W=v({isReversed:b,direction:w,orientation:k}),H=(0,c.Tx)({value:y,defaultValue:null!=g?g:R(o,p),onChange:m}),q=H[0],$=H[1],G=(0,c.kt)(),Y=G[0],K=G[1],X=(0,c.kt)(),Q=X[0],J=X[1],ee=(0,s.useRef)(null),te=!(E||O),ne=(0,i.HU)(q,o,p),re=(0,c.II)(ne),oe=(0,s.useRef)(re.current),ie=W?p-ne+o:ne,ae=(0,i.Rg)(ie,o,p),se="vertical"===k,ue=(0,s.useRef)(null),ce=(0,s.useRef)(null),le=(0,s.useRef)(null),fe=(0,c.ZS)(S,"slider-thumb","slider-track"),de=fe[0],pe=fe[1],he=(0,s.useCallback)((function(e){var t,n;if(ue.current){ee.current="pointer";var r=(0,a.iz)(ue.current).borderBox,s=null!=(t=null==(n=e.touches)?void 0:n[0])?t:e,u=s.clientX,c=s.clientY,l=(se?r.bottom-c:u-r.left)/(se?r.height:r.width);W&&(l=1-l);var f=(0,i.WS)(l,o,p);return A&&(f=parseFloat((0,i.WP)(f,o,A))),(0,i.HU)(f,o,p)}}),[se,W,p,o,A]),ve=(p-o)/10,me=A||(p-o)/100,ye=(0,s.useCallback)((function(e){te&&(e=parseFloat((0,i.WP)(e,o,me)),e=(0,i.HU)(e,o,p),$(e))}),[me,p,o,$,te]),ge=(0,s.useMemo)((function(){return{stepUp:function(e){void 0===e&&(e=me),ye(W?ne-e:ne+e)},stepDown:function(e){void 0===e&&(e=me),ye(W?ne+e:ne-e)},reset:function(){return ye(g||0)},stepTo:function(e){return ye(e)}}}),[ye,W,ne,me,g]),be=(0,s.useCallback)((function(e){var t={ArrowRight:function(){return ge.stepUp()},ArrowUp:function(){return ge.stepUp()},ArrowLeft:function(){return ge.stepDown()},ArrowDown:function(){return ge.stepDown()},PageUp:function(){return ge.stepUp(ve)},PageDown:function(){return ge.stepDown(ve)},Home:function(){return ye(o)},End:function(){return ye(p)}}[(0,i.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),ee.current="keyboard")}),[ge,ye,p,o,ve]),_e=null!=(t=null==U?void 0:U(ne))?t:D,we=(0,c.Di)(ce),xe=(0,s.useMemo)((function(){var e,t=null!=(e=null==we?void 0:we.borderBox)?e:{width:0,height:0};return h({isReversed:W,orientation:k,thumbRects:[t],thumbPercents:[ae]})}),[W,k,null==we?void 0:we.borderBox,ae]),ke=xe.getThumbStyle,Se=xe.rootStyle,Ee=xe.trackStyle,Oe=xe.innerTrackStyle,Pe=(0,s.useCallback)((function(){ce.current&&F&&setTimeout((function(){return(0,i.T_)(ce.current)}))}),[F]);(0,c.rf)((function(){Pe(),"keyboard"===ee.current&&(null==V||V(re.current))}),[ne,V]);var Te=function(e){var t=he(e);null!=t&&t!==re.current&&$(t)};(0,c.PO)(le,{onPanSessionStart:function(e){te&&(K.on(),Pe(),Te(e),null==z||z(re.current))},onPanSessionEnd:function(){te&&(K.off(),null==V||V(re.current),oe.current=re.current)},onPan:function(e){te&&Te(e)}});var Ce=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,Z,{ref:(0,r.lq)(t,le),tabIndex:-1,"aria-disabled":(0,i.Qm)(E),"data-focused":(0,i.PB)(Q),style:l({},e.style,Se)}
1)}),[Z,E,Q,Se]),Ae=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,ue),id:pe,"data-disabled":(0,i.PB)(E),style:l({},e.style,Ee)})}),[E,pe,Ee]),je=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,style:l({},e.style,Oe)})}),[Oe]),Re=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:(0,r.lq)(t,ce),role:"slider",tabIndex:te?0:void 0,id:de,"data-active":(0,i.PB)(Y),"aria-valuetext":_e,"aria-valuemin":o,"aria-valuemax":p,"aria-valuenow":ne,"aria-orientation":k,"aria-disabled":(0,i.Qm)(E),"aria-readonly":(0,i.Qm)(O),"aria-label":I,"aria-labelledby":I?void 0:L,style:l({},e.style,ke(0)),onKeyDown:(0,i.v0)(e.onKeyDown,be),onFocus:(0,i.v0)(e.onFocus,J.on),onBlur:(0,i.v0)(e.onBlur,J.off)})}),[te,de,Y,_e,o,p,ne,k,E,O,I,L,ke,be,J.on,J.off]),Me=(0,s.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=!(e.value<o||e.value>p),r=ne>=e.value,a=(0,i.Rg)(e.value,o,p),s=l({position:"absolute",pointerEvents:"none"},function(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return"vertical"===t?n:r}({orientation:k,vertical:{bottom:W?100-a+"%":a+"%"},horizontal:{left:W?100-a+"%":a+"%"}}));return l({},e,{ref:t,role:"presentation","aria-hidden":!0,"data-disabled":(0,i.PB)(E),"data-invalid":(0,i.PB)(!n),"data-highlighted":(0,i.PB)(r),style:l({},e.style,s)})}),[E,W,p,o,k,ne]),De=(0,s.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),l({},e,{ref:t,type:"hidden",value:ne,name:N})}),[N,ne]);return{state:{value:ne,isFocused:Q,isDragging:Y},actions:ge,getRootProps:Ce,getTrackProps:Ae,getInnerTrackProps:je,getThumbProps:Re,getMarkerProps:Me,getInputProps:De}}(d),y=m.getInputProps,g=m.getRootProps,b=f(m,M),_=g(),w=y({},t);return s.createElement(I,{value:b},s.createElement(o.Fo,{value:n},s.createElement(o.m$.div,l({},_,{className:(0,i.cx)("chakra-slider",e.className),__css:n.container}),e.children,s.createElement("input",w))))}));N.defaultProps={orientation:"horizontal"},i.Ts&&(N.displayName="Slider");var B=(0,o.Gp)((function(e,t){var n=L().getThumbProps,r=(0,o.yK)(),a=n(e,t);return s.createElement(o.m$.div,l({},a,{className:(0,i.cx)("chakra-slider__thumb",e.className),__css:r.thumb}))}));i.Ts&&(B.displayName="SliderThumb");var F=(0,o.Gp)((function(e,t){var n=L().getTrackProps,r=(0,o.yK)(),a=n(e,t);return s.createElement(o.m$.div,l({},a,{className:(0,i.cx)("chakra-slider__track",e.className),__css:r.track}))}));i.Ts&&(F.displayName="SliderTrack");var Z=(0,o.Gp)((function(e,t){var n=L().getInnerTrackProps,r=(0,o.yK)(),a=n(e,t);return s.createElement(o.m$.div,l({},a,{className:(0,i.cx)("chakra-slider__filled-track",e.className),__css:r.filledTrack}))}));i.Ts&&(Z.displayName="SliderFilledTrack");var z=(0,o.Gp)((function(e,t){var n=(0,L().getMarkerProps)(e,t);return s.createElement(o.m$.div,l({},n,{className:(0,i.cx)("chakra-slider__marker",e.className)}))}));i.Ts&&(z.displayName="SliderMark")},94244:function(e,t,n){"use strict";n.d(t,{ZR:function(){return be},c0:function(){return ze},cC:function(){return ye},fr:function(){return s},iv:function(){return ke}});var r=n(15031),o=n(38554),i=n.n(o);function a(){return a=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},a.apply(this,arguments)}var s=function(e,t){return function(n){var o=String(t),i=e?e+"."+o:o;return(0,r.Kn)(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t}};function u(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,o){var i,a=s(t,e)(o),u=null!=(i=null==n?void 0:n(a,o))?i:a;return r&&(u=r(u,o)),u}}function c(e,t){return function(n){var r={property:n,scale:e};return r.transform=u({scale:e,transform:t}),r}}var l,f,d=function(e){var t=e.rtl,n=e.ltr;return function(e){return"rtl"===e.direction?t:n}};var p=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var h={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},v={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};
1var m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},y="& > :not(style) ~ :not(style)",g=((l={})[y]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},l),b=((f={})[y]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},f);function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(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)}function x(){x=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=new RegExp(e,r);return t.set(i,o||t.get(e)),_(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return w(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"===typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"===typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!==typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},x.apply(this,arguments)}var k={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},S=new Set(Object.values(k)),E=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),O=function(e){return e.trim()};var P=function(e){return(0,r.HD)(e)&&e.includes("(")&&e.includes(")")},T=function(e){return function(t){return e+"("+t+")"}},C={filter:function(e){return"auto"!==e?e:h},backdropFilter:function(e){return"auto"!==e?e:v},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(C.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(p).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(p).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||(0,r.hj)(e)?e+"px":e},fraction:function(e){return!(0,r.hj)(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,r.FS)(e)||null==e)return e;var t=(0,r.HD)(e)&&!e.endsWith("deg");return(0,r.hj)(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||E.has(e))return e;var o=null!=(n=null==(r=x(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},i=o.type,a=o.values;if(!i||!a)return e;var s=i.includes("-gradient")?i:i+"-gradient",u=a.split(",").map(O).filter(Boolean),c=u[0],l=u.slice(1);if(0===(null==l?void 0:l.length))return e;var f=c in k?k[c]:c;l.unshift(f);var d=l.map((function(e){if(S.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=r[0],i=r[1],a=P(i)?i:i&&i.split(" "),s="colors."+o,u=s in t.__cssMap?t.__cssMap[s].varRef:o;return a?[u].concat(Array.isArray(a)?a:[a]).join(" "):u}));return s+"("+d.join(", ")+")"}(e,null!=t?t:{})},blur:T("blur"),opacity:T("opacity"),brightness:T("brightness"),contrast:T("contrast"),dropShadow:T("drop-shadow"),grayscale:T("grayscale"),hueRotate:T("hue-rotate"),invert:T("invert"),saturate:T("saturate"),sepia:T("sepia"),bgImage:function(e){return null==e||P(e)||E.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);
1return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=m[e])?t:{},r=n.space,o=n.divide,i={flexDirection:e};return r&&(i[r]=1),o&&(i[o]=1),i}},A={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),radii:c("radii",C.px),space:c("space",C.px),spaceT:c("space",C.px),degreeT:function(e){return{property:e,transform:C.degree}},prop:function(e,t,n){return a({property:e,scale:t},t&&{transform:u({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:c("sizes",C.px),sizesT:c("sizes",C.fraction),shadows:c("shadows"),logical:function(e){var t=e.property,n=e.scale,r=e.transform;return{scale:n,property:d(t),transform:n?u({scale:n,compose:r}):r}},blur:c("blur",C.blur)},j={background:A.colors("background"),backgroundColor:A.colors("backgroundColor"),backgroundImage:A.propT("backgroundImage",C.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:C.bgClip},bgSize:A.prop("backgroundSize"),bgPosition:A.prop("backgroundPosition"),bg:A.colors("background"),bgColor:A.colors("backgroundColor"),bgPos:A.prop("backgroundPosition"),bgRepeat:A.prop("backgroundRepeat"),bgAttachment:A.prop("backgroundAttachment"),bgGradient:A.propT("backgroundImage",C.gradient),bgClip:{transform:C.bgClip}};Object.assign(j,{bgImage:j.backgroundImage,bgImg:j.backgroundImage});var R={border:A.borders("border"),borderWidth:A.borderWidths("borderWidth"),borderStyle:A.borderStyles("borderStyle"),borderColor:A.colors("borderColor"),borderRadius:A.radii("borderRadius"),borderTop:A.borders("borderTop"),borderBlockStart:A.borders("borderBlockStart"),borderTopLeftRadius:A.radii("borderTopLeftRadius"),borderStartStartRadius:A.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:A.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:A.radii("borderTopRightRadius"),borderStartEndRadius:A.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:A.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:A.borders("borderRight"),borderInlineEnd:A.borders("borderInlineEnd"),borderBottom:A.borders("borderBottom"),borderBlockEnd:A.borders("borderBlockEnd"),borderBottomLeftRadius:A.radii("borderBottomLeftRadius"),borderBottomRightRadius:A.radii("borderBottomRightRadius"),borderLeft:A.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:A.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:A.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:A.borders(["borderLeft","borderRight"]),borderInline:A.borders("borderInline"),borderY:A.borders(["borderTop","borderBottom"]),borderBlock:A.borders("borderBlock"),borderTopWidth:A.borderWidths("borderTopWidth"),borderBlockStartWidth:A.borderWidths("borderBlockStartWidth"),borderTopColor:A.colors("borderTopColor"),borderBlockStartColor:A.colors("borderBlockStartColor"),borderTopStyle:A.borderStyles("borderTopStyle"),borderBlockStartStyle:A.borderStyles("borderBlockStartStyle"),borderBottomWidth:A.borderWidths("borderBottomWidth"),borderBlockEndWidth:A.borderWidths("borderBlockEndWidth"),borderBottomColor:A.colors("borderBottomColor"),borderBlockEndColor:A.colors("borderBlockEndColor"),borderBottomStyle:A.borderStyles("borderBottomStyle"),borderBlockEndStyle:A.borderStyles("borderBlockEndStyle"),borderLeftWidth:A.borderWidths("borderLeftWidth"),borderInlineStartWidth:A.borderWidths("borderInlineStartWidth"),borderLeftColor:A.colors("borderLeftColor"),borderInlineStartColor:A.colors("borderInlineStartColor"),borderLeftStyle:A.borderStyles("borderLeftStyle"),borderInlineStartStyle:A.borderStyles("borderInlineStartStyle"),borderRightWidth:A.borderWidths("borderRightWidth"),borderInlineEndWidth:A.borderWidths("borderInlineEndWidth"),borderRightColor:A.colors("borderRightColor"),borderInlineEndColor:A.colors("borderInlineEndColor"),borderRightStyle:A.borderStyles("borderRightStyle"),borderInlineEndStyle:A.borderStyles("borderInlineEndStyle"),borderTopRadius:A.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:A.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:A.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:A.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(R,{rounded:R.borderRadius,roundedTop:R.borderTopRadius,roundedTopLeft:R.borderTopLeftRadius,roundedTopRight:R.borderTopRightRadius,roundedTopStart:R.borderStartStartRadius,roundedTopEnd:R.borderStartEndRadius,roundedBottom:R.borderBottomRadius,roundedBottomLeft:R.borderBottomLeftRadius,roundedBottomRight:R.borderBottomRightRadius,roundedBottomStart:R.borderEndStartRadius,roundedBottomEnd:R.borderEndEndRadius,roundedLeft:R.borderLeftRadius,roundedRight:R.borderRightRadius,roundedStart:R.borderInlineStartRadius,roundedEnd:R.borderInlineEndRadius,borderStart:R.borderInlineStart,borderEnd:R.borderInlineEnd,borderTopStartRadius:R.borderStartStartRadius,borderTopEndRadius:R.borderStartEndRadius,borderBottomStartRadius:R.borderEndStartRadius,borderBottomEndRadius:R.borderEndEndRadius,borderStartRadius:R.borderInlineStartRadius,borderEndRadius:R.borderInlineEndRadius,borderStartWidth:R.borderInlineStartWidth,borderEndWidth:R.borderInlineEndWidth,borderStartColor:R.borderInlineStartColor,borderEndColor:R.borderInlineEndColor,borderStartStyle:R.borderInlineStartStyle,borderEndStyle:R.borderInlineEndStyle});var M={color:A.colors("color"),textColor:A.colors("color"),fill:A.colors("fill"),stroke:A.colors("stroke")}
1,D={boxShadow:A.shadows("boxShadow"),mixBlendMode:!0,blendMode:A.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:A.prop("backgroundBlendMode"),opacity:!0};Object.assign(D,{shadow:D.boxShadow});var I={filter:{transform:C.filter},blur:A.blur("--chakra-blur"),brightness:A.propT("--chakra-brightness",C.brightness),contrast:A.propT("--chakra-contrast",C.contrast),hueRotate:A.degreeT("--chakra-hue-rotate"),invert:A.propT("--chakra-invert",C.invert),saturate:A.propT("--chakra-saturate",C.saturate),dropShadow:A.propT("--chakra-drop-shadow",C.dropShadow),backdropFilter:{transform:C.backdropFilter},backdropBlur:A.blur("--chakra-backdrop-blur"),backdropBrightness:A.propT("--chakra-backdrop-brightness",C.brightness),backdropContrast:A.propT("--chakra-backdrop-contrast",C.contrast),backdropHueRotate:A.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:A.propT("--chakra-backdrop-invert",C.invert),backdropSaturate:A.propT("--chakra-backdrop-saturate",C.saturate)},L={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:C.flexDirection},experimental_spaceX:{static:g,transform:u({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:b,transform:u({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:A.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:A.space("gap"),rowGap:A.space("rowGap"),columnGap:A.space("columnGap")};Object.assign(L,{flexDir:L.flexDirection});var N={gridGap:A.space("gridGap"),gridColumnGap:A.space("gridColumnGap"),gridRowGap:A.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},B={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:C.outline},outlineOffset:!0,outlineColor:A.colors("outlineColor")},F={width:A.sizesT("width"),inlineSize:A.sizesT("inlineSize"),height:A.sizes("height"),blockSize:A.sizes("blockSize"),boxSize:A.sizes(["width","height"]),minWidth:A.sizes("minWidth"),minInlineSize:A.sizes("minInlineSize"),minHeight:A.sizes("minHeight"),minBlockSize:A.sizes("minBlockSize"),maxWidth:A.sizes("maxWidth"),maxInlineSize:A.sizes("maxInlineSize"),maxHeight:A.sizes("maxHeight"),maxBlockSize:A.sizes("maxBlockSize"),d:A.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:A.propT("float",C.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(F,{w:F.width,h:F.height,minW:F.minWidth,maxW:F.maxWidth,minH:F.minHeight,maxH:F.maxHeight,overscroll:F.overscrollBehavior,overscrollX:F.overscrollBehaviorX,overscrollY:F.overscrollBehaviorY});var Z={listStyleType:!0,listStylePosition:!0,listStylePos:A.prop("listStylePosition"),listStyleImage:!0,listStyleImg:A.prop("listStyleImage")},z={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},V={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},U=function(e,t,n){var o={},i=(0,r.Wf)(e,t,{});for(var a in i){a in n&&null!=n[a]||(o[a]=i[a])}return o},W={srOnly:{transform:function(e){return!0===e?z:"focusable"===e?V:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return U(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return U(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return U(t,e,n)}}},H={position:!0,pos:A.prop("position"),zIndex:A.prop("zIndex","zIndices"),inset:A.spaceT("inset"),insetX:A.spaceT(["left","right"]),insetInline:A.spaceT("insetInline"),insetY:A.spaceT(["top","bottom"]),insetBlock:A.spaceT("insetBlock"),top:A.spaceT("top"),insetBlockStart:A.spaceT("insetBlockStart"),bottom:A.spaceT("bottom"),insetBlockEnd:A.spaceT("insetBlockEnd"),left:A.spaceT("left"),insetInlineStart:A.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:A.spaceT("right"),insetInlineEnd:A.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(H,{insetStart:H.insetInlineStart,insetEnd:H.insetInlineEnd});var q={ring:{transform:C.ring},ringColor:A.colors("--chakra-ring-color"),ringOffset:A.prop("--chakra-ring-offset-width"),ringOffsetColor:A.colors("--chakra-ring-offset-color"),ringInset:A.prop("--chakra-ring-inset")},$={margin:A.spaceT("margin"),marginTop:A.spaceT("marginTop"),marginBlockStart:A.spaceT("marginBlockStart"),marginRight:A.spaceT("marginRight"),marginInlineEnd:A.spaceT("marginInlineEnd"),marginBottom:A.spaceT("marginBottom"),marginBlockEnd:A.spaceT("marginBlockEnd"),marginLeft:A.spaceT("marginLeft"),marginInlineStart:A.spaceT("marginInlineStart"),marginX:A.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:A.spaceT("marginInline"),marginY:A.spaceT(["marginTop","marginBottom"]),marginBlock:A.spaceT("marginBlock"),padding:A.space("padding"),paddingTop:A.space("paddingTop"),paddingBlockStart:A.space("paddingBlockStart"),paddingRight:A.space("paddingRight"),paddingBottom:A.space("paddingBottom"),paddingBlockEnd:A.space("paddingBlockEnd"),paddingLeft:A.space("paddingLeft"),paddingInlineStart:A.space("paddingInlineStart"),paddingInlineEnd:A.space("paddingInlineEnd"),paddingX:A.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:A.space("paddingInline"),paddingY:A.space(["paddingTop","paddingBottom"]),paddingBlock:A.space("paddingBlock")};Object.assign($,{m:$.margin,mt:$.marginTop,mr:$.marginRight,me:$.marginInlineEnd,marginEnd:$.marginInlineEnd,mb:$.marginBottom,ml:$.marginLeft,ms:$.marginInlineStart,marginStart:$.marginInlineStart,mx:$.marginX,my:$.marginY,p:$.padding,pt:$.paddingTop,py:$.paddingY,px:$.paddingX,pb:$.paddingBottom,pl:$.paddingLeft,ps:$.paddingInlineStart,paddingStart:$.paddingInlineStart,pr:$.paddingRight,pe:$.paddingInlineEnd,paddingEnd:$.paddingInlineEnd});var G={textDecorationColor:A.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:A.shadows("textShadow")},Y={clipPath:!0,transform:A.propT("transform",C.transform),transformOrigin:!0,translateX:A.spaceT("--chakra-translate-x"),translateY:A.spaceT("--chakra-translate-y"),skewX:A.degreeT("--chakra-skew-x"),skewY:A.degreeT("--chakra-skew-y"),scaleX:A.prop("--chakra-scale-x"),scaleY:A.prop("--chakra-scale-y"),scale:A.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:A.degreeT("--chakra-rotate")},K={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:A.prop("transitionDuration","transition.duration"),transitionProperty:A.prop("transitionProperty","transition.property"),transitionTimingFunction:A.prop("transitionTimingFunction","transition.easing")},X={fontFamily:A.prop("fontFamily","fonts"),fontSize:A.prop("fontSize","fontSizes",C.px),fontWeight:A.prop("fontWeight","fontWeights"),lineHeight:A.prop("lineHeight","lineHeights"),letterSpacing:A.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"}
1,property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},Q={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:A.spaceT("scrollMargin"),scrollMarginTop:A.spaceT("scrollMarginTop"),scrollMarginBottom:A.spaceT("scrollMarginBottom"),scrollMarginLeft:A.spaceT("scrollMarginLeft"),scrollMarginRight:A.spaceT("scrollMarginRight"),scrollMarginX:A.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:A.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:A.spaceT("scrollPadding"),scrollPaddingTop:A.spaceT("scrollPaddingTop"),scrollPaddingBottom:A.spaceT("scrollPaddingBottom"),scrollPaddingLeft:A.spaceT("scrollPaddingLeft"),scrollPaddingRight:A.spaceT("scrollPaddingRight"),scrollPaddingX:A.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:A.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function J(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 ee(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return J(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)?J(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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 te=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},ne=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},re=function(e,t){return e+":focus-visible "+t},oe=function(e,t){return e+":focus-within "+t},ie=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},ae=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},se=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},ue=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},ce=function(e,t){return e+":placeholder-shown "+t},le=function(e){return de((function(t){return e(t,"&")}),"[role=group]","[data-group]",".group")},fe=function(e){return de((function(t){return e(t,"~ &")}),"[data-peer]",".peer")},de=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];return n.map(e).join(", ")},pe={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:le(te),_peerHover:fe(te),_groupFocus:le(ne),_peerFocus:fe(ne),_groupFocusVisible:le(re),_peerFocusVisible:fe(re),_groupActive:le(ie),_peerActive:fe(ie),_groupDisabled:le(ae),_peerDisabled:fe(ae),_groupInvalid:le(se),_peerInvalid:fe(se),_groupChecked:le(ue),_peerChecked:fe(ue),_groupFocusWithin:le(oe),_peerFocusWithin:fe(oe),_peerPlaceholderShown:fe(ce),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},he=(0,r.Yd)(pe),ve=i()({},j,R,M,L,F,I,q,B,N,W,H,D,$,Q,X,G,Y,Z,K),me=Object.assign({},$,F,L,N,H),ye=((0,r.Yd)(me),[].concat((0,r.Yd)(ve),he)),ge=a({},ve,pe),be=function(e){return e in ge},_e=function(e,t){return e.startsWith("--")&&(0,r.HD)(t)&&!(0,r.FS)(t)},we=function(e,t){var n,r;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},i=function(e){var t;return null!=(t=o(e))?t:e},a=t.split(",").map((function(e){return e.trim()})),s=a[0],u=a[1];return t=null!=(n=null!=(r=o(s))?r:i(u))?n:i(t)};function xe(e){var t=e.configs,n=void 0===t?{}:t,o=e.pseudos,a=void 0===o?{}:o,s=e.theme;return function e(t,o){void 0===o&&(o=!1);var u=(0,r.Pu)(t,s),c=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,o=n.isResponsive,i=n.toArrayValue,a=n.media,s={};for(var u in e){var c=(0,r.Pu)(e[u],t);if(null!=c)if(c=(0,r.Kn)(c)&&o(c)?i(c):c,Array.isArray(c))for(var l=c.slice(0,a.length).length,f=0;f<l;f+=1){var d=null==a?void 0:a[f];d?(s[d]=s[d]||{},null!=c[f]&&(s[d][u]=c[f])):s[u]=c[f]}else s[u]=c}return s}}(u)(s),l={};for(var f in c){var d,p,h,v,m,y=c[f],g=(0,r.Pu)(y,s);f in a&&(f=a[f]),_e(f,g)&&(g=we(s,g));var b=n[f];
1if(!0===b&&(b={property:f}),(0,r.Kn)(g)){var _;l[f]=null!=(_=l[f])?_:{},l[f]=i()({},l[f],e(g,!0))}else{var w=null!=(d=null==(p=b)||null==p.transform?void 0:p.transform(g,s,u))?d:g;w=null!=(h=b)&&h.processResult?e(w,!0):w;var x=(0,r.Pu)(null==(v=b)?void 0:v.property,s);if(!o&&null!=(m=b)&&m.static){var k=(0,r.Pu)(b.static,s);l=i()({},l,k)}if(x&&Array.isArray(x))for(var S,E=ee(x);!(S=E()).done;){l[S.value]=w}else x?"&"===x&&(0,r.Kn)(w)?l=i()({},l,w):l[x]=w:(0,r.Kn)(w)?l=i()({},l,w):l[f]=w}}return l}}var ke=function(e){return function(t){return xe({theme:t,pseudos:pe,configs:ve})(e)}};function Se(e){return(0,r.Kn)(e)&&e.reference?e.reference:String(e)}var Ee=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];return n.map(Se).join(" "+e+" ").replace(/calc/g,"")},Oe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["+"].concat(t))+")"},Pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["-"].concat(t))+")"},Te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["*"].concat(t))+")"},Ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["/"].concat(t))+")"},Ae=function(e){var t=Se(e);return null==t||Number.isNaN(parseFloat(t))?Te(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},je=Object.assign((function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return je(Oe.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return je(Pe.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return je(Te.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return je(Ce.apply(void 0,[e].concat(n)))},negate:function(){return je(Ae(e))},toString:function(){return e.toString()}}}),{add:Oe,subtract:Pe,multiply:Te,divide:Ce,negate:Ae});function Re(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?t.replace(".","\\."):e}function Me(e,t){return"var("+Re(e)+(t?", "+t:"")+")"}function De(e,t){return void 0===t&&(t=""),"--"+function(e,t){return void 0===t&&(t=""),[t,Re(e)].filter(Boolean).join("-")}(e,t)}function Ie(e,t){return function(e,t,n){var r=De(e,n);return{variable:r,reference:Me(r,t)}}(String(e).replace(/\./g,"-"),void 0,t)}function Le(e,t){for(var n={},o={},a=function(){var a=u[s],c=a[0],l=a[1],f=l.isSemantic,d=l.value,p=Ie(c,null==t?void 0:t.cssVarPrefix),h=p.variable,v=p.reference;if(!f){if(c.startsWith("space")){var m=c.split("."),y=m[0]+".-"+m.slice(1).join("."),g=je.negate(d),b=je.negate(v);o[y]={value:g,var:h,varRef:b}}return n[h]=d,o[c]={value:d,var:h,varRef:v},"continue"}var _=(0,r.Kn)(d)?d:{default:d};n=i()(n,Object.entries(_).reduce((function(n,r){var o,i,a=r[0],s=function(n){var r=[String(c).split(".")[0],n].join(".");return e[r]?Ie(r,null==t?void 0:t.cssVarPrefix).reference:n}(r[1]);return"default"===a?(n[h]=s,n):(n[null!=(o=null==pe?void 0:pe[a])?o:a]=((i={})[h]=s,i),n)}),{})),o[c]={value:v,var:h,varRef:v}},s=0,u=Object.entries(e);s<u.length;s++)a();return{cssVars:n,cssMap:o}}var Ne=["__cssMap","__cssVars","__breakpoints"],Be=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function Fe(e){var t=Be;return(0,r.ei)(e,t)}function Ze(e){return e.__cssMap,e.__cssVars,e.__breakpoints,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,Ne)}function ze(e){var t,n=Ze(e),o=Fe(n),i=function(e){return e.semanticTokens}(n),s=function(e){var t,n,o=e.tokens,i=e.semanticTokens,a=Object.entries(null!=(t=(0,r.xH)(o))?t:{}).map((function(e){return[e[0],{isSemantic:!1,value:e[1]}]})),s=Object.entries(null!=(n=(0,r.xH)(i,1))?n:{}).map((function(e){return[e[0],{isSemantic:!0,value:e[1]}]}));return(0,r.sq)([].concat(a,s))}({tokens:o,semanticTokens:i}),u=Le(s,{cssVarPrefix:null==(t=n.config)?void 0:t.cssVarPrefix}),c=u.cssMap,l=u.cssVars;return Object.assign(n,{__cssVars:a({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},l),__cssMap:c,__breakpoints:(0,r.yn)(n.breakpoints)}),n}},5993:function(e,t,n){"use strict";n.d(t,{ZL:function(){return R},Fo:function(){return A},f6:function(){return O},m$:function(){return q},Gp:function(){return V},Lr:function(){return M},uP:function(){return D},jC:function(){return H},mq:function(){return W},yK:function(){return j},Fg:function(){return T}});var r=n(20949),o=n(94244),i=n(11463),a=n(70917),s=n(15031),u=n(38554),c=n.n(u),l=n(67294),f=n(69590),d=n.n(f),p=n(26450),h=n(87462),v=n(71068),m=n(70444),y=n(48137),g=n(27278),b=v.Z,_=function(e){return"theme"!==e},w=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?b:_},x=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},k=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,m.hC)(t,n,r),(0,g.L)((function(){return(0,m.My)(t,n,r)})),null},S=function e(t,n){var r,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var u=x(t,n,a),c=u||w(s),f=!c("as");return function(){var d=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";
1"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{0,p.push(d[0][0]);for(var v=d.length,g=1;g<v;g++)p.push(d[g],d[0][g])}var b=(0,i.w)((function(e,t,n){var r=f&&e.as||s,a="",d=[],h=e;if(null==e.theme){for(var v in h={},e)h[v]=e[v];h.theme=l.useContext(i.T)}"string"===typeof e.className?a=(0,m.fp)(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var g=(0,y.O)(p.concat(d),t.registered,h);a+=t.key+"-"+g.name,void 0!==o&&(a+=" "+o);var b=f&&void 0===u?w(r):c,_={};for(var x in e)f&&"as"===x||b(x)&&(_[x]=e[x]);return _.className=a,_.ref=n,l.createElement(l.Fragment,null,l.createElement(k,{cache:t,serialized:g,isStringTag:"string"===typeof r}),l.createElement(r,_))}));return b.displayName=void 0!==r?r:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=s,b.__emotion_styles=p,b.__emotion_forwardProp=u,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(t,r){return e(t,(0,h.Z)({},n,r,{shouldForwardProp:x(b,r,!0)})).apply(void 0,p)},b}}.bind();function E(){return E=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},E.apply(this,arguments)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){S[e]=S(e)}));var O=function(e){var t=e.cssVarsRoot,n=e.theme,r=e.children,a=l.useMemo((function(){return(0,o.c0)(n)}),[n]);return l.createElement(i.a,{theme:a},l.createElement(P,{root:t}),r)},P=function(e){var t=e.root,n=[void 0===t?":host, :root":t,"[data-theme]"].join(",");return l.createElement(a.xB,{styles:function(e){var t;return(t={})[n]=e.__cssVars,t}})};function T(){var e=l.useContext(i.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var C=(0,p.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),A=C[0],j=C[1],R=function(){var e=(0,r.If)().colorMode;return l.createElement(a.xB,{styles:function(t){var n=(0,s.Wf)(t,"styles.global"),r=(0,s.Pu)(n,{theme:t,colorMode:e});if(r){var i=(0,o.iv)(r)(t);return i}}})};function M(e){return(0,s.CE)(e,["styleConfig","size","variant","colorScheme"])}function D(){return E({},(0,r.If)(),{theme:T()})}function I(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}var L=new Set([].concat(o.cC,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),N=new Set(["htmlWidth","htmlHeight","htmlSize"]),B=function(e){return N.has(e)||!L.has(e)},F=["theme","css","__css","sx"],Z=["baseStyle"];function z(e,t){var n=null!=t?t:{},r=n.baseStyle,i=I(n,Z);i.shouldForwardProp||(i.shouldForwardProp=B);var a=function(e){var t=e.baseStyle;return function(e){e.theme;var n=e.css,r=e.__css,i=e.sx,a=I(e,F),u=(0,s.lw)(a,(function(e,t){return(0,o.ZR)(t)})),c=(0,s.Pu)(t,e),l=Object.assign({},r,c,(0,s.YU)(u),i),f=(0,o.iv)(l)(e.theme);return n?[f,n]:f}}({baseStyle:r});return S(e,i)(a)}function V(e){return l.forwardRef(e)}var U=["styleConfig"];function W(e,t,n){var r;void 0===t&&(t={}),void 0===n&&(n={});var o=t,i=o.styleConfig,a=I(o,U),u=D(),f=u.theme,p=u.colorMode,h=(0,s.Wf)(f,"components."+e),v=i||h,m=c()({theme:f,colorMode:p},null!=(r=null==v?void 0:v.defaultProps)?r:{},(0,s.YU)((0,s.CE)(a,["children"]))),y=(0,l.useRef)({});if(v){var g,b,_,w,x,k,S=(0,s.Pu)(null!=(g=v.baseStyle)?g:{},m),E=(0,s.Pu)(null!=(b=null==(_=v.variants)?void 0:_[m.variant])?b:{},m),O=(0,s.Pu)(null!=(w=null==(x=v.sizes)?void 0:x[m.size])?w:{},m),P=c()({},S,O,E);
1null!=(k=n)&&k.isMultiPart&&v.parts&&v.parts.forEach((function(e){var t;P[e]=null!=(t=P[e])?t:{}})),d()(y.current,P)||(y.current=P)}return y.current}function H(e,t){return W(e,t,{isMultiPart:!0})}var q=function(){var e=new Map;return new Proxy(z,{apply:function(e,t,n){return z.apply(void 0,n)},get:function(t,n){return e.has(n)||e.set(n,z(n)),e.get(n)}})}()},79042:function(e,t,n){"use strict";n.d(t,{Rn:function(){return p},Td:function(){return g},Th:function(){return m},Tr:function(){return y},hr:function(){return h},iA:function(){return d},p3:function(){return v}});var r=n(5993),o=n(15031),i=n(67294);function a(){return a=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},a.apply(this,arguments)}function s(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}var u=["className"],c=["placement"],l=["isNumeric"],f=["isNumeric"],d=(0,r.Gp)((function(e,t){var n=(0,r.jC)("Table",e),c=(0,r.Lr)(e),l=c.className,f=s(c,u);return i.createElement(r.Fo,{value:n},i.createElement(r.m$.table,a({role:"table",ref:t,__css:n.table,className:(0,o.cx)("chakra-table",l)},f)))}));o.Ts&&(d.displayName="Table");var p=(0,r.Gp)((function(e,t){var n=e.placement,o=void 0===n?"bottom":n,u=s(e,c),l=(0,r.yK)();return i.createElement(r.m$.caption,a({},u,{ref:t,__css:a({},l.caption,{captionSide:o})}))}));o.Ts&&(p.displayName="TableCaption");var h=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return i.createElement(r.m$.thead,a({},e,{ref:t,__css:n.thead}))})),v=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return i.createElement(r.m$.tbody,a({},e,{ref:t,__css:n.tbody}))})),m=(0,r.Gp)((function(e,t){var n=e.isNumeric,o=s(e,l),u=(0,r.yK)();return i.createElement(r.m$.th,a({},o,{ref:t,__css:u.th,"data-is-numeric":n}))})),y=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return i.createElement(r.m$.tr,a({role:"row"},e,{ref:t,__css:n.tr}))})),g=(0,r.Gp)((function(e,t){var n=e.isNumeric,o=s(e,f),u=(0,r.yK)();return i.createElement(r.m$.td,a({role:"gridcell"},o,{ref:t,__css:u.td,"data-is-numeric":n}))}))},45485:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Zr},rS:function(){return Zr}});var r={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"};function o(){return o=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},o.apply(this,arguments)}var i=o({},r,{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem"},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}});function a(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function s(e){return Math.min(1,Math.max(0,e))}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function c(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}function f(e,t,n){e=a(e,255),t=a(t,255),n=a(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,u=(r+o)/2;if(r===o)s=0,i=0;else{var c=r-o;switch(s=u>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:s,l:u}}function d(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p(e,t,n){e=a(e,255),t=a(t,255),n=a(n,255);
vendor: 5,807 bytes, line 1
1var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,u=r-o,c=0===r?0:u/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4}i/=6}return{h:i,s:c,v:s}}function h(e,t,n,r){var o=[l(Math.round(e).toString(16)),l(Math.round(t).toString(16)),l(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e){return Math.round(255*parseFloat(e)).toString(16)}function m(e){return y(e)/255}function y(e){return parseInt(e,16)}var g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function b(e){var t,n,r,o={r:0,g:0,b:0},i=1,s=null,l=null,f=null,p=!1,h=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(g[e])e=g[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=k.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=k.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=k.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=k.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=k.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=k.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=k.hex8.exec(e))return{r:y(n[1]),g:y(n[2]),b:y(n[3]),a:m(n[4]),format:t?"name":"hex8"};if(n=k.hex6.exec(e))return{r:y(n[1]),g:y(n[2]),b:y(n[3]),format:t?"name":"hex"};if(n=k.hex4.exec(e))return{r:y(n[1]+n[1]),g:y(n[2]+n[2]),b:y(n[3]+n[3]),a:m(n[4]+n[4]),format:t?"name":"hex8"};if(n=k.hex3.exec(e))return{r:y(n[1]+n[1]),g:y(n[2]+n[2]),b:y(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(S(e.r)&&S(e.g)&&S(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*a(t,255),g:255*a(n,255),b:255*a(r,255)},p=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):S(e.h)&&S(e.s)&&S(e.v)?(s=c(e.s),l=c(e.v),o=function(e,t,n){e=6*a(e,360),t=a(t,100),n=a(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),c=r%6;return{r:255*[n,s,i,i,u,n][c],g:255*[u,n,n,s,i,i][c],b:255*[i,i,u,n,n,s][c]}}(e.h,s,l),p=!0,h="hsv"):S(e.h)&&S(e.s)&&S(e.l)&&(s=c(e.s),f=c(e.l),o=function(e,t,n){var r,o,i;if(e=a(e,360),t=a(t,100),n=a(n,100),0===t)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=d(u,s,e+1/3),o=d(u,s,e),i=d(u,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,s,f),p=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=u(i),{ok:p,format:e.format||h,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var _="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),w="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),x="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),k={CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+w),rgba:new RegExp("rgba"+x),hsl:new RegExp("hsl"+w),hsla:new RegExp("hsla"
vendor: 4,308 bytes, line 1
1+x),hsv:new RegExp("hsv"+w),hsva:new RegExp("hsva"+x),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function S(e){return Boolean(k.CSS_UNIT.exec(String(e)))}var E=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=b(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=u(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=p(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=p(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=f(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=f(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),h(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[l(Math.round(e).toString(16)),l(Math.round(t).toString(16)),l(Math.round(n).toString(16)),l(v(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*a(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*a(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+h(this.r,this.g,this.b,!1),t=0,n=Object.entries(g);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;
1return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=s(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=s(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=s(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=s(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function O(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(O(e));return e.count=t,n}var r=function(e,t){var n=T(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"===typeof e){var n=A.find((function(t){return t.name===e}));if(n){var r=C(n);if(r.hueRange)return r.hueRange}var o=new E(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}(e),t);n<0&&(n=360+n);return n}(e.hue,e.seed),o=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return T([0,100],t.seed);var n=P(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55}return T([r,o],t.seed)}(r,e),i=function(e,t,n){var r=function(e,t){for(var n=P(e).lowerBounds,r=0;r<n.length-1;r++){var o=n[r][0],i=n[r][1],a=n[r+1][0],s=n[r+1][1];if(t>=o&&t<=a){var u=(s-i)/(a-o);return u*t+(i-u*o)}}return 0}(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100}return T([r,o],n.seed)}(r,o,e),a={h:r,s:o,v:i};return void 0!==e.alpha&&(a.a=e.alpha),new E(a)}function P(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=A;t<n.length;t++){var r=C(n[t]);if(r.hueRange&&e>=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function T(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0,o=(t=(9301*t+49297)%233280)/233280;return Math.floor(r+o*(n-r))}function C(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var A=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],j=n(15031),R=function(e,t,n){var r=(0,j.Wf)(e,"colors."+t,t);return new E(r).isValid?r:n},M=function(e){return function(t){var n=R(t,e);return new E(n).isDark()?"dark":"light"}},D=function(e,t){return function(n){var r=R(n,e);return new E(r).setAlpha(t).toRgbString()}};function I(e,t){return void 0===e&&(e="1rem"),void 0===t&&(t="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n    45deg,\n    "+t+" 25%,\n    transparent 25%,\n    transparent 50%,\n    "+t+" 50%,\n    "+t+" 75%,\n    transparent 75%,\n    transparent\n  )",backgroundSize:e+" "+e}}function L(e){var t=O().toHexString();return!e||(0,j.Qr)(e)?t:e.string&&e.colors?function(e,t){var n=0;if(0===e.length)return t[0];for(var r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){var t=0;if(0===e.length)return t.toString();for(var n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;for(var r="#",o=0;o<3;o+=1){r+=("00"+(t>>8*o&255).toString(16)).substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t}function N(e,t){return function(n){return"dark"===n.colorMode?t:e}}function B(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return t?"vertical"===t?n:r:{}}function F(){return F=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},F.apply(this,arguments)}function Z(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 z=function(){function e(e){var t=this;this.map={},this.called=!1,this.assert=function(){if(t.called)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");t.called=!0},this.parts=function(){t.assert();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];t.map[a]=t.toPart(a)}return t},this.extend=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];a in t.map||(t.map[a]=t.toPart(a))}return t},this.toPart=function(e){var n="chakra-"+(["container","root"].includes(null!=e?e:"")?[t.name]:[t.name,e]).filter(
1Boolean).join("__");return{className:n,selector:"."+n,toString:function(){return e}}},this.__type={}}var t,n,r;return t=e,(n=[{key:"selectors",get:function(){return(0,j.sq)(Object.entries(this.map).map((function(e){return[e[0],e[1].selector]})))}},{key:"classNames",get:function(){return(0,j.sq)(Object.entries(this.map).map((function(e){return[e[0],e[1].className]})))}},{key:"keys",get:function(){return Object.keys(this.map)}}])&&Z(t.prototype,n),r&&Z(t,r),e}();function V(e){return new z(e)}function U(e){return(0,j.Kn)(e)&&e.reference?e.reference:String(e)}var W=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];return n.map(U).join(" "+e+" ").replace(/calc/g,"")},H=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+W.apply(void 0,["+"].concat(t))+")"},q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+W.apply(void 0,["-"].concat(t))+")"},$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+W.apply(void 0,["*"].concat(t))+")"},G=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+W.apply(void 0,["/"].concat(t))+")"},Y=function(e){var t=U(e);return null==t||Number.isNaN(parseFloat(t))?$(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},K=Object.assign((function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return K(H.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return K(q.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return K($.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return K(G.apply(void 0,[e].concat(n)))},negate:function(){return K(Y(e))},toString:function(){return e.toString()}}}),{add:H,subtract:q,multiply:$,divide:G,negate:Y});function X(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Q(e,t){return"var("+X(e)+(t?", "+t:"")+")"}function J(e,t){return void 0===t&&(t=""),"--"+function(e,t){return void 0===t&&(t=""),[t,X(e)].filter(Boolean).join("-")}(e,t)}function ee(e,t){var n=J(e,null==t?void 0:t.prefix);return{variable:n,reference:Q(n,te(null==t?void 0:t.fallback))}}function te(e){return"string"===typeof e?e:null==e?void 0:e.reference}var ne=V("accordion").parts("root","container","button","panel").extend("icon"),re=V("alert").parts("title","description","container").extend("icon"),oe=V("avatar").parts("label","badge","container").extend("excessLabel","group"),ie=V("breadcrumb").parts("link","item","container").extend("separator"),ae=(V("button").parts(),V("checkbox").parts("control","icon","container").extend("label")),se=(V("progress").parts("track","filledTrack").extend("label"),V("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),ue=V("editable").parts("preview","input","textarea"),ce=V("form").parts("container","requiredIndicator","helperText"),le=V("formError").parts("text","icon"),fe=V("input").parts("addon","field","element"),de=V("list").parts("container","item","icon"),pe=V("menu").parts("button","list","item").extend("groupTitle","command","divider"),he=V("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ve=V("numberinput").parts("root","field","stepperGroup","stepper"),me=(V("pininput").parts("field"),V("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),ye=V("progress").parts("label","filledTrack","track"),ge=V("radio").parts("container","control","label"),be=V("select").parts("field","icon"),_e=V("slider").parts("container","track","thumb","filledTrack"),we=V("stat").parts("container","label","helpText","number","icon"),xe=V("switch").parts("container","track","thumb"),ke=V("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Se=V("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Ee=V("tag").parts("container","label","closeButton"),Oe={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Pe=n(38554),Te=n.n(Pe),Ce=n(70917),Ae={root:{},container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}},je={parts:ne.keys,baseStyle:Ae};function Re(e){var t=e.theme,n=e.colorScheme;
1return N(R(t,n+".100",n),D(n+".200",.16)(t))(e)}var Me={subtle:function(e){var t=e.colorScheme;return{container:{bg:Re(e)},icon:{color:N(t+".500",t+".200")(e)}}},"left-accent":function(e){var t=e.colorScheme;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:N(t+".500",t+".200")(e),bg:Re(e)},icon:{color:N(t+".500",t+".200")(e)}}},"top-accent":function(e){var t=e.colorScheme;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:N(t+".500",t+".200")(e),bg:Re(e)},icon:{color:N(t+".500",t+".200")(e)}}},solid:function(e){var t=e.colorScheme;return{container:{bg:N(t+".500",t+".200")(e),color:N("white","gray.900")(e)}}}},De={parts:re.keys,baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:Me,defaultProps:{variant:"subtle",colorScheme:"blue"}},Ie=function(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:N("white","gray.800")(e)}},Le=function(e){return{bg:N("gray.200","whiteAlpha.400")(e)}},Ne=function(e){var t=e.name,n=e.theme,r=t?L({string:t}):"gray.400",o=function(e){return function(t){return"dark"===M(e)(t)}}(r)(n),i="white";return o||(i="gray.800"),{bg:r,color:i,borderColor:N("white","gray.800")(e),verticalAlign:"top"}};function Be(e){var t=i[e];return{container:{width:e,height:e,fontSize:"calc("+(null!=t?t:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=t?t:e)+" / 2.5)",lineHeight:"100%"!==e?null!=t?t:e:void 0}}}var Fe,Ze,ze,Ve={"2xs":Be("4"),xs:Be("6"),sm:Be("8"),md:Be("12"),lg:Be("16"),xl:Be("24"),"2xl":Be("32"),full:Be("100%")},Ue={parts:oe.keys,baseStyle:function(e){return{badge:Ie(e),excessLabel:Le(e),container:Ne(e)}},sizes:Ve,defaultProps:{size:"md"}},We={solid:function(e){var t=e.colorScheme,n=e.theme;return{bg:N(t+".500",D(t+".500",.6)(n))(e),color:N("white","whiteAlpha.800")(e)}},subtle:function(e){var t=e.colorScheme,n=e.theme;return{bg:N(t+".100",D(t+".200",.16)(n))(e),color:N(t+".800",t+".200")(e)}},outline:function(e){var t=e.colorScheme,n=e.theme,r=D(t+".200",.8)(n),o=N(R(n,t+".500"),r)(e);
1return{color:o,boxShadow:"inset 0 0 0px 1px "+o}}},He={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:We,defaultProps:{variant:"subtle",colorScheme:"gray"}},qe={link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},$e={parts:ie.keys,baseStyle:qe},Ge=function(e){var t=e.colorScheme,n=e.theme;if("gray"===t)return{color:N("inherit","whiteAlpha.900")(e),_hover:{bg:N("gray.100","whiteAlpha.200")(e)},_active:{bg:N("gray.200","whiteAlpha.300")(e)}};var r=D(t+".200",.12)(n),o=D(t+".200",.24)(n);return{color:N(t+".600",t+".200")(e),bg:"transparent",_hover:{bg:N(t+".50",r)(e)},_active:{bg:N(t+".100",o)(e)}}},Ye={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Ke={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:Ge,outline:function(e){var t=e.colorScheme,n=N("gray.200","whiteAlpha.300")(e);return o({border:"1px solid",borderColor:"gray"===t?n:"currentColor"},Ge(e))},solid:function(e){var t,n=e.colorScheme;if("gray"===n){var r=N("gray.100","whiteAlpha.200")(e);return{bg:r,_hover:{bg:N("gray.200","whiteAlpha.300")(e),_disabled:{bg:r}},_active:{bg:N("gray.300","whiteAlpha.400")(e)}}}var o=null!=(t=Ye[n])?t:{},i=o.bg,a=void 0===i?n+".500":i,s=o.color,u=void 0===s?"white":s,c=o.hoverBg,l=void 0===c?n+".600":c,f=o.activeBg,d=void 0===f?n+".700":f,p=N(a,n+".200")(e);return{bg:p,color:N(u,"gray.800")(e),_hover:{bg:N(l,n+".300")(e),_disabled:{bg:p}},_active:{bg:N(d,n+".400")(e)}}},link:function(e){var t=e.colorScheme;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:N(t+".500",t+".200")(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:N(t+".700",t+".500")(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0}},sizes:{lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},Xe=function(e){var t=e.colorScheme;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:N(t+".500",t+".200")(e),borderColor:N(t+".500",t+".200")(e),color:N("white","gray.900")(e),_hover:{bg:N(t+".600",t+".300")(e),borderColor:N(t+".600",t+".300")(e)},_disabled:{borderColor:N("gray.200","transparent")(e),bg:N("gray.200","whiteAlpha.300")(e),color:N("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:N(t+".500",t+".200")(e),borderColor:N(t+".500",t+".200")(e),color:N("white","gray.900")(e)},_disabled:{bg:N("gray.100","whiteAlpha.100")(e),borderColor:N("gray.100","transparent")(e)},_focus:{boxShadow:"outline"},_invalid:{borderColor:N("red.500","red.300")(e)}}},Qe={_disabled:{cursor:"not-allowed"}},Je={userSelect:"none",_disabled:{opacity:.4}},et={transitionProperty:"transform",transitionDuration:"normal"},tt={parts:ae.keys,baseStyle:function(e){return{icon:et,container:Qe,control:Xe(e),label:Je}},sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}},nt=ee("close-button-size"),rt={baseStyle:function(e){var t=N("blackAlpha.100","whiteAlpha.100")(e),n=N("blackAlpha.200","whiteAlpha.200")(e);return{w:[nt.reference],h:[nt.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focus:{boxShadow:"outline"}}},sizes:{lg:(Fe={},Fe[nt.variable]="40px",Fe.fontSize="16px",Fe),md:(Ze={},Ze[nt.variable]="32px",Ze.fontSize="12px",Ze),sm:(ze={},ze[nt.variable]="24px",ze.fontSize="10px",ze)},defaultProps:{size:"md"}},ot={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:He.variants,defaultProps:He.defaultProps},it={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},at={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}};function st(e){return"full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}}}var ut={bg:"blackAlpha.600",zIndex:"overlay"},ct={display:"flex",zIndex:"modal",justifyContent:"center"},lt=function(e){return o({},e.isFullHeight&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:N("white","gray.700")(e),color:"inherit",boxShadow:N("lg","dark-lg")(e)})},ft={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},dt={position:"absolute",top:2,insetEnd:3},pt={px:6,py:2,flex:1,overflow:"auto"},ht={px:6,py:4},vt={xs:st("xs"),sm:st("md"),md:st("lg"),lg:st("2xl"),xl:st("4xl"),full:st("full")},mt={parts:se.keys,baseStyle:function(e){return{overlay:ut,dialogContainer:ct,dialog:lt(e),header:ft,closeButton:dt,body:pt,footer
1:ht}},sizes:vt,defaultProps:{size:"xs"}},yt={preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}},gt={parts:ue.keys,baseStyle:yt},bt=function(e){return{marginStart:1,color:N("red.500","red.300")(e)}},_t=function(e){return{mt:2,color:N("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}},wt={parts:ce.keys,baseStyle:function(e){return{container:{width:"100%",position:"relative"},requiredIndicator:bt(e),helperText:_t(e)}}},xt=function(e){return{color:N("red.500","red.300")(e),mt:2,fontSize:"sm",lineHeight:"normal"}},kt=function(e){return{marginEnd:"0.5em",color:N("red.500","red.300")(e)}},St={parts:le.keys,baseStyle:function(e){return{text:xt(e),icon:kt(e)}}},Et={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Ot={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Pt={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}},Tt={lg:{field:Pt.lg,addon:Pt.lg},md:{field:Pt.md,addon:Pt.md},sm:{field:Pt.sm,addon:Pt.sm},xs:{field:Pt.xs,addon:Pt.xs}};function Ct(e){var t=e.focusBorderColor,n=e.errorBorderColor;return{focusBorderColor:t||N("blue.500","blue.300")(e),errorBorderColor:n||N("red.500","red.300")(e)}}var At={outline:function(e){var t=e.theme,n=Ct(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:N("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:R(t,o),boxShadow:"0 0 0 1px "+R(t,o)},_focus:{zIndex:1,borderColor:R(t,r),boxShadow:"0 0 0 1px "+R(t,r)}},addon:{border:"1px solid",borderColor:N("inherit","whiteAlpha.50")(e),bg:N("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var t=e.theme,n=Ct(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{border:"2px solid",borderColor:"transparent",bg:N("gray.100","whiteAlpha.50")(e),_hover:{bg:N("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:R(t,o)},_focus:{bg:"transparent",borderColor:R(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:N("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var t=e.theme,n=Ct(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:R(t,o),boxShadow:"0px 1px 0px 0px "+R(t,o)},_focus:{borderColor:R(t,r),boxShadow:"0px 1px 0px 0px "+R(t,r)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},jt={parts:fe.keys,baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:Tt,variants:At,defaultProps:{size:"md",variant:"outline"}},Rt={baseStyle:function(e){return{bg:N("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},Mt={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-
1out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},Dt={container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}},It={parts:de.keys,baseStyle:Dt},Lt=function(e){return{bg:N("#fff","gray.700")(e),boxShadow:N("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}},Nt=function(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:N("gray.100","whiteAlpha.100")(e)},_active:{bg:N("gray.200","whiteAlpha.200")(e)},_expanded:{bg:N("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}},Bt={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Ft={opacity:.6},Zt={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},zt={transitionProperty:"common",transitionDuration:"normal"},Vt={parts:pe.keys,baseStyle:function(e){return{button:zt,list:Lt(e),item:Nt(e),groupTitle:Bt,command:Ft,divider:Zt}}},Ut={bg:"blackAlpha.600",zIndex:"modal"},Wt=function(e){return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e.isCentered?"center":"flex-start",overflow:"inside"===e.scrollBehavior?"hidden":"auto"}},Ht=function(e){var t=e.scrollBehavior;return{borderRadius:"md",bg:N("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===t?"calc(100% - 7.5rem)":void 0,boxShadow:N("lg","dark-lg")(e)}},qt={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},$t={position:"absolute",top:2,insetEnd:3},Gt=function(e){return{px:6,py:2,flex:1,overflow:"inside"===e.scrollBehavior?"auto":void 0}},Yt={px:6,py:4};function Kt(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh","@supports(min-height: -webkit-fill-available)":{minH:"-webkit-fill-available"},my:0}}:{dialog:{maxW:e}}}var Xt,Qt,Jt,en={xs:Kt("xs"),sm:Kt("sm"),md:Kt("md"),lg:Kt("lg"),xl:Kt("xl"),"2xl":Kt("2xl"),"3xl":Kt("3xl"),"4xl":Kt("4xl"),"5xl":Kt("5xl"),"6xl":Kt("6xl"),full:Kt("full")},tn={parts:he.keys,baseStyle:function(e){return{overlay:Ut,dialogContainer:Wt(e),dialog:Ht(e),header:qt,closeButton:$t,body:Gt(e),footer:Yt}},sizes:en,defaultProps:{size:"md"}},nn=jt.variants,rn=jt.defaultProps,on=ee("number-input-stepper-width"),an=ee("number-input-input-padding"),sn=K(on).add("0.5rem").toString(),un=((Xt={})[on.variable]="24px",Xt[an.variable]=sn,Xt),cn=null!=(Qt=null==(Jt=jt.baseStyle)?void 0:Jt.field)?Qt:{},ln={width:[on.reference]},fn=function(e){return{borderStart:"1px solid",borderStartColor:N("inherit","whiteAlpha.300")(e),color:N("inherit","whiteAlpha.800")(e),_active:{bg:N("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}};function dn(e){var t,n,r=jt.sizes[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(t=null==(n=r.field)?void 0:n.fontSize)?t:"md",s=Oe.fontSizes[a.toString()];return{field:o({},r.field,{paddingInlineEnd:an.reference,verticalAlign:"top"}),stepper:{fontSize:K(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}}}var pn,hn={xs:dn("xs"),sm:dn("sm"),md:dn("md"),lg:dn("lg")},vn={parts:ve.keys,baseStyle:function(e){return{root:un,field:cn,stepperGroup:ln,stepper:fn(e)}},sizes:hn,variants:nn,defaultProps:rn},mn={baseStyle:o({},jt.baseStyle.field,{textAlign:"center"}),sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:function(e){var t;return null!=(t=jt.variants.outline(e).field)?t:{}},flushed:function(e){var t;return null!=(t=jt.variants.flushed(e).field)?t:{}},filled:function(e){var t;return null!=(t=jt.variants.filled(e).field)?t:{}},unstyled:null!=(pn=jt.variants.unstyled.field)?pn:{}},defaultProps:jt.defaultProps},yn=ee("popper-bg"),gn=ee("popper-arrow-bg"),bn=ee("popper-arrow-shadow-color"),_n={zIndex:10},wn=function(e){var t,n=N("white","gray.700")(e),r=N("gray.200","whiteAlpha.300")(e);return(t={})[yn.variable]="colors."+n,t.bg=yn.reference,t[gn.variable]=yn.reference,t[bn.variable]="colors."+r,t.width="xs",t.border="1px solid",t.borderColor="inherit",t.borderRadius="md",t.boxShadow="sm",t.zIndex="inherit",t._focus={outline:0,boxShadow:"outline"},t},xn={px:3,py:2,borderBottomWidth:"1px"},kn={px:3,py:2},Sn={px:3,py:2,borderTopWidth:"1px"},En={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},On={parts:me.keys,baseStyle:function(e){return{popper:_n,content:wn(e),header:xn,body:kn,footer:Sn,arrow:{},closeButton:En}}};var Pn={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Tn=function(e){return{bg:N("gray.100","whiteAlpha.300")(e)}},Cn=function(e){return o({transitionProperty:"common",transitionDuration:"slow"},function(e){var t=e.colorScheme,n=e.theme,r=e.isIndeterminate,i=e.hasStripe,a=N(I(),I("1rem","rgba(0,0,0,0.1)"))(e),s=N(t+".500",t+".200")(e),u="linear-gradient(\n    to right,\n    transparent 0%,\n    "+R(n,s)+" 50%,\n    transparent 100%\n  )";return o({},!r&&i&&a,r?{bgImage:u}:{bgColor:s})}(e))},An={parts:ye.keys,sizes:{xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},baseStyle:function(e){return{label:Pn,filledTrack:Cn(e),track:Tn(e)}},defaultProps:{size:"md",colorScheme:"blue"}},jn=function(e){var t=tt.baseStyle(e).control,n=void 0===t?{}:t;return o({},n,{borderRadius:"full",_checked:o({}
1,n._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})},Rn={parts:ge.keys,baseStyle:function(e){return{label:tt.baseStyle(e).label,container:tt.baseStyle(e).container,control:jn(e)}},sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Mn=function(e){return o({},jt.baseStyle.field,{bg:N("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:N("white","gray.700")(e)}})},Dn={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},In={paddingInlineEnd:"2rem"},Ln=Te()({},jt.sizes,{lg:{field:In},md:{field:In},sm:{field:In},xs:{field:In,icon:{insetEnd:"0.25rem"}}}),Nn={parts:be.keys,baseStyle:function(e){return{field:Mn(e),icon:Dn}},sizes:Ln,variants:jt.variants,defaultProps:jt.defaultProps},Bn=function(e,t){return(0,Ce.F4)({from:{borderColor:e,background:e},to:{borderColor:t,background:t}})},Fn={baseStyle:function(e){var t=N("gray.100","gray.800")(e),n=N("gray.400","gray.600")(e),r=e.startColor,o=void 0===r?t:r,i=e.endColor,a=void 0===i?n:i,s=e.speed,u=e.theme,c=R(u,o),l=R(u,a);return{opacity:.7,borderRadius:"2px",borderColor:c,background:l,animation:s+"s linear infinite alternate "+Bn(c,l)}}},Zn={baseStyle:function(e){return{borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:N("white","gray.700")(e)}}}};var zn,Vn,Un,Wn,Hn,qn,$n,Gn,Yn,Kn,Xn,Qn,Jn,er=function(e){return o({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},B({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},tr=function(e){return{overflow:"hidden",borderRadius:"sm",bg:N("gray.200","whiteAlpha.200")(e),_disabled:{bg:N("gray.300","whiteAlpha.300")(e)}}},nr=function(e){return o({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return B({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))},rr=function(e){var t=e.colorScheme;return{width:"inherit",height:"inherit",bg:N(t+".500",t+".200")(e)}},or={lg:function(e){return{thumb:{w:"16px",h:"16px"},track:B({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:B({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:B({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},ir={parts:_e.keys,sizes:or,baseStyle:function(e){return{container:er(e),track:tr(e),thumb:nr(e),filledTrack:rr(e)}},defaultProps:{size:"md",colorScheme:"blue"}},ar=ee("spinner-size"),sr={baseStyle:{width:[ar.reference],height:[ar.reference]},sizes:{xs:(zn={},zn[ar.variable]="0.75rem",zn),sm:(Vn={},Vn[ar.variable]="1rem",Vn),md:(Un={},Un[ar.variable]="1.5rem",Un),lg:(Wn={},Wn[ar.variable]="2rem",Wn),xl:(Hn={},Hn[ar.variable]="3rem",Hn)},defaultProps:{size:"md"}},ur={container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},cr={parts:we.keys,baseStyle:ur,sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}},lr=ee("switch-track-width"),fr=ee("switch-track-height"),dr=ee("switch-track-diff"),pr=K.subtract(lr,fr),hr=ee("switch-thumb-x"),vr=function(e){var t=e.colorScheme;return{borderRadius:"full",p:"2px",width:[lr.reference],height:[fr.reference],transitionProperty:"common",transitionDuration:"fast",bg:N("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:N(t+".500",t+".200")(e)}}},mr={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[fr.reference],height:[fr.reference],_checked:{transform:"translateX("+hr.reference+")"}},yr={sm:{container:(qn={},qn[lr.variable]="1.375rem",qn[fr.variable]="0.75rem",qn)},md:{container:($n={},$n[lr.variable]="1.875rem",$n[fr.variable]="1rem",$n)},lg:{container:(Gn={},Gn[lr.variable]="2.875rem",Gn[fr.variable]="1.5rem",Gn)}},gr={parts:xe.keys,baseStyle:function(e){var t,n;return{container:(n={},n[dr.variable]=pr,n[hr.variable]=dr.reference,n._rtl=(t={},t[hr.variable]=K(dr).negate().toString(),t),n),track:vr(e),thumb:mr}},sizes:yr,defaultProps:{size:"md",colorScheme:"blue"}},br={"&[data-is-numeric=true]":{textAlign:"end"}},_r={simple:function(e){var t=e.colorScheme;return{th:o({color:N("gray.600","gray.400")(e),borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},br),td:o({borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},br),caption:{color:N("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:function(e){var t=e.colorScheme;return{th:o({color:N("gray.600","gray.400")(e),borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},br),td:o({borderBottom:"1px",borderColor:N(t+".100",t+".700")(e)},br),caption:{color:N("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:N(t+".100",t+".700")(e)},td:{background:N(t+".100",t+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},wr={parts:ke.keys,baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:_r,sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}},xr=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},kr=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},Sr=function(e){var t=e.align,n=void 0===t?"start":t,r=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[n],flexDirection:"vertical"===r?"column":"row"}},Er={p:4},Or={line:function(e){var t,n,r=e.colorScheme,o=e.orientation,i="vertical"===o?"borderStart":"borderBottom",a="vertical"===o?"marginStart":"marginBottom";return{tablist:(t={},t[i]="2px solid",t.borderColor="inherit",t),tab:(n={},n[i]="2px solid",n.borderColor="transparent",n[a]="-2px",n._selected={color:N(r+".600",r+".300")(e),borderColor:"currentColor"},n._active={bg:N("gray.200","whiteAlpha.300")(e)},n._disabled={opacity:.4,cursor:"not-allowed"},n)}},enclosed:function(e){var t=e.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:N(t+".600",t+".300")(e),borderColor:"inherit",borderBottomColor:N("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var t=e.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:N("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:N("#fff","gray.800")(e),color:N(t+".600",t+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var t=e.colorScheme,n=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:R(n,t+".700"),bg:R(n,t+".100")}}}},"solid-rounded":function(e){var t=e.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:N("gray.600","inherit")(e),_selected:{color:N("#fff","gray.800")(e),bg:N(t+".600",t+".300")(e)}}}},unstyled:{}},Pr={parts:Se.keys,baseStyle:function(e){return{root:xr(e),tab:kr(e),tablist:Sr(e),tabpanel:Er}},sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:Or,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Tr={container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},Cr={subtle:function(e){return{container:He.variants.subtle(e)}},solid:function(e){return{container:He.variants.solid(e)}},outline:function(e){return{container:He.variants.outline(e)}}},Ar={parts:Ee.keys,variants:Cr,baseStyle:Tr,sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}},jr=o({},jt.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Rr={outline:function(e){var t;return null!=(t=jt.variants.outline(e).field)?t:{}},flushed:function(e){var t;return null!=(t=jt.variants.flushed(e).field)?t:{}},filled:function(e){var t;return null!=(t=jt.variants.filled(e).field)?t:{}},unstyled:null!=(Yn=jt.variants.unstyled.field)?Yn:{}},Mr={baseStyle:jr,sizes:{xs:null!=(Kn=jt.sizes.xs.field)?Kn:{},sm:null!=(Xn=jt.sizes.sm.field)?Xn:{},md:null!=(Qn=jt.sizes.md.field)?Qn:{},lg:null!=(Jn=jt.sizes.lg.field)?Jn:{}}
1,variants:Rr,defaultProps:{size:"md",variant:"outline"}},Dr=ee("tooltip-bg"),Ir=ee("popper-arrow-bg"),Lr={baseStyle:function(e){var t,n=N("gray.700","gray.300")(e);return(t={})[Dr.variable]="colors."+n,t.px="8px",t.py="2px",t.bg=[Dr.reference],t[Ir.variable]=[Dr.reference],t.color=N("whiteAlpha.900","gray.900")(e),t.borderRadius="sm",t.fontWeight="medium",t.fontSize="sm",t.boxShadow="md",t.maxW="320px",t.zIndex="tooltip",t}},Nr=Object.freeze({__proto__:null,Accordion:je,Alert:De,Avatar:Ue,Badge:He,Breadcrumb:$e,Button:Ke,Checkbox:tt,CloseButton:rt,Code:ot,Container:it,Divider:at,Drawer:mt,Editable:gt,Form:wt,FormError:St,FormLabel:Et,Heading:Ot,Input:jt,Kbd:Rt,Link:Mt,List:It,Menu:Vt,Modal:tn,NumberInput:vn,PinInput:mn,Popover:On,Progress:An,Radio:Rn,Select:Nn,Skeleton:Fn,SkipLink:Zn,Slider:ir,Spinner:sr,Stat:cr,Switch:gr,Table:wr,Tabs:Pr,Tag:Ar,Textarea:Mr,Tooltip:Lr}),Br=function(e){return(0,j.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),F({base:"0em"},e)}({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),Fr=o({breakpoints:Br,zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}}},Oe,{sizes:i,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dar
1k-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:r,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}});var Zr=o({direction:"ltr"},Fr,{components:Nr,styles:{global:function(e){return{body:{fontFamily:"body",color:N("gray.800","whiteAlpha.900")(e),bg:N("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:N("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:N("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}})},43238:function(e,t,n){"use strict";n.d(t,{pm:function(){return re}});var r=n(5993),o=n(15031),i=n(26450),a=n(67294),s=n(10894);function u(){return u=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},u.apply(this,arguments)}var c=function(e){return a.createElement(s.JO,u({viewBox:"0 0 24 24"},e),a.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))},l=["status"],f={info:{icon:function(e){return a.createElement(s.JO,u({viewBox:"0 0 24 24"},e),a.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}))},colorScheme:"blue"},warning:{icon:c,colorScheme:"orange"},success:{icon:function(e){return a.createElement(s.JO,u({viewBox:"0 0 24 24"},e),a.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}))},colorScheme:"green"},error:{icon:c,colorScheme:"red"}},d=(0,i.kr)({name:"AlertContext",errorMessage:"useAlertContext: `context` is undefined. Seems you forgot to wrap alert components in `<Alert />`"}),p=d[0],h=d[1],v=(0,r.Gp)((function(e,t){var n,i=(0,r.Lr)(e),s=i.status,c=void 0===s?"info":s,d=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}(i,l),h=null!=(n=e.colorScheme)?n:f[c].colorScheme,v=(0,r.jC)("Alert",u({},e,{colorScheme:h})),m=u({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},v.container);return a.createElement(p,{value:{status:c}},a.createElement(r.Fo,{value:v},a.createElement(r.m$.div,u({role:"alert",ref:t},d,{className:(0,o.cx)("chakra-alert",e.className),__css:m}))))})),m=(0,r.Gp)((function(e,t){var n=(0,r.yK)();return a.createElement(r.m$.div,u({ref:t},e,{className:(0,o.cx)("chakra-alert__title",e.className),__css:n.title}))})),y=(0,r.Gp)((function(e,t){var n=u({display:"inline"},(0,r.yK)().description);return a.createElement(r.m$.div,u({ref:t},e,{className:(0,o.cx)("chakra-alert__desc",e.className),__css:n}))})),g=function(e){var t=h().status,n=f[t].icon,i=(0,r.yK)();return a.createElement(r.m$.span,u({display:"inherit"}
1,e,{className:(0,o.cx)("chakra-alert__icon",e.className),__css:i.icon}),a.createElement(n,{w:"100%",h:"100%"}))},b=n(84746),_=n(20949),w=n(45485),x=n(97375),k=n(73935),S=n(15947),E=n(75814),O=n(21190);function P(){return 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},P.apply(this,arguments)}var T=(0,a.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"span":n,o=e.style,i=void 0===o?{}:o,s=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,["as","style"]);return(0,a.createElement)(r,P({ref:t,style:P({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},i)},s))}));var C=n(42473),A=n.n(C);R()?a.useLayoutEffect:a.useEffect,A(),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math&&self;function j(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function R(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function M(e){return(0,a.forwardRef)(e)}function D(e){return R()?e?e.ownerDocument:document:null}function I(){return I=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},I.apply(this,arguments)}var L,N={polite:-1,assertive:-1},B={polite:{},assertive:{}},F={polite:null,assertive:null},Z=M((function(e,t){var n=e.as,r=void 0===n?"div":n,o=e.children,i=e.type,s=void 0===i?"polite":i,u=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,["as","children","type"]),c=(0,a.useRef)(null),l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.useMemo)((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){j(t,e)}))}}),[].concat(t))}(t,c),f=(0,a.useMemo)((function(){return(0,a.createElement)(r,I({},u,{ref:l,"data-reach-alert":!0}),o)}),[o,u]);return function(e,t,n){var r=function(e){var t=(0,a.useRef)(null);return(0,a.useEffect)((function(){t.current=e}),[e]),t.current}(e),o=(0,a.useRef)(null),i=(0,a.useRef)(!1);(0,a.useEffect)((function(){var a=D(n.current);i.current?r!==e?(o.current&&o.current.unmount(),o.current=z(e,a),o.current.mount(t)):o.current&&o.current.update(t):(i.current=!0,o.current=z(e,a),o.current.mount(t))}),[t,e,r,n]),(0,a.useEffect)((function(){return function(){o.current&&o.current.unmount()}}),[])}(s,f,c),f}));function z(e,t){var n=++N[e];return{mount:function r(o){if(F[e])B[e][n]=o,V();else{var i=t.createElement("div");i.setAttribute("data-reach-live-"+e,"true"),F[e]=i,t.body.appendChild(F[e]),r(o)}},update:function(t){B[e][n]=t,V()},unmount:function(){delete B[e][n],V()}}}function V(){null!=L&&window.clearTimeout(L),L=window.setTimeout((function(){Object.keys(B).forEach((function(e){var t=e;F[t]&&(0,k.render)((0,a.createElement)(T,{as:"div"},(0,a.createElement)("div",{role:"assertive"===t?"alert":"status","aria-live":t},Object.keys(B[t]).map((function(e){return(0,a.cloneElement)(B[t][e],{key:e,ref:null})})))),F[t])}))}),500)}var U=Z;function W(){return W=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},W.apply(this,arguments)}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}function q(e,t){var n=$(e,t),r=n?e[n].findIndex((function(e){return e.id===t})):-1;return{position:n,index:r}}var $=function(e,t){var n;return null==(n=Object.values(e).flat().find((function(e){return e.id===t})))?void 0:n.position};var G={initial:function(e){var t,n=e.position,r=["top","bottom"].includes(n)?"y":"x",o=["top-right","bottom-right"].includes(n)?1:-1;return"bottom"===n&&(o=1),(t={opacity:0}
1)[r]=24*o,t},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Y=function(e){var t=e.id,n=e.message,r=e.onCloseComplete,i=e.onRequestRemove,s=e.requestClose,u=void 0!==s&&s,c=e.position,l=void 0===c?"bottom":c,f=e.duration,d=void 0===f?5e3:f,p=e.containerStyle,h=void 0===p?{}:p,v=a.useState(d),m=v[0],y=v[1],g=(0,S.hO)();(0,x.rf)((function(){g||null==r||r()}),[g]),(0,x.rf)((function(){y(d)}),[d]);var b=function(){g&&i()};a.useEffect((function(){g&&u&&i()}),[g,u,i]),(0,x.KS)(b,m);var _=a.useMemo((function(){return function(e){var t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(l)}),[l]);return a.createElement(E.E.li,{layout:!0,className:"chakra-toast",variants:G,initial:"initial",animate:"animate",exit:"exit",onHoverStart:function(){return y(null)},onHoverEnd:function(){return y(d)},custom:{position:l},style:_},a.createElement(U,{className:"chakra-toast__inner",style:W({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:"0.5rem"},h)},(0,o.mf)(n)?n({id:t,onClose:b}):n))};o.Ts&&(Y.displayName="Toast");var K=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).state={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},n.notify=function(e,t){var r=n.createToast(e,t),o=r.position,i=r.id;return n.setState((function(e){var t,n=o.includes("top")?[r].concat(e[o]):[].concat(e[o],[r]);return W({},e,((t={})[o]=n,t))})),i},n.updateToast=function(e,t){n.setState((function(n){var r=W({},n),o=q(r,e),i=o.position,a=o.index;return i&&-1!==a&&(r[i][a]=W({},r[i][a],t)),r}))},n.closeAll=function(e){var t=(void 0===e?{}:e).positions;n.setState((function(e){return(null!=t?t:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((function(t,n){return t[n]=e[n].map((function(e){return W({},e,{requestClose:!0})})),t}),{})}))},n.createToast=function(e,t){var o,i;r.counter+=1;var a=null!=(o=t.id)?o:r.counter,s=null!=(i=t.position)?i:"top";return{id:a,message:e,position:s,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:function(){return n.removeToast(String(a),s)},status:t.status,requestClose:!1,containerStyle:t.containerStyle}},n.closeToast=function(e){n.setState((function(t){var n,r=$(t,e);return r?W({},t,((n={})[r]=t[r].map((function(t){return t.id==e?W({},t,{requestClose:!0}):t})),n)):t}))},n.removeToast=function(e,t){n.setState((function(n){var r;return W({},n,((r={})[t]=n[t].filter((function(t){return t.id!=e})),r))}))},n.isVisible=function(e){var t=q(n.state,e).position;return Boolean(t)},n.getStyle=function(e){return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}};var o={notify:n.notify,closeAll:n.closeAll,close:n.closeToast,update:n.updateToast,isActive:n.isVisible};return t.notify(o),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,H(t,n),r.prototype.render=function(){var e=this;return(0,o.Yd)(this.state).map((function(t){var n=e.state[t];return a.createElement("ul",{key:t,id:"chakra-toast-manager-"+t,style:e.getStyle(t)},a.createElement(O.M,{initial:!1},n.map((function(e){return a.createElement(Y,W({key:e.id},e))}))))}))},r}(a.Component);K.counter=0;var X="chakra-toast-portal",Q=new function(){var e=this;if(this.createToast=void 0,this.removeAll=void 0,this.closeToast=void 0,this.updateToast=void 0,this.isToastActive=void 0,this.bindFunctions=function(t){e.createToast=t.notify,e.removeAll=t.closeAll,e.closeToast=t.close,e.updateToast=t.update,e.isToastActive=t.isActive},this.notify=function(t,n){return void 0===n&&(n={}),null==e.createToast?void 0:e.createToast(t,n)},this.close=function(t){null==e.closeToast||e.closeToast(t)},this.closeAll=function(t){null==e.removeAll||e.removeAll(t)},this.update=function(t,n){void 0===n&&(n={}),null==e.updateToast||e.updateToast(t,n)},this.isActive=function(t){return null==e.isToastActive?void 0:e.isToastActive(t)},o.jU){var t,n=document.getElementById(X);if(n)t=n;else{var r,i=document.createElement("div");i.id=X,null==(r=document.body)||r.appendChild(i),t=i}(0,k.render)(a.createElement(K,{notify:this.bindFunctions}),t)}};function J(e,t){var n;if(e){var r={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[e];return null!=(n=null==r?void 0:r[t])?n:e}}var ee=function(e){var t=e.status,n=e.variant,o=e.id,i=e.title,s=e.isClosable,u=e.onClose,c=e.description,l="undefined"!==typeof o?"toast-"+o+"-title":void 0;return a.createElement(v,{status:t,variant:n,id:o,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto","aria-labelledby":l},a.createElement(g,null),a.createElement(r.m$.div,{flex:"1",maxWidth:"100%"},i&&a.createElement(m,{id:l},i),c&&a.createElement(y,{display:"block"},c)),s&&a.createElement(b.P,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1}))},te={duration:5e3,position:"bottom",variant:"solid"},ne={theme:w.ZP,colorMode:"light",toggleColorMode:o.ZT,setColorMode:o.ZT,defaultOptions:te};function re(e){var t=(0,r.uP)(),n=t.theme,i=t.setColorMode,s=t.toggleColorMode,u=t.colorMode,c=(0,x.II)(e);return a.useMemo((function(){return function(e){var t=void 0===e?ne:e,n=t.theme,i=void 0===n?ne.theme:n,s=t.colorMode,u=void 0===s?ne.colorMode:s,c=t.toggleColorMode,l=void 0===c?ne.toggleColorMode:c,f=t.setColorMode,d=void 0===f?ne.setColorMode:f,p=t.defaultOptions,h=void 0===p?ne.defaultOptions:p,v=function(e,t){return a.createElement(r.f6,{theme:i},a.createElement(_.kc.Provider,{value:{colorMode:u,setColorMode:d,toggleColorMode:l}},(0,o.mf)(t.render)?t.render(e):a.createElement(ee,W({},e,t))))},m=function(e){var t=W({},h,e);return t.position=J(t.position,i.direction),Q.notify((function(e){return v(e,t)}),t)};return m.close=Q.close,m.closeAll=Q.closeAll,m.update=function(e,t){if(e){var n=W({},h,t);n.position=J(n.position,i.direction),Q.update(e,W({},n,{message:function(e){return v(e,n)}}))}},m.isActive=Q.isActive,m}
vendor: 8,962 bytes, line 1
1({theme:n,colorMode:u,setColorMode:i,toggleColorMode:s,defaultOptions:W({},te,c.current)})}),[n,i,s,u,c])}},55798:function(e,t,n){"use strict";n.d(t,{u:function(){return Ke}});var r=n(26450);function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof o(e).Element||e instanceof Element}function a(e){return e instanceof o(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!==typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,c=Math.min,l=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(f())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),s=1,u=1;t&&a(e)&&(s=e.offsetWidth>0&&l(r.width)/e.offsetWidth||1,u=e.offsetHeight>0&&l(r.height)/e.offsetHeight||1);var c=(i(e)?o(e):window).visualViewport,f=!d()&&n,p=(r.left+(f&&c?c.offsetLeft:0))/s,h=(r.top+(f&&c?c.offsetTop:0))/u,v=r.width/s,m=r.height/u;return{width:v,height:m,top:h,right:p+v,bottom:h+m,left:p,x:p,y:h}}function h(e){var t=o(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function v(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return p(m(e)).left+h(e).scrollLeft}function g(e){return o(e).getComputedStyle(e)}function b(e){var t=g(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _(e,t,n){void 0===n&&(n=!1);var r=a(t),i=a(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=m(t),u=p(e,i,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&(("body"!==v(t)||b(s))&&(c=function(e){return e!==o(e)&&a(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:h(e);var t}(t)),a(t)?((f=p(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=y(s))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function w(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function k(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:a(e)&&b(e)?e:k(x(e))}function S(e,t){var n;void 0===t&&(t=[]);var r=k(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],b(r)?r:[]):r,u=t.concat(s);return i?u:u.concat(S(x(s)))}function E(e){return["table","td","th"].indexOf(v(e))>=0}function O(e){return a(e)&&"fixed"!==g(e).position?e.offsetParent:null}function P(e){for(var t=o(e),n=O(e);n&&E(n)&&"static"===g(n).position;)n=O(n);return n&&("html"===v(n)||"body"===v(n)&&"static"===g(n).position)?t:n||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&a(e)&&"fixed"===g(e).position)return null;var n=x(e);for(s(n)&&(n=n.host);a(n)&&["html","body"].indexOf(v(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var T="top",C="bottom",A="right",j="left",R="auto",M=[T,C,A,j],D="start",I="end",L="viewport",N="popper",B=M.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+I])}),[]),F=[].concat(M,[R]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+I])}),[]),Z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function z(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function H(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?U:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:o,setOptions:function(n){var u="function"===typeof n?n(o.options):n;l(),o.options=Object.assign({},a,o.options,u),o.scrollParents={reference:i(e)?S(e):e.contextElement?S(e.contextElement):[],popper:S(t)};var f=function(e){var t=z(e);return Z.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:c,options:r}),u=function(){};s.push(a||u)}})),c.update()},forceUpdate:function(){if(!u){var e=o.elements,t=e.reference,n=e.popper;if(W(t,n)){o.rects={reference:_(t,P(n),"fixed"===o.options.strategy),popper:w(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,l=void 0===s?{}:s,f=i.name;"function"===typeof a&&(o=a({state:o,options:l,name:f,instance:c})||o)}else o.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){l(),u=!0}};if(!W(e,t))return c;function l(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var q={passive:!0};function $(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?$(o):null,a=o?G(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case T:t={x:s,y:n.y-r.height};break;case C:t={x:s,y:n.y+n.height};break;case A:t={x:n.x+n.width,y:u};break;case j:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?Y(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case D:t[c]=t[c]-(n[l]/2-r[l]/2);break;case I:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=s.x,v=void 0===h?0:h,y=s.y,b=void 0===y?0:y,_="function"===typeof d?d({x:v,y:b}):{x:v,y:b};v=_.x,b=_.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=j,S=T,E=window;if(f){var O=P(n),R="clientHeight",M="clientWidth";if(O===o(n)&&"static"!==g(O=m(n)).position&&"absolute"===u&&(R="scrollHeight",M="scrollWidth"),i===T||(i===j||i===A)&&a===I)S=C,b-=(p&&O===E&&E.visualViewport?E.visualViewport.height:O[R])-r.height,b*=c?1:-1;if(i===j||(i===T||i===C)&&a===I)k=A,v-=(p&&O===E&&E.visualViewport?E.visualViewport.width:O[M])-r.width,v*=c?1:-1}var D,L=Object.assign({position:u},f&&X),N=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:l(n*o)/o||0,y:l(r*o)/o||0}}({x:v,y:b},o(n)):{x:v,y:b};return v=N.x,b=N.y,c?Object.assign({},L,((D={})[S]=x?"0":"",D[k]=w?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",D)):Object.assign({},L,((t={})[S]=x?b+"px":"",t[k]=w?v+"px":"",t.transform="",t))}var J={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=F.reduce((function(e,n){return e[n]=function(e,t,n){var r=$(e),o=[j,T].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[j,A].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}}
vendor: 4,250 bytes, line 1
1,ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t,n){return t===L?ie(function(e,t){var n=o(e),r=m(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,u=0,c=0;if(i){a=i.width,s=i.height;var l=d();(l||!l&&"fixed"===t)&&(u=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:u+y(e),y:c}}(e,n)):i(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ie(function(e){var t,n=m(e),r=h(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+y(e),c=-r.scrollTop;return"rtl"===g(o||n).direction&&(s+=u(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(m(e)))}function se(e,t,n,r){var o="clippingParents"===t?function(e){var t=S(x(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&a(e)?P(e):e;return i(n)?t.filter((function(e){return i(e)&&oe(e,n)&&"body"!==v(e)})):[]}(e):[].concat(t),s=[].concat(o,[n]),l=s[0],f=s.reduce((function(t,n){var o=ae(e,n,r);return t.top=u(o.top,t.top),t.right=c(o.right,t.right),t.bottom=c(o.bottom,t.bottom),t.left=u(o.left,t.left),t}),ae(e,l,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function le(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,u=n.boundary,c=void 0===u?"clippingParents":u,l=n.rootBoundary,f=void 0===l?L:l,d=n.elementContext,h=void 0===d?N:d,v=n.altBoundary,y=void 0!==v&&v,g=n.padding,b=void 0===g?0:g,_=ue("number"!==typeof b?b:ce(b,M)),w=h===N?"reference":N,x=e.rects.popper,k=e.elements[y?w:h],S=se(i(k)?k:k.contextElement||m(e.elements.popper),c,f,s),E=p(e.elements.reference),O=K({reference:E,element:x,strategy:"absolute",placement:o}),P=ie(Object.assign({},x,O)),j=h===N?P:E,R={top:S.top-j.top+_.top,bottom:j.bottom-S.bottom+_.bottom,left:S.left-j.left+_.left,right:j.right-S.right+_.right},D=e.modifiersData.offset;if(h===N&&D){var I=D[o];Object.keys(R).forEach((function(e){var t=[A,C].indexOf(e)>=0?1:-1,n=[T,C].indexOf(e)>=0?"y":"x";R[e]+=I[n]*t}))}return R}function fe(e,t,n){return u(e,c(t,n))}var de={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,v=void 0===h||h,m=n.tetherOffset,y=void 0===m?0:m,g=le(t,{boundary:l,rootBoundary:f,padding:p,altBoundary:d}),b=$(t.placement),_=G(t.placement),x=!_,k=Y(b),S="x"===k?"y":"x",E=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,M="function"===typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,I="number"===typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(i){var B,F="y"===k?T:j,Z="y"===k?C:A,z="y"===k?"height":"width",V=E[k],U=V+g[F],W=V-g[Z],H=v?-R[z]/2:0,q=_===D?O[z]:R[z],K=_===D?-R[z]:-O[z],X=t.elements.arrow,Q=v&&X?w(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[F],te=J[Z],ne=fe(0,O[z],Q[z]),re=x?O[z]/2-H-ne-ee-I.mainAxis:q-ne-ee-I.mainAxis,oe=x?-O[z]/2+H+ne+te+I.mainAxis:K+ne+te+I.mainAxis,ie=t.elements.arrow&&P(t.elements.arrow),ae=ie?"y"===k?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(B=null==L?void 0:L[k])?B:0,ue=V+oe-se,ce=fe(v?
vendor: 4,135 bytes, line 1
1c(U,V+re-se-ae):U,V,v?u(W,ue):W);E[k]=ce,N[k]=ce-V}if(s){var de,pe="x"===k?T:j,he="x"===k?C:A,ve=E[S],me="y"===S?"height":"width",ye=ve+g[pe],ge=ve-g[he],be=-1!==[T,j].indexOf(b),_e=null!=(de=null==L?void 0:L[S])?de:0,we=be?ye:ve-O[me]-R[me]-_e+I.altAxis,xe=be?ve+O[me]+R[me]-_e-I.altAxis:ge,ke=v&&be?function(e,t,n){var r=fe(e,t,n);return r>n?n:r}(we,ve,xe):fe(v?we:ye,ve,v?xe:ge);E[S]=ke,N[S]=ke-ve}t.modifiersData[r]=N}},requiresIfExists:["offset"]};var pe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=$(n.placement),u=Y(s),c=[j,A].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ue("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,M))}(o.padding,n),f=w(i),d="y"===u?T:j,p="y"===u?C:A,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],m=P(i),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,g=h/2-v/2,b=l[d],_=y-f[c]-l[p],x=y/2-f[c]/2+g,k=fe(b,x,_),S=u;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ve(e){return[T,A,C,j].some((function(t){return e[t]>=0}))}var me=H({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,s=r.resize,u=void 0===s||s,c=o(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,q)})),u&&c.addEventListener("resize",n.update,q),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,q)})),u&&c.removeEventListener("resize",n.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:$(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];a(o)&&v(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});a(r)&&v(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}
1))}},requires:["computeStyles"]},J,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,y=$(m),g=u||(y===m||!h?[te(m)]:function(e){if($(e)===R)return[];var t=te(e);return[re(e),t,re(t)]}(m)),b=[m].concat(g).reduce((function(e,n){return e.concat($(n)===R?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?F:u,l=G(r),f=l?s?B:B.filter((function(e){return G(e)===l})):M,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=le(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[$(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,S=b[0],E=0;E<b.length;E++){var O=b[E],P=$(O),I=G(O)===D,L=[T,C].indexOf(P)>=0,N=L?"width":"height",Z=le(t,{placement:O,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),z=L?I?A:j:I?C:T;_[N]>w[N]&&(z=te(z));var V=te(z),U=[];if(i&&U.push(Z[P]<=0),s&&U.push(Z[z]<=0,Z[V]<=0),U.every((function(e){return e}))){S=O,k=!1;break}x.set(O,U)}if(k)for(var W=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},H=h?3:1;H>0;H--){if("break"===W(H))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},de,pe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=le(t,{elementContext:"reference"}),s=le(t,{altBoundary:!0}),u=he(a,r),c=he(s,o,i),l=ve(u),f=ve(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),ye=n(67294);function ge(){return ge=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},ge.apply(this,arguments)}var be=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},_e={arrowShadowColor:be("--popper-arrow-shadow-color"),arrowSize:be("--popper-arrow-size","8px"),arrowSizeHalf:be("--popper-arrow-size-half"),arrowBg:be("--popper-arrow-bg"),transformOrigin:be("--popper-transform-origin"),arrowOffset:be("--popper-arrow-offset")};var we={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},xe={scroll:!0,resize:!0};var ke={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},Se={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;Ee(t)},effect:function(e){var t=e.state;return function(){Ee(t)}}},Ee=function(e){var t;e.elements.popper.style.setProperty(_e.transformOrigin.var,(t=e.placement,we[t]))},Oe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;Pe(t)}},Pe=function(e){var t;if(e.placement){var n=Te(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,o;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=_e.arrowSize.varRef,r.height=_e.arrowSize.varRef,r.zIndex=-1,r));var i=((o={})[_e.arrowSizeHalf.var]="calc("+_e.arrowSize.varRef+" / 2)",o[_e.arrowOffset.var]="calc("+_e.arrowSizeHalf.varRef+" * -1)",o);for(var a in i)e.elements.arrow.style.setProperty(a,i[a])}}},Te=function(e){return e.startsWith("top")?{property:"bottom",value:_e.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:_e.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:_e.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:_e.arrowOffset.varRef}:void 0},Ce={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;Ae(t)}
1,effect:function(e){var t=e.state;return function(){Ae(t)}}},Ae=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(n)Object.assign(n.style,{transform:"rotate(45deg)",background:_e.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},je={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Re={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};var Me=["size","shadowColor","bg","style"];function De(e){void 0===e&&(e={});var t=e,n=t.enabled,o=void 0===n||n,i=t.modifiers,a=t.placement,s=void 0===a?"bottom":a,u=t.strategy,c=void 0===u?"absolute":u,l=t.arrowPadding,f=void 0===l?8:l,d=t.eventListeners,p=void 0===d||d,h=t.offset,v=t.gutter,m=void 0===v?8:v,y=t.flip,g=void 0===y||y,b=t.boundary,_=void 0===b?"clippingParents":b,w=t.preventOverflow,x=void 0===w||w,k=t.matchWidth,S=t.direction,E=void 0===S?"ltr":S,O=(0,ye.useRef)(null),P=(0,ye.useRef)(null),T=(0,ye.useRef)(null),C=function(e,t){var n,r;void 0===t&&(t="ltr");var o=(null==(n=je[e])?void 0:n[t])||e;return"ltr"===t?o:null!=(r=Re[e])?r:o}(s,E),A=(0,ye.useRef)((function(){})),j=(0,ye.useCallback)((function(){var e;o&&O.current&&P.current&&(null==A.current||A.current(),T.current=me(O.current,P.current,{placement:C,modifiers:[Ce,Oe,Se,ge({},ke,{enabled:!!k}),ge({name:"eventListeners"},(e=p,"object"===typeof e?{enabled:!0,options:ge({},xe,e)}:{enabled:e,options:xe})),{name:"arrow",options:{padding:f}},{name:"offset",options:{offset:null!=h?h:[0,m]}},{name:"flip",enabled:!!g,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:_}}].concat(null!=i?i:[]),strategy:c}),T.current.forceUpdate(),A.current=T.current.destroy)}),[C,o,i,k,p,f,h,m,g,x,_,c]);(0,ye.useEffect)((function(){return function(){var e;O.current||P.current||(null==(e=T.current)||e.destroy(),T.current=null)}}),[]);var R=(0,ye.useCallback)((function(e){O.current=e,j()}),[j]),M=(0,ye.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ge({},e,{ref:(0,r.lq)(R,t)})}),[R]),D=(0,ye.useCallback)((function(e){P.current=e,j()}),[j]),I=(0,ye.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ge({},e,{ref:(0,r.lq)(D,t),style:ge({},e.style,{position:c,minWidth:"max-content",inset:"0 auto auto 0"})})}),[c,D]),L=(0,ye.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e;return n.size,n.shadowColor,n.bg,n.style,ge({},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}(n,Me),{ref:t,"data-popper-arrow":"",style:Ie(e)})}),[]),N=(0,ye.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ge({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=T.current)||e.update()},forceUpdate:function(){var e;null==(e=T.current)||e.forceUpdate()},transformOrigin:_e.transformOrigin.varRef,referenceRef:R,popperRef:D,getPopperProps:I,getArrowProps:L,getArrowInnerProps:N,getReferenceProps:M}}function Ie(e){var t=e.size,n=e.shadowColor,r=e.bg,o=ge({},e.style,{position:"absolute"});return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}var Le=n(46871),Ne=n(5993),Be=n(15031),Fe=n(1358),Ze=n(75814),ze=n(21190),Ve=n(97375),Ue=n(44697);function We(){return We=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},We.apply(this,arguments)}function He(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}
1var qe={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},$e=["openDelay","closeDelay","closeOnClick","closeOnMouseDown","closeOnEsc","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"];var Ge=["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps","background","backgroundColor","bgColor"],Ye=(0,Ne.m$)(Ze.E.div),Ke=(0,Ne.Gp)((function(e,t){var n,o,i=(0,Ne.mq)("Tooltip",e),a=(0,Ne.Lr)(e),s=(0,Ne.Fg)(),u=a.children,c=a.label,l=a.shouldWrapChildren,f=a["aria-label"],d=a.hasArrow,p=a.bg,h=a.portalProps,v=a.background,m=a.backgroundColor,y=a.bgColor,g=He(a,Ge),b=null!=(n=null!=(o=null!=v?v:m)?o:p)?n:y;b&&(i.bg=b,i[_e.arrowBg.var]=(0,Be.K1)(s,"colors",b));var _,w=function(e){void 0===e&&(e={});var t=e,n=t.openDelay,o=void 0===n?0:n,i=t.closeDelay,a=void 0===i?0:i,s=t.closeOnClick,u=void 0===s||s,c=t.closeOnMouseDown,l=t.closeOnEsc,f=void 0===l||l,d=t.onOpen,p=t.onClose,h=t.placement,v=t.id,m=t.isOpen,y=t.defaultIsOpen,g=t.arrowSize,b=void 0===g?10:g,_=t.arrowShadowColor,w=t.arrowPadding,x=t.modifiers,k=t.isDisabled,S=t.gutter,E=t.offset,O=t.direction,P=He(t,$e),T=(0,Ve.qY)({isOpen:m,defaultIsOpen:y,onOpen:d,onClose:p}),C=T.isOpen,A=T.onOpen,j=T.onClose,R=De({enabled:C,placement:h,arrowPadding:w,modifiers:x,gutter:S,offset:E,direction:O}),M=R.referenceRef,D=R.getPopperProps,I=R.getArrowInnerProps,L=R.getArrowProps,N=(0,Ve.Me)(v,"tooltip"),B=ye.useRef(null),F=ye.useRef(),Z=ye.useRef(),z=ye.useCallback((function(){k||(F.current=window.setTimeout(A,o))}),[k,A,o]),V=ye.useCallback((function(){F.current&&clearTimeout(F.current),Z.current=window.setTimeout(j,a)}),[a,j]),U=ye.useCallback((function(){u&&V()}),[u,V]),W=ye.useCallback((function(){c&&V()}),[c,V]),H=ye.useCallback((function(e){C&&"Escape"===e.key&&V()}),[C,V]);(0,Ue.b)("keydown",f?H:void 0),ye.useEffect((function(){return function(){clearTimeout(F.current),clearTimeout(Z.current)}}),[]),(0,Ue.b)("mouseleave",V,(function(){return B.current}));var q=ye.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),We({},e,{ref:(0,r.lq)(B,t,M),onMouseEnter:(0,Be.v0)(e.onMouseEnter,z),onClick:(0,Be.v0)(e.onClick,U),onMouseDown:(0,Be.v0)(e.onMouseDown,W),onFocus:(0,Be.v0)(e.onFocus,z),onBlur:(0,Be.v0)(e.onBlur,V),"aria-describedby":C?N:void 0})}),[z,V,W,C,N,U,M]),$=ye.useCallback((function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),D(We({},e,{style:We({},e.style,(n={},n[_e.arrowSize.var]=b?(0,Be.px)(b):void 0,n[_e.arrowShadowColor.var]=_,n))}),t)}),[D,b,_]),G=ye.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),We({ref:t},P,e,{id:N,role:"tooltip",style:We({},e.style,{position:"relative",transformOrigin:_e.transformOrigin.varRef})})}),[P,N]);return{isOpen:C,show:z,hide:V,getTriggerProps:q,getTooltipProps:G,getTooltipPositionerProps:$,getArrowProps:L,getArrowInnerProps:I}}(We({},g,{direction:s.direction}));if((0,Be.HD)(u)||l)_=ye.createElement(Ne.m$.span,We({tabIndex:0},w.getTriggerProps()),u);else{var x=ye.Children.only(u);_=ye.cloneElement(x,w.getTriggerProps(x.props,x.ref))}var k=!!f,S=w.getTooltipProps({},t),E=k?(0,Be.CE)(S,["role","id"]):S,O=(0,Be.ei)(S,["role","id"]);return c?ye.createElement(ye.Fragment,null,_,ye.createElement(ze.M,null,w.isOpen&&ye.createElement(Le.h_,h,ye.createElement(Ne.m$.div,We({},w.getTooltipPositionerProps(),{__css:{zIndex:i.zIndex,pointerEvents:"none"}}),ye.createElement(Ye,We({variants:qe},E,{initial:"exit",animate:"enter",exit:"exit",__css:i}),c,k&&ye.createElement(Fe.TX,O,f),d&&ye.createElement(Ne.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ye.createElement(Ne.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}}))))))):ye.createElement(ye.Fragment,null,u)}));Be.Ts&&(Ke.displayName="Tooltip")},37496:function(e,t,n){"use strict";n.d(t,{Mi:function(){return M},Qh:function(){return T},UO:function(){return k},Xc:function(){return I},uf:function(){return E}});var r=n(15031),o=n(38554),i=n.n(o),a=n(21190),s=n(75814),u=n(67294);function c(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}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 f={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},d={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},p={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},h={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},v={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function m(e){var t;
1switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return p;case"left":return d;case"bottom":return v;case"top":return h}}var y={enter:{duration:.2,ease:f.easeOut},exit:{duration:.1,ease:f.easeIn}},g=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter})},b=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})},_=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],w={exit:{height:{duration:.2,ease:f.ease},opacity:{duration:.3,ease:f.ease}},enter:{height:{duration:.3,ease:f.ease},opacity:{duration:.4,ease:f.ease}}},x={exit:function(e){var t,n,r=e.animateOpacity,o=e.startingHeight,i=e.transition,a=e.transitionEnd,s=e.delay;return l({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:o,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==i?void 0:i.exit)?t:b(w.exit,s)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,o=e.transition,i=e.transitionEnd,a=e.delay;return l({},n&&{opacity:1},{height:r,transitionEnd:null==i?void 0:i.enter,transition:null!=(t=null==o?void 0:o.enter)?t:g(w.enter,a)})}},k=u.forwardRef((function(e,t){var n=e.in,o=e.unmountOnExit,f=e.animateOpacity,d=void 0===f||f,p=e.startingHeight,h=void 0===p?0:p,v=e.endingHeight,m=void 0===v?"auto":v,y=e.style,g=e.className,b=e.transition,w=e.transitionEnd,k=c(e,_),S=u.useState(!1),E=S[0],O=S[1];u.useEffect((function(){var e=setTimeout((function(){O(!0)}));return function(){return clearTimeout(e)}}),[]),(0,r.ZK)({condition:Boolean(h>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var P=parseFloat(h.toString())>0,T={startingHeight:h,endingHeight:m,animateOpacity:d,transition:E?b:{enter:{duration:0}},transitionEnd:i()(w,{exit:o?void 0:{display:P?"block":"none"}})},C=!o||n,A=n||o?"enter":"exit";return u.createElement(a.M,{initial:!1,custom:T},C&&u.createElement(s.E.div,l({ref:t},k,{className:(0,r.cx)("chakra-collapse",g),style:l({overflow:"hidden",display:"block"},y),custom:T,variants:x,initial:!!o&&"exit",animate:A,exit:"exit"})))}));r.Ts&&(k.displayName="Collapse");var S=["unmountOnExit","in","className","transition","transitionEnd","delay"],E={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,i=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:g(y.enter,i),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,i=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:b(y.exit,i),transitionEnd:null==o?void 0:o.exit}}}},O=u.forwardRef((function(e,t){var n=e.unmountOnExit,o=e.in,i=e.className,f=e.transition,d=e.transitionEnd,p=e.delay,h=c(e,S),v=o||n?"enter":"exit",m=!n||o&&n,y={transition:f,transitionEnd:d,delay:p};return u.createElement(a.M,{custom:y},m&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-fade",i),custom:y},E,{animate:v},h)))}));r.Ts&&(O.displayName="Fade");var P=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],T={initial:"exit",animate:"enter",exit:"exit",variants:{exit:function(e){var t,n=e.reverse,r=e.initialScale,o=e.transition,i=e.transitionEnd,a=e.delay;return l({opacity:0}
1,n?{scale:r,transitionEnd:null==i?void 0:i.exit}:{transitionEnd:l({scale:r},null==i?void 0:i.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:b(y.exit,a)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:g(y.enter,o),transitionEnd:null==n?void 0:n.enter}}}},C=u.forwardRef((function(e,t){var n=e.unmountOnExit,o=e.in,i=e.reverse,f=void 0===i||i,d=e.initialScale,p=void 0===d?.95:d,h=e.className,v=e.transition,m=e.transitionEnd,y=e.delay,g=c(e,P),b=!n||o&&n,_=o||n?"enter":"exit",w={initialScale:p,reverse:f,transition:v,transitionEnd:m,delay:y};return u.createElement(a.M,{custom:w},b&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",h)},T,{animate:_,custom:w},g)))}));r.Ts&&(C.displayName="ScaleFade");var A=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],j={exit:{duration:.15,ease:f.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},R={exit:function(e){var t,n=e.direction,r=e.transition,o=e.transitionEnd,i=e.delay;return l({},m({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:b(j.exit,i),transitionEnd:null==o?void 0:o.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,o=e.transition,i=e.delay;return l({},m({direction:n}).enter,{transition:null!=(t=null==o?void 0:o.enter)?t:g(j.enter,i),transitionEnd:null==r?void 0:r.enter})}},M=u.forwardRef((function(e,t){var n=e.direction,o=void 0===n?"right":n,i=e.style,f=e.unmountOnExit,d=e.in,p=e.className,h=e.transition,v=e.transitionEnd,y=e.delay,g=c(e,A),b=m({direction:o}),_=Object.assign({position:"fixed"},b.position,i),w=!f||d&&f,x=d||f?"enter":"exit",k={transitionEnd:v,transition:h,direction:o,delay:y};return u.createElement(a.M,{custom:k},w&&u.createElement(s.E.div,l({},g,{ref:t,initial:"exit",className:(0,r.cx)("chakra-slide",p),animate:x,exit:"exit",custom:k,variants:R,style:_})))}));r.Ts&&(M.displayName="Slide");var D=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],I={initial:"initial",animate:"enter",exit:"exit",variants:{initial:function(e){var t,n=e.offsetX,r=e.offsetY,o=e.transition,i=e.transitionEnd,a=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:b(y.exit,a),transitionEnd:null==i?void 0:i.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:g(y.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,o=e.transition,i=e.transitionEnd,a=e.reverse,s=e.delay,u={x:r,y:n};return l({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:b(y.exit,s)},a?l({},u,{transitionEnd:null==i?void 0:i.exit}):{transitionEnd:l({},u,null==i?void 0:i.exit)})}}},L=u.forwardRef((function(e,t){var n=e.unmountOnExit,o=e.in,i=e.reverse,f=void 0===i||i,d=e.className,p=e.offsetX,h=void 0===p?0:p,v=e.offsetY,m=void 0===v?8:v,y=e.transition,g=e.transitionEnd,b=e.delay,_=c(e,D),w=!n||o&&n,x=o||n?"enter":"exit",k={offsetX:h,offsetY:m,reverse:f,transition:y,transitionEnd:g,delay:b};return u.createElement(a.M,{custom:k},w&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",d),custom:k},I,{animate:x},_)))}));r.Ts&&(L.displayName="SlideFade")},15031:function(e,t,n){"use strict";n.d(t,{Hc:function(){return Ne},Ts:function(){return j},jX:function(){return _},yn:function(){return q},Qm:function(){return J},PP:function(){return de},v0:function(){return fe},HU:function(){return Ee},cx:function(){return ee},PB:function(){return Q},YU:function(){return N},xH:function(){return _e},T_:function(){return ge},sq:function(){return F},t5:function(){return se},K1:function(){return Z},f7:function(){return Ie},kJ:function(){return k},jU:function(){return X},FS:function(){return A},Qr:function(){return P},mf:function(){return S},kA:function(){return R},Ft:function(){return T},hj:function(){return x},Kn:function(){return O},HD:function(){return C},o8:function(){return E},XQ:function(){return Ue},Wf:function(){return I},ZT:function(){return he},uh:function(){return te},lw:function(){return L},Yd:function(){return B},CE:function(){return M},WS:function(){return ke},ei:function(){return D},px:function(){return z},cl:function(){return w},WP:function(){return Se},Pu:function(){return le},Rg:function(){return xe},ZK:function(){return ve},JN:function(){return Re}});n(38554);var r=1/60*1e3,o="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},i="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(o())}),r)};
1var a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],f=l.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var u=s&&o,c=u?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(s){var u;if(o=!0,t=(u=[n,t])[0],(n=u[1]).length=0,r=t.length)for(var c=0;c<r;c++){var l=t[c];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return s=!0})),e}),{}),d=l.reduce((function(e,t){var n=f[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s||m(),n.schedule(e,t,r)},e}),{}),p=l.reduce((function(e,t){return e[t]=f[t].cancel,e}),{}),h=function(e){return f[e].process(c)},v=function(e){s=!1,c.delta=a?r:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(h),u=!1,s&&(a=!1,i(v))},m=function(){s=!0,a=!0,u||i(v)},y=function(){return c},g=d;function b(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function _(e,t){return[].concat(e,[t])}function w(e,t){return e.filter((function(e){return e!==t}))}function x(e){return"number"===typeof e}function k(e){return Array.isArray(e)}function S(e){return"function"===typeof e}function E(e){return"undefined"===typeof e||void 0===e}function O(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!k(e)}function P(e){return O(e)&&0===Object.keys(e).length}function T(e){return null==e}function C(e){return"[object String]"===Object.prototype.toString.call(e)}function A(e){return/^var\(--.+\)$/.test(e)}var j=!1;function R(e){return e&&O(e)&&O(e.target)}function M(e,t){var n={};return Object.keys(e).forEach((function(r){t.includes(r)||(n[r]=e[r])})),n}function D(e,t){var n={};return t.forEach((function(t){t in e&&(n[t]=e[t])})),n}var I=function(e){var t=new WeakMap;return function(n,r,o,i){if("undefined"===typeof n)return e(n,r,o);t.has(n)||t.set(n,new Map);var a=t.get(n);if(a.has(r))return a.get(r);var s=e(n,r,o,i);return a.set(r,s),s}}((function(e,t,n,r){var o="string"===typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}));function L(e,t){var n={};return Object.keys(e).forEach((function(r){var o=e[r];t(o,r,e)&&(n[r]=o)})),n}var N=function(e){return L(e,(function(e){return null!==e&&void 0!==e}))},B=function(e){return Object.keys(e)},F=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Z=function(e,t,n){var r,o;return null!=(r=null==(o=e.__cssMap[t+"."+n])?void 0:o.varRef)?r:n};function z(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||x(e)?e+"px":e}var V=function(e,t){return parseInt(e[1],10)>parseInt(t[1],10)?1:-1},U=function(e){return F(Object.entries(e).sort(V))};function W(e){var t=U(e);return Object.assign(Object.values(t),t)}function H(e,t){var n=["@media screen"];return e&&n.push("and","(min-width: "+z(e)+")"),t&&n.push("and","(max-width: "+z(t)+")"),n.join(" ")}function q(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";var n=W(e),r=Object.entries(e).sort(V).map((function(e,t,n){var r,o=e[0],i=e[1],a=(null!=(r=n[t+1])?r:[])[1];return{breakpoint:o,minW:i,maxW:a=parseFloat(a)>0?function(e){var t;if(!e)return e;var n=(e=null!=(t=z(e))?t:e).endsWith("px")?-1:-.0635;return x(e)?""+(e+n):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+n)}))}(a):void 0,maxWQuery:H(null,a),minWQuery:H(i),minMaxQuery:H(i,a)}})),o=function(e){var t=Object.keys(U(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return o.has(e)}))},asObject:U(e),asArray:W(e),details:r,media:[null].concat(n.map((function(e){return H(e)})).slice(1)),toArrayValue:function(e){if(!O(e))throw new Error("toArrayValue: value must be an object");for(var t=i.map((function(t){var n;return null!=(n=e[t])?n:null}));null===b(t);)t.pop();return t},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,t,n){var r=i[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}}function $(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function G(e){var t;return!!$(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function Y(e){var t;return $(e)&&null!=(t=e.ownerDocument)?t:document}function K(e){var t;return null!=(t=e.view)?t:window}var X=!("undefined"===typeof window||!window.document||!window.document.createElement),Q=function(e){return e?"":void 0},J=function(e){return!!e||void 0},ee=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")};function te(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}var ne=function(e){return e.hasAttribute("tabindex")};function re(e){return(G(e)?Y(e):document).activeElement===e}function oe(e){return!(!e.parentElement||!oe(e.parentElement))||e.hidden}function ie(e){if(!G(e)||oe(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||ne(e)}var ae=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not
1([aria-disabled])","*[contenteditable]"].join();function se(e){var t=Array.from(e.querySelectorAll(ae));return t.unshift(e),t.filter(ie).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function ue(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 ce(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return ue(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)?ue(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function le(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 S(e)?e.apply(void 0,n):e}function fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.some((function(t){return null==t||t(e),null==e?void 0:e.defaultPrevented}))}}function de(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){null==t||t(e)}))}}function pe(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=e.apply(this,r),e=null}return t}}var he=function(){},ve=pe((function(e){return function(){var t=e.condition,n=e.message;t&&j&&console.warn(n)}})),me=(pe((function(e){return function(){var t=e.condition,n=e.message;t&&j&&console.error(n)}})),function(e,t){return Math.abs(e-t)}),ye=function(e){return"x"in e&&"y"in e};function ge(e,t){void 0===t&&(t={});var n=t,r=n.isActive,o=void 0===r?re:r,i=n.nextTick,a=n.preventScroll,s=void 0===a||a,u=n.selectTextIfInput,c=void 0===u||u;if(!e||o(e))return-1;function l(){if(e){if(function(){if(null==be){be=!1;try{document.createElement("div").focus({get preventScroll(){return be=!0,!0}})}catch(e){}}return be}())e.focus({preventScroll:s});else if(e.focus(),s){var t=function(e){var t,n=Y(e),r=null!=(t=n.defaultView)?t:window,o=e.parentNode,i=[],a=n.scrollingElement||n.documentElement;for(;o instanceof r.HTMLElement&&o!==a;)(o.offsetHeight<o.scrollHeight||o.offsetWidth<o.scrollWidth)&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),o=o.parentNode;a instanceof r.HTMLElement&&i.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft});return i}(e);!function(e){for(var t,n=ce(e);!(t=n()).done;){var r=t.value,o=r.element,i=r.scrollTop,a=r.scrollLeft;o.scrollTop=i,o.scrollLeft=a}}(t)}(function(e){return G(e)&&"input"===e.tagName.toLowerCase()&&"select"in e})(e)&&c&&e.select()}else ve({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}return i?requestAnimationFrame(l):(l(),-1)}var be=null;function _e(e,t){return void 0===t&&(t=1/0),(O(e)||Array.isArray(e))&&t?Object.entries(e).reduce((function(e,n){var r=n[0],o=n[1];return O(o)||k(o)?Object.entries(_e(o,t-1)).forEach((function(t){var n=t[0],o=t[1];e[r+"."+n]=o})):e[r]=o,e}),{}):e}Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;function we(e){var t=parseFloat(e);return function(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)}(t)?0:t}function xe(e,t,n){return 100*(e-t)/(n-t)}function ke(e,t,n){return(n-t)*e+t}function Se(e,t,n){var r=Math.round((e-t)/n)*n+t,o=function(e){if(!Number.isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(n);return function(e,t){var n=we(e),r=Math.pow(10,null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}(r,o)}function Ee(e,t,n){return null==e?e:(ve({condition:n<t,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,t),n))}function Oe(){return Oe=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},Oe.apply(this,arguments)}function Pe(e){return!!e.touches}var Te={pageX:0,pageY:0};function Ce(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Te;return{x:n[t+"X"],y:n[t+"Y"]}}function Ae(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function je(e,t){return void 0===t&&(t="page"),{point:Pe(e)?Ce(e,t):Ae(e,t)}}var Re=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,je(t))};return t?(n=r,function(e){var t=e instanceof K(e).MouseEvent;(!t||t&&0===e.button)&&n(e)}):r}
1,Me={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},De={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ie(e){return X&&null===window.onpointerdown?e:X&&null===window.ontouchstart?De[e]:X&&null===window.onmousedown?Me[e]:e}function Le(e,t,n,r){return function(e,t,n,r){return e.addEventListener(t,n,r),function(){e.removeEventListener(t,n,r)}}(e,Ie(t),Re(n,"pointerdown"===t),r)}var Ne=function(){function e(e,t,n){var r=this;if(this.history=[],this.startEvent=null,this.lastEvent=null,this.lastEventInfo=null,this.handlers={},this.removeListeners=he,this.threshold=3,this.win=void 0,this.updatePoint=function(){if(r.lastEvent&&r.lastEventInfo){var e=ze(r.lastEventInfo,r.history),t=null!==r.startEvent,n=function(e,t){if(x(e)&&x(t))return me(e,t);if(ye(e)&&ye(t)){var n=me(e.x,t.x),r=me(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}return 0}(e.offset,{x:0,y:0})>=r.threshold;if(t||n){var o=y().timestamp;r.history.push(Oe({},e.point,{timestamp:o}));var i=r.handlers,a=i.onStart,s=i.onMove;t||(null==a||a(r.lastEvent,e),r.startEvent=r.lastEvent),null==s||s(r.lastEvent,e)}}},this.onPointerMove=function(e,t){r.lastEvent=e,r.lastEventInfo=t,function(e){var t=K(e);return"undefined"!==typeof t.PointerEvent&&e instanceof t.PointerEvent?!("mouse"!==e.pointerType):e instanceof t.MouseEvent}(e)&&0===e.buttons?r.onPointerUp(e,t):g.update(r.updatePoint,!0)},this.onPointerUp=function(e,t){var n=ze(t,r.history),o=r.handlers,i=o.onEnd,a=o.onSessionEnd;null==a||a(e,n),r.end(),i&&r.startEvent&&(null==i||i(e,n))},this.win=K(e),!(Pe(o=e)&&o.touches.length>1)){var o;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var i=je(e),a=y().timestamp;this.history=[Oe({},i.point,{timestamp:a})];var s=t.onSessionStart;null==s||s(e,ze(i,this.history)),this.removeListeners=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}}(Le(this.win,"pointermove",this.onPointerMove),Le(this.win,"pointerup",this.onPointerUp),Le(this.win,"pointercancel",this.onPointerUp))}}var t=e.prototype;return t.updateHandlers=function(e){this.handlers=e},t.end=function(){var e;null==(e=this.removeListeners)||e.call(this),p.update(this.updatePoint)},e}();function Be(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fe(e){return e[0]}function Ze(e){return e[e.length-1]}function ze(e,t){return{point:e.point,delta:Be(e.point,Ze(t)),offset:Be(e.point,Fe(t)),velocity:Ve(t,.1)}}function Ve(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ue(e,t){return k(e)?e.map((function(e){return null===e?null:t(e)})):O(e)?B(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{}):null!=e?t(e):null}},1358:function(e,t,n){"use strict";n.d(t,{NL:function(){return i},TX:function(){return a}});var r=n(5993),o=n(15031),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,r.m$)("span",{baseStyle:i});o.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:i});o.Ts&&(s.displayName="VisuallyHiddenInput")},8417:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,077 bytes, line 1
1,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function d(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var v=1,m=1,y=0,g=0,b=0,_="";function w(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:v,column:m,length:a,return:""}}function x(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=g>0?l(_,--g):0,m--,10===b&&(m=1,v--),b}function S(){return b=g<y?l(_,g++):0,m++,10===b&&(m=1,v++),b}function E(){return l(_,g)}function O(){return g}function P(e,t){return f(_,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function C(e){return v=m=1,y=d(_=e),g=0,[]}function A(e){return _="",e}function j(e){return s(P(g-1,D(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(b=E())&&b<33;)S();return T(e)>2||T(b)>3?"":" "}function M(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return P(e,O()+(t<6&&32==E()&&32==S()))}function D(e){for(;S();)switch(b){case e:return g;case 34:case 39:34!==e&&39!==e&&D(b);break;case 40:41===e&&D(e);break;case 92:S()}return g}function I(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+P(t,g-1)+"*"+i(47===e?e:S())}function L(e){for(;!T(E());)S();return P(e,g)}var N="-ms-",B="-moz-",F="-webkit-",Z="comm",z="rule",V="decl",U="@keyframes";function W(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case Z:return"";case U:return e.return=e.value+"{"+W(e.children,r)+"}";case z:e.value=e.props.join(",")}return d(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return A($("",null,null,null,[""],e=C(e),0,[0],e))}function $(e,t,n,r,o,a,s,f,p){for(var v=0,m=0,y=s,g=0,b=0,_=0,w=1,x=1,P=1,T=0,C="",A=o,D=a,N=r,B=C;x;)switch(_=T,T=S()){case 40:if(108!=_&&58==l(B,y-1)){-1!=c(B+=u(j(T),"&","&\f"),"&\f")&&(P=-1);break}case 34:case 39:case 91:B+=j(T);break;case 9:case 10:case 13:case 32:B+=R(_);break;case 92:B+=M(O()-1,7);continue;case 47:switch(E()){case 42:case 47:h(Y(I(S(),O()),t,n),p);break;default:B+="/"}break;case 123*w:f[v++]=d(B)*P;case 125*w:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+m:-1==P&&(B=u(B,/\f/g,"")),b>0&&d(B)-y&&h(b>32?K(B+";",r,n,y-1):K(u(B," ","")+";",r,n,y-2),p);break;case 59:B+=";";default:if(h(N=G(B,t,n,v,m,o,f,C,A=[],D=[],y),a),123===T)if(0===m)$(B,t,N,N,A,a,y,f,D);else switch(99===g&&110===l(B,3)?100:g){case 100:case 108:case 109:case 115:$(e,N,N,r&&h(G(e,N,N,0,0,o,f,C,o,A=[],y),D),o,D,y,f,r?A:D);break;default:$(B,N,N,N,[""],D,0,f,D)}}v=m=b=0,w=P=1,C=B="",y=s;break;case 58:y=1+d(B),b=_;default:if(w<1)if(123==T)--w;else if(125==T&&0==w++&&125==k())continue;switch(B+=i(T),T*w){case 38:P=m>0?1:(B+="\f",-1);break;case 44:f[v++]=(d(B)-1)*P,P=1;break;case 64:45===E()&&(B+=j(S())),g=E(),m=y=d(C=B+=L(O())),T++;break;case 45:45===_&&2==d(B)&&(w=0)}}return a}function G(e,t,n,r,i,a,c,l,d,h,v){for(var m=i-1,y=0===i?a:[""],g=p(y),b=0,_=0,x=0;b<r;++b)for(var k=0,S=f(e,m+1,m=o(_=c[b])),E=e;k<g;++k)(E=s(_>0?y[k]+" "+S:u(S,/&\f/g,y[k])))&&(d[x++]=E);return w(e,t,n,0===i?z:l,d,h,v)}function Y(e,t,n){return w(e,t,n,Z,i(b),f(e,2,-2),0)}function K(e,t,n,r){return w(e,t,n,V,f(e,0,r),f(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!T(o);)S();return P(e,g)},Q=function(e,t){return A(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=X(g-1,t,n);break;case 2:e[n]+=j(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(C(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=Q(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^l(e,0)?(((t<<2^l(e,0))<<2^l(e,1))<<2^l(e,2))<<2^l(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;
1case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+B+e+N+e+e;case 6828:case 4268:return F+e+N+e+e;case 6165:return F+e+N+"flex-"+e+e;case 5187:return F+e+u(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return F+e+N+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return F+e+N+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+N+u(e,"shrink","negative")+e;case 5292:return F+e+N+u(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+u(e,"-grow","")+F+e+N+u(e,"grow","positive")+e;case 4554:return F+u(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":-webkit-")+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===l(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return F+e+N+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+N+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+N+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+N+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=ne(e.value,e.length);break;case U:return W([x(e,{value:u(e.value,"@","@-webkit-")})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([x(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([x(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),x(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[u(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var i,a,s={},u=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;u.push(e)}));var c,l,f=[H,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=function(e){var t=p(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(o,f));a=function(e,t,n,r){c=n,W(q(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(u),h}},71068:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(45042),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
1ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,r.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},45042:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},11463:function(e,t,n){"use strict";n.d(t,{T:function(){return l},a:function(){return d},i:function(){return s},w:function(){return c}});var r=n(67294),o=n(8417),i=n(87462),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=(n(48137),n(27278),!0),u=r.createContext("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);u.Provider;var c=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(u);return e(t,o,n)}))};s||(c=function(e){return function(t){var n=(0,r.useContext)(u);return null===n?(n=(0,o.Z)({key:"css"}),r.createElement(u.Provider,{value:n},e(t,n))):e(t,n)}});var l=r.createContext({});var f=a((function(e){return a((function(t){return function(e,t){return"function"===typeof t?t(e):(0,i.Z)({},e,t)}(e,t)}))})),d=function(e){var t=r.useContext(l);return e.theme!==t&&(t=f(t)(e.theme)),r.createElement(l.Provider,{value:t},e.children)}},70917:function(e,t,n){"use strict";n.d(t,{F4:function(){return l},xB:function(){return u}});var r=n(11463),o=n(67294),i=n(70444),a=n(27278),s=n(48137),u=(n(8417),n(8679),(0,r.w)((function(e,t){var n=e.styles,u=(0,s.O)([n],void 0,o.useContext(r.T));if(!r.i){for(var c,l=u.name,f=u.styles,d=u.next;void 0!==d;)l+=" "+d.name,f+=d.styles,d=d.next;var p=!0===t.compat,h=t.insert("",{name:l,styles:f},t.sheet,p);return p?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+l,c.dangerouslySetInnerHTML={__html:h},c.nonce=t.sheet.nonce,c))}var v=o.useRef();return(0,a.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),v.current=[n,r],function(){n.flush()}}),[t]),(0,a.j)((function(){var e=v.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&(0,i.My)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)}}),[t,u.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.O)(t)}var l=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},48137:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(45042),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),l=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,n){return d={name:t,styles:n,next:d},t}))}return 1===r[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return d={name:n.name,styles:n.styles,next:d},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)d={name:r.name,styles:r.styles,next:d},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":u(a)&&(r+=c(i)+":"+l(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var d=0;d<a.length;d++)u(a[d])&&(r+=c(i)+":"+l(i,a[d])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=d,i=n(e);return d=o,f(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var d,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var h=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";d=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=f(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=f(n,t,e[a]),r&&(o+=i[a]);p.lastIndex=0;for(var s,u="";null!==(s=p.exec(o));)u+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:c,styles:o,next:d}}},27278:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return s}});var o=n(67294),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},70444:function(e,t,n){"use strict";n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},74444:function(e,t,n){"use strict";n.d(t,{$s:function(){return S},BH:function(){return p},L:function(){return s},LL:function(){return _},P0:function(){return f},Sg:function(){return h},ZR:function(){return b},aH:function(){return d},eu:function(){return y},hl:function(){return m},m9:function(){return E},ru:function(){return v},vZ:function(){return x},zI:function(){return g}});var r=n(83454);const o=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296===(64512&o)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o<e.length;o+=3){const t=e[o],i=o+1<e.length,a=i?e[o+1]:0,s=o+2<e.length,u=s?e[o+2]:0,c=t>>2,l=(3&t)<<4|a>>4;let f=(15&a)<<2|u>>6,d=63&u;s||(d=64,i||(f=64)),r.push(n[c],n[l],n[f],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(o(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){const i=((7&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>
110)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o<e.length;){const t=n[e.charAt(o++)],i=o<e.length?n[e.charAt(o)]:0;++o;const s=o<e.length?n[e.charAt(o)]:64;++o;const u=o<e.length?n[e.charAt(o)]:64;if(++o,null==t||null==i||null==s||null==u)throw new a;const c=t<<2|i>>4;if(r.push(c),64!==s){const e=i<<4&240|s>>2;if(r.push(e),64!==u){const e=s<<6&192|u;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class a extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const s=function(e){return function(e){const t=o(e);return i.encodeByteArray(t,!0)}(e).replace(/\./g,"")},u=function(e){try{return i.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};const c=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,l=()=>{try{return c()||(()=>{if("undefined"===typeof r||"undefined"===typeof r.env)return;const e=r.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},f=e=>{const t=(e=>{var t,n;return null===(n=null===(t=l())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]})(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},d=()=>{var e;return null===(e=l())||void 0===e?void 0:e.config};class p{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function h(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const i=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[s(JSON.stringify({alg:"none",type:"JWT"})),s(JSON.stringify(i)),""].join(".")}function v(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function m(){try{return"object"===typeof indexedDB}catch(e){return!1}}function y(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}}))}function g(){return!("undefined"===typeof navigator||!navigator.cookieEnabled)}class b extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,b.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,_.prototype.create)}}class _{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,o=this.errors[e],i=o?function(e,t){return e.replace(w,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(o,n):"Error",a=`${this.serviceName}: ${i} (${r}).`;return new b(r,a,n)}}const w=/\{\$([^}]+)}/g;function x(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const n=e[o],i=t[o];if(k(n)&&k(i)){if(!x(n,i))return!1}else if(n!==i)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function k(e){return null!==e&&"object"===typeof e}function S(e,t=1e3,n=2){const r=t*Math.pow(n,e),o=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+o)}function E(e){return e&&e._delegate?e._delegate:e}},58354:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return V},ResizeObserverEntry:function(){return k},ResizeObserverSize:function(){return u}});var r,o=[],i="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var a,s=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,s(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),l=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(l(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},d=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null===e||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p="undefined"!==typeof window?window:{},h=new WeakMap,v=/auto|scroll/,m=/^tb|vertical/,y=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),g=function(e){return parseFloat(e||"0")},b=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},_=s({devicePixelContentBoxSize:b(),borderBoxSize:b(),contentBoxSize:b(),contentRect:new c(0,0,0,0)}),w=function(e,t){if(void 0===t&&(t=!1),h.has(e)&&!t)return h.get(e);if(f(e))return h.set(e,_),_;var n=getComputedStyle(e),r=l(e)&&e.ownerSVGElement&&e.getBBox(),o=!y&&"border-box"===n.boxSizing,i=m.test(n.writingMode||""),a=!r&&v.test(n.overflowY||""),u=!r&&v.test(n.overflowX||""),d=r?0:g(n.paddingTop),p=r?0:g(n.paddingRight),w=r?0:g(n.paddingBottom),x=r?0:g(n.paddingLeft),k=r?0:g(n.borderTopWidth),S=r?0:g(n.borderRightWidth),E=r?0:g(n.borderBottomWidth),O=x+p,P=d+w,T=(r?0:g(n.borderLeftWidth))+S,C=k+E,A=u?e.offsetHeight-C-e.clientHeight:0,j=a?e.offsetWidth-T-e.clientWidth:0,R=o?O+T:0,M=o?P+C:0,D=r?r.width:g(n.width)-R-j,I=r?r.height:g(n.height)-M-A,L=D+O+j+T,N=I+P+A+C,B=s({devicePixelContentBoxSize:b(Math.round(D*devicePixelRatio),Math.round(I*devicePixelRatio),i),borderBoxSize:b(L,N,i),contentBoxSize:b(D,I,i),contentRect:new c(x,d,D,I)});return h.set(e,B),B},x=function(e,t,n){var o=w(e,n),i=o.borderBoxSize,a=o.contentBoxSize,s=o.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return s;case r.BORDER_BOX:return i;default:return a}},k=function(e){var t=w(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=s([t.borderBoxSize]),this.contentBoxSize=s([t.contentBoxSize]),this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])},S=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},E=function(){var e=1/0,t=[];o.forEach((function(n){if(0!==n.activeTargets.length){var r=[];
vendor: 17,575 bytes, line 1
1n.activeTargets.forEach((function(t){var n=new k(t.target),o=S(t.target);r.push(n),t.lastReportedSize=x(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},O=function(e){o.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(S(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},P=function(){var e=0;for(O(e);o.some((function(e){return e.activeTargets.length>0}));)e=E(),O(e);return o.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:i}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=i),window.dispatchEvent(e)}(),e>0},T=[],C=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver((function(){return T.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),a=function(){n.textContent="".concat(t?t--:t++)}}T.push(e),a()},A=0,j={attributes:!0,characterData:!0,childList:!0,subtree:!0},R=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],M=function(e){return void 0===e&&(e=0),Date.now()+e},D=!1,I=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!D){D=!0;var n,r=M(e);n=function(){var n=!1;try{n=P()}finally{if(D=!1,e=r-M(),!A)return;n?t.run(1e3):e>0?t.run(e):t.start()}},C((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,j)};document.body?t():p.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),R.forEach((function(t){return p.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),R.forEach((function(t){return p.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),L=function(e){!A&&e>0&&I.start(),!(A+=e)&&I.stop()},N=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=x(this.target,this.observedBox,!0);return e=this.target,l(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},F=new WeakMap,Z=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},z=function(){function e(){}return e.connect=function(e,t){var n=new B(e,t);F.set(e,n)},e.observe=function(e,t,n){var r=F.get(e),i=0===r.observationTargets.length;Z(r.observationTargets,t)<0&&(i&&o.push(r),r.observationTargets.push(new N(t,n&&n.box)),L(1),I.schedule())},e.unobserve=function(e,t){var n=F.get(e),r=Z(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),L(-1))},e.disconnect=function(e){var t=this,n=F.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");z.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");z.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");z.unobserve(this,e)},e.prototype.disconnect=function(){z.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},32692:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=n(73637),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.invisible,f=void 0!==l&&l,d=e.open,p=e.transitionDuration,h=e.TransitionComponent,v=void 0===h?u.Z:h,m=(0,o.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(v,(0,r.Z)({in:d,timeout:p},m),i.createElement("div",{className:(0,a.Z)(s.root,c,f&&s.invisible),"aria-hidden":!0,ref:t},n))}));t.Z=(0,s.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(c)},282:function(e,t,n){"use strict";var r=n(45987),o=n(87462),i=n(67294),a=n(86010),s=n(1591),u=n(59693),c=n(41810),l=n(93871),f=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,f=e.color,d=void 0===f?"default":f,p=e.component,h=void 0===p?"button":p,v=e.disabled,m=void 0!==v&&v,y=e.disableElevation,g=void 0!==y&&y,b=e.disableFocusRipple,_=void 0!==b&&b,w=e.endIcon,x=e.focusVisibleClassName,k=e.fullWidth,S=void 0!==k&&k,E=e.size,O=void 0===E?"medium":E,P=e.startIcon,T=e.type,C=void 0===T?"button":T,A=e.variant,j=void 0===A?"text":A,R=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=P&&i.createElement("span",{className:(0,a.Z)(s.startIcon,s["iconSize".concat((0,l.Z)(O))])},P),D=w&&i.createElement("span",{className:(0,a.Z)(s.endIcon,s["iconSize".concat((0,l.Z)(O))])},w);return i.createElement(c.Z,(0,o.Z)({className:(0,a.Z)(s.root,s[j],u,"inherit"===d?s.colorInherit:"default"!==d&&s["".concat(j).concat((0,l.Z)(d))],"medium"!==O&&[s["".concat(j,"Size").concat((0,l.Z)(O))],s["size".concat((0,l.Z)(O))]],g&&s.disableElevation,m&&s.disabled,S&&s.fullWidth),component:h,disabled:m,focusRipple:!_,focusVisibleClassName:(0,a.Z)(s.focusVisible,x),ref:t,type:C},R),i.createElement("span",{className:s.label},M,n,D))}));t.Z=(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,u.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,u.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.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,u.Fq)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,u.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,u.Fq)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,u.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"})(f)},41810:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(87462),o=n(45987),i=n(67294),a=n(73935),s=n(86010),u=n(17294),c=n(55192),l=n(1591),f=n(24896),d=n(41451),p=n(63366),h=n(97326),v=n(75068),m=n(220);function y(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 g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=y(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 u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}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 u=a in t,c=a in r,l=t[a],f=(0,i.isValidElement)(l)&&!l.props.in;!c||u&&!f?c||!u||f?c&&u&&(0,i.isValidElement)(l)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:l.props.in,exit:g(s,"exit",e),enter:g(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:g(s,"exit",e),enter:g(s,"enter",e)})}})),o}var _=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=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,v.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,y(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:g(e,"appear",n),enter:g(e,"enter",n),exit:g(e,"exit",n)})}))):b(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(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=_(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);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};var x=w,k="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var S=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,u=e.rippleSize,l=e.in,f=e.onExited,d=void 0===f?function(){}:f,p=e.timeout,h=i.useState(!1),v=h[0],m=h[1],y=(0,s.Z)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:u,height:u,top:-u/2+a,left:-u/2+o},b=(0,s.Z)(t.child,v&&t.childLeaving,r&&t.childPulsate),_=(0,c.Z)(d);return k((function(){if(!l){m(!0);var e=setTimeout(_,p);return function(){clearTimeout(e)}}}),[_,l,p]),i.createElement("span",{className:y,style:g},i.createElement("span",{className:b}))},E=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,u=e.classes,c=e.className,l=(0,o.Z)(e,["center","classes","className"]),f=i.useState([]),p=f[0],h=f[1],v=i.useRef(0),m=i.useRef(null);i.useEffect((function(){m.current&&(m.current(),m.current=null)}),[p]);var y=i.useRef(!1),g=i.useRef(null),b=i.useRef(null),_=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var w=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,d.Z)(e),[i.createElement(S,{key:v.current,classes:u,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),v.current+=1,m.current=a}),[u]),k=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,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var l,f,d,p=c?null:_.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)l=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches?e.touches[0]:e,m=v.clientX,x=v.clientY;l=Math.round(m-h.left),f=Math.round(x-h.top)}if(s)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var k=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(k,2)+Math.pow(S,2))}e.touches?null===b.current&&(b.current=function(){w({pulsate:o,rippleX:l,rippleY:f,rippleSize:d,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):w({pulsate:o,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[a,w]),E=i.useCallback((function(){k({},{pulsate:!0})}),[k]),O=i.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){O(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:E,start:k,stop:O}}),[E,k,O]),i.createElement("span",(0,r.Z)({className:(0,s.Z)(u.root,c),ref:_},l),i.createElement(x,{component:null,exit:!0},p))})),O=(0,l.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 2500m
1s ".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(E)),P=i.forwardRef((function(e,t){var n=e.action,l=e.buttonRef,d=e.centerRipple,p=void 0!==d&&d,h=e.children,v=e.classes,m=e.className,y=e.component,g=void 0===y?"button":y,b=e.disabled,_=void 0!==b&&b,w=e.disableRipple,x=void 0!==w&&w,k=e.disableTouchRipple,S=void 0!==k&&k,E=e.focusRipple,P=void 0!==E&&E,T=e.focusVisibleClassName,C=e.onBlur,A=e.onClick,j=e.onFocus,R=e.onFocusVisible,M=e.onKeyDown,D=e.onKeyUp,I=e.onMouseDown,L=e.onMouseLeave,N=e.onMouseUp,B=e.onTouchEnd,F=e.onTouchMove,Z=e.onTouchStart,z=e.onDragLeave,V=e.tabIndex,U=void 0===V?0:V,W=e.TouchRippleProps,H=e.type,q=void 0===H?"button":H,$=(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"]),G=i.useRef(null);var Y=i.useRef(null),K=i.useState(!1),X=K[0],Q=K[1];_&&X&&Q(!1);var J=(0,f.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,c.Z)((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Q(!0),G.current.focus()}}}),[]),i.useEffect((function(){X&&P&&!x&&Y.current.pulsate()}),[x,P,X]);var oe=re("start",I),ie=re("stop",z),ae=re("stop",N),se=re("stop",(function(e){X&&e.preventDefault(),L&&L(e)})),ue=re("start",Z),ce=re("stop",B),le=re("stop",F),fe=re("stop",(function(e){X&&(te(e),Q(!1)),C&&C(e)}),!1),de=(0,c.Z)((function(e){G.current||(G.current=e.currentTarget),ee(e)&&(Q(!0),R&&R(e)),j&&j(e)})),pe=function(){var e=a.findDOMNode(G.current);return g&&"button"!==g&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),ve=(0,c.Z)((function(e){P&&!he.current&&X&&Y.current&&" "===e.key&&(he.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),M&&M(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!_&&(e.preventDefault(),A&&A(e))})),me=(0,c.Z)((function(e){P&&" "===e.key&&Y.current&&X&&!e.defaultPrevented&&(he.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),D&&D(e),A&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&A(e)})),ye=g;"button"===ye&&$.href&&(ye="a");var ge={};"button"===ye?(ge.type=q,ge.disabled=_):("a"===ye&&$.href||(ge.role="button"),ge["aria-disabled"]=_);var be=(0,u.Z)(l,t),_e=(0,u.Z)(ne,G),we=(0,u.Z)(be,_e),xe=i.useState(!1),ke=xe[0],Se=xe[1];i.useEffect((function(){Se(!0)}),[]);var Ee=ke&&!x&&!_;return i.createElement(ye,(0,r.Z)({className:(0,s.Z)(v.root,m,X&&[v.focusVisible,T],_&&v.disabled),onBlur:fe,onClick:A,onFocus:de,onKeyDown:ve,onKeyUp:me,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:le,onTouchStart:ue,ref:we,tabIndex:_?-1:U},ge,$),h,Ee?i.createElement(O,(0,r.Z)({ref:Y,center:p},W)):null)})),T=(0,l.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"})(P)},43832:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(4942),a=n(67294),s=n(86010),u=n(1591),c=n(93871),l=a.forwardRef((function(e,t){var n=e.classes,i=e.className,u=e.component,l=void 0===u?"div":u,f=e.disableGutters,d=void 0!==f&&f,p=e.fixed,h=void 0!==p&&p,v=e.maxWidth,m=void 0===v?"lg":v,y=(0,o.Z)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return a.createElement(l,(0,r.Z)({className:(0,s.Z)(n.root,i,h&&n.fixed,d&&n.disableGutters,!1!==m&&n["maxWidth".concat((0,c.Z)(String(m)))]),ref:t},y))}));t.Z=(0,u.Z)((function(e){return{root:(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:(0,i.Z)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:(0,i.Z)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:(0,i.Z)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:(0,i.Z)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:(0,i.Z)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(l)},52663:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(4942),a=n(67294),s=n(86010),u=n(1591),c=n(93871),l=n(31268),f=n(32692),d=n(73637),p=n(43366),h=n(79895),v={enter:p.x9.enteringScreen,exit:p.x9.leavingScreen},m=a.forwardRef((function(e,t){var n=e.BackdropProps,i=e.children,u=e.classes,p=e.className,m=e.disableBackdropClick,y=void 0!==m&&m,g
vendor: 15,199 bytes, line 1
1=e.disableEscapeKeyDown,b=void 0!==g&&g,_=e.fullScreen,w=void 0!==_&&_,x=e.fullWidth,k=void 0!==x&&x,S=e.maxWidth,E=void 0===S?"sm":S,O=e.onBackdropClick,P=e.onClose,T=e.onEnter,C=e.onEntered,A=e.onEntering,j=e.onEscapeKeyDown,R=e.onExit,M=e.onExited,D=e.onExiting,I=e.open,L=e.PaperComponent,N=void 0===L?h.Z:L,B=e.PaperProps,F=void 0===B?{}:B,Z=e.scroll,z=void 0===Z?"paper":Z,V=e.TransitionComponent,U=void 0===V?d.Z:V,W=e.transitionDuration,H=void 0===W?v:W,q=e.TransitionProps,$=e["aria-describedby"],G=e["aria-labelledby"],Y=(0,o.Z)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),K=a.useRef();return a.createElement(l.Z,(0,r.Z)({className:(0,s.Z)(u.root,p),BackdropComponent:f.Z,BackdropProps:(0,r.Z)({transitionDuration:H},n),closeAfterTransition:!0},y?{disableBackdropClick:y}:{},{disableEscapeKeyDown:b,onEscapeKeyDown:j,onClose:P,open:I,ref:t},Y),a.createElement(U,(0,r.Z)({appear:!0,in:I,timeout:H,onEnter:T,onEntering:A,onEntered:C,onExit:R,onExiting:D,onExited:M,role:"none presentation"},q),a.createElement("div",{className:(0,s.Z)(u.container,u["scroll".concat((0,c.Z)(z))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===K.current&&(K.current=null,O&&O(e),!y&&P&&P(e,"backdropClick"))},onMouseDown:function(e){K.current=e.target}},a.createElement(N,(0,r.Z)({elevation:24,role:"dialog","aria-describedby":$,"aria-labelledby":G},F,{className:(0,s.Z)(u.paper,u["paperScroll".concat((0,c.Z)(z))],u["paperWidth".concat((0,c.Z)(String(E)))],F.className,w&&u.paperFullScreen,k&&u.paperFullWidth)}),i))))}));t.Z=(0,u.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,i.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,i.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,i.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,i.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,i.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(m)},66856:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=i.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,u=e.classes,c=e.className,l=(0,o.Z)(e,["disableSpacing","classes","className"]);return i.createElement("div",(0,r.Z)({className:(0,a.Z)(u.root,c,!s&&u.spacing),ref:t},l))}));t.Z=(0,s.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(u)},29525:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.dividers,c=void 0!==u&&u,l=(0,o.Z)(e,["classes","className","dividers"]);return i.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,s,c&&n.dividers),ref:t},l))}));t.Z=(0,s.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(u)},7212:function(e,t,n){"use strict";var r=n(87462),o=n(67294),i=n(1591),a=n(22318),s=o.forwardRef((function(e,t){return o.createElement(a.Z,(0,r.Z)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));t.Z=(0,i.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},66083:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=n(22318),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.disableTypography,f=void 0!==l&&l,d=(0,o.Z)(e,["children","classes","className","disableTypography"]);return i.createElement("div",(0,r.Z)({className:(0,a.Z)(s.root,c),ref:t},d),f?n:i.createElement(u.Z,{component:"h2",variant:"h6"},n))}));t.Z=(0,s.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(c)},55517:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=n(59693),c=i.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,u=e.classes,c=e.className,l=e.component,f=void 0===l?"hr":l,d=e.flexItem,p=void 0!==d&&d,h=e.light,v=void 0!==h&&h,m=e.orientation,y=void 0===m?"horizontal":m,g=e.role,b=void 0===g?"hr"!==f?"separator":void 0:g,_=e.variant,w=void 0===_?"fullWidth":_,x=(0,o.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(f,(0,r.Z)({className:(0,a.Z)(u.root,c,"fullWidth"!==w&&u[w],s&&u.absolute,p&&u.flexItem,v&&u.light,"vertical"===y&&u.vertical),role:b,ref:t},x))}));t.Z=(0,s.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,u.Fq)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(c)},1518:function(e,t,n){"use strict";n.d(t,{ZP:function(){return E}});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(31268),u=n(32692),c=n(1591),l=n(73935),f=n(79437),d=n(8662),p=n(17294),h=n(8920),v=n(43366),m=n(5653);function y(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var g={enter:v.x9.enteringScreen,exit:v.x9.leavingScreen},b=i.forwardRef((function(e,t){var n=e.children,a=e.direction,s=void 0===a?"down":a,u=e.in,c=e.onEnter,v=e.onEntered,b=e.onEntering,_=e.onExit,w=e.onExited,x=e.onExiting,k=e.style,S=e.timeout,E=void 0===S?g:S,O=e.TransitionComponent,P=void 0===O?d.ZP:O,T=(0,o.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=(0,h.Z)(),A=i.useRef(null),j=i.useCallback((function(e){A.current=l.findDOMNode(e)}),[]),R=(0,p.Z)(n.ref,j),M=(0,p.Z)(R,t),D=function(e){return function(t){e&&(void 0===t?e(A.current):e(A.current,t))}},I=D((function(e,t){y(s,e),(0,m.n)(e),c&&c(e,t)})),L=D((function(e,t){var n=(0,m.C)({timeout:E,style:k},{mode:"enter"});e.style.webkitTransition=C.transitions.create("-webkit-transform",(0,r.Z)({},n,{easing:C.transitions.easing.easeOut})),e.style.transition=C.transitions.create("transform",(0,r.Z)({},n,{easing:C.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),N=D(v),B=D(x),F=D((function(e){var t=(0,m.C)({timeout:E,style:k},{mode:"exit"});e.style.webkitTransition=C.transitions.create("-webkit-transform",(0,r.Z)({},t,{easing:C.transitions.easing.sharp})),e.style.transition=C.transitions.create("transform",(0,r.Z)({},t,{easing:C.transitions.easing.sharp})),y(s,e),_&&_(e)})),Z=D((function(e){e.style.webkitTransition="",e.style.transition="",w&&w(e)})),z=i.useCallback((function(){A.current&&y(s,A.current)}),[s]);return i.useEffect((function(){if(!u&&"down"!==s&&"right"!==s){var e=(0,f.Z)((function(){A.current&&y(s,A.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[s,u]),i.useEffect((function(){u||z()}),[u,z]),i.createElement(P,(0,r.Z)({nodeRef:A,onEnter:I,onEntered:N,onEntering:L,onExit:F,onExited:Z,onExiting:B,appear:!0,in:u,timeout:E},T),(function(e,t){return i.cloneElement(n,(0,r.Z)({ref:M,style:(0,r.Z)({visibility:"exited"!==e||u?void 0:"hidden"},k,n.props.style)},t))}))})),_=n(79895),w=n(93871),x={left:"right",right:"left",top:"down",bottom:"up"};var k={enter:v.x9.enteringScreen,exit:v.x9.leavingScreen},S=i.forwardRef((function(e,t){var n=e.anchor,c=void 0===n?"left":n,l=e.BackdropProps,f=e.children,d=e.classes,p=e.className,v=e.elevation,m=void 0===v?16:v,y=e.ModalProps,g=(y=void 0===y?{}:y).BackdropProps,S=(0,o.Z)(y,["BackdropProps"]),E=e.onClose,O=e.open,P=void 0!==O&&O,T=e.PaperProps,C=void 0===T?{}:T,A=e.SlideProps,j=e.TransitionComponent,R=void 0===j?b:j,M=e.transitionDuration,D=void 0===M?k:M,I=e.variant,L=void 0===I?"temporary":I,N=(0,o.Z)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),B=(0,h.Z)(),F=i.useRef(!1);i.useEffect((function(){F.current=!0}),[]);var Z=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?x[t]:t}(B,c),z=i.createElement(_.Z,(0,r.Z)({elevation:"temporary"===L?m:0,square:!0},C,{className:(0,a.Z)(d.paper,d["paperAnchor".concat((0,w.Z)(Z))],C.className,"temporary"!==L&&d["paperAnchorDocked".concat((0,w.Z)(Z))])}),f);if("permanent"===L)return i.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,p),ref:t},N),z);var V=i.createElement(R,(0,r.Z)({in:P,direction:x[Z],timeout:D,appear:F.current},A),z);return"persistent"===L?i.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,p),ref:t},N),V):i.createElement(s.Z,(0,r.Z)({BackdropProps:(0,r.Z)({},l,g,{transitionDuration:D}),BackdropComponent:u.Z,className:(0,a.Z)(d.root,d.modal,p),open:P,onClose:E,ref:t},N,S),V)})),E=(0,c.Z)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(S)},73637:function(e,t,n){"use strict";var r=n(87462),o=n(86854),i=n(45987),a=n(67294),s=n(8662),u=n(43366),c=n(8920),l=n(5653),f=n(17294),d={entering:{opacity:1},entered:{opacity:1}},p={enter:u.x9.enteringScreen,exit:u.x9.leavingScreen},h=a.forwardRef((function(e,t){var n=e.children,u=e.disableStrictModeCompat,h=void 0!==u&&u,v=e.in,m=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,_=e.onExited,w=e.onExiting,x=e.style,k=e.TransitionComponent,S=void 0===k?s.ZP:k,E=e.timeout,O=void 0===E?p:E,P=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),T=(0,c.Z)(),C=T.unstable_strictMode&&!h,A=a.useRef(null),j=(0,f.Z)(n.ref,t),R=(0,f.Z)(C?A:void 0,j),M=function(e){return function(t,n){if(e){var r=C?[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)}}},D=M(g),I=M((function(e,t){(0,l.n)(e);var n=(0,l.C)({style:x,timeout:O},{mode:"enter"});e.style.webkitTransition=T.transitions.create("opacity",n),e.style.transition=T.transitions.create("opacity",n),m&&m(e,t)})),L=M(y),N=M(w),B=M((function(e){var t=(0,l.C)({style:x,timeout:O},{mode:"exit"});e.style.webkitTransition=T.transitions.create("opacity",t),e.style.transition=T.transitions.create("opacity",t),b&&b(e)})),F=M(_);return a.createElement(S,(0,r.Z)({appear:!0,in:v,nodeRef:C?A:void 0,onEnter:I,onEntered:L,onEntering:D,onExit:B,onExited:F,onExiting:N,timeout:O},P),(function(e,t){return a.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},d[e],x,n.props.style),ref:R},t))}))}));t.Z=h},59446:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(41598),u=n(1591),c=i.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,c=e.fullWidth,l=void 0!==c&&c,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,v=e.type,m=void 0===v?"text":v,y=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.Z,(0,r.Z)({classes:(0,r.Z)({},u,{root:(0,a.Z)(u.root,!n&&u.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:h,ref:t,type:m},y))}));c.muiName="Input",t.Z=(0,u.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}}
1,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"})(c)},64436:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(36519),u=n(1591),c=n(93871),l=n(83711),f=n(15736),d=i.forwardRef((function(e,t){var n=e.children,u=e.classes,d=e.className,p=e.color,h=void 0===p?"primary":p,v=e.component,m=void 0===v?"div":v,y=e.disabled,g=void 0!==y&&y,b=e.error,_=void 0!==b&&b,w=e.fullWidth,x=void 0!==w&&w,k=e.focused,S=e.hiddenLabel,E=void 0!==S&&S,O=e.margin,P=void 0===O?"none":O,T=e.required,C=void 0!==T&&T,A=e.size,j=e.variant,R=void 0===j?"standard":j,M=(0,o.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),D=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if((0,l.Z)(t,["Input","Select"])){var n=(0,l.Z)(t,["Select"])?t.props.input:t;n&&(0,s.B7)(n.props)&&(e=!0)}})),e})),I=D[0],L=D[1],N=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){(0,l.Z)(t,["Input","Select"])&&(0,s.vd)(t.props,!0)&&(e=!0)})),e})),B=N[0],F=N[1],Z=i.useState(!1),z=Z[0],V=Z[1],U=void 0!==k?k:z;g&&U&&V(!1);var W=i.useCallback((function(){F(!0)}),[]),H={adornedStart:I,setAdornedStart:L,color:h,disabled:g,error:_,filled:B,focused:U,fullWidth:x,hiddenLabel:E,margin:("small"===A?"dense":void 0)||P,onBlur:function(){V(!1)},onEmpty:i.useCallback((function(){F(!1)}),[]),onFilled:W,onFocus:function(){V(!0)},registerEffect:undefined,required:C,variant:R};return i.createElement(f.Z.Provider,{value:H},i.createElement(m,(0,r.Z)({className:(0,a.Z)(u.root,d,"none"!==P&&u["margin".concat((0,c.Z)(P))],x&&u.fullWidth),ref:t},M),n))}));t.Z=(0,u.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"})(d)},15736:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(67294),o=r.createContext();function i(){return r.useContext(o)}t.Z=o},89345:function(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&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{Z:function(){return r}})},22601:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(15736);function i(){return r.useContext(o.Z)}},41749:function(e,t,n){"use strict";var r=n(45987),o=n(87462),i=n(67294),a=n(86010),s=n(1591),u=[0,1,2,3,4,5,6,7,8,9,10],c=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var f=i.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,u=e.alignItems,c=void 0===u?"stretch":u,l=e.classes,f=e.className,d=e.component,p=void 0===d?"div":d,h=e.container,v=void 0!==h&&h,m=e.direction,y=void 0===m?"row":m,g=e.item,b=void 0!==g&&g,_=e.justify,w=e.justifyContent,x=void 0===w?"flex-start":w,k=e.lg,
1S=void 0!==k&&k,E=e.md,O=void 0!==E&&E,P=e.sm,T=void 0!==P&&P,C=e.spacing,A=void 0===C?0:C,j=e.wrap,R=void 0===j?"wrap":j,M=e.xl,D=void 0!==M&&M,I=e.xs,L=void 0!==I&&I,N=e.zeroMinWidth,B=void 0!==N&&N,F=(0,r.Z)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),Z=(0,a.Z)(l.root,f,v&&[l.container,0!==A&&l["spacing-xs-".concat(String(A))]],b&&l.item,B&&l.zeroMinWidth,"row"!==y&&l["direction-xs-".concat(String(y))],"wrap"!==R&&l["wrap-xs-".concat(String(R))],"stretch"!==c&&l["align-items-xs-".concat(String(c))],"stretch"!==s&&l["align-content-xs-".concat(String(s))],"flex-start"!==(_||x)&&l["justify-content-xs-".concat(String(_||x))],!1!==L&&l["grid-xs-".concat(String(L))],!1!==T&&l["grid-sm-".concat(String(T))],!1!==O&&l["grid-md-".concat(String(O))],!1!==S&&l["grid-lg-".concat(String(S))],!1!==D&&l["grid-xl-".concat(String(D))]);return i.createElement(p,(0,o.Z)({className:Z,ref:t},F))})),d=(0,s.Z)((function(e){return(0,o.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return u.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(l(o,2)),width:"calc(100% + ".concat(l(o),")"),"& > $item":{padding:l(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};
1c.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,o.Z)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(f);t.Z=d},20170:function(e,t,n){"use strict";var r=n(87462),o=n(86854),i=n(45987),a=n(67294),s=n(8662),u=n(8920),c=n(5653),l=n(17294);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,v=e.in,m=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,_=e.onExited,w=e.onExiting,x=e.style,k=e.timeout,S=void 0===k?"auto":k,E=e.TransitionComponent,O=void 0===E?s.ZP:E,P=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=a.useRef(),C=a.useRef(),A=(0,u.Z)(),j=A.unstable_strictMode&&!h,R=a.useRef(null),M=(0,l.Z)(n.ref,t),D=(0,l.Z)(j?R:void 0,M),I=function(e){return function(t,n){if(e){var r=j?[R.current,t]:[t,n],i=(0,o.Z)(r,2),a=i[0],s=i[1];void 0===s?e(a):e(a,s)}}},L=I(g),N=I((function(e,t){(0,c.n)(e);var n,r=(0,c.C)({style:x,timeout:S},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===S?(n=A.transitions.getAutoHeightDuration(e.clientHeight),C.current=n):n=o,e.style.transition=[A.transitions.create("opacity",{duration:n,delay:i}),A.transitions.create("transform",{duration:.666*n,delay:i})].join(","),m&&m(e,t)})),B=I(y),F=I(w),Z=I((function(e){var t,n=(0,c.C)({style:x,timeout:S},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===S?(t=A.transitions.getAutoHeightDuration(e.clientHeight),C.current=t):t=r,e.style.transition=[A.transitions.create("opacity",{duration:t,delay:o}),A.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),b&&b(e)})),z=I(_);return a.useEffect((function(){return function(){clearTimeout(T.current)}}),[]),a.createElement(O,(0,r.Z)({appear:!0,in:v,nodeRef:j?R:void 0,onEnter:N,onEntered:B,onEntering:L,onExit:Z,onExited:z,onExiting:F,addEndListener:function(e,t){var n=j?e:t;"auto"===S&&(T.current=setTimeout(n,C.current||0))},timeout:"auto"===S?null:S},P),(function(e,t){return a.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:f(.75),visibility:"exited"!==e||v?void 0:"hidden"},d[e],x,n.props.style),ref:D},t))}))}));p.muiSupportAuto=!0,t.Z=p},53450:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),o=n(45987),i=n(67294),a=n(45697),s=n.n(a),u=n(93869),c=n(8679),l=n.n(c),f=n(8920),d=n(90157),p=n(63457),h=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?d.X.indexOf(e)<=d.X.indexOf(t):d.X.indexOf(e)<d.X.indexOf(t)},v=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?d.X.indexOf(t)<=d.X.indexOf(e):d.X.indexOf(t)<d.X.indexOf(e)},m="undefined"===typeof window?i.useEffect:i.useLayoutEffect,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,a=void 0!==n&&n,s=e.noSSR,c=void 0!==s&&s,d=e.initialWidth;function h(e){var n=(0,f.Z)(),s=e.theme||n,l=(0,u.Z)({theme:s,name:"MuiWithWidth",props:(0,r.Z)({},e)}),h=l.initialWidth,v=l.width,y=(0,o.Z)(l,["initialWidth","width"]),g=i.useState(!1),b=g[0],_=g[1];m((function(){_(!0)}),[]);var w=s.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=(0,p.Z)(s.breakpoints.up(t));return!e&&n?t:e}),null),x=(0,r.Z)({width:v||(b||c?w:void 0)||h||d},a?{theme:s}:{},y);return void 0===x.width?null:i.createElement(t,x)}return l()(h,t),h}};function g(e){var t=e.children,n=e.only,r=e.width,o=(0,f.Z)(),i=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){i=!1;break}}else n&&r===n&&(i=!1);if(i)for(var s=0;s<o.breakpoints.keys.length;s+=1){var u=o.breakpoints.keys[s],c=e["".concat(u,"Up")],l=e["".concat(u,"Down")];if(c&&h(u,r)||l&&v(u,r)){i=!1;break}}return i?t:null}g.propTypes={children:s().node,className:s().string,implementation:s().oneOf(["js","css"]),initialWidth:s().oneOf(["xs","sm","md","lg","xl"]),lgDown:s().bool,lgUp:s().bool,mdDown:s().bool,mdUp:s().bool,only:s().oneOfType([s().oneOf(["xs","sm","md","lg","xl"]),s().arrayOf(s().oneOf(["xs","sm","md","lg","xl"]))]),smDown:s().bool,smUp:s().bool,width:s().string.isRequired,xlDown:s().bool,xlUp:s().bool,xsDown:s().bool,xsUp:s().bool};var b=y()(g),_=n(4942),w=n(93871);var x=(0,n(1591).Z)((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat((0,w.Z)(r))]=(0,_.Z)({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=(0,_.Z)({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=(0,_.Z)({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var t=e.children,n=e.classes,r=e.className,a=e.only,s=((0,o.Z)(e,["children","classes","className","only"]),(0,f.Z)()),u=[];r&&u.push(r);for(var c=0;c<s.breakpoints.keys.length;c+=1){var l=s.breakpoints.keys[c],d=e["".concat(l,"Up")],p=e["".concat(l,"Down")];d&&u.push(n["".concat(l,"Up")]),p&&u.push(n["".concat(l,"Down")])}
1return a&&(Array.isArray(a)?a:[a]).forEach((function(e){u.push(n["only".concat((0,w.Z)(e))])})),i.createElement("div",{className:u.join(" ")},t)}));var k=function(e){var t=e.implementation,n=void 0===t?"js":t,a=e.lgDown,s=void 0!==a&&a,u=e.lgUp,c=void 0!==u&&u,l=e.mdDown,f=void 0!==l&&l,d=e.mdUp,p=void 0!==d&&d,h=e.smDown,v=void 0!==h&&h,m=e.smUp,y=void 0!==m&&m,g=e.xlDown,_=void 0!==g&&g,w=e.xlUp,k=void 0!==w&&w,S=e.xsDown,E=void 0!==S&&S,O=e.xsUp,P=void 0!==O&&O,T=(0,o.Z)(e,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return"js"===n?i.createElement(b,(0,r.Z)({lgDown:s,lgUp:c,mdDown:f,mdUp:p,smDown:v,smUp:y,xlDown:_,xlUp:k,xsDown:E,xsUp:P},T)):i.createElement(x,(0,r.Z)({lgDown:s,lgUp:c,mdDown:f,mdUp:p,smDown:v,smUp:y,xlDown:_,xlUp:k,xsDown:E,xsUp:P},T))}},17812:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=n(59693),c=n(41810),l=n(93871),f=i.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,u=e.children,f=e.classes,d=e.className,p=e.color,h=void 0===p?"default":p,v=e.disabled,m=void 0!==v&&v,y=e.disableFocusRipple,g=void 0!==y&&y,b=e.size,_=void 0===b?"medium":b,w=(0,o.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(c.Z,(0,r.Z)({className:(0,a.Z)(f.root,d,"default"!==h&&f["color".concat((0,l.Z)(h))],m&&f.disabled,"small"===_&&f["size".concat((0,l.Z)(_))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!g,disabled:m,ref:t},w),i.createElement("span",{className:f.label},u))}));t.Z=(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,u.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,u.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.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"})(f)},38799:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(41598),u=n(1591),c=i.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,c=e.fullWidth,l=void 0!==c&&c,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,v=e.type,m=void 0===v?"text":v,y=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(s.Z,(0,r.Z)({classes:(0,r.Z)({},u,{root:(0,a.Z)(u.root,!n&&u.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:h,ref:t,type:m},y))}));c.muiName="Input",t.Z=(0,u.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"}
vendor: 4,484 bytes, line 1
1,"&: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"})(c)},41598:function(e,t,n){"use strict";var r=n(45987),o=n(87462),i=n(60288),a=n(67294),s=n(86010),u=n(89345),c=n(15736),l=n(1591),f=n(93871),d=n(17294),p=n(87343),h=n(36519),v="undefined"===typeof window?a.useEffect:a.useLayoutEffect,m=a.forwardRef((function(e,t){var n=e["aria-describedby"],l=e.autoComplete,m=e.autoFocus,y=e.classes,g=e.className,b=(e.color,e.defaultValue),_=e.disabled,w=e.endAdornment,x=(e.error,e.fullWidth),k=void 0!==x&&x,S=e.id,E=e.inputComponent,O=void 0===E?"input":E,P=e.inputProps,T=void 0===P?{}:P,C=e.inputRef,A=(e.margin,e.multiline),j=void 0!==A&&A,R=e.name,M=e.onBlur,D=e.onChange,I=e.onClick,L=e.onFocus,N=e.onKeyDown,B=e.onKeyUp,F=e.placeholder,Z=e.readOnly,z=e.renderSuffix,V=e.rows,U=e.rowsMax,W=e.rowsMin,H=e.maxRows,q=e.minRows,$=e.startAdornment,G=e.type,Y=void 0===G?"text":G,K=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!=T.value?T.value:K,J=a.useRef(null!=Q).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=(0,d.Z)(T.ref,te),re=(0,d.Z)(C,ne),oe=(0,d.Z)(ee,re),ie=a.useState(!1),ae=ie[0],se=ie[1],ue=(0,c.Y)();var ce=(0,u.Z)({props:e,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ce.focused=ue?ue.focused:ae,a.useEffect((function(){!ue&&_&&ae&&(se(!1),M&&M())}),[ue,_,ae,M]);var le=ue&&ue.onFilled,fe=ue&&ue.onEmpty,de=a.useCallback((function(e){(0,h.vd)(e)?le&&le():fe&&fe()}),[le,fe]);v((function(){J&&de({value:Q})}),[Q,de,J]);a.useEffect((function(){de(ee.current)}),[]);var pe=O,he=(0,o.Z)({},T,{ref:oe});"string"!==typeof pe?he=(0,o.Z)({inputRef:oe,type:Y},he,{ref:null}):j?!V||H||q||U||W?(he=(0,o.Z)({minRows:V||q,rowsMax:U,maxRows:H},he),pe=p.Z):pe="textarea":he=(0,o.Z)({type:Y},he);return a.useEffect((function(){ue&&ue.setAdornedStart(Boolean($))}),[ue,$]),a.createElement("div",(0,o.Z)({className:(0,s.Z)(y.root,y["color".concat((0,f.Z)(ce.color||"primary"))],g,ce.disabled&&y.disabled,ce.error&&y.error,k&&y.fullWidth,ce.focused&&y.focused,ue&&y.formControl,j&&y.multiline,$&&y.adornedStart,w&&y.adornedEnd,"dense"===ce.margin&&y.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),I&&I(e)},ref:t},X),$,a.createElement(c.Z.Provider,{value:null},a.createElement(pe,(0,o.Z)({"aria-invalid":ce.error,"aria-describedby":n,autoComplete:l,autoFocus:m,defaultValue:b,disabled:ce.disabled,id:S,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:R,placeholder:F,readOnly:Z,required:ce.required,rows:V,value:Q,onKeyDown:N,onKeyUp:B},he,{className:(0,s.Z)(y.input,T.className,ce.disabled&&y.disabled,j&&y.inputMultiline,ce.hiddenLabel&&y.inputHiddenLabel,$&&y.inputAdornedStart,w&&y.inputAdornedEnd,"search"===Y&&y.inputTypeSearch,"dense"===ce.margin&&y.inputMarginDense),onBlur:function(e){M&&M(e),T.onBlur&&T.onBlur(e),ue&&ue.onBlur?ue.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));de({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];T.onChange&&T.onChange.apply(T,[e].concat(r)),D&&D.apply(void 0,[e].concat(r))},onFocus:function(e){ce.disabled?e.stopPropagation():(L&&L(e),T.onFocus&&T.onFocus(e),ue&&ue.onFocus?ue.onFocus(e):se(!0))}}))),w,z?z((0,o.Z)({},ce,{startAdornment:$})):null)}));t.Z=(0,l.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",curs
1or:"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"})(m)},36519:function(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:function(){return i},vd:function(){return o}})},85161:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(89345),u=n(22601),c=n(1591),l=n(93871),f=i.forwardRef((function(e,t){var n=e.children,c=e.classes,f=e.className,d=(e.color,e.component),p=void 0===d?"label":d,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"])),v=(0,u.Z)(),m=(0,s.Z)({props:e,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]});return i.createElement(p,(0,r.Z)({className:(0,a.Z)(c.root,c["color".concat((0,l.Z)(m.color||"primary"))],f,m.disabled&&c.disabled,m.error&&c.error,m.filled&&c.filled,m.focused&&c.focused,m.required&&c.required),ref:t},h),n,m.required&&i.createElement("span",{"aria-hidden":!0,className:(0,a.Z)(c.asterisk,m.error&&c.error)},"\u2009","*"))})),d=(0,c.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"})(f),p=i.forwardRef((function(e,t){var n=e.classes,c=e.className,l=e.disableAnimation,f=void 0!==l&&l,p=(e.margin,e.shrink),h=(e.variant,(0,o.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),v=(0,u.Z)(),m=p;"undefined"===typeof m&&v&&(m=v.filled||v.focused||v.adornedStart);var y=(0,s.Z)({props:e,muiFormControl:v,states:["margin","variant"]});return i.createElement(d,(0,r.Z)({"data-shrink":m,className:(0,a.Z)(n.root,c,v&&n.formControl,!f&&n.animated,m&&n.shrink,"dense"===y.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[y.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},h))})),h=(0,c.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, 7
1px) 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"})(p)},89659:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(93871),u=n(1591),c=n(24896),l=n(17294),f=n(22318),d=i.forwardRef((function(e,t){var n=e.classes,u=e.className,d=e.color,p=void 0===d?"primary":d,h=e.component,v=void 0===h?"a":h,m=e.onBlur,y=e.onFocus,g=e.TypographyClasses,b=e.underline,_=void 0===b?"hover":b,w=e.variant,x=void 0===w?"inherit":w,k=(0,o.Z)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),S=(0,c.Z)(),E=S.isFocusVisible,O=S.onBlurVisible,P=S.ref,T=i.useState(!1),C=T[0],A=T[1],j=(0,l.Z)(t,P);return i.createElement(f.Z,(0,r.Z)({className:(0,a.Z)(n.root,n["underline".concat((0,s.Z)(_))],u,C&&n.focusVisible,"button"===v&&n.button),classes:g,color:p,component:v,onBlur:function(e){C&&(O(),A(!1)),m&&m(e)},onFocus:function(e){E(e)&&A(!0),y&&y(e)},ref:j,variant:x},k))}));t.Z=(0,u.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"})(d)},66987:function(e,t,n){"use strict";var r=n(67294).createContext({});t.Z=r},8202:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(87462),o=n(45987),i=n(67294),a=(n(59864),n(86010)),s=n(1591),u=n(73935),c=n(79437),l=n(30626),f=n(80713),d=n(42959),p=n(31268),h=n(20170),v=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 y(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function g(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 _=i.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,_=e.anchorOrigin,w=void 0===_?{vertical:"top",horizontal:"left"}:_,x=e.anchorPosition,k=e.anchorReference,S=void 0===k?"anchorEl":k,E=e.children,O=e.classes,P=e.className,T=e.container,C=e.elevation,A=void 0===C?8:C,j=e.getContentAnchorEl,R=e.marginThreshold,M=void 0===R?16:R,D=e.onEnter,I=e.onEntered,L=e.onEntering,N=e.onExit,B=e.onExited,F=e.onExiting,Z=e.open,z=e.PaperProps,V=void 0===z?{}:z,U=e.transformOrigin,W=void 0===U?{vertical:"top",horizontal:"left"}:U,H=e.TransitionComponent,q=void 0===H?h.Z:H,$=e.transitionDuration,G=void 0===$?"auto":$,Y=e.TransitionProps,K=void 0===Y?{}:Y,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 x;var t=b(s),n=(t&&1===t.nodeType?t:(0,l.Z)(Q.current).body).getBoundingClientRect(),r=0===e?w.vertical:"center";return{top:n.top+m(n,r),left:n.left+y(n,w.horizontal)}}),[s,w.horizontal,w.vertical,x,S]),ee=i.useCallback((function(e){var t=0;if(j&&"anchorEl"===S){var n=j(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}0}return t}),[w.vertical,S,j]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:m(e,W.vertical)+t,horizontal:y(e,W.horizontal)}}),[W.horizontal,W.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:g(r)};var o=J(t),i=o.top-r.vertical,a=o.left-r.horizontal,u=i+n.height,c=a+n.width,l=(0,f.Z)(b(s)),d=l.innerHe
1ight-M,p=l.innerWidth-M;if(i<M){var h=i-M;i-=h,r.vertical+=h}else if(u>d){var v=u-d;i-=v,r.vertical+=v}if(a<M){var m=a-M;a-=m,r.horizontal+=m}else if(c>p){var y=c-p;a-=y,r.horizontal+=y}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:g(r)}}),[s,S,J,ee,te,M]),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=u.findDOMNode(e)}),[]);i.useEffect((function(){Z&&re()})),i.useImperativeHandle(n,(function(){return Z?{updatePosition:function(){re()}}:null}),[Z,re]),i.useEffect((function(){if(Z){var e=(0,c.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[Z,re]);var ie=G;"auto"!==G||q.muiSupportAuto||(ie=void 0);var ae=T||(s?(0,l.Z)(b(s)).body:void 0);return i.createElement(p.Z,(0,r.Z)({container:ae,open:Z,ref:t,BackdropProps:{invisible:!0},className:(0,a.Z)(O.root,P)},X),i.createElement(q,(0,r.Z)({appear:!0,in:Z,onEnter:D,onEntered:I,onExit:N,onExited:B,onExiting:F,timeout:ie},K,{onEntering:(0,d.Z)((function(e,t){L&&L(e,t),re()}),K.onEntering)}),i.createElement(v.Z,(0,r.Z)({elevation:A,ref:oe},V,{className:(0,a.Z)(O.paper,V.className)}),E)))})),w=(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"})(_),x=n(66987),k=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.component,l=void 0===c?"ul":c,f=e.dense,d=void 0!==f&&f,p=e.disablePadding,h=void 0!==p&&p,v=e.subheader,m=(0,o.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=i.useMemo((function(){return{dense:d}}),[d]);return i.createElement(x.Z.Provider,{value:y},i.createElement(l,(0,r.Z)({className:(0,a.Z)(s.root,u,d&&s.dense,!h&&s.padding,v&&s.subheader),ref:t},m),v,n))})),S=(0,s.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(k),E=n(75840),O=n(17294);function P(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function T(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function C(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 A(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 u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&C(s,i)&&!u)return void s.focus();s=o(e,s,n)}}var j="undefined"===typeof window?i.useEffect:i.useLayoutEffect,R=i.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,c=e.autoFocusItem,f=void 0!==c&&c,d=e.children,p=e.className,h=e.disabledItemsFocusable,v=void 0!==h&&h,m=e.disableListWrap,y=void 0!==m&&m,g=e.onKeyDown,b=e.variant,_=void 0===b?"selectedMenu":b,w=(0,o.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=i.useRef(null),k=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});j((function(){s&&x.current.focus()}),[s]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat((0,E.Z)(!0),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var R=i.useCallback((function(e){x.current=u.findDOMNode(e)}),[]),M=(0,O.Z)(R,t),D=-1;i.Children.forEach(d,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===_&&e.props.selected||-1===D)&&(D=t))}));var I=i.Children.map(d,(function(e,t){if(t===D){var n={};return f&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===_&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(S,(0,r.Z)({role:"menu",ref:M,className:p,onKeyDown:function(e){var t=x.current,n=e.key,r=(0,l.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),A(t,r,y,v,P);else if("ArrowUp"===n)e.preventDefault(),A(t,r,y,v,T);else if("Home"===n)e.preventDefault(),A(t,null,y,v,P);else if("End"===n)e.preventDefault(),A(t,null,y,v,T);else if(1===n.length){var o=k.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 s=r&&!o.repeating&&C(r,o);o.previousKeyMatched&&(s||A(t,r,!1,v,P,o))?e.preventDefault():o.previousKeyMatched=!1}g&&g(e)},tabIndex:s?0:-1},w),I)})),M=n(34236),D=n(8920),I={vertical:"top",horizontal:"right"},L={vertical:"top",horizontal:"left"},N=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,c=e.children,l=e.classes,f=e.disableAutoFocusItem,d=void 0!==f&&f,p=e.MenuListProps,h=void 0===p?{}:p,v=e.onClose,m=e.onEntering,y=e.open,g=e.PaperProps,b=void 0===g?{}:g,_=e.PopoverClasses,x=e.transitionDuration,k=void 0===x?"auto":
1x,S=e.TransitionProps,E=(S=void 0===S?{}:S).onEntering,O=(0,o.Z)(S,["onEntering"]),P=e.variant,T=void 0===P?"selectedMenu":P,C=(0,o.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),A=(0,D.Z)(),j=s&&!d&&y,N=i.useRef(null),B=i.useRef(null),F=-1;i.Children.map(c,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==T&&e.props.selected||-1===F)&&(F=t))}));var Z=i.Children.map(c,(function(e,t){return t===F?i.cloneElement(e,{ref:function(t){B.current=u.findDOMNode(t),(0,M.Z)(e.ref,t)}}):e}));return i.createElement(w,(0,r.Z)({getContentAnchorEl:function(){return B.current},classes:_,onClose:v,TransitionProps:(0,r.Z)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,A),m&&m(e,t),E&&E(e,t)}},O),anchorOrigin:"rtl"===A.direction?I:L,transformOrigin:"rtl"===A.direction?I:L,PaperProps:(0,r.Z)({},b,{classes:(0,r.Z)({},b.classes,{root:l.paper})}),open:y,ref:t,transitionDuration:k},C),i.createElement(R,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:N,autoFocus:s&&(-1===F||d),autoFocusItem:j,variant:T},h,{className:(0,a.Z)(l.list,h.className)}),Z))})),B=(0,s.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(N)},37702:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(45987),o=n(4942),i=n(87462),a=n(67294),s=n(86010),u=n(1591),c=n(41810),l=n(83711),f=n(17294),d=n(66987),p=n(73935),h="undefined"===typeof window?a.useEffect:a.useLayoutEffect,v=a.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,u=e.autoFocus,v=void 0!==u&&u,m=e.button,y=void 0!==m&&m,g=e.children,b=e.classes,_=e.className,w=e.component,x=e.ContainerComponent,k=void 0===x?"li":x,S=e.ContainerProps,E=(S=void 0===S?{}:S).className,O=(0,r.Z)(S,["className"]),P=e.dense,T=void 0!==P&&P,C=e.disabled,A=void 0!==C&&C,j=e.disableGutters,R=void 0!==j&&j,M=e.divider,D=void 0!==M&&M,I=e.focusVisibleClassName,L=e.selected,N=void 0!==L&&L,B=(0,r.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),F=a.useContext(d.Z),Z={dense:T||F.dense||!1,alignItems:o},z=a.useRef(null);h((function(){v&&z.current&&z.current.focus()}),[v]);var V=a.Children.toArray(g),U=V.length&&(0,l.Z)(V[V.length-1],["ListItemSecondaryAction"]),W=a.useCallback((function(e){z.current=p.findDOMNode(e)}),[]),H=(0,f.Z)(W,t),q=(0,i.Z)({className:(0,s.Z)(b.root,_,Z.dense&&b.dense,!R&&b.gutters,D&&b.divider,A&&b.disabled,y&&b.button,"center"!==o&&b.alignItemsFlexStart,U&&b.secondaryAction,N&&b.selected),disabled:A},B),$=w||"li";return y&&(q.component=w||"div",q.focusVisibleClassName=(0,s.Z)(b.focusVisible,I),$=c.Z),U?($=q.component||w?$:"div","li"===k&&("li"===$?$="div":"li"===q.component&&(q.component="div")),a.createElement(d.Z.Provider,{value:Z},a.createElement(k,(0,i.Z)({className:(0,s.Z)(b.container,E),ref:H},O),a.createElement($,q,V),V.pop()))):a.createElement(d.Z.Provider,{value:Z},a.createElement($,(0,i.Z)({ref:H},q),V))})),m=(0,u.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"})(v),y=a.forwardRef((function(e,t){var n,o=e.classes,u=e.className,c=e.component,l=void 0===c?"li":c,f=e.disableGutters,d=void 0!==f&&f,p=e.ListItemClasses,h=e.role,v=void 0===h?"menuitem":h,y=e.selected,g=e.tabIndex,b=(0,r.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),a.createElement(m,(0,i.Z)({button:!0,role:v,tabIndex:n,component:l,selected:y,disableGutters:d,classes:(0,i.Z)({dense:o.dense},p),className:(0,s.Z)(o.root,u,y&&o.selected,!d&&o.gutters),ref:t},b))})),g=(0,u.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",
vendor: 4,580 bytes, line 1
1whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,i.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(y)},31268:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(45987),o=n(87462),i=n(67294),a=n(73935),s=n(159),u=n(93869),c=n(30626),l=n(76234),f=n(42959),d=n(17294),p=n(55192),h=n(92781);var v=n(43144),m=n(41451),y=n(75840),g=n(80713);function b(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(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,m.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&b(e,o)}))}function x(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function k(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,c.Z)(e);return t.body===e?(0,g.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(_(i)+a,"px"),n=(0,c.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(_(e)+a,"px")}))}var s=i.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:u.style.overflow,key:"overflow",el:u}),u.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)}))}}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return(0,v.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&&b(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);w(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=k(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&&b(e.modalRef,!0),w(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&&b(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var E=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,s=void 0!==o&&o,u=e.disableRestoreFocus,l=void 0!==u&&u,f=e.getDoc,p=e.isEnabled,h=e.open,v=i.useRef(),m=i.useRef(null),y=i.useRef(null),g=i.useRef(),b=i.useRef(null),_=i.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),w=(0,d.Z)(t.ref,_),x=i.useRef();return i.useEffect((function(){x.current=h}),[h]),!x.current&&h&&"undefined"!==typeof window&&(g.current=f().activeElement),i.useEffect((function(){if(h){var e=(0,c.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()&&!v.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():v.current=!1)},n=function(t){!s&&p()&&9===t.keyCode&&e.activeElement===b.current&&(v.current=!0,t.shiftKey?y.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),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}
1),[r,s,l,p,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:w}),i.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},O={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"}},P=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,u=(0,r.Z)(e,["invisible","open"]);return s?i.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},u,{style:(0,o.Z)({},O.root,a?O.invisible:{},u.style)})):null}));var T=new S,C=i.forwardRef((function(e,t){var n=(0,s.Z)(),v=(0,u.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),m=v.BackdropComponent,y=void 0===m?P:m,g=v.BackdropProps,_=v.children,w=v.closeAfterTransition,x=void 0!==w&&w,k=v.container,S=v.disableAutoFocus,O=void 0!==S&&S,C=v.disableBackdropClick,A=void 0!==C&&C,j=v.disableEnforceFocus,R=void 0!==j&&j,M=v.disableEscapeKeyDown,D=void 0!==M&&M,I=v.disablePortal,L=void 0!==I&&I,N=v.disableRestoreFocus,B=void 0!==N&&N,F=v.disableScrollLock,Z=void 0!==F&&F,z=v.hideBackdrop,V=void 0!==z&&z,U=v.keepMounted,W=void 0!==U&&U,H=v.manager,q=void 0===H?T:H,$=v.onBackdropClick,G=v.onClose,Y=v.onEscapeKeyDown,K=v.onRendered,X=v.open,Q=(0,r.Z)(v,["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,d.Z)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(v),se=function(){return(0,c.Z)(re.current)},ue=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},ce=function(){q.mount(ue(),{disableScrollLock:Z}),oe.current.scrollTop=0},le=(0,p.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(k)||se().body;q.add(ue(),e),oe.current&&ce()})),fe=i.useCallback((function(){return q.isTopModal(ue())}),[q]),de=(0,p.Z)((function(e){re.current=e,e&&(K&&K(),X&&fe()?ce():b(oe.current,!0))})),pe=i.useCallback((function(){q.remove(ue())}),[q]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){X?le():ae&&x||pe()}),[X,pe,ae,x,le]),!W&&!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}),ve={};return void 0===_.props.tabIndex&&(ve.tabIndex=_.props.tabIndex||"-1"),ae&&(ve.onEnter=(0,f.Z)((function(){te(!1)}),_.props.onEnter),ve.onExited=(0,f.Z)((function(){te(!0),x&&pe()}),_.props.onExited)),i.createElement(l.Z,{ref:de,container:k,disablePortal:L},i.createElement("div",(0,o.Z)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Y&&Y(e),D||(e.stopPropagation(),G&&G(e,"escapeKeyDown")))},role:"presentation"},Q,{style:(0,o.Z)({},he.root,!X&&ee?he.hidden:{},Q.style)}),V?null:i.createElement(y,(0,o.Z)({open:X,onClick:function(e){e.target===e.currentTarget&&($&&$(e),!A&&G&&G(e,"backdropClick"))}},g)),i.createElement(E,{disableEnforceFocus:R,disableAutoFocus:O,disableRestoreFocus:B,getDoc:se,isEnabled:fe,open:X},i.cloneElement(_,ve))))}))},74061:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(41598),u=n(4942),c=n(1591),l=n(8920),f=n(93871),d=i.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,c=e.label,d=e.labelWidth,p=e.notched,h=e.style,v=(0,o.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),m="rtl"===(0,l.Z)().direction?"right":"left";if(void 0!==c)return i.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,className:(0,a.Z)(n.root,s),ref:t,style:h},v),i.createElement("legend",{className:(0,a.Z)(n.legendLabelled,p&&n.legendNotched)},c?i.createElement("span",null,c):i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var y=d>
10?.75*d+8:.01;return i.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,style:(0,r.Z)((0,u.Z)({},"padding".concat((0,f.Z)(m)),8),h),className:(0,a.Z)(n.root,s),ref:t},v),i.createElement("legend",{className:n.legend,style:{width:p?y:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),p=(0,c.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"})(d),h=i.forwardRef((function(e,t){var n=e.classes,u=e.fullWidth,c=void 0!==u&&u,l=e.inputComponent,f=void 0===l?"input":l,d=e.label,h=e.labelWidth,v=void 0===h?0:h,m=e.multiline,y=void 0!==m&&m,g=e.notched,b=e.type,_=void 0===b?"text":b,w=(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:d,labelWidth:v,notched:"undefined"!==typeof g?g:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.Z)({},n,{root:(0,a.Z)(n.root,n.underline),notchedOutline:null}),fullWidth:c,inputComponent:f,multiline:y,ref:t,type:_},w))}));h.muiName="Input";var v=(0,c.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:function(e,t,n){"use strict";var r=n(45987),o=n(87462),i=n(67294),a=n(86010),s=n(1591),u=i.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,c=void 0===u?"div":u,l=e.square,f=void 0!==l&&l,d=e.elevation,p=void 0===d?1:d,h=e.variant,v=void 0===h?"elevation":h,m=(0,r.Z)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(c,(0,o.Z)({className:(0,a.Z)(n.root,s,"outlined"===v?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},m))}));t.Z=(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"})(u)},76234:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(34236),a=n(17294);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,u=r.forwardRef((function(e,t){var n=e.children,u=e.container,c=e.disablePortal,l=void 0!==c&&c,f=e.onRendered,d=r.useState(null),p=d[0],h=d[1],v=(0,a.Z)(r.isValidElement(n)?n.ref:null,t);return s((function(){l||h(function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(u)||document.body)}),[u,l]),s((function(){if(p&&!l)return(0,i.Z)(t,p),function(){(0,i.Z)(t,null)}}),[t,p,l]),s((function(){f&&(p||l)&&f()}),[f,p,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:v}):n:p?o.createPortal(n,p):p}));t.Z=u},94924:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(87462),o=n(45987),i=n(67294),a=n(65835),s=n(86854),u=n(71002),c=n(60288),l=(n(59864),n(86010)),f=n(30626),d=n(93871),p=n(8202),h=n(36519),v=n(17294),m=n(22775);function y(e,t){return"object"===(0,u.Z)(t)&&null!==t?e===t:String(e)===String(t)}var g=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,g=e.children,b=e.classes,_=e.className,w=e.defaultValue,x=e.disabled,k=e.displayEmpty,S=e.IconComponent,E=e.inputRef,O=e.labelId,P=e.MenuProps,T=void 0===P?{}:P,C=e.multiple,A=e.name,j=e.onBlur,R=e.onChange,M=e.onClose,D=e.onFocus,I=e.onOpen,L=e.open,N=e.readOnly,B=e.renderValue,F=e.SelectDisplayProps,Z=void 0===F?{}:F,z=e.tabIndex,V=(e.type,e.value),U=e.variant,W=void 0===U?"standard":U,H=(0,o.Z)(e,["aria-label","autoF
1ocus","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"]),q=(0,m.Z)({controlled:V,default:w,name:"Select"}),$=(0,s.Z)(q,2),G=$[0],Y=$[1],K=i.useRef(null),X=i.useState(null),Q=X[0],J=X[1],ee=i.useRef(null!=L).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],se=(0,v.Z)(t,E);i.useImperativeHandle(se,(function(){return{focus:function(){Q.focus()},node:K.current,value:G}}),[Q,G]),i.useEffect((function(){a&&Q&&Q.focus()}),[a,Q]),i.useEffect((function(){if(Q){var e=(0,f.Z)(Q).getElementById(O);if(e){var t=function(){getSelection().isCollapsed&&Q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[O,Q]);var ue,ce,le=function(e,t){e?I&&I(t):M&&M(t),ee||(re(u?null:Q.clientWidth),ae(e))},fe=i.Children.toArray(g),de=function(e){return function(t){var n;if(C||le(!1,t),C){n=Array.isArray(G)?G.slice():[];var r=G.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),G!==n&&(Y(n),R&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:A}}),R(t,e)))}},pe=null!==Q&&(ee?L:ie);delete H["aria-invalid"];var he=[],ve=!1;((0,h.vd)({value:G})||k)&&(B?ue=B(G):ve=!0);var me=fe.map((function(e){if(!i.isValidElement(e))return null;var t;if(C){if(!Array.isArray(G))throw new Error((0,c.Z)(2));(t=G.some((function(t){return y(t,e.props.value)})))&&ve&&he.push(e.props.children)}else(t=y(G,e.props.value))&&ve&&(ce=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:de(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})}));ve&&(ue=C?he.join(", "):ce);var ye,ge=ne;!u&&ee&&Q&&(ge=Q.clientWidth),ye="undefined"!==typeof z?z:x?null:0;var be=Z.id||(A?"mui-component-select-".concat(A):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,r.Z)({className:(0,l.Z)(b.root,b.select,b.selectMenu,b[W],_,x&&b.disabled),ref:J,tabIndex:ye,role:"button","aria-disabled":x?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[O,be].filter(
1Boolean).join(" ")||void 0,onKeyDown:function(e){if(!N){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),le(!0,e))}},onMouseDown:x||N?null:function(e){0===e.button&&(e.preventDefault(),Q.focus(),le(!0,e))},onBlur:function(e){!pe&&j&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:G,name:A}}),j(e))},onFocus:D},Z,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ue)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ue),i.createElement("input",(0,r.Z)({value:Array.isArray(G)?G.join(","):G,name:A,ref:K,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];Y(n.props.value),R&&R(e,n)}},tabIndex:-1,className:b.nativeInput,autoFocus:a},H)),i.createElement(S,{className:(0,l.Z)(b.icon,b["icon".concat((0,d.Z)(W))],pe&&b.iconOpen,x&&b.disabled)}),i.createElement(p.Z,(0,r.Z)({id:"menu-".concat(A||""),anchorEl:Q,open:pe,onClose:function(e){le(!1,e)}},T,{MenuListProps:(0,r.Z)({"aria-labelledby":O,role:"listbox",disableListWrap:!0},T.MenuListProps),PaperProps:(0,r.Z)({},T.PaperProps,{style:(0,r.Z)({minWidth:ge},null!=T.PaperProps?T.PaperProps.style:null)})}),me))})),b=n(89345),_=n(22601),w=n(1591),x=(0,n(63786).Z)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),k=n(38799),S=i.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,u=e.IconComponent,c=e.inputRef,f=e.variant,p=void 0===f?"standard":f,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,l.Z)(n.root,n.select,n[p],a,s&&n.disabled),disabled:s,ref:c||t},h)),e.multiple?null:i.createElement(u,{className:(0,l.Z)(n.icon,n["icon".concat((0,d.Z)(p))],s&&n.disabled)}))})),E=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%"}}},O=i.createElement(k.Z,null),P=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,u=void 0===s?x:s,c=e.input,l=void 0===c?O:c,f=e.inputProps,d=(e.variant,(0,o.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=(0,_.Z)(),h=(0,b.Z)({props:e,muiFormControl:p,states:["variant"]});return i.cloneElement(l,(0,r.Z)({inputComponent:S,inputProps:(0,r.Z)({children:n,classes:a,IconComponent:u,variant:h.variant,type:void 0},f,l?l.props.inputProps:{}),ref:t},d))}));P.muiName="Select";(0,w.Z)(E,{name:"MuiNativeSelect"})(P);var T=n(59446),C=n(74061),A=E,j=i.createElement(k.Z,null),R=i.createElement(T.Z,null),M=i.forwardRef((function e(t,n){var s=t.autoWidth,u=void 0!==s&&s,c=t.children,l=t.classes,f=t.displayEmpty,d=void 0!==f&&f,p=t.IconComponent,h=void 0===p?x:p,v=t.id,m=t.input,y=t.inputProps,w=t.label,k=t.labelId,E=t.labelWidth,O=void 0===E?0:E,P=t.MenuProps,T=t.multiple,A=void 0!==T&&T,M=t.native,D=void 0!==M&&M,I=t.onClose,L=t.onOpen,N=t.open,B=t.renderValue,F=t.SelectDisplayProps,Z=t.variant,z=void 0===Z?"standard":Z,V=(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=D?S:g,W=(0,_.Z)(),H=(0,b.Z)({props:t,muiFormControl:W,states:["variant"]}).variant||z,q=m||{standard:j,outlined:i.createElement(C.Z,{label:w,labelWidth:O}),filled:R}[H];return i.cloneElement(q,(0,r.Z)({inputComponent:U,inputProps:(0,r.Z)({children:c,IconComponent:h,variant:H,type:void 0,multiple:A},D?{id:v}
1:{autoWidth:u,displayEmpty:d,labelId:k,MenuProps:P,onClose:I,onOpen:L,open:N,renderValue:B,SelectDisplayProps:(0,r.Z)({id:v},F)},y,{classes:y?(0,a.Z)({baseClasses:l,newClasses:y.classes,Component:e}):l},m?m.props.inputProps:{}),ref:n},V))}));M.muiName="Select";var D=(0,w.Z)(A,{name:"MuiSelect"})(M)},43950:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(45987),o=n(4942),i=n(87462),a=n(67294),s=n(86010),u=n(1591),c=n(43366),l=n(73935),f=n(30626),d=n(17294),p=n(55192);function h(e){return e.substring(2).toLowerCase()}var v=function(e){var t=e.children,n=e.disableReactTree,r=void 0!==n&&n,o=e.mouseEvent,i=void 0===o?"onClick":o,s=e.onClickAway,u=e.touchEvent,c=void 0===u?"onTouchEnd":u,v=a.useRef(!1),m=a.useRef(null),y=a.useRef(!1),g=a.useRef(!1);a.useEffect((function(){return setTimeout((function(){y.current=!0}),0),function(){y.current=!1}}),[]);var b=a.useCallback((function(e){m.current=l.findDOMNode(e)}),[]),_=(0,d.Z)(t.ref,b),w=(0,p.Z)((function(e){var t=g.current;if(g.current=!1,y.current&&m.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(v.current)v.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(m.current)>-1;else n=!(0,f.Z)(m.current).documentElement.contains(e.target)||m.current.contains(e.target);n||!r&&t||s(e)}})),x=function(e){return function(n){g.current=!0;var r=t.props[e];r&&r(n)}},k={ref:_};return!1!==c&&(k[c]=x(c)),a.useEffect((function(){if(!1!==c){var e=h(c),t=(0,f.Z)(m.current),n=function(){v.current=!0};return t.addEventListener(e,w),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,w),t.removeEventListener("touchmove",n)}}}),[w,c]),!1!==i&&(k[i]=x(i)),a.useEffect((function(){if(!1!==i){var e=h(i),t=(0,f.Z)(m.current);return t.addEventListener(e,w),function(){t.removeEventListener(e,w)}}}),[w,i]),a.createElement(a.Fragment,null,a.cloneElement(t,k))},m=n(93871),y=n(42959),g=n(20170),b=n(79895),_=n(59693),w=a.forwardRef((function(e,t){var n=e.action,o=e.classes,u=e.className,c=e.message,l=e.role,f=void 0===l?"alert":l,d=(0,r.Z)(e,["action","classes","className","message","role"]);return a.createElement(b.Z,(0,i.Z)({role:f,square:!0,elevation:6,className:(0,s.Z)(o.root,u),ref:t},d),a.createElement("div",{className:o.message},c),n?a.createElement("div",{className:o.action},n):null)})),x=(0,u.Z)((function(e){var t="light"===e.palette.type?.8:.98,n=(0,_._4)(e.palette.background.default,t);return{root:(0,i.Z)({},e.typography.body2,(0,o.Z)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(w),k=a.forwardRef((function(e,t){var n=e.action,o=e.anchorOrigin,u=(o=void 0===o?{vertical:"bottom",horizontal:"center"}:o).vertical,l=o.horizontal,f=e.autoHideDuration,d=void 0===f?null:f,h=e.children,b=e.classes,_=e.className,w=e.ClickAwayListenerProps,k=e.ContentProps,S=e.disableWindowBlurListener,E=void 0!==S&&S,O=e.message,P=e.onClose,T=e.onEnter,C=e.onEntered,A=e.onEntering,j=e.onExit,R=e.onExited,M=e.onExiting,D=e.onMouseEnter,I=e.onMouseLeave,L=e.open,N=e.resumeHideDuration,B=e.TransitionComponent,F=void 0===B?g.Z:B,Z=e.transitionDuration,z=void 0===Z?{enter:c.x9.enteringScreen,exit:c.x9.leavingScreen}:Z,V=e.TransitionProps,U=(0,r.Z)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),W=a.useRef(),H=a.useState(!0),q=H[0],$=H[1],G=(0,p.Z)((function(){P&&P.apply(void 0,arguments)})),Y=(0,p.Z)((function(e){P&&null!=e&&(clearTimeout(W.current),W.current=setTimeout((function(){G(null,"timeout")}),e))}));a.useEffect((function(){return L&&Y(d),function(){clearTimeout(W.current)}}),[L,d,Y]);var K=function(){clearTimeout(W.current)},X=a.useCallback((function(){null!=d&&Y(null!=N?N:.5*d)}),[d,N,Y]);return a.useEffect((function(){if(!E&&L)return window.addEventListener("focus",X),window.addEventListener("blur",K),function(){window.removeEventListener("focus",X),window.removeEventListener("blur",K)}}),[E,X,L]),!L&&q?null:a.createElement(v,(0,i.Z)({onClickAway:function(e){P&&P(e,"clickaway")}},w),a.createElement("div",(0,i.Z)({className:(0,s.Z)(b.root,b["anchorOrigin".concat((0,m.Z)(u)).concat((0,m.Z)(l))],_),onMouseEnter:function(e){D&&D(e),K()},onMouseLeave:function(e){I&&I(e),X()},ref:t},U),a.createElement(F,(0,i.Z)({appear:!0,in:L,onEnter:(0,y.Z)((function(){$(!1)}),T),onEntered:C,onEntering:A,onExit:j,onExited:(0,y.Z)((function(){$(!0)}),R),onExiting:M,timeout:z,direction:"top"===u?"down":"up"},V),h||a.createElement(x,(0,i.Z)({message:O,action:n},k)))))})),S=(0,u.Z)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},u={bottom:24},c={right:24},l={left:24},f={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,i.Z)({},t,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({},s,f))),anchorOriginBottomCenter:(0,i.Z)({},n,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({},u,f))),anchorOriginTopRight:(0,i.Z)({},t,r,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({left:"auto"},s,c))),anchorOriginBottomRight:(0,i.Z)({},n,r,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({left:"auto"},u,c))),anchorOriginTopLeft:(0,i.Z)({},t,a,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({right:"auto"},s,l))),anchorOriginBottomLeft:(0,i.Z)({},n,a,(0,o.Z)({},e.breakpoints.up("sm"),(0,i.Z)({right:"auto"},u,l)))}}),{flip:!1,name:"MuiSnackbar"})(k)},62087:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=n(93871),c=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.color,f=void 0===l?"inherit":l,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,v=void 0===h?"medium":h,m=e.htmlColor,y=e.titleAccess,g=e.viewBox,b=void 0===g?"0 0 24 24":g,_=(0,o.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.Z)({className:(0,a.Z)(s.root,c,"inherit"!==f&&s["color".concat((0,u.Z)(f))],"default"!==v&&"medium"!==v&&s["fontSize".concat((0,u.Z)(v))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:t},_),n,y?i.createElement("title",null,y):null)}));c.muiName="SvgIcon",t.Z=(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"})(c)},33426:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(38799),u=n(59446),c=n(74061),l=n(85161),f=n(64436),d=n(89345),p=n(22601),h=n(1591),v=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.component,l=void 0===c?"p":c,f=(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,p.Z)(),v=(0,d.Z)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(l,(0,r.Z)({className:(0,a.Z)(s.root,("filled"===v.variant||"outlined"===v.variant)&&s.c
1ontained,u,v.disabled&&s.disabled,v.error&&s.error,v.filled&&s.filled,v.focused&&s.focused,v.required&&s.required,"dense"===v.margin&&s.marginDense),ref:t},f)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),m=(0,h.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"})(v),y=n(94924),g={standard:s.Z,filled:u.Z,outlined:c.Z},b=i.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,u=void 0!==s&&s,c=e.children,d=e.classes,p=e.className,h=e.color,v=void 0===h?"primary":h,b=e.defaultValue,_=e.disabled,w=void 0!==_&&_,x=e.error,k=void 0!==x&&x,S=e.FormHelperTextProps,E=e.fullWidth,O=void 0!==E&&E,P=e.helperText,T=e.hiddenLabel,C=e.id,A=e.InputLabelProps,j=e.inputProps,R=e.InputProps,M=e.inputRef,D=e.label,I=e.multiline,L=void 0!==I&&I,N=e.name,B=e.onBlur,F=e.onChange,Z=e.onFocus,z=e.placeholder,V=e.required,U=void 0!==V&&V,W=e.rows,H=e.rowsMax,q=e.maxRows,$=e.minRows,G=e.select,Y=void 0!==G&&G,K=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"]);var ne={};if("outlined"===ee&&(A&&"undefined"!==typeof A.shrink&&(ne.notched=A.shrink),D)){var re,oe=null!==(re=null===A||void 0===A?void 0:A.required)&&void 0!==re?re:U;ne.label=i.createElement(i.Fragment,null,D,oe&&"\xa0*")}Y&&(K&&K.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ie=P&&C?"".concat(C,"-helper-text"):void 0,ae=D&&C?"".concat(C,"-label"):void 0,se=g[ee],ue=i.createElement(se,(0,r.Z)({"aria-describedby":ie,autoComplete:n,autoFocus:u,defaultValue:b,fullWidth:O,multiline:L,name:N,rows:W,rowsMax:H,maxRows:q,minRows:$,type:X,value:Q,id:C,inputRef:M,onBlur:B,onChange:F,onFocus:Z,placeholder:z,inputProps:j},ne,R));return i.createElement(f.Z,(0,r.Z)({className:(0,a.Z)(d.root,p),disabled:w,error:k,fullWidth:O,hiddenLabel:T,ref:t,required:U,color:v,variant:ee},te),D&&i.createElement(l.Z,(0,r.Z)({htmlFor:C,id:ae},A),D),Y?i.createElement(y.Z,(0,r.Z)({"aria-describedby":ie,id:C,labelId:ae,value:Q,input:ue},K),c):ue,P&&i.createElement(m,(0,r.Z)({id:ie},S),P))})),_=(0,h.Z)({root:{}},{name:"MuiTextField"})(b)},87343:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(79437),s=n(17294);function u(e,t){return parseInt(e[t],10)||0}var c="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,l={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},f=i.forwardRef((function(e,t){var n=e.onChange,f=e.rows,d=e.rowsMax,p=e.rowsMin,h=e.maxR
vendor: 11,866 bytes, line 1
1ows,v=e.minRows,m=void 0===v?1:v,y=e.style,g=e.value,b=(0,o.Z)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),_=h||d,w=f||p||m,x=i.useRef(null!=g).current,k=i.useRef(null),S=(0,s.Z)(t,k),E=i.useRef(null),O=i.useRef(0),P=i.useState({}),T=P[0],C=P[1],A=i.useCallback((function(){var t=k.current,n=window.getComputedStyle(t),r=E.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=u(n,"padding-bottom")+u(n,"padding-top"),a=u(n,"border-bottom-width")+u(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var c=r.scrollHeight-i,l=s;w&&(l=Math.max(Number(w)*c,l)),_&&(l=Math.min(Number(_)*c,l));var f=(l=Math.max(l,c))+("border-box"===o?i+a:0),d=Math.abs(l-s)<=1;C((function(e){return O.current<20&&(f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==d)?(O.current+=1,{overflow:d,outerHeightStyle:f}):e}))}),[_,w,e.placeholder]);i.useEffect((function(){var e=(0,a.Z)((function(){O.current=0,A()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[A]),c((function(){A()})),i.useEffect((function(){O.current=0}),[g]);return i.createElement(i.Fragment,null,i.createElement("textarea",(0,r.Z)({value:g,onChange:function(e){O.current=0,x||A(),n&&n(e)},ref:S,rows:w,style:(0,r.Z)({height:T.outerHeightStyle,overflow:T.overflow?"hidden":null},y)},b)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:E,tabIndex:-1,style:(0,r.Z)({},l,y)}))}));t.Z=f},87083:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ze}});var r=n(87462),o=n(86854),i=n(45987),a=n(4942),s=n(67294),u=n(73935),c=n(86010),l=n(35953),f=n(59693),d=n(1591),p=n(93871),h=n(20170),v="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,m=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(v&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var y=v&&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()}),m))}};function g(e){return e&&"[object Function]"==={}.toString.call(e)}function b(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function _(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function w(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=b(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:w(_(e))}function x(e){return e&&e.referenceNode?e.referenceNode:e}var k=v&&!(!window.MSInputMethodContext||!document.documentMode),S=v&&/MSIE 10/.test(navigator.userAgent);function E(e){return 11===e?k:10===e?S:k||S}function O(e){if(!e)return document.documentElement;for(var t=E(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"===b(n,"position")?O(n):n:e?e.ownerDocument.documentElement:document.documentElement}function P(e){return null!==e.parentNode?P(e.parentNode):e}function T(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=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||O(e.firstElementChild)===e)}(a)?a:O(a);var s=P(e);return s.host?T(s.host,t):T(e,P(t).host)}function C(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 A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=C(t,"top"),o=C(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 j(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 R(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],E(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function M(e){var t=e.body,n=e.documentElement,r=E(10)&&getComputedStyle(n);return{height:R("Height",t,n,r),width:R("Width",t,n,r)}}var D=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I=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}}(),L=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},N=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 B(e){return N({},e,{right:e.left+e.width,bottom:e.top+e.height})}function F(e){var t={};try{if(E(10)){t=e.getBoundingClientRect();var n=C(e,"top"),r=C(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?M(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,u=e.offsetWidth-a,c=e.offsetHeight-s;if(u||c){var l=b(e);u-=j(l,"x"),c-=j(l,"y"),o.width-=u,o.height-=c}return B(o)}function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=E(10),o="HTML"===t.nodeName,i=F(e),a=F(t),s=w(e),u=b(t),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=B({top:i.top-a.top-c,left:i.left-a.left-l,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);f.top-=c-d,f.bottom-=c-d,f.left-=l-p,f.right-=l-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=A(f,t)),f}function z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Z(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:C(n),s=t?0:C(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return B(u)}function V(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===b(e,"position"))return!0;var n=_(e);return!!n&&V(n)}function U(e){if(!e||!e.parentElement||E())return document.documentElement;for(var t=e.parentElement;t&&"none"===b(t,"transform");)t=t.parentElement;return t||document.documentElement}function W(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?U(e):T(e,x(t));if("viewport"===r)i=z(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=w(_(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=Z(s,a,o);if("HTML"!==s.nodeName||V(a))i=u;else{var c=M(e.ownerDocument),l=c.height,f=c.width;i.top+=u.top-u.marginTop,i.bottom=l+u.top,i.left+=u.left-u.marginLeft,i.right=f+u.left}}var d="number"===typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function H(e){return e.width*e.height}function q(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=W(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}},u=Object.keys(s).map((function(e){return N({key:e},s[e],{area:H(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function $(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?U(t):T(t,x(n));return Z(n,o,r)}function G(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 Y(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 K(e,t,n){n=n.split("-")[0];var r=G(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[Y(s)],o}function X(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Q(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[t]===n}));var r=X(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&g(n)&&(t.offsets.popper=B(t.offsets.popper),t.offsets.reference=B(t.offsets.reference),t=n(t,e))})),t}function J(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=$(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=q(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=K(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Q(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ee(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function te(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("undefined"!==typeof document.body.style[i])return i}return null}function ne(){return this.state.isDestroyed=!0,ee(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[te("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function re(e){var t=e.ownerDocument;return t?t.defaultView:window}function oe(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||oe(w(i.parentNode),t,n,r),r.push(i)}function ie(e,t,n,r){n.updateBound=r,re(e).addEventListener("resize",n.updateBound,{passive:!0});var o=w(e);return oe(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ae(){this.state.eventsEnabled||(this.state=ie(this.reference,this.options,this.state,this.scheduleUpdate))}function se(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,re(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 8,866 bytes, line 1
1h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ue(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ce(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ue(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var le=v&&/Firefox/i.test(navigator.userAgent);function fe(e,t,n){var r=X(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 de=["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"],pe=de.slice(3);function he(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pe.indexOf(e),r=pe.slice(n+1).concat(pe.slice(0,n));return t?r.reverse():r}var ve="flip",me="clockwise",ye="counterclockwise";function ge(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(X(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 u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return c=c.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];if(!i)return e;if(0===a.indexOf("%")){return B("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){ue(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var be={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),u=s?"left":"top",c=s?"width":"height",l={start:L({},u,i[u]),end:L({},u,i[u]+i[c]-a[c])};e.offsets.popper=N({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=ue(+n)?[+n,0]:ge(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||O(e.instance.popper);e.instance.reference===n&&(n=O(n));var r=te("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=W(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),L({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),L({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=N({},l,f[t](e))})),e.offsets.popper=l,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",u=a?"left":"top",c=a?"width":"height";return n[s]<i(r[u])&&(e.offsets.popper[u]=i(r[u])-n[c]),n[u]>i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!fe(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,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",l=u?"Top":"Left",f=l.toLowerCase(),d=u?"left":"top",p=u?"bottom":"right",h=G(r)[c];s[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(s[p]-h)),s[f]+h>a[p]&&(e.offsets.popper[f]+=s[f]+h-a[p]),e.offsets.popper=B(e.offsets.popper);var v=s[f]+s[c]/2-h/2,m=b(e.instance.popper),y=parseFloat(m["margin"+l]),g=parseFloat(m["border"+l+"Width"]),_=v-e.offsets.popper[f]-y-g;return _=Math.max(Math.min(a[c]-h,_),0),e.arrowElement=r,e.offsets.arrow=(L(n={},f,Math.round(_)),L(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ee(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=W(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Y(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ve:a=[r,o];break;case me:a=he(r);break;case ye:a=he(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=Y(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),v=f(c.top)<f(n.top),m=f(c.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===i&&p||g&&"end"===i&&h||!g&&"start"===i&&v||!g&&"end"===i&&m),_=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&p||!g&&"start"===i&&m||!g&&"end"===i&&v),w=b||_;(d||y||w)&&(e.flipped=!0,(d||y)&&(r=a[u+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=N({},e.offsets.popper,K(e.instance.popper,e.offsets.reference,e.placement)),e=Q(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=Y(t),e.offsets.popper=B(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!fe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=X(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=X(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=void 0!==i?i:t.gpuAcceleration,s=O(e.instance.popper),u=F(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},u=i(o.width),c=i(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2===c%2?i:a:s,p=t?i:s;return{left:d(u%2===1&&c%2===1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!le),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=te("transform"),h=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&p)c[p]="translate3d("+h+"px, "+v+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var m="bottom"===f?-1:1,y="right"===d?-1:1;c[f]=v*m,c[d]=h*y,c.willChange=f+", "+d}var g={"x-placement":e.placement};return e.attributes=N({},g,e.attributes),e.styles=N({},c,e.styles),e.arrowStyles=N({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ce(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEac
vendor: 22,967 bytes, line 1
1h((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ce(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=$(o,t,e,n.positionFixed),a=q(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),ce(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},_e={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:be},we=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};D(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=y(this.update.bind(this)),this.options=N({},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(N({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=N({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return N({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&g(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 I(e,[{key:"update",value:function(){return J.call(this)}},{key:"destroy",value:function(){return ne.call(this)}},{key:"enableEventListeners",value:function(){return ae.call(this)}},{key:"disableEventListeners",value:function(){return se.call(this)}}]),e}();we.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,we.placements=de,we.Defaults=_e;var xe=we,ke=n(159),Se=n(76234),Ee=n(42959),Oe=n(34236),Pe=n(17294);function Te(e){return"function"===typeof e?e():e}var Ce="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,Ae={},je=s.forwardRef((function(e,t){var n=e.anchorEl,o=e.children,a=e.container,u=e.disablePortal,c=void 0!==u&&u,l=e.keepMounted,f=void 0!==l&&l,d=e.modifiers,p=e.open,h=e.placement,v=void 0===h?"bottom":h,m=e.popperOptions,y=void 0===m?Ae:m,g=e.popperRef,b=e.style,_=e.transition,w=void 0!==_&&_,x=(0,i.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),k=s.useRef(null),S=(0,Pe.Z)(k,t),E=s.useRef(null),O=(0,Pe.Z)(E,g),P=s.useRef(O);Ce((function(){P.current=O}),[O]),s.useImperativeHandle(g,(function(){return E.current}),[]);var T=s.useState(!0),C=T[0],A=T[1],j=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}}(v,(0,ke.Z)()),R=s.useState(j),M=R[0],D=R[1];s.useEffect((function(){E.current&&E.current.update()}));var I=s.useCallback((function(){if(k.current&&n&&p){E.current&&(E.current.destroy(),P.current(null));var e=function(e){D(e.placement)},t=(Te(n),new xe(Te(n),k.current,(0,r.Z)({placement:j},y,{modifiers:(0,r.Z)({},c?{}:{preventOverflow:{boundariesElement:"window"}},d,y.modifiers),onCreate:(0,Ee.Z)(e,y.onCreate),onUpdate:(0,Ee.Z)(e,y.onUpdate)})));P.current(t)}}),[n,c,d,p,j,y]),L=s.useCallback((function(e){(0,Oe.Z)(S,e),I()}),[S,I]),N=function(){E.current&&(E.current.destroy(),P.current(null))};if(s.useEffect((function(){return function(){N()}}),[]),s.useEffect((function(){p||w||N()}),[p,w]),!f&&!p&&(!w||C))return null;var B={placement:M};return w&&(B.TransitionProps={in:p,onEnter:function(){A(!1)},onExited:function(){A(!0),N()}}),s.createElement(Se.Z,{disablePortal:c,container:a},s.createElement("div",(0,r.Z)({ref:L,role:"tooltip"},x,{style:(0,r.Z)({position:"fixed",top:0,left:0,display:p||!f||w?null:"none"},b)}),"function"===typeof o?o(B):o))})),Re=je,Me=n(95001),De=n(24896),Ie=n(22775),Le=n(8920);function Ne(e){return Math.round(1e5*e)/1e5}var Be=!1,Fe=null;var Ze=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,f=e.children,d=e.classes,v=e.disableFocusListener,m=void 0!==v&&v,y=e.disableHoverListener,g=void 0!==y&&y,b=e.disableTouchListener,_=void 0!==b&&b,w=e.enterDelay,x=void 0===w?100:w,k=e.enterNextDelay,S=void 0===k?0:k,E=e.enterTouchDelay,O=void 0===E?700:E,P=e.id,T=e.interactive,C=void 0!==T&&T,A=e.leaveDelay,j=void 0===A?0:A,R=e.leaveTouchDelay,M=void 0===R?1500:R,D=e.onClose,I=e.onOpen,L=e.open,N=e.placement,B=void 0===N?"bottom":N,F=e.PopperComponent,Z=void 0===F?Re:F,z=e.PopperProps,V=e.title,U=e.TransitionComponent,W=void 0===U?h.Z:U,H=e.TransitionProps,q=(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"]),$=(0,Le.Z)(),G=s.useState(),Y=G[0],K=G[1],X=s.useState(null),Q=X[0],J=X[1],ee=s.useRef(!1),te=s.useRef(),ne=s.useRef(),re=s.useRef(),oe=s.useRef(),ie=(0,Ie.Z)({controlled:L,default:!1,name:"Tooltip",state:"open"}),ae=(0,o.Z)(ie,2),se=ae[0],ue=ae[1],ce=se,le=(0,Me.Z)(P);s.useEffect((function(){return function(){clearTimeout(te.current),clearTimeout(ne.current),clearTimeout(re.current),clearTimeout(oe.current)}}),[]);var fe=function(e){clearTimeout(Fe),Be=!0,ue(!0),I&&I(e)},de=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ee.current&&"touchstart"!==t.type||(Y&&Y.removeAttribute("title"),clearTimeout(ne.current),clearTimeout(re.current),x||Be&&S?(t.persist(),ne.current=setTimeout((function(){fe(t)}),Be?S:x)):fe(t))}},pe=(0,De.Z)(),he=pe.isFocusVisible,ve=pe.onBlurVisible,me=pe.ref,ye=s.useState(!1),ge=ye[0],be=ye[1],_e=function(){ge&&(be(!1),ve())},we=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){Y||K(t.currentTarget),he(t)&&(be(!0),de()(t));var n=f.props;n.onFocus&&e&&n.onFocus(t)}},xe=function(e){clearTimeout(Fe),Fe=setTimeout((function(){Be=!1}),800+j),ue(!1),D&&D(e),clearTimeout(te.current),te.current=setTimeout((function(){ee.current=!1}),$.transitions.duration.shortest)},ke=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),_e()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===Y&&n.onMouseLeave(t),clearTimeout(ne.current),clearTimeout(re.current),t.persist(),re.current=setTimeout((function(){xe(t)}),j)}},Se=function(e){ee.current=!0;var t=f.props;t.onTouchStart&&t.onTouchStart(e)},Ee=(0,Pe.Z)(K,t),Te=(0,Pe.Z)(me,Ee),Ce=s.useCallback((function(e){(0,Oe.Z)(Te,u.findDOMNode(e))}),[Te]),Ae=(0,Pe.Z)(f.ref,Ce);""===V&&(ce=!1);var je=!ce&&!g,Ne=(0,r.Z)({"aria-describedby":ce?le:null,title:je&&"string"===typeof V?V:null},q,f.props,{className:(0,c.Z)(q.className,f.props.className),onTouchStart:Se,ref:Ae}),Ze={};_||(Ne.onTouchStart=function(e){Se(e),clearTimeout(re.current),clearTimeout(te.current),clearTimeout(oe.current),e.persist(),oe.current=setTimeout((function(){de()(e)}),O)},Ne.onTouchEnd=function(e){f.props.onTouchEnd&&f.props.onTouchEnd(e),clearTimeout(oe.current),clearTimeout(re.current),e.persist(),re.current=setTimeout((function(){xe(e)}),M)}),g||(Ne.onMouseOver=de(),Ne.onMouseLeave=ke(),C&&(Ze.onMouseOver=de(!1),Ze.onMouseLeave=ke(!1))),m||(Ne.onFocus=we(),Ne.onBlur=ke(),C&&(Ze.onFocus=we(!1),Ze.onBlur=ke(!1)));var ze=s.useMemo((function(){return(0,l.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(Q),element:Q}}}},z)}),[Q,z]);return s.createElement(s.Fragment,null,s.cloneElement(f,Ne),s.createElement(Z,(0,r.Z)({className:(0,c.Z)(d.popper,C&&d.popperInteractive,a&&d.popperArrow),placement:B,anchorEl:Y,open:!!Y&&ce,id:Ne["aria-describedby"],transition:!0},Ze,ze),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(W,(0,r.Z)({timeout:$.transitions.duration.shorter},n,H),s.createElement("div",{className:(0,c.Z)(d.tooltip,d["tooltipPlacement".concat((0,p.Z)(t.split("-")[0]))],ee.current&&d.touch,a&&d.tooltipArrow)},V,a?s.createElement("span",{className:d.arrow,ref:J}):null))})))})),ze=(0,d.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,f.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(Ne(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,f.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(Ne(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})(Ze)},22318:function(e,t,n){"use strict";var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(1591),u=n(93871),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},l=i.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,l=e.classes,f=e.className,d=e.color,p=void 0===d?"initial":d,h=e.component,v=e.display,m=void 0===v?"initial":v,y=e.gutterBottom,g=void 0!==y&&y,b=e.noWrap,_=void 0!==b&&b,w=e.paragraph,x=void 0!==w&&w,k=e.variant,S=void 0===k?"body1":k,E=e.variantMapping,O=void 0===E?c:E,P=(0,o.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=h||(x?"p":O[S]||c[S])||"span";return i.createElement(T,(0,r.Z)({className:(0,a.Z)(l.root,f,"inherit"!==S&&l[S],"initial"!==p&&l["color".concat((0,u.Z)(p))],_&&l.noWrap,g&&l.gutterBottom,x&&l.paragraph,"inherit"!==s&&l["align".concat((0,u.Z)(s))],"initial"!==m&&l["display".concat((0,u.Z)(m))]),ref:t},P))}));t.Z=(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"})(l)},59693:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return l},_4:function(){return c},_j:function(){return f},mi:function(){return 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=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(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),u=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)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),a({type:c,values:l})}(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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function l(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 f(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 d(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)}},90157:function(e,t,n){"use strict";n.d(t,{X:function(){return i},Z:function(){return a}});var r=n(87462),o=n(45987),i=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,u=e.step,c=void 0===u?5:u,l=(0,o.Z)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function d(e,t){var r=i.indexOf(t);return r===i.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[i[r+1]]?n[i[r+1]]:t)-c/100).concat(s,")")}return(0,r.Z)({keys:i,values:n,up:f,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(s,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)}},75154:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},92671:function(e,t,n){"use strict";n.d(t,{Z:function(){return G}});var r=n(45987),o=n(35953),i=n(90157),a=n(4942),s=n(87462);function u(e,t,n){var r;return(0,s.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,s.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,a.Z)({},e.up("sm"),(0,s.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,a.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288),l={black:"#000",white:"#fff"},f={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"},d={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"},p={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"},h={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"},v={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"},m={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"},y={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"},g=n(59693),b={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:l.white,default:f[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}},_={text:{primary:l.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[800],default:"#303030"},action:{active:l.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 w(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.$n)(e.main,o):"dark"===t&&(e.dark=(0,g._j)(e.main,i)))}function x(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,i=e.secondary,a=void 0===i?{light:p.A200,main:p.A400,dark:p.A700}:i,u=e.error,x=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,k=e.warning,S=void 0===k?{light:v[300],main:v[500],dark:v[700]}:k,E=e.info,O=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,P=e.success,T=void 0===P?{light:y[300],main:y[500],dark:y[700]}:P,C=e.type,A=void 0===C?"light":C,j=e.contrastThreshold,R=void 0===j?3:j,M=e.tonalOffset,D=void 0===M?.2:M,I=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,g.mi)(e,_.text.primary)>=R?_.text.primary:b.text.primary}var N=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,s.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 w(e,"light",n,D),w(e,"dark",r,D),e.contrastText||(e.contrastText=L(e.main)),e},B={dark:_,light:b};return(0,o.Z)((0,s.Z)({common:l,type:A,primary:N(n),secondary:N(a,"A400","A200","A700"),error:N(x),warning:N(S),info:N(O),success:N(T),grey:f,contrastThreshold:R,getContrastText:L,augmentColor:N,tonalOffset:D},B[A]),I)}function k(e){return Math.round(1e5*e)/1e5}function S(e){return k(e)}var E={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){var n="function"===typeof t?t(e):t,i=n.fontFamily,a=void 0===i?O:i,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,y=void 0===m?700:m,g=n.htmlFontSize,b=void 0===g?16:g,_=n.allVariants,w=n.pxToRem,x=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var P=c/14,T=w||function(e){return"".concat(e/b*P,"rem")},C=function(e,t,n,r,o){return(0,s.Z)({fontFamily:a,fontWeight:e,fontSize:T(t),lineHeight:n},a===O?{letterSpacing:"".concat(k(r/t),"em")}:{},o,_)},A={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(v,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(v,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(v,14,1.75,.4,E),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,E)};return(0,o.Z)((0,s.Z)({htmlFontSize:b,pxToRem:T,round:S,fontFamily:a,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:y},A),x,{clone:!1})}function T(){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(",")}
1var C=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},j=n(86854),R=n(71002),M={xs:0,sm:600,md:960,lg:1280,xl:1920},D={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(M[e],"px)")}};var I=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var L={m:"margin",p:"padding"},N={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!B[e])return[e];e=B[e]}var t=e.split(""),n=(0,j.Z)(t,2),r=n[0],o=n[1],i=L[r],a=N[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]})),Z=["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 z(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 V(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}),{})}}function U(e){var t=z(e.theme);return Object.keys(e).map((function(n){if(-1===Z.indexOf(n))return null;var r=V(F(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||D;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,R.Z)(t)){var o=e.theme.breakpoints||D;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(I,{})}U.propTypes={},U.filterProps=Z;function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=z({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 H=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,a=e.mixins,s=void 0===a?{}:a,c=e.palette,l=void 0===c?{}:c,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),v=x(l),m=(0,i.Z)(n),y=W(f),g=(0,o.Z)({breakpoints:m,direction:"ltr",mixins:u(m,y,s),overrides:{},palette:v,props:{},shadows:C,typography:P(v,p),spacing:y,shape:A,transitions:H.ZP,zIndex:q.Z},h),b=arguments.length,_=new Array(b>1?b-1:0),w=1;w<b;w++)_[w-1]=arguments[w];return g=_.reduce((function(e,t){return(0,o.Z)(e,t)}),g)}var G=$},99700:function(e,t,n){"use strict";var r=(0,n(92671).Z)();t.Z=r},41120:function(e,t,n){"use strict";var r=n(87462),o=n(19214),i=n(99700);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.Z)(e,(0,r.Z)({defaultTheme:i.Z},t))}},34266:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),o=n(45987),i=n(67294),a=n(86010),s=n(8679),u=n.n(s),c=n(19214);function l(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var f=n(99700),d=function(e){var t=function(e){return function(t){var n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=s.name,d=(0,o.Z)(s,["name"]),p=f,h="function"===typeof t?function(e){return{root:function(n){return t((0,r.Z)({theme:e},n))}}}:{root:t},v=(0,c.Z)(h,(0,r.Z)({Component:e,name:f||e.displayName,classNamePrefix:p},d));
1t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var m=i.forwardRef((function(t,s){var u=t.children,c=t.className,f=t.clone,d=t.component,p=(0,o.Z)(t,["children","className","clone","component"]),h=v(t),m=(0,a.Z)(h.root,c),y=p;if(n&&(y=l(y,n)),f)return i.cloneElement(u,(0,r.Z)({className:(0,a.Z)(u.props.className,m)},y));if("function"===typeof u)return u((0,r.Z)({className:m},y));var g=d||e;return i.createElement(g,(0,r.Z)({ref:s,className:m},y),u)}));return u()(m,e),m}}(e);return function(e,n){return t(e,(0,r.Z)({defaultTheme:f.Z},n))}}},43366:function(e,t,n){"use strict";n.d(t,{x9:function(){return 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")}t.ZP={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,u=t.easing,c=void 0===u?o.easeInOut:u,l=t.delay,f=void 0===l?0:l;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof f?f:a(f))})).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:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(159),o=(n(67294),n(99700));function i(){return(0,r.Z)()||o.Z}},1591:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),o=n(45987),i=n(67294),a=n(8679),s=n.n(a),u=n(19214),c=n(93869),l=n(159),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var v=p,m=(0,u.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:v},h)),y=i.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,f=(0,o.Z)(e,["classes","innerRef"]),h=m((0,r.Z)({},n.defaultProps,e)),v=f;return("string"===typeof p||d)&&(s=(0,l.Z)()||a,p&&(v=(0,c.Z)({theme:s,name:p,props:f})),d&&!v.theme&&(v.theme=s)),i.createElement(n,(0,r.Z)({ref:u||t,classes:h},v))}));return s()(y,n),y}},d=n(99700);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},92781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},5653:function(e,t,n){"use strict";n.d(t,{C:function(){return o},n:function(){return 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}}},63457:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462),o=n(67294),i=n(159),a=n(93869);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.Z)(),s=(0,a.Z)({theme:n,name:"MuiUseMediaQuery",props:{}});var u="function"===typeof e?e(n):e;u=u.replace(/^@media( ?)/m,"");var c="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,l=(0,r.Z)({},s,t),f=l.defaultMatches,d=void 0!==f&&f,p=l.matchMedia,h=void 0===p?c?window.matchMedia:null:p,v=l.noSsr,m=void 0!==v&&v,y=l.ssrMatchMedia,g=void 0===y?null:y,b=o.useState((function(){return m&&c?h(u).matches:g?g(u).matches:d})),_=b[0],w=b[1];return o.useEffect((function(){var e=!0;if(c){var t=h(u),n=function(){e&&w(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[u,h,c]),_}},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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)}},42959:function(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:function(){return r}})},63786:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(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:function(){return r}})},75840:function(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:function(){return r}})},44343:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return l.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return y.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return v.Z},useForkRef:function(){return m.Z},useIsFocusVisible:function(){return g.Z}});var r=n(93871),o=n(42959),i=n(63786),a=n(79437);function s(e,t){return function(){return null}}var u=n(83711),c=n(30626),l=n(80713);function f(e){return function(){return null}}var d=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),v=n(55192),m=n(17294),y=n(95001),g=n(24896)},83711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},80713:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}}
1,34236:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},95001:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),o=n(73935),i=!0,a=!1,s=null,u={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 c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function l(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("touchstart",l,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},21673:function(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 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.Z=a},41959:function(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.41z"}),"Check");t.Z=a},80366:function(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 12z"}),"Close");t.Z=a},64566:function(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},78513:function(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 8c1.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"}),"MoreVert");t.Z=a},88995:function(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"}),"Search");t.Z=a},40593:function(e,t,n){"use strict";var r=n(67294),o=n(63786);t.Z=(0,o.Z)(r.createElement("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4h-8.1c-.71 0-1.36.37-1.72.97l-2.67 6.15z"}),"ThumbDownAlt")},61005:function(e,t,n){"use strict";var r=n(67294),o=n(63786);t.Z=(0,o.Z)(r.createElement("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"}),"ThumbUpAlt")},2108:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(44343)},13457:function(e,t,n){"use strict";var r=n(87462),o=n(67294),i=n(83800),a=n(159),s=n(17076);t.Z=function(e){var t=e.children,n=e.theme,u=(0,a.Z)(),c=o.useMemo((function(){var e=null===u?n:function(e,t){return"function"===typeof t?t(e):(0,r.Z)({},e,t)}(u,n);return null!=e&&(e[s.Z]=null!==u),e}),[n,u]);return o.createElement(i.Z.Provider,{value:c},t)}},17076:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},93869:function(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:function(){return r}})},19214:function(e,t,n){"use strict";n.d(t,{Z:function(){return bn}});var r=n(45987),o=n(87462),i=n(67294),a="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},s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType,u=n(43144),c=n(75068),l=n(97326),f=n(63366),d={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==d)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function h(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=p(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var v=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},m=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+=v(e[n]," ");else t=v(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function y(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 b(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=y(n),u=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var l=0;l<a.length;l++){var f=a[l];for(var d in f){var p=f[d];null!=p&&(r&&(r+=u),r+=g(d+":"+c+m(p)+";",i))}}else for(var h in a){var v=a[h];null!=v&&(r&&(r+=u),r+=g(h+":"+c+m(v)+";",i))}for(var b in t){var _=t[b];null!=_&&"fallbacks"!==b&&(r&&(r+=u),r+=g(b+":"+c+m(_)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+u+r+u),g(""+e+c+"{"+r,--i)+g("}",i)):r}var _=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,x=function(e){return w?w(e):e.replace(_,"\\$1")},k=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 u=this.options.sheet;return u&&u.attached,this},e}(),S=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u((0,l.Z)((0,l.Z)(o)),s),o.selectorText="."+x(o.id)),o}(0,c.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]=m(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},(0,u.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(k),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new S(e,t,n)}},O={indent:1,children:!0},P=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(P);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Q((0,o.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=O);var t=y(e).linebreak;if(null==e.indent&&(e.indent=O.indent),null==e.children&&(e.children=O.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);
vendor: 11,907 bytes, line 1
1return n?this.query+" {"+t+n+t+"}":""},e}(),C=/@container|@media|@supports\s+/,A={onCreateRule:function(e,t,n){return C.test(e)?new T(e,t,n):null}},j={indent:1,children:!0},R=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(R);r&&r[1]?this.name=r[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 u in this.id=!1===i?this.name:x(s(this,a)),this.rules=new Q((0,o.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,o.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=j);var t=y(e).linebreak;if(null==e.indent&&(e.indent=j.indent),null==e.children&&(e.children=j.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}(),D=/@keyframes\s+/,I=/\$([\w-]+)/g,L=function(e,t){return"string"===typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},N=function(e,t,n){var r=e[t],o=L(r,n);o!==r&&(e[t]=o)},B={onCreateRule:function(e,t,n){return"string"===typeof e&&D.test(e)?new M(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 L(e,r.keyframes);default:return e}}},F=function(e){function t(){return e.apply(this,arguments)||this}return(0,c.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(k),Z={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(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=y(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=b(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return b(this.at,this.style,e)},e}(),V=/@font-face/,U={onCreateRule:function(e,t,n){return V.test(e)?new z(e,t,n):null}},W=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 b(this.key,this.style,e)},e}(),H={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new W(e,t,n):null}},q=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}(),$={"@charset":!0,"@import":!0,"@namespace":!0},G={onCreateRule:function(e,t,n){return e in $?new q(e,t,n):null}},Y=[E,A,B,Z,U,H,G],K={process:!0},X={force:!0,process:!0},Q=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 r=this.options,i=r.parent,a=r.sheet,s=r.jss,u=r.Renderer,c=r.generateId,l=r.scoped,f=(0,o.Z)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:u,generateId:c,scoped:l,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+x(this.classes[d]));var p=h(d,t,f);if(!p)return null;this.register(p);var v=void 0===f.index?this.index.length:f.index;return this.index.splice(v,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==i&&(a=(0,o.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 S?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof M&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof S?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof M&&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=K);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 u in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[u];c!==s[u]&&t.prop(u,c,X)}for(var l in s){var f=t.style[l],d=s[l];null==f&&f!==d&&t.prop(l,null,X)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=y(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}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,o.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Q(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}(),ee=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}(),te=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,f.Z)(t,["attached"]),o=y(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,u.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ne=new te,re="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),oe="2f1acc6c3a606b082e5eef5e54414ffb";null==re[oe]&&(re[oe]=0);var ie=re[oe]++,ae=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")+ie+o+t:i+n.key+"-"+ie+(o?"-"+o:"")+"-"+t}},se=function(e){var t;return function(){return t||(t=e()),t}},ue=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ce=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=m(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(a){return!1}return!0},le=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},fe=function(e,t){return e.selectorText=t,e.selectorText===t},de=se((function(){return document.querySelector("head")}));function pe(e){var t=ne.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=de(),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}var he=se((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ve=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.append
1Rule(t)}catch(r){return!1}return e.cssRules[n]},me=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ye=function(){function e(e){this.getPropertyValue=ue,this.setProperty=ce,this.removeProperty=le,this.setSelector=fe,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=he();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=pe(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 de().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=me(n,t);if(!1===(o=ve(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=me(n,t),u=ve(n,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&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}(),ge=0,be=function(){function e(e){this.id=ge++,this.version="10.10.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ae,Renderer:s?ye:null,plugins:[]},this.generateId=ae({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[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,o.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===ne.index?0:ne.index+1);var r=new J(e,(0,o.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ne.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 r=(0,o.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=h(e,t,r);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}(),_e=function(e){return new be(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function xe(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=xe(r);i&&(t||(t={}),t[n]=i)}}return t}_e();var ke=n(65835),Se={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Ee=Se,Oe=n(159),Pe=n(17076),Te=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ce=Date.now(),Ae="fnValues"+Ce,je="fnStyle"+ ++Ce,Re=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=h(e,{},n);return r[je]=t,r},onProcessStyle:function(e,t){if(Ae in t||je in t)return e;var n={};for(var r in e){var o=e[r];
vendor: 5,141 bytes, line 1
1"function"===typeof o&&(delete e[r],n[r]=o)}return t[Ae]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[je];i&&(o.style=i(e)||{});var a=o[Ae];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Me="@global",De="@global ",Ie=function(){function e(e,t,n){for(var r in this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Q((0,o.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);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}(),Le=function(){function e(e,t,n){this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(De.length);this.rule=n.jss.createRule(r,t,(0,o.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ne=/\s*,\s*/g;function Be(e,t){for(var n=e.split(Ne),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Fe=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Me)return new Ie(e,t,n);if("@"===e[0]&&e.substr(0,De.length)===De)return new Le(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,i=r?r[Me]:null;if(i){for(var a in i)t.addRule(a,i[a],(0,o.Z)({},n,{selector:Be(a,e.selector)}));delete r[Me]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Me.length)===Me){var a=Be(i.substr(Me.length),e.selector);t.addRule(a,r[i],(0,o.Z)({},n,{selector:a})),delete r[i]}}(e,t))}}},Ze=/\s*,\s*/g,ze=/&/g,Ve=/\$([\w-]+)/g;var Ue=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(Ze),r=e.split(Ze),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var u=r[s];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(ze,a):a+" "+u}return o}function n(e,t,n){if(n)return(0,o.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,o.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var s,u,c=i,l=c.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(s=n(c,l,s),d){var h=t(f,c.selector);u||(u=e(l,a)),h=h.replace(Ve,u);var v=c.key+"-"+f;"replaceRule"in l?l.replaceRule(v,r[f],(0,o.Z)({},s,{selector:h})):l.addRule(v,r[f],(0,o.Z)({},s,{selector:h}))}else p&&l.addRule(f,{},s).addRule(c.key,r[f],{selector:c.selector});delete r[f]}}return r}}},We=/[A-Z]/g,He=/^ms-/,qe={};function $e(e){return"-"+e.toLowerCase()}var Ge=function(e){if(qe.hasOwnProperty(e))return qe[e];var t=e.replace(We,$e);return qe[e]=He.test(t)?"-"+t:t};function Ye(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Ge(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ye):t.fallbacks=Ye(e.fallbacks)),t}var Ke=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ye(e[t]);return e}return Ye(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Ge(t);return t===r?e:(n.prop(r,e),null)}}},Xe=we&&CSS?CSS.px:"px",Qe=we&&CSS?CSS.ms:"ms",Je=we&&CSS?CSS.percent:"%";function et(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 tt=et({"animation-delay":Qe,"animation-duration":Qe,"background-position":Xe,"background-position-x":Xe,"background-position-y":Xe,"background-size":Xe,border:Xe,"border-bottom":Xe,"border-bottom-left-radius":Xe,"border-bottom-right-radius":Xe,"border-bottom-width":Xe,"border-left":Xe,"border-left-width":Xe,"border-radius":Xe,"border-right":Xe,"border-right-width":Xe,"border-top":Xe,"border-top-left-radius":Xe,"border-top-right-radius":Xe,"border-top-width":Xe,"border-width":Xe,"border-block":Xe,"border-block-end":Xe,"border-block-end-width":Xe,"border-block-start":Xe,"border-block-start-width":Xe,"border-block-width":Xe,"border-inline":Xe,"border-inline-end":Xe,"border-inline-end-width":Xe,"border-inline-start":Xe,"border-inline-start-width":Xe,"border-inline-width":Xe,"border-start-start-radius":Xe,"border-start-end-radius":Xe,"border-end-start-radius":Xe,"border-end-end-radius":Xe,margin:Xe,"margin-bottom":Xe,"margin-left":Xe,"margin-right":Xe,"margin-top":Xe,"margin-block":Xe,"margin-block-end":Xe,"margin-block-start":Xe,"margin-inline":Xe,"margin-inline-end":Xe,"margin-inline-start":Xe,padding:Xe,"padding-bottom":Xe,"padding-left":Xe,"padding-right":Xe,"padding-top":Xe,"padding-block":Xe,"padding-block-end":Xe,"padding-block-start":Xe,"padding-inline":Xe,"padding-inline-end":Xe,"padding-inline-start":Xe,"mask-
1position-x":Xe,"mask-position-y":Xe,"mask-size":Xe,height:Xe,width:Xe,"min-height":Xe,"max-height":Xe,"min-width":Xe,"max-width":Xe,bottom:Xe,left:Xe,top:Xe,right:Xe,inset:Xe,"inset-block":Xe,"inset-block-end":Xe,"inset-block-start":Xe,"inset-inline":Xe,"inset-inline-end":Xe,"inset-inline-start":Xe,"box-shadow":Xe,"text-shadow":Xe,"column-gap":Xe,"column-rule":Xe,"column-rule-width":Xe,"column-width":Xe,"font-size":Xe,"font-size-delta":Xe,"letter-spacing":Xe,"text-decoration-thickness":Xe,"text-indent":Xe,"text-stroke":Xe,"text-stroke-width":Xe,"word-spacing":Xe,motion:Xe,"motion-offset":Xe,outline:Xe,"outline-offset":Xe,"outline-width":Xe,perspective:Xe,"perspective-origin-x":Je,"perspective-origin-y":Je,"transform-origin":Je,"transform-origin-x":Je,"transform-origin-y":Je,"transform-origin-z":Je,"transition-delay":Qe,"transition-duration":Qe,"vertical-align":Xe,"flex-basis":Xe,"shape-margin":Xe,size:Xe,gap:Xe,grid:Xe,"grid-gap":Xe,"row-gap":Xe,"grid-row-gap":Xe,"grid-column-gap":Xe,"grid-template-rows":Xe,"grid-template-columns":Xe,"grid-auto-rows":Xe,"grid-auto-columns":Xe,"box-shadow-x":Xe,"box-shadow-y":Xe,"box-shadow-blur":Xe,"box-shadow-spread":Xe,"font-line-height":Xe,"text-shadow-x":Xe,"text-shadow-y":Xe,"text-shadow-blur":Xe});function nt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=nt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=nt(o,t[o],n);else for(var i in t)t[i]=nt(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||tt[e];return!a||0===t&&a===Xe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var rt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=nt(r,e[r],t);return e},onChangeValue:function(e,n){return nt(n,e,t)}}},ot=n(41451),it="",at="",st="",ut="",ct=s&&"ontouchstart"in document.documentElement;if(s){var lt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ft=document.createElement("p").style;for(var dt in lt)if(dt+"Transform"in ft){it=dt,at=lt[dt];break}"Webkit"===it&&"msHyphens"in ft&&(it="ms",at=lt.ms,ut="edge"),"Webkit"===it&&"-apple-trailing-word"in ft&&(st="apple")}var pt=it,ht=at,vt=st,mt=ut,yt=ct;var gt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===pt?"-webkit-"+e:ht+e)}},bt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===pt?ht+"print-"+e:e)}},_t=/[-\s]+(.)?/g;function wt(e,t){return t?t.toUpperCase():""}function xt(e){return e.replace(_t,wt)}function kt(e){return xt("-"+e)}var St,Et={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===pt){var n="mask-image";if(xt(n)in t)return e;if(pt+kt(n)in t)return ht+e}return e}},Ot={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==vt||yt?e:ht+e)}},Pt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ht+e)}},Tt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ht+e)}},Ct={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===pt||"ms"===pt&&"edge"!==mt?ht+e:e)}},At={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===pt||"ms"===pt||"apple"===vt?ht+e:e)}},jt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===pt?"WebkitColumn"+kt(e)in t&&ht+"column-"+e:"Moz"===pt&&("page"+kt(e)in t&&"page-"+e))}},Rt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===pt)return e;var n=e.replace("-inline","");return pt+kt(n)in t&&ht+n}},Mt={supportedProperty:function(e,t){return xt(e)in t&&e}},Dt={supportedProperty:function(e,t){var n=kt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:pt+n in t?ht+e:"Webkit"!==pt&&"Webkit"+n in t&&"-webkit-"+e}},It={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===pt?""+ht+e:e)}},Lt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===pt?ht+"scroll-chaining":e)}},Nt={"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"},Bt={supportedProperty:function(e,t){var n=Nt[e];return!!n&&(pt+kt(n)in t&&ht+n)}},Ft={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"},Zt=Object.keys(Ft),zt=function(e){return ht+e},Vt={supportedProperty:function(e,t,n){var r=n.multiple;if(Zt.indexOf(e)>-1){var o=Ft[e];if(!Array.isArray(o))return pt+kt(o)in t&&ht+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(pt+kt(o[0])in t))return!1;return o.map(zt)}return!1}},Ut=[gt,bt,Et,Ot,Pt,Tt,Ct,At,jt,Rt,Mt,Dt,It,Lt,Bt,Vt],Wt=Ut.filter((function(e){return e.supp
vendor: 6,126 bytes, line 1
1ortedProperty})).map((function(e){return e.supportedProperty})),Ht=Ut.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,ot.Z)(t.noPrefill)),e}),[]),qt={};if(s){St=document.createElement("p");var $t=window.getComputedStyle(document.documentElement,"");for(var Gt in $t)isNaN(Gt)||(qt[$t[Gt]]=$t[Gt]);Ht.forEach((function(e){return delete qt[e]}))}function Yt(e,t){if(void 0===t&&(t={}),!St)return e;if(null!=qt[e])return qt[e];"transition"!==e&&"transform"!==e||(t[e]=e in St.style);for(var n=0;n<Wt.length&&(qt[e]=Wt[n](e,St.style,t),!qt[e]);n++);try{St.style[e]=""}catch(r){return!1}return qt[e]}var Kt,Xt={},Qt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Jt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function en(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Yt(t):", "+Yt(n);return r||(t||n)}function tn(e,t){var n=t;if(!Kt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Xt[r])return Xt[r];try{Kt.style[e]=n}catch(o){return Xt[r]=!1,!1}if(Qt[e])n=n.replace(Jt,en);else if(""===Kt.style[e]&&("-ms-flex"===(n=ht+n)&&(Kt.style[e]="-ms-flexbox"),Kt.style[e]=n,""===Kt.style[e]))return Xt[r]=!1,!1;return Kt.style[e]="",Xt[r]=n,Xt[r]}s&&(Kt=document.createElement("p"));var nn=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Yt(n);i&&i!==n&&(o=!0);var a=!1,s=tn(i,m(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===pt?e:"@"+ht+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return tn(t,m(e))||e}}};var rn=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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 on=_e({plugins:[Re(),Fe(),Ue(),Ke(),rt(),"undefined"===typeof window?null:nn(),rn()]}),an=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),u=0,c=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Te.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Pe.Z]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}(),sn={disableGeneration:!1,generateClassName:an,jss:on,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},un=i.createContext(sn);var cn=-1e9;function ln(){return cn+=1}var fn=n(35953);function dn(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(u){throw u}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,fn.Z)(s[e],a[e])})),s},options:{}}}var pn={};function hn(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,ke.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function vn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!i.disableGeneration){var u=Ee.get(i.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},Ee.set(i.sheetsManager,a,r,u));var c=(0,o.Z)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=i.sheetsRegistry;if(0===u.refs){var f;i.sheetsCache&&(f=Ee.get(i.sheetsCache,a,r));var d=a.create(r,s);f||((f=i.jss.createStyleSheet(d,(0,o.Z)({link:!1},c))).attach(),i.sheetsCache&&Ee.set(i.sheetsCache,a,r,f)),l&&l.add(f),u.staticSheet=f,u.dynamicStyles=xe(d)}if(u.dynamicStyles){var p=i.jss.createStyleSheet(u.dynamicStyles,(0,o.Z)({link:!0},c));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=(0,ke.Z)({baseClasses:u.staticSheet.classes,newClasses:p.classes}),l&&l.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function mn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function yn(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Ee.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Ee.delete(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 gn(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 bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,u=t.defaultTheme,c=void 0===u?pn:u,l=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),f=dn(e),d=n||a||"makeStyles";f.options={index:ln(),name:n,meta:d,classNamePrefix:d};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Oe.Z)()||c,r=(0,o.Z)({},i.useContext(un),l),a=i.useRef(),u=i.useRef();gn((function(){var o={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return vn(o,e),u.current=!1,a.current=o,function(){yn(o)}}),[t,f]),i.useEffect((function(){u.current&&mn(a.current,e),u.current=!0}));var d=hn(a.current,e.classes,s);return d};return p}},65835:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(87462);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);
1return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:function(e,t,n){"use strict";var r=n(67294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},35953:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(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:function(){return r}})},10130:function(e,t,n){"use strict";e.exports=n(1277)},24158:function(e,t,n){"use strict";e.exports=n(32261)},64873:function(e,t,n){"use strict";e.exports=n(3022)},41315:function(e,t,n){"use strict";e.exports=n(19032)},81247:function(e,t,n){"use strict";e.exports=n(65609)},90462:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(27285)),a=r(n(76744)),s=r(n(85266)),u=r(n(67009)),c=r(n(77262)),l=r(n(28137)),f=r(n(82175));t.default=function(){return o.default.createElement(u.default,null,o.default.createElement(c.default,null,o.default.createElement(i.default,null,(e=>o.default.createElement(o.default.Fragment,null,"info"===e&&o.default.createElement(o.default.Fragment,null,o.default.createElement(s.default,null),o.default.createElement(a.default,null)),"stats"===e&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l.default,null),o.default.createElement(f.default,null)))))))}},27285:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(n(67294)),u=n(50066),c=a(n(84702)),l=a(n(35549)),f=a(n(38169)),d=n(81323),p=n(18684),h=n(66893),v=n(6917);u.createGlobalStyle`
2@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
3`,t.default=function({children:e}){const{draggableRef:t,dragContainerRef:n}
3=(0,c.default)(),[r,o]=(0,s.useState)("info"),i=(0,l.default)(),{width:a,height:u}=(0,f.default)();let m={};if(a<v.theme.monitorWidth){const e=a/v.theme.monitorWidth;m={transform:`scale(${e})`,height:u*(1/e)+"px"}}return s.default.createElement(p.Container,{ref:n,style:m},s.default.createElement(p.Bar,{ref:t},s.default.createElement("span",{style:{padding:"0.57em"}},"Twilio Video Room Monitor"),s.default.createElement(p.RightBarContainer,null,s.default.createElement(p.TabSelector,{isActive:"info"===r,onClick:()=>o("info")},"Info"),s.default.createElement(p.TabSelector,{isActive:"stats"===r,onClick:()=>o("stats")},"Stats"),s.default.createElement(d.CopyButton,null),s.default.createElement(p.CloseIconContainer,{onClick:()=>h.VideoRoomMonitor.closeMonitor()},s.default.createElement("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.768 1.768a.347.347 0 01.491 0l15.973 15.973a.347.347 0 01-.492.49L1.768 2.26a.347.347 0 010-.49z",fill:"#DDD"}),s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.232 1.768a.347.347 0 010 .491L2.258 18.232a.347.347 0 11-.49-.491L17.74 1.768a.347.347 0 01.492",fill:"#DDD"}))))),s.default.createElement(p.OverflowContainer,null,s.default.createElement(p.ChildrenContainer,null,i?e(r):s.default.createElement("span",null,"No Twilio Room detected."))))}},81323:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CopyButton=t.Tooltip=t.CopyButtonContainer=void 0;const s=a(n(53888)),u=i(n(67294)),c=a(n(50066)),l=a(n(35549)),f=n(6917);t.CopyButtonContainer=c.default.div`
4  display: flex;
5  position: relative;
6  margin: 0 1em;
7  cursor: ${({hasRoom:e})=>e?"pointer":"initial"};
8
9  & svg {
10    stroke: ${({hasRoom:e})=>e?f.theme.borderColor:"#333"};
11  }
12`,t.Tooltip=c.default.div`
13  position: absolute;
14  background: #4f4f4f;
15  font-size: 0.75rem;
16  white-space: nowrap;
17  padding: 0.2em 0.6em;
18  top: 2.7em;
19  left: 0%;
20  visibility: hidden;
21
22  &:before {
23    content: '';
24    width: 0;
25    height: 0;
26    left: 5px;
27    top: -5px;
28    position: absolute;
29    border: 5px solid #4f4f4f;
30    transform: rotate(135deg);
31  }
32
33  ${t.CopyButtonContainer}: hover & {
34    visibility: visible;
35  }
36
37  @media (max-width: ${f.theme.monitorWidth}px) {
38    left: auto;
39    right: 0;
40
41    &:before {
42      content: '';
43      right: 5px;
44      left: auto;
45    }
46  }
47`;const d=(e,t)=>{if("processor"===t)return Boolean(e)};t.CopyButton=function(){const e=(0,l.default)(),[n,r]=(0,u.useState)(!1);return u.default.createElement(t.CopyButtonContainer,{onClick:()=>{if(e){const t=(0,s.default)(e,d),n=(0,s.default)(e._options,d),o=JSON.stringify(Object.assign(Object.assign({},t),{connectionOptions:n}),null,2);navigator.clipboard.writeText(o).then((()=>{r(!0)}))}},onMouseLeave:()=>r(!1),hasRoom:!!e},u.default.createElement(t.Tooltip,null,n?"Room information copied to clipboard":"Copy Room Information"),u.default.createElement("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.917.413c0-.274.223-.496.5-.496h6.666c.133 0 .26.052.354.145l5 4.959c.093.093.146.219.146.35v11.57a.498.498 0 01-.5.496H5.417a.498.498 0 01-.5-.495V.412zm1 .495v15.538h10.666V5.576L11.876.909h-5.96z",fill:"#DDD"}),u.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.083-.083c.276 0 .5.222.5.496v4.462h4.5c.276 0 .5.222.5.496a.498.498 0 01-.5.496h-5a.498.498 0 01-.5-.496V.413c0-.274.224-.496.5-.496zM2.417 2.892c0-.274.223-.496.5-.496h2.5c.276 0 .5.222.5.496a.498.498 0 01-.5.496h-2v15.537h10.666v-1.983c0-.274.224-.496.5-.496s.5.222.5.495v2.48a.498.498 0 01-.5.496H2.917a.498.498 0 01-.5-.496V2.89z",fill:"#DDD"})))}},18684:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
47dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabSelector=t.RightBarContainer=t.CloseIconContainer=t.ChildrenContainer=t.OverflowContainer=t.Bar=t.BAR_HEIGHT=t.Container=void 0;const o=r(n(50066)),i=n(6917);t.Container=o.default.div`
48  width: ${i.theme.monitorWidth}px;
49  height: 85vh;
50  position: fixed;
51  top: 0;
52  transform-origin: 0 0;
53  z-index: 10000;
54  border: 1px solid ${i.theme.borderColor};
55  color: ${i.theme.borderColor};
56  & h1,
57  & h2,
58  & h3,
59  & h4,
60  & h5,
61  & h6,
62  & span,
63  & p,
64  & text {
65    font-family: 'Inter', sans-serif;
66  }
67
68  @media (max-width: ${i.theme.monitorWidth}px) {
69    /* !important is used here to override the style attributes used for dragging */
70    top: 0 !important;
71    left: 0 !important;
72  }
73`,t.BAR_HEIGHT="2.8em",t.Bar=o.default.div`
74  height: ${t.BAR_HEIGHT};
75  cursor: move;
76  background: black;
77  position: absolute;
78  top: 0;
79  left: 0;
80  right: 0;
81  border-bottom: 1px solid ${i.theme.borderColor};
82  display: flex;
83  justify-content: space-between;
84  align-items: center;
85  z-index: 20000;
86`,t.OverflowContainer=o.default.div`
87  overflow: hidden;
88  height: 100%;
89  padding-top: ${t.BAR_HEIGHT};
90`,t.ChildrenContainer=o.default.div`
91  height: 100%;
92  overflow-y: auto;
93  padding: 0.4em 0.8em 0.4em;
94  background: black;
95  opacity: 0.8;
96`,t.CloseIconContainer=o.default.div`
97  border-left: 1px solid ${i.theme.borderColor};
98  height: 2.7em;
99  width: 2.7em;
100  display: flex;
101  justify-content: center;
102  align-items: center;
103  cursor: pointer;
104
105  & svg {
106    stroke: ${i.theme.borderColor};
107  }
108
109  &:hover {
110    background: rgba(50, 50, 50, 0.9);
111  }
112`,t.RightBarContainer=o.default.div`
113  display: flex;
114  align-items: center;
115`,t.TabSelector=o.default.span`
116  position: relative;
117  margin: 0px 6px;
118  color: ${e=>e.isActive?i.theme.textColor:"#555"};
119  cursor: pointer;
120  padding: 8px;
121  border-bottom: ${e=>e.isActive?"2px solid white":""};
122  &:hover {
123    background: rgba(50, 50, 50, 0.9);
124  }
125`},80719:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackPublicationInfo=t.AudioTrackInfo=void 0;const o=r(n(67294)),i=r(n(54814)),a=r(n(23782)),s=n(30674),u=r(n(30693)),c=r(n(86158)),l=r(n(73754)),f=r(n(2138));t.AudioTrackInfo=({track:e,trackSid:t})=>{const n=(0,i.default)(e),r=(0,s.useTrackBandwidth)(t),u=(0,s.useTrackData)(t),f=(0,a.default)(e);let d="";if(u){const{packetsReceived:e,packetsSent:t,packetsLost:n}=u,r=null!==e&&void 0!==e?e:t;d=r&&null!==n?`${(n/r*100).toLocaleString()}%`:null}return o.default.createElement(o.default.Fragment,null,o.default.createElement(c.default,{label:"isEnabled",value:n}),o.default.createElement(c.default,{label:"Bandwidth",value:(null===r||void 0===r?void 0:r.toLocaleString())+"kbps"}),u&&o.default.createElement(o.default.Fragment,null,o.default.createElement(c.default,{label:"Codec",value:u.codec}),o.default.createElement(c.default,{label:"Jitter",value:u.jitter}),o.default.createElement(c.default,{label:"Packets Lost",value:u.packetsLost}),o.default.createElement(c.default,{label:"Packet Loss Percentage",value:d})),o.default.createElement(l.default,{track:f}))};t.AudioTrackPublicationInfo=({publication:e})=>{const n=(0,u.default)(e);return o.default.createElement(f.default,null,o.default.createElement(c.default,{label:"Name",value:e.trackName}),o.default.createElement(c.default,{label:"SID",value:e.trackSid}),o.default.createElement(c.default,{label:"isSubscribed",value:!!n}),n&&o.default.createElement(t.AudioTrackInfo,{track:n,trackSid:e.trackSid}))}},13383:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DataTrackPublicationInfo=t.DataTrackInfo=void 0;const o=r(n(67294)),i=r(n(54814)),a=r(n(70288)),s=r(n(30693)),u=r(n(80509)),c=r(n(86158)),l=r(n(2138));t.DataTrackInfo=({track:e})=>{const t=(0,i.default)(e),n=(0,a.default)(e);return void 0===e.isEnabled||void 0===e.isSwitchedOff?o.default.createElement(u.default,{track:e}):o.default.createElement(o.default.Fragment,null,o.default.createElement(c.default,{label:"isEnabled",value:t}),o.default.createElement(c.default,{label:"isSwitchedOff",value:n}),o.default.createElement(c.default,{label:"Priority",value:e.priority}),o.default.createElement(u.default,{track:e}))};t.DataTrackPublicationInfo=({publication:e})=>{const n=(0,s.default)(e);return o.default.createElement(l.default,null,o.default.createElement(c.default,{label:"Kind",value:e.kind}),o.default.createElement(c.default,{label:"isSubscribed",value:!!n}),n&&o.default.createElement(t.DataTrackInfo,{track:n}))}},10121:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
125dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Participant=void 0;const o=r(n(67294)),i=n(45655),a=r(n(86158)),s=r(n(84607)),u=r(n(87127)),c=r(n(23746)),l=n(12240),f=n(80719),d=n(13383);t.Participant=({participant:e,isLocal:t})=>{const n=(0,s.default)(e),r=(0,u.default)(e),p=(0,c.default)(e,t),h=p.filter((e=>"data"===e.kind)),v=p.filter((e=>"audio"===e.kind)),m=p.filter((e=>"video"===e.kind));return o.default.createElement(i.Accordion,{label:e.identity},o.default.createElement(a.default,{label:"SID",value:e.sid}),o.default.createElement(a.default,{label:"isReconnecting",value:r}),o.default.createElement(a.default,{label:"networkQualityLevel",value:n}),o.default.createElement(i.Accordion,{label:`Data Tracks (${h.length})`},h.map((e=>o.default.createElement(d.DataTrackPublicationInfo,{key:e.trackSid,publication:e})))),o.default.createElement(i.Accordion,{label:`Audio Tracks (${v.length})`},v.map((e=>o.default.createElement(f.AudioTrackPublicationInfo,{key:e.trackSid,publication:e})))),o.default.createElement(i.Accordion,{label:`Video Tracks (${m.length})`},m.map((e=>o.default.createElement(l.VideoTrackPublicationInfo,{key:e.trackSid,publication:e})))))}},76744:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(7943)),a=r(n(35549)),s=r(n(97367)),u=r(n(10785)),c=n(10121);t.default=function(){const e=(0,i.default)(),t=(0,a.default)(),n=(0,s.default)();return t&&"disconnected"!==n?o.default.createElement(o.default.Fragment,null,o.default.createElement(u.default,null,"Participant Information (",e.length+1,"):"),o.default.createElement(c.Participant,{participant:t.localParticipant,isLocal:!0}),e.map((e=>o.default.createElement(c.Participant,{key:e.sid,participant:e})))):null}},12240:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoTrackPublicationInfo=t.VideoTrackInfo=void 0;const o=r(n(67294)),i=r(n(86158)),a=r(n(73754)),s=r(n(2138)),u=r(n(54814)),c=r(n(70288)),l=r(n(23782)),f=r(n(72115)),d=n(30674),p=r(n(30693)),h=r(n(23259)),v=n(90471),m=e=>e?`${e.width} x ${e.height}`:"undefined",y=(0,v.withIntervalUpdate)(i.default);t.VideoTrackInfo=({track:e,trackSid:t})=>{const n=(0,h.default)(e),r=(0,c.default)(e),s=(0,u.default)(e),f=(0,d.useTrackBandwidth)(t),p=(0,d.useTrackData)(t),v=(0,l.default)(e);let g="";if(p){const{packetsReceived:e,packetsSent:t,packetsLost:n}=p,r=null!==e&&void 0!==e?e:t;g=r&&null!==n?`${(n/r*100).toLocaleString()}%`:null}return o.default.createElement(o.default.Fragment,null,o.default.createElement(i.default,{label:"Dimensions",value:m(n)}),void 0!==r&&o.default.createElement(i.default,{label:"isSwitchedOff",value:r}),o.default.createElement(i.default,{label:"isEnabled",value:s}),o.default.createElement(i.default,{label:"Bandwidth",value:(null===f||void 0===f?void 0:f.toLocaleString())+"kbps"}),void 0!==e.priority&&o.default.createElement(y,{label:"subscribePriority",value:e.priority}),p&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i.default,{label:"Codec",value:p.codec}),o.default.createElement(i.default,{label:"Framerate",value:null===p||void 0===p?void 0:p.frameRate}),o.default.createElement(i.default,{label:"Packets Lost",value:null===p||void 0===p?void 0:p.packetsLost}),o.default.createElement(i.default,{label:"Packet Loss Percentage",value:g})),o.default.createElement(a.default,{track:v}))};t.VideoTrackPublicationInfo=({publication:e})=>{const n=(0,f.default)(e),r=(0,p.default)(e);return o.default.createElement(s.default,null,o.default.createElement(i.default,{label:"Name",value:e.trackName}),o.default.createElement(i.default,{label:"SID",value:e.trackSid}),o.default.createElement(i.default,{label:"isSubscribed",value:!!r}),void 0!==n&&o.default.createElement(i.default,{label:"publishPriority",value:n}),r&&o.default.createElement(t.VideoTrackInfo,{track:r,trackSid:e.trackSid}))}},85266:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
125dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(86158)),a=r(n(10785)),s=r(n(50422)),u=r(n(20119)),c=r(n(35549)),l=r(n(97367)),f=r(n(12382)),d=n(45655),p=r(n(79166)),h=r(n(64965)),v=r(n(38226));t.default=function(){const e=(0,c.default)(),t=(0,s.default)(),n=(0,l.default)(),r=(0,u.default)(),{currentReceivedBitrate:m,currentSentBitrate:y}=(0,f.default)();if(!e)return null;const{audio:g,automaticSubscription:b,bandwidthProfile:_,dscpTagging:w,enableDscp:x,iceServers:k,iceTransportPolicy:S,insights:E,maxAudioBitrate:O,maxVideoBitrate:P,name:T,networkQuality:C,region:A,preferredAudioCodecs:j,preferredVideoCodecs:R,loggerName:M,tracks:D,video:I}=e._options;return o.default.createElement("div",{style:{marginBottom:"1em"}},o.default.createElement(a.default,null,"Room information:"),"disconnected"===n?o.default.createElement("span",null,"Not connected to a Twilio Video room."):o.default.createElement(o.default.Fragment,null,o.default.createElement(i.default,{label:"Room Name",value:e.name}),o.default.createElement(i.default,{label:"SID",value:e.sid}),o.default.createElement(i.default,{label:"State",value:n}),o.default.createElement(i.default,{label:"Dominant Speaker",value:(null===t||void 0===t?void 0:t.identity)||null}),o.default.createElement(i.default,{label:"Media Region",value:e.mediaRegion}),o.default.createElement(i.default,{label:"Is Recording",value:r}),o.default.createElement(i.default,{label:"Total Sent Bandwidth",value:(null===y||void 0===y?void 0:y.toLocaleString())+"kbps"}),o.default.createElement(i.default,{label:"Total Received Bandwidth",value:(null===m||void 0===m?void 0:m.toLocaleString())+"kbps"}),o.default.createElement(d.Accordion,{label:"Connection Options"},o.default.createElement(p.default,{label:"Audio",obj:g}),o.default.createElement(i.default,{label:"Automatic Subscription",value:b}),o.default.createElement(p.default,{label:"Bandwidth Profile",obj:_}),o.default.createElement(i.default,{label:"Dominant Speaker",value:e._options.dominantSpeaker}),o.default.createElement(i.default,{label:"DSCP Tagging",value:w}),o.default.createElement(i.default,{label:"Enable DSCP",value:x}),o.default.createElement(h.default,{label:"Ice Servers",arr:k}),o.default.createElement(p.default,{label:"Ice Transport Policy",obj:S}),o.default.createElement(i.default,{label:"Insights",value:E}),o.default.createElement(i.default,{label:"Max Audio Bitrate",value:O}),o.default.createElement(i.default,{label:"Max Video Bitrate",value:P}),o.default.createElement(i.default,{label:"Name",value:T}),o.default.createElement(p.default,{label:"Network Quality",obj:C}),o.default.createElement(i.default,{label:"Region",value:A}),o.default.createElement(h.default,{label:"Preferred Audio Codecs",arr:j}),o.default.createElement(h.default,{label:"Preferred Video Codecs",arr:R}),o.default.createElement(i.default,{label:"Logger Name",value:M}),o.default.createElement(v.default,{tracks:D}),o.default.createElement(p.default,{label:"Video",obj:I}))))}},67009:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RoomContext=t.roomRegistry=void 0;const s=i(n(67294)),u=a(n(26729));class c extends u.default{registerVideoRoom(e){this.room=e,this.emit("roomRegistered",e)}}t.roomRegistry=new c,t.RoomContext=s.default.createContext(void 0),t.default=function({children:e}
125){const[n,r]=(0,s.useState)();return(0,s.useEffect)((()=>{t.roomRegistry.room&&r(t.roomRegistry.room);const e=e=>r(e);return t.roomRegistry.on("roomRegistered",e),()=>{t.roomRegistry.off("roomRegistered",e)}}),[]),s.default.createElement(t.RoomContext.Provider,{value:n},e)}},77262:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RoomStatsProvider=t.RoomStatsContext=t.truncateFront=void 0;const s=i(n(67294)),u=n(30674),c=n(3127),l=a(n(66410)),f=a(n(35549));t.truncateFront=(e,t)=>e.slice(Math.max(0,e.length-t),e.length),t.RoomStatsContext=s.default.createContext(null);t.RoomStatsProvider=({children:e})=>{var n,r;const o=(0,s.useRef)(),i=(0,s.useRef)([]),a=(0,s.useRef)([]),d=(0,f.default)(),p=(0,l.default)(d),h=o.current;o.current=p;const v=(0,u.getTotalBandwidth)("bytesReceived",p,h),m=i.current.concat({x:Date.now(),y:v});i.current=(0,t.truncateFront)(m,c.MAX_STAT_HISTORY_LENGTH);const y=(0,u.getTotalBandwidth)("bytesSent",p,h),g=a.current.concat({x:Date.now(),y:y});return a.current=(0,t.truncateFront)(g,c.MAX_STAT_HISTORY_LENGTH),s.default.createElement(t.RoomStatsContext.Provider,{value:{stats:p,previousStats:h,receivedBitrateHistory:i.current,sentBitrateHistory:a.current,currentReceivedBitrate:null===(n=i.current.slice(-1)[0])||void 0===n?void 0:n.y,currentSentBitrate:null===(r=a.current.slice(-1)[0])||void 0===r?void 0:r.y}},e)},t.default=t.RoomStatsProvider},69605:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBitrate=void 0;const o=r(n(67294)),i=n(81444),a=r(n(10785)),s=n(3127),u=n(67414),c=n(83613);function l(e,t=0){return e<1e3?+e.toFixed(t)+" "+["K","M","G"][t]:l(e/1e3,t+1)}t.formatBitrate=l;const f=(0,c.buildChartTheme)({backgroundColor:"transparent",colors:["#E22525"],tickLength:2,gridColor:"#333",gridColorDark:"#333",svgLabelSmall:{strokeWidth:.2,stroke:"#ddd",fill:"#ddd"},svgLabelBig:{strokeWidth:0,fill:"#ddd"}});t.default=function({data:e,title:t,yAxisLabel:n}){var r,d;const p=Date.now()-s.UPDATE_INTERVAL*s.MAX_STAT_HISTORY_LENGTH+1e3,h=Math.min(null!==(r=(0,u.min)(e,(e=>e.x)))&&void 0!==r?r:0,p);return o.default.createElement(o.default.Fragment,null,o.default.createElement(a.default,null,t),o.default.createElement(c.XYChart,{height:275,width:465,xScale:{type:"time",domain:[h,null!==(d=(0,u.max)(e,(e=>e.x)))&&void 0!==d?d:0]},yScale:{type:"linear",domain:[0,Math.max(50,(0,u.max)(e,(e=>e.y)))]},margin:{top:10,left:65,right:0,bottom:50},theme:f},o.default.createElement(c.Grid,{columns:!1,numTicks:5,strokeDasharray:"2"}),o.default.createElement(c.Grid,{rows:!1,strokeDasharray:"2",numTicks:5}),o.default.createElement(c.Axis,{orientation:"bottom",label:"Time",numTicks:5}),o.default.createElement(c.Axis,{orientation:"left",label:n,numTicks:5,tickFormat:e=>l(e),labelOffset:36}),o.default.createElement(c.LineSeries,{dataKey:"x",data:e,xAccessor:e=>e.x,yAccessor:e=>e.y,curve:i.curveMonotoneX})))}},28137:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(69605)),a=r(n(12382));t.default=function(){const{receivedBitrateHistory:e,currentReceivedBitrate:t}=(0,a.default)();return o.default.createElement(i.default,{data:e,yAxisLabel:"Bits per second",title:`Total Bandwidth Received: ${null===t||void 0===t?void 0:t.toLocaleStr
125ing()}kbps`})}},82175:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(69605)),a=r(n(12382));t.default=function(){const{sentBitrateHistory:e,currentSentBitrate:t}=(0,a.default)();return o.default.createElement(i.default,{data:e,yAxisLabel:"Bits per second",title:`Total Bandwidth Sent: ${null===t||void 0===t?void 0:t.toLocaleString()}kbps`})}},6917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.theme=void 0,t.theme={monitorWidth:500,textColor:"#ddd",borderColor:"#ddd",fontSizes:{small:"0.8rem"}}},45655:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Accordion=t.LabelContainer=void 0;const s=i(n(67294)),u=a(n(50066)),c=n(6917),l=u.default.div`
126  width: 0;
127  height: 0;
128  border-top: 5px solid ${e=>e.isClickable?c.theme.textColor:"#555"};
129  border-left: 5px solid transparent;
130  transform: ${e=>e.isOpen?"rotate(135deg) translateX(-2px)":"rotate(45deg)"};
131`,f=u.default.div`
132  padding-left: 17px;
133  margin-left: 4px;
134  border-left: 1px solid ${c.theme.borderColor};
135`;t.LabelContainer=u.default.div`
136  display: flex;
137  align-items: center;
138  ${e=>e.isClickable&&"cursor: pointer;"}
139
140  & > span {
141    margin-left: 10px;
142    font-size: ${c.theme.fontSizes.small};
143    padding: 8px 0;
144  }
145
146  &:hover {
147    background: rgba(50, 50, 50, 0.9);
148  }
149`;t.Accordion=({children:e,label:n})=>
149{const[r,o]=(0,s.useState)(!1),i=s.default.Children.count(e)>0;return s.default.createElement("div",null,s.default.createElement(t.LabelContainer,{onClick:()=>i&&o((e=>!e)),isClickable:i},s.default.createElement(l,{isOpen:r,isClickable:i}),s.default.createElement("span",null,n)),r&&s.default.createElement(f,null,e))}},64965:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(79166)),a=r(n(86158)),s=n(45655),u=r(n(2138));t.default=o.default.memo((function({label:e,arr:t}){return"undefined"===typeof t||null===t?o.default.createElement(a.default,{label:e,value:t}):0===t.length?o.default.createElement(a.default,{label:e,value:"undefined"}):o.default.createElement(s.Accordion,{label:e},t.map(((e,t)=>o.default.createElement(u.default,{key:t},o.default.createElement(i.default,{obj:e})))))}))},86158:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(50066)),a=n(6917),s=i.default.span`
150  font-size: ${a.theme.fontSizes.small};
151`;t.default=o.default.memo((function({label:e,value:t}){return o.default.createElement("div",null,o.default.createElement(s,null,e,": ",String(t)))}))},10785:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(50066));t.default=o.default.memo(i.default.h3`
152  margin: 0.2em 0 0.5em;
153`)},79166:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=n(45655),a=r(n(86158)),s=r(n(2138));t.default=o.default.memo((function e({label:t,obj:n}){if("object"!==typeof n||"undefined"===typeof n||null===n)return o.default.createElement(a.default,{label:String(t),value:n});const r=t?i.Accordion:s.default;return o.default.createElement(r,{label:t},Object.entries(n).map((([t,n],r)=>"object"!==typeof n||Array.isArray(n)?o.default.createElement(a.default,{key:r,label:t,value:n}):o.default.createElement(e,{key:r,label:t,obj:n}))))}))},2138:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(50066)),a=n(6917);t.default=o.default.memo(i.default.div`
154  &:not(:last-child) {
155    border-bottom: 1px solid ${a.theme.borderColor};
156    margin-bottom: 3px;
157  }
158  padding-bottom: 3px;
159
160  &:hover {
161    background: rgba(50, 50, 50, 0.9);
162  }
163`)},38226:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=n(45655),a=r(n(86158)),s=r(n(73754)),u=r(n(2138)),c=r(n(80509));t.default=o.default.memo((function({tracks:e}){return"undefined"===typeof e||null===e?o.default.createElement(a.default,{label:"Tracks",value:e}):o.default.createElement(i.Accordion,{label:"Tracks"},e.map(((e,t)=>{if(e instanceof MediaStreamTrack)return o.default.createElement(u.default,{key:t},o.default.createElement(s.default,{track:e}));if("audio"===e.kind||"video"===e.kind){const{kind:n,name:r,id:i,mediaStreamTrack:c}=e;return o.default.createElement(u.default,{key:t},o.default.createElement(a.default,{label:"Kind",value:n}),o.default.createElement(a.default,{label:"Name",value:r}),o.default.createElement(a.default,{label:"ID",value:i}),o.default.createElement(s.default,{track:c}))}return o.default.createElement(u.default,{key:t},o.default.createElement(c.default,{track:e}))})))}))},80509:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(86158));t.default=o.default.memo((function({track:e}){const{kind:t,maxPacketLifeTime:n,maxRetransmits:r,ordered:a,reliable:s}=e,u=void 0===e.isEnabled?{label:"ID",value:e.id}:{label:"SID",value:e.sid};return o.default.createElement(o.default.Fragment,null,o.default.createElement(i.default,{label:"Kind",value:t}),o.default.createElement(i.default,{label:u.label,value:u.value}),o.default.createElement(i.default,{label:"maxPacketLifeTime",value:n}),o.default.createElement(i.default,{label:"maxRetransmits",value:r}),o.default.createElement(i.default,{label:"Ordered",value:a}),o.default.createElement(i.default,{label:"Reliable",value:s}))}))},73754:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
163dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=r(n(75418)),a=r(n(79166));t.default=o.default.memo((function({track:e}){const t=(0,i.default)(e);return o.default.createElement(a.default,{label:"Media Stream Track",obj:t})}))},3127:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_INTERVAL=t.MAX_STAT_HISTORY_LENGTH=void 0,t.MAX_STAT_HISTORY_LENGTH=240,t.UPDATE_INTERVAL=1e3},50422:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(35549));t.default=function(){const e=(0,i.default)(),[t,n]=(0,o.useState)((null===e||void 0===e?void 0:e.dominantSpeaker)||null);return(0,o.useEffect)((()=>{if(e){const t=e=>n(e);return e.on("dominantSpeakerChanged",t),()=>{e.off("dominantSpeakerChanged",t)}}n(null)}),[e]),t}},84702:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294),o=n(6917);t.default=function(){const e=(0,r.useRef)(),t=(0,r.useRef)(),n=(0,r.useRef)({x:0,y:0});return(0,r.useEffect)((()=>{const r=e.current,i=t.current;if(r&&i){const e=e=>{if(window.innerWidth<o.theme.monitorWidth)return;const{x:t,y:r}=n.current;i.style.left=e.clientX-t+"px",i.style.top=e.clientY-r+"px"},t=t=>{n.current.x=t.clientX-i.offsetLeft,n.current.y=t.clientY-i.offsetTop,document.body.addEventListener("mousemove",e)},a=()=>{document.body.removeEventListener("mousemove",e),n.current={x:0,y:0}};return r.addEventListener("mousedown",t),document.body.addEventListener("mouseup",a),()=>{r.removeEventListener("mousedown",t),document.body.removeEventListener("mouseup",a)}}}),[]),{draggableRef:e,dragContainerRef:t}}},66410:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294),o=n(3127);t.default=function(e){const[t,n]=(0,r.useState)();return(0,r.useEffect)((()=>{let t;if(e){const r=()=>e.getStats().then((e=>n(e)));return r(),t=window.setInterval(r,o.UPDATE_INTERVAL),()=>{window.clearInterval(t)}}}),[e]),t}},90471:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withIntervalUpdate=t.useIntervalUpdate=void 0;const a=i(n(67294)),s=n(3127);function u(){const[,e]=(0,a.useState)(0),t=(0,a.useRef)();(0,a.useEffect)((()=>(t.current=window.setInterval((()=>e((e=>e+1))),s.UPDATE_INTERVAL),()=>{window.clearInterval(t.current)})),[])}t.useIntervalUpdate=u,t.withIntervalUpdate=function(e){return t=>(u(),a.default.createElement(e,Object.assign({},t)))}},20119:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(35549));t.default=function(){const e=(0,i.default)(),[t,n]=(0,o.useState)((null===e||void 0===e?void 0:e.isRecording)||!1);return(0,o.useEffect)((()=>{if(e){n(e.isRecording);const t=()=>n(!0),r=()=>n(!1);return e.on("recordingStarted",t),e.on("recordingStopped",r),()=>{e.off("recordingStarted",t),e.off("recordingStopped",r)}}n(!1)}),[e]),t}},54814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(!!e&&e.isEnabled);return(0,r.useEffect)((()=>{if(n(!!e&&e.isEnabled),e){const t=()=>n(!0),r=()=>n(!1);return e.on("enabled",t),e.on("disabled",r),()=>{e.off("enabled",t),e.off("disabled",r)}}}),[e]),t}},70288:function(e,t,n){"use strict";
163Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(e&&e.isSwitchedOff);return(0,r.useEffect)((()=>{if(n(e&&e.isSwitchedOff),e){const t=()=>n(!0),r=()=>n(!1);return e.on("switchedOff",t),e.on("switchedOn",r),()=>{e.off("switchedOff",t),e.off("switchedOn",r)}}}),[e]),!!t}},23782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(null===e||void 0===e?void 0:e.mediaStreamTrack);return(0,r.useEffect)((()=>{if(n(null===e||void 0===e?void 0:e.mediaStreamTrack),e){const t=()=>n(e.mediaStreamTrack);return e.on("started",t),()=>{e.off("started",t)}}}),[e]),t}},75418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(null===e||void 0===e?void 0:e.muted),[o,i]=(0,r.useState)(null===e||void 0===e?void 0:e.readyState);return(0,r.useEffect)((()=>{if(n(null===e||void 0===e?void 0:e.muted),i(null===e||void 0===e?void 0:e.readyState),e){const t=()=>n(null===e||void 0===e?void 0:e.muted),r=()=>i(null===e||void 0===e?void 0:e.readyState);return e.addEventListener("mute",t),e.addEventListener("unmute",t),e.addEventListener("ended",r),()=>{e.removeEventListener("mute",t),e.removeEventListener("unmute",t),e.removeEventListener("ended",r)}}}),[e]),{muted:t,readyState:o,id:null===e||void 0===e?void 0:e.id,label:null===e||void 0===e?void 0:e.label,kind:null===e||void 0===e?void 0:e.kind}}},87127:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const t=()=>n(!0),r=()=>n(!1);return r(),e.on("reconnecting",t),e.on("reconnected",r),()=>{e.off("reconnecting",t),e.off("reconnected",r)}}),[e]),t}},84607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(e.networkQualityLevel);return(0,r.useEffect)((()=>{const t=e=>n(e);return n(e.networkQualityLevel),e.on("networkQualityLevelChanged",t),()=>{e.off("networkQualityLevelChanged",t)}}),[e]),t}},7943:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(35549));t.default=function(){const e=(0,i.default)(),[t,n]=(0,o.useState)(e?Array.from(e.participants.values()):[]);return(0,o.useEffect)((()=>{if(!e)return;n(Array.from(e.participants.values()));const t=e=>n((t=>[...t,e])),r=e=>n((t=>t.filter((t=>t!==e))));return e.on("participantConnected",t),e.on("participantDisconnected",r),()=>{e.off("participantConnected",t),e.off("participantDisconnected",r)}}),[e]),t}},23746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294),o=n(3127);t.default=function(e,t){const[n,i]=(0,r.useState)([]),a=(0,r.useRef)();return(0,r.useEffect)((()=>{if(t)return a.current=window.setInterval((()=>{const t=Array.from(e.tracks.values());i((e=>{return n=t,e.map((e=>e.trackSid)).sort().join("")===n.map((e=>e.trackSid)).sort().join("")?e:t;var n}))}),o.UPDATE_INTERVAL),()=>{window.clearInterval(a.current)}}),[e,t]),(0,r.useEffect)((()=>{i(Array.from(e.tracks.values()));const t=e=>i((t=>[...t,e])),n=e=>i((t=>t.filter((t=>t!==e))));return e.on("trackPublished",t),e.on("trackUnpublished",n),()=>{e.off("trackPublished",t),e.off("trackUnpublished",n)}}),[e]),n}},72115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(e.publishPriority);return(0,r.useEffect)((()=>{n(e.publishPriority);const t=e=>n(e);return e.on("publishPriorityChanged",t),()=>{e.off("publishPriorityChanged",t)}}),[e]),t}},35549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294),o=n(67009);t.default=function(){return(0,r.useContext)(o.RoomContext)}},97367:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
163dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(67294),i=r(n(35549));t.default=function(){const e=(0,i.default)(),[t,n]=(0,o.useState)("disconnected");return(0,o.useEffect)((()=>{if(e){const t=()=>n(e.state||"disconnected");return t(),e.on("disconnected",t).on("reconnected",t).on("reconnecting",t),()=>{e.off("disconnected",t).off("reconnected",t).off("reconnecting",t)}}n("disconnected")}),[e]),t}},12382:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(67294)),i=n(77262);t.default=function(){return o.default.useContext(i.RoomStatsContext)}},30674:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTrackData=t.getTotalBandwidth=t.useTrackBandwidth=t.round=t.getActiveTrackData=t.getTrackData=t.getAllTracks=t.getAllStats=void 0;const o=n(67414),i=r(n(12382));function a(e){return e.reduce(((e,t)=>({localAudioTrackStats:[...e.localAudioTrackStats,...t.localAudioTrackStats],localVideoTrackStats:[...e.localVideoTrackStats,...t.localVideoTrackStats],remoteAudioTrackStats:[...e.remoteAudioTrackStats,...t.remoteAudioTrackStats],remoteVideoTrackStats:[...e.remoteVideoTrackStats,...t.remoteVideoTrackStats],peerConnectionId:""})),{localAudioTrackStats:[],localVideoTrackStats:[],remoteAudioTrackStats:[],remoteVideoTrackStats:[],peerConnectionId:""})}function s(e){const t=a(e),{localAudioTrackStats:n,localVideoTrackStats:r,remoteAudioTrackStats:o,remoteVideoTrackStats:i}=t;return[...n,...r,...o,...i]}function u(e,t){return s(t).filter((t=>t.trackSid===e))}function c(e,t,n){const r=u(n,e);return u(n,t).filter((e=>{const t=r.find((t=>t.ssrc===e.ssrc));return e.bytesSent!==(null===t||void 0===t?void 0:t.bytesSent)}))}t.getAllStats=a,t.getAllTracks=s,t.getTrackData=u,t.getActiveTrackData=c;t.round=e=>Math.round(10*(e+Number.EPSILON))/10,t.useTrackBandwidth=function(e){var n,r;const{stats:a,previousStats:s}=(0,i.default)();if(!a||!s)return null;const c=u(e,a),l=u(e,s);if(0===c.length||0===l.length)return null;const f=(0,o.sum)(c.map((e=>{var t,n;return null!==(n=null!==(t=e.bytesReceived)&&void 0!==t?t:e.bytesSent)&&void 0!==n?n:0}))),d=(0,o.sum)(l.map((e=>{var t,n;return null!==(n=null!==(t=e.bytesReceived)&&void 0!==t?t:e.bytesSent)&&void 0!==n?n:0}))),p=null===(n=c[0])||void 0===n?void 0:n.timestamp,h=null===(r=l[0])||void 0===r?void 0:r.timestamp;return 8*(0,t.round)((f-d)/(p-h))},t.getTotalBandwidth=function(e,n,r){if(!n||!r)return null;const i=s(n).filter((t=>"undefined"!==typeof t[e])),a=s(r).filter((t=>"undefined"!==typeof t[e])),u=i.map((t=>{var n,r;const o=a.find((e=>e.ssrc===t.ssrc));if(!o)return null;const i=null!==(n=t[e])&&void 0!==n?n:null,s=null!==(r=o[e])&&void 0!==r?r:null;return null!==i&&null!==s?(i-s)/(t.timestamp-o.timestamp)*8:null})).filter((e=>null!==e)).filter((e=>e>=0));return(0,t.round)((0,o.sum)(u))},t.useTrackData=function(e){const{stats:t,previousStats:n}=(0,i.default)();return t&&n?c(n,t,e)[0]:null}},30693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(e&&e.track);return(0,r.useEffect)((()=>{if(n(e&&e.track),e){const t=()=>n(null);return e.on("subscribed",n),e.on("unsubscribed",t),()=>{e.off("subscribed",n),e.off("unsubscribed",t)}}}),[e]),t}},23259:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(e){const[t,n]=(0,r.useState)(null===e||void 0===e?void 0:e.dimensions);return(0,r.useEffect)((()=>{if(n(null===e||void 0===e?void 0:e.dimensions),e){const t=e=>n({width:e.dimensions.width,height:e.dimensions.height});return e.on("dimensionsChanged",t),()=>{e.off("dimensionsChanged",t)}}}),[e]),t}},38169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(67294);t.default=function(){var e,t;const[n,o]=(0,r.useState)({height:window.innerHeight*((null===(e=window.visualVie
163wport)||void 0===e?void 0:e.scale)||1),width:window.innerWidth*((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)});return(0,r.useEffect)((()=>{const e=()=>{var e,t;o({height:window.innerHeight*((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1),width:window.innerWidth*((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),n}},66893:function(e,t,n){"use strict";var r=n(83454),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoRoomMonitor=void 0;const i=o(n(67294)),a=o(n(73935)),s=o(n(90462)),u=o(n(26729)),c=n(67009);class l extends u.default{get isOpen(){return Boolean(this.container)}openMonitor(){if(!this.container){const e=document.createElement("div");document.body.appendChild(e),e.id="TwilioVideoRoomMonitorContainer",a.default.render(i.default.createElement(s.default,null),e),this.container=e,this.emit("opened")}}closeMonitor(){this.container&&(a.default.unmountComponentAtNode(this.container),this.container.remove(),this.container=void 0,this.emit("closed"))}toggleMonitor(){this.isOpen?this.closeMonitor():this.openMonitor()}registerVideoRoom(e){c.roomRegistry.registerVideoRoom(e)}}t.VideoRoomMonitor=new l,"browser"===r.env.PARCEL_TARGET&&(window.Twilio=window.Twilio||{},window.Twilio.VideoRoomMonitor=t.VideoRoomMonitor)},52146:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,h=e.axisClassName,m=e.hideAxisLine,y=void 0!==m&&m,g=e.hideTicks,b=void 0!==g&&g,_=e.hideZero,w=void 0!==_&&_,x=e.left,k=void 0===x?0:x,S=e.numTicks,E=void 0===S?10:S,O=e.orientation,P=void 0===O?f.default.bottom:O,T=e.rangePadding,C=void 0===T?0:T,A=e.scale,j=e.tickFormat,R=e.tickLength,M=void 0===R?8:R,D=e.tickValues,I=e.top,L=void 0===I?0:I,N=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,p),B=null!=j?j:(0,c.default)(A),F=P===f.default.left,Z=P===f.default.top,z=Z||P===f.default.bottom,V=(0,u.default)(A),U=F||Z?-1:1,W=A.range(),H=(0,d.default)(C),q=(0,l.default)({x:Number(W[0])+.5-H.start,y:0},z),$=(0,l.default)({x:Number(W[W.length-1])+.5+H.end,y:0},z),G=(null!=D?D:(0,a.getTicks)(A,E)).filter((function(e){return!w||0!==e&&"0"!==e})).map((function(e,t){return{value:e,index:t}})),Y=G.map((function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(V(t));return{value:t,index:n,from:(0,l.default)({x:r,y:0},z),to:(0,l.default)({x:r,y:M*U},z),formattedValue:B(t,n,G)}}));return r.default.createElement(i.Group,{className:(0,o.default)("visx-axis",h),top:L,left:k},n(v({},N,{axisFromPoint:q,axisToPoint:$,hideAxisLine:y,hideTicks:b,hideZero:w,horizontal:z,numTicks:E,orientation:P,rangePadding:C,scale:A,tickFormat:B,tickLength:M,tickPosition:V,tickSign:U,ticks:Y})))};h(n(45697));var r=h(n(67294)),o=h(n(94184)),i=n(58788),a=n(65362),s=h(n(65272)),u=h(n(54066)),c=h(n(56284)),l=h(n(36857)),f=h(n(19013)),d=h(n(26784)),p=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function h(e){return e&&e.__esModule?e:{default:e}}function v(){return v=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},v.apply(this,arguments)}},20550:function(e,t,n){"use strict";t.__esModule=!0,t.bottomTickLabelProps=void 0,t.default=function(e){var t=e.axisClassName,n=e.labelOffset,u=void 0===n?8:n,f=e.tickLabelProps,d=void 0===f?l:f,p=e.tickLength,h=void 0===p?8:p,v=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,s);return r.default.createElement(i.default,c({axisClassName:(0,o.default)("visx-axis-bottom",t),labelOffset:u,orientation:a.default.bottom,tickLabelProps:d,tickLength:h},v))};var r=u(n(67294)),o=u(n(94184)),i=u(n(52146)),a=u(n(19013)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];
163function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}var l=function(){return{dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"middle"}};t.bottomTickLabelProps=l},67933:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.axisClassName,n=e.labelOffset,u=void 0===n?36:n,f=e.tickLabelProps,d=void 0===f?l:f,p=e.tickLength,h=void 0===p?8:p,v=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,s);return r.default.createElement(i.default,c({axisClassName:(0,o.default)("visx-axis-left",t),labelOffset:u,orientation:a.default.left,tickLabelProps:d,tickLength:h},v))},t.leftTickLabelProps=void 0;var r=u(n(67294)),o=u(n(94184)),i=u(n(52146)),a=u(n(19013)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}var l=function(){return{dx:"-0.25em",dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"end"}};t.leftTickLabelProps=l},65272:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.axisFromPoint,n=e.axisLineClassName,l=e.axisToPoint,p=e.hideAxisLine,h=e.hideTicks,v=e.horizontal,m=e.label,y=void 0===m?"":m,g=e.labelClassName,b=e.labelOffset,_=void 0===b?14:b,w=e.labelProps,x=void 0===w?d:w,k=e.orientation,S=void 0===k?c.Orientation.bottom:k,E=e.scale,O=e.stroke,P=void 0===O?"#222":O,T=e.strokeDasharray,C=e.strokeWidth,A=void 0===C?1:C,j=e.tickClassName,R=e.tickComponent,M=e.tickLineProps,D=e.tickLabelProps,I=void 0===D?function(){return d}:D,L=e.tickLength,N=void 0===L?8:L,B=e.tickStroke,F=void 0===B?"#222":B,Z=e.tickTransform,z=e.ticks,V=e.ticksComponent,U=void 0===V?u.default:V,W=z.map((function(e){var t=e.value,n=e.index;return I(t,n,z)})),H=Math.max.apply(Math,[10].concat(W.map((function(e){return"number"===typeof e.fontSize?e.fontSize:0}))));return r.default.createElement(r.default.Fragment,null,U({hideTicks:h,horizontal:v,orientation:S,scale:E,tickClassName:j,tickComponent:R,tickLabelProps:W,tickStroke:F,tickTransform:Z,ticks:z,strokeWidth:A,tickLineProps:M}),!p&&r.default.createElement(i.Line,{className:(0,o.default)("visx-axis-line",n),from:t,to:l,stroke:P,strokeWidth:A,strokeDasharray:T}),y&&r.default.createElement(a.Text,f({className:(0,o.default)("visx-axis-label",g)},(0,s.default)({labelOffset:_,labelProps:x,orientation:S,range:E.range(),tickLabelFontSize:H,tickLength:N}),x),y))};var r=l(n(67294)),o=l(n(94184)),i=n(61027),a=n(75733),s=l(n(66285)),u=l(n(75076)),c=n(74752);function l(e){return e&&e.__esModule?e:{default:e}}function f(){return f=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},f.apply(this,arguments)}var d={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"}},11214:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.axisClassName,n=e.labelOffset,u=void 0===n?36:n,f=e.tickLabelProps,d=void 0===f?l:f,p=e.tickLength,h=void 0===p?8:p,v=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,s);return r.default.createElement(i.default,c({axisClassName:(0,o.default)("visx-axis-right",t),labelOffset:u,orientation:a.default.right,tickLabelProps:d,tickLength:h},v))},t.rightTickLabelProps=void 0;var r=u(n(67294)),o=u(n(94184)),i=u(n(52146)),a=u(n(19013)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}var l=function(){return{dx:"0.25em",dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"start"}};t.rightTickLabelProps=l},18675:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.axisClassName,n=e.labelOffset,u=void 0===n?8:n,f=e.tickLabelProps,d=void 0===f?l:f,p=e.tickLength,h=void 0===p?8:p,v=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,s);return r.default.createElement(i.default,c({axisClassName:(0,o.default)("visx-axis-top",t),labelOffset:u,orientation:a.default.top,tickLabelProps:d,tickLength:h},v))},t.topTickLabelProps=void 0;var r=u(n(67294)),o=u(n(94184)),i=u(n(52146)),a=u(n(19013)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];
163function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}var l=function(){return{dy:"-0.75em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"middle"}};t.topTickLabelProps=l},75076:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.hideTicks,n=e.horizontal,c=e.orientation,f=e.tickClassName,d=e.tickComponent,p=e.tickLabelProps,h=e.tickStroke,v=void 0===h?"#222":h,m=e.tickTransform,y=e.ticks,g=e.strokeWidth,b=e.tickLineProps;return y.map((function(e){var h,y=e.value,_=e.index,w=e.from,x=e.to,k=e.formattedValue,S=null!=(h=p[_])?h:{},E=Math.max(10,"number"===typeof S.fontSize&&S.fontSize||0),O=x.y+(n&&c!==u.default.top?E:0);return r.default.createElement(a.Group,{key:"visx-tick-"+y+"-"+_,className:(0,o.default)("visx-axis-tick",f),transform:m},!t&&r.default.createElement(i.Line,l({from:w,to:x,stroke:v,strokeWidth:g,strokeLinecap:"square"},b)),d?d(l({},S,{x:x.x,y:O,formattedValue:k})):r.default.createElement(s.Text,l({x:x.x,y:O},S),k))}))};var r=c(n(67294)),o=c(n(94184)),i=n(61027),a=n(58788),s=n(75733),u=c(n(19013));function c(e){return e&&e.__esModule?e:{default:e}}function l(){return l=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},l.apply(this,arguments)}},19013:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n={top:"top",left:"left",right:"right",bottom:"bottom"};t.default=n},74752:function(e,t,n){"use strict";t.__esModule=!0;var r={Axis:!0,AxisLeft:!0,AxisRight:!0,AxisTop:!0,AxisBottom:!0,Orientation:!0};t.Orientation=t.AxisTop=t.AxisRight=t.AxisLeft=t.AxisBottom=t.Axis=void 0;var o=f(n(52146));t.Axis=o.default;var i=f(n(67933));t.AxisLeft=i.default;var a=f(n(11214));t.AxisRight=a.default;var s=f(n(18675));t.AxisTop=s.default;var u=f(n(20550));t.AxisBottom=u.default;var c=f(n(19013));t.Orientation=c.default;var l=n(54859);function f(e){return e&&e.__esModule?e:{default:e}}Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))}))},54859:function(e,t){"use strict";t.__esModule=!0},36857:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=e.x,o=e.y;return new r.Point(t?{x:n,y:o}:{x:o,y:n})};var r=n(82462)},26784:function(e,t){"use strict";function n(){return n=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},n.apply(this,arguments)}t.__esModule=!0,t.default=function(e){void 0===e&&(e=0);return"number"===typeof e?{start:e,end:e}:n({start:0,end:0},e)},t.defaultAxisRangePadding=void 0;t.defaultAxisRangePadding=0},66285:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,s=e.orientation,u=e.range,c=e.tickLabelFontSize,l=e.tickLength,f=s===o.default.left||s===o.default.top?-1:1;if(s===o.default.top||s===o.default.bottom){var d=s===o.default.bottom&&"number"===typeof a.fontSize?a.fontSize:0;t=(Number(u[0])+Number(u[u.length-1]))/2,n=f*(l+i+c+d)}else t=f*((Number(u[0])+Number(u[u.length-1]))/2),n=-(l+i),r="rotate("+90*f+")";return{x:t,y:n,transform:r}};var r,o=(r=n(19013))&&r.__esModule?r:{default:r}},56284:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e;if("tickFormat"in t)return t.tickFormat();return r.toString};var r=n(65362)},54066:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){void 0===t&&(t="center");var n=e;if("start"!==t&&"bandwidth"in n){var r=n.bandwidth();return"center"===t&&(r/=2),n.round()&&(r=Math.round(r)),function(e){var t=n(e);return"number"===typeof t?t+r:t}}return e}},81444:function(e,t,n){"use strict";n.r(t),n.d(t,{curveBasis:function(){return r.ZP},curveBasisClosed:function(){return o.Z},curveBasisOpen:function(){return i.Z},curveBundle:function(){return s.Z},curveCardinal:function(){return l.ZP},curveCardinalClosed:function(){return f.Z},curveCardinalOpen:function(){return d.Z},curveCatmullRom:function(){return p.Z},curveCatmullRomClosed:function(){return h.Z},curveCatmullRomOpen:function(){return v.Z},curveLinear:function(){return u.Z},curveLinearClosed:function(){return c.Z},curveMonotoneX:function(){return m.Z},curveMonotoneY:function(){return m.s},curveNatural:function(){return y.Z},curveStep:function(){return a.ZP},curveStepAfter:function(){return a.cD},curveStepBefore:function(){return a.RN}});var r=n(67829),o=n(79938),i=n(99717),a=n(77059),s=n(24849),u=n(18143),c=n(57481),l=n(97018),f=n(85200),d=n(55669),p=n(79039),h=n(68286),v=n(33506),m=n(65165),y=n(56732)},67757:function(e,t,n){"use strict";t.Z=function(e){var t=void 0===e?{}:e,n=t.resetOnStart,c=void 0!==n&&n,f=t.snapToPointer,d=void 0===f||f,p=t.onDragEnd,h=t.onDragMove,v=t.onDragStart,m=t.x,y=t.y,g=t.dx,b=t.dy,_=t.isDragging,w=t.restrict,x=void 0===w?{}:w,k=t.restrictToPath,S=(0,r.useRef)({x:m,y:y,dx:g,dy:b}),E=(0,a.default)({x:m,y:y,dx:null!=g?g:0,dy:null!=b?b:0,isDragging:!1}),O=E[0],P=E[1],T=(0,r.useState)(new o.Point({x:0,y:0})),C=T[0],A=T[1];(0,r.useEffect)((function(){S.current.x===m&&S.current.y===y&&S.current.dx===g&&S.current.dy===b||(S.current={x:m,y:y,dx:g,dy:b},P((function(e){return l({},e,{x:m,y:y,dx:null!=g?g:0,dy:null!=b?b:0})})))})),(0,r.useEffect)((function(){void 0!==_&&O.isDragging!==_&&P((function(e){return l({},e,{isDragging:_})}))}),[O.isDragging,_,P]);var j=(0,u.default)(k),R=(0,r.useCallback)((function(e){e.persist(),P((function(t){var n=t.x,r=void 0===n?0:n,a=t.y,u=void 0===a?0:a,l=t.dx,f=t.dy,p=new o.Point({x:(r||0)+l,y:(u||0)+f}),h=(0,i.localPoint)(e)||new o.Point({x:0,y:0}),v=d?h:p,m=(0,s.default)(v,j,x);return A((0,o.subtractPoints)(p,h)),{isDragging:!0,dx:c?0:t.dx,dy:c?0:t.dy,x:c?m.x:m.x-t.dx,y:c?m.y:m.y-t.dy}}),v&&function(t){v(l({},t,{event:e}))})}),[v,c,x,j,P,d]),M=(0,r.useCallback)((function(e){e.persist(),P((function(t){if(!t.isDragging)return t;var n=t.x,r=void 0===n?0:n,a=t.y,u=void 0===a?0:a,c=(0,i.localPoint)(e)||new o.Point({x:0,y:0}),f=d?c:(0,o.sumPoints)(c,C),p=(0,s.default)(f,j,x);return l({},t,{dx:p.x-r,dy:p.y-u})}),h&&function(t){t.isDragging&&h(l({},t,{event:e}))})}),[P,h,d,C,j,x]),D=(0,r.useCallback)((function(e){e.persist(),P((function(e){return l({},e,{isDragging:!1})}),p&&function(t){p(l({},t,{event:e}))})}),[p,P]);return l({},O,{dragEnd:D,dragMove:M,dragStart:R})};var r=n(67294),o=n(82462),i=n(68378),a=c(n(26897)),s=c(n(49167)),u=c(n(27684));
163function c(e){return e&&e.__esModule?e:{default:e}}function l(){return l=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},l.apply(this,arguments)}},9001:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){return Math.min(Math.max(e,t),n)}},69507:function(e,t){"use strict";function n(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}t.__esModule=!0,t.default=function(e,t){for(var r,o=e,i=1/0,a=function(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}(t);!(r=a()).done;){var s=r.value,u=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));u<i&&(i=u,o={x:s.x,y:s.y})}return o}},49167:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var i,a,s,u;void 0===n&&(n={});if(t.length>0)return(0,o.default)(e,t);return{x:(0,r.default)(e.x,null!=(i=n.xMin)?i:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(u=n.yMax)?u:1/0)}};var r=i(n(9001)),o=i(n(69507));function i(e){return e&&e.__esModule?e:{default:e}}},27684:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)((function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){void 0===n&&(n=1);if(!e)return[];for(var r=[],o=e.getTotalLength(),i=0;i<=o;i+=n){var a=e.getPointAtLength(i).matrixTransform(t);r.push(a)}return r}(e,t)}),[null==e?void 0:e.getTotalLength()])};var r=n(67294)},26897:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useRef)(null),a=(0,r.useCallback)((function(e,t){i.current=t||null,o(e)}),[o]);return(0,r.useLayoutEffect)((function(){i.current&&(i.current(n),i.current=null)}),[n]),[n,a]};var r=n(67294)},68378:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return o.Z}});var r=n(73850),o=n(16749)},73850:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(16749),o=n(52869);function i(e,t){if((0,o.kK)(e)&&t)return(0,r.Z)(e,t);if((0,o.cO)(e)){var n=e,i=n.target;if(i)return(0,r.Z)(i,n)}return null}},16749:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87731),o=n(52869);function i(){return i=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},i.apply(this,arguments)}var a={x:0,y:0};function s(e,t){if(!e||!t)return null;var n=function(e){if(!e)return i({},a);if((0,o.z6)(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:i({},a);if((0,o.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:i({},a)}(t),s=(0,o.vZ)(e)?e.ownerSVGElement:e,u=(0,o.DY)(s)?s.getScreenCTM():null;if((0,o.r4)(s)&&u){var c=s.createSVGPoint();return c.x=n.x,c.y=n.y,c=c.matrixTransform(u.inverse()),new r.Z({x:c.x,y:c.y})}var l=e.getBoundingClientRect();return new r.Z({x:n.x-l.left-e.clientLeft,y:n.y-l.top-e.clientTop})}},52869:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function o(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function i(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function u(e){return!!e&&"clientX"in e}function c(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return u},cO:function(){return c},kK:function(){return r},r4:function(){return i},vZ:function(){return o},z6:function(){return s}})},62860:function(e,t,n){"use strict";t.__esModule=!0,t.default=h;var r=d(n(45697)),o=d(n(67294)),i=d(n(94184)),a=d(n(53282)),s=n(58788),u=n(82462),c=n(65362),l=d(n(14919)),f=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];
163function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,d=void 0===r?0:r,h=e.scale,v=e.height,m=e.stroke,y=void 0===m?"#eaf0f6":m,g=e.strokeWidth,b=void 0===g?1:g,_=e.strokeDasharray,w=e.className,x=e.numTicks,k=void 0===x?10:x,S=e.lineStyle,E=e.offset,O=e.tickValues,P=e.children,T=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,f),C=null!=O?O:(0,c.getTicks)(h,k),A=(null!=E?E:0)+(0,l.default)(h)/2,j=C.map((function(e,t){var n,r=(null!=(n=(0,c.coerceNumber)(h(e)))?n:0)+A;return{index:t,from:new u.Point({x:r,y:0}),to:new u.Point({x:r,y:v})}}));return o.default.createElement(s.Group,{className:(0,i.default)("visx-columns",w),top:n,left:d},P?P({lines:j}):j.map((function(e){var t=e.from,n=e.to,r=e.index;return o.default.createElement(a.default,p({key:"column-line-"+r,from:t,to:n,stroke:y,strokeWidth:b,strokeDasharray:_,style:S},T))})))}h.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},98112:function(e,t,n){"use strict";t.__esModule=!0,t.default=h;var r=d(n(45697)),o=d(n(67294)),i=d(n(94184)),a=d(n(53282)),s=n(58788),u=n(82462),c=n(65362),l=d(n(14919)),f=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,d=void 0===r?0:r,h=e.scale,v=e.width,m=e.stroke,y=void 0===m?"#eaf0f6":m,g=e.strokeWidth,b=void 0===g?1:g,_=e.strokeDasharray,w=e.className,x=e.children,k=e.numTicks,S=void 0===k?10:k,E=e.lineStyle,O=e.offset,P=e.tickValues,T=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,f),C=null!=P?P:(0,c.getTicks)(h,S),A=(null!=O?O:0)+(0,l.default)(h)/2,j=C.map((function(e,t){var n,r=(null!=(n=(0,c.coerceNumber)(h(e)))?n:0)+A;return{index:t,from:new u.Point({x:0,y:r}),to:new u.Point({x:v,y:r})}}));return o.default.createElement(s.Group,{className:(0,i.default)("visx-rows",w),top:n,left:d},x?x({lines:j}):j.map((function(e){var t=e.from,n=e.to,r=e.index;return o.default.createElement(a.default,p({key:"row-line-"+r,from:t,to:n,stroke:y,strokeWidth:b,strokeDasharray:_,style:E},T))})))}h.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},14919:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},99599:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(45697),o=n.n(r),i=n(67294),a=n(94184),s=n.n(a),u=["top","left","transform","className","children","innerRef"];function c(){return c=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},c.apply(this,arguments)}function l(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,a=e.transform,l=e.className,f=e.children,d=e.innerRef,p=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,u);return i.createElement("g",c({ref:d,className:s()("visx-group",l),transform:a||"translate("+o+", "+n+")"},p),f)}l.propTypes={top:o().number,left:o().number,transform:o().string,className:o().string,children:o().node,innerRef:o().oneOfType([o().string,o().func,o().object])}},58788:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(99599)},43387:function(e,t,n){"use strict";t.Z=c;var r=s(n(45697)),o=s(n(67294)),i=s(n(94184)),a=["top","left","transform","className","children","innerRef"];
163function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}function c(e){var t=e.top,n=void 0===t?0:t,r=e.left,s=void 0===r?0:r,c=e.transform,l=e.className,f=e.children,d=e.innerRef,p=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,a);return o.default.createElement("g",u({ref:d,className:(0,i.default)("visx-group",l),transform:c||"translate("+s+", "+n+")"},p),f)}c.propTypes={top:r.default.number,left:r.default.number,transform:r.default.string,className:r.default.string,children:r.default.node,innerRef:r.default.oneOfType([r.default.string,r.default.func,r.default.object])}},87731:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r;this.x=0,this.y=0,this.x=n,this.y=o}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},82462:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return i},sumPoints:function(){return o}});var r=n(87731);function o(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function i(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},560:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=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,a),u=(0,r.useMemo)((function(){return function(e){return r.default.createElement(i.default,c({},e,{tickComponent:n,animationTrajectory:t}))}}),[t,n]);return r.default.createElement(o.default,c({},s,{ticksComponent:u}))};u(n(45697));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(67294)),o=u(n(52146)),i=u(n(81051)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}},81051:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.hideTicks,n=e.horizontal,c=e.orientation,f=e.scale,d=e.tickClassName,p=e.tickComponent,h=e.tickLabelProps,v=e.tickStroke,m=void 0===v?"#222":v,y=e.tickTransform,g=e.ticks,b=e.tickLineProps,_=e.animationTrajectory,w=(0,o.useTransition)(g,l({},(0,u.default)({scale:f,animateXOrY:n?"x":"y",animationTrajectory:_}),{keys:function(e){return"tick-"+e.value+"-"+e.index}}));return r.default.createElement(r.default.Fragment,null,w((function(e,n,u,f){var v,g,_=e.fromX,w=e.toX,x=e.fromY,k=e.toY,S=e.opacity,E=u.key,O=null!=(v=null!=(g=h[f])?g:h[0])?v:{};return null==n||null==E?null:r.default.createElement(o.animated.g,{key:E,className:(0,i.default)("visx-axis-tick",d),transform:y},!t&&r.default.createElement(o.animated.line,l({x1:_,x2:w,y1:x,y2:k,stroke:m,strokeLinecap:"square",strokeOpacity:S},b)),r.default.createElement(o.animated.g,{key:f,transform:(0,o.to)([w,k],(function(e,t){var n;return"translate("+e+","+(t+(c===a.default.bottom&&"number"===typeof O.fontSize?null!=(n=O.fontSize)?n:10:0))+")"})),opacity:S},p?p(l({},O,{x:w,y:k,formattedValue:null==n?void 0:n.formattedValue})):r.default.createElement(s.Text,O,null==n?void 0:n.formattedValue)))})))};var r=c(n(67294)),o=n(81247),i=c(n(94184)),a=c(n(19013)),s=n(75733),u=c(n(22371));
163function c(e){return e&&e.__esModule?e:{default:e}}function l(){return l=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},l.apply(this,arguments)}},71801:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.height,s=e.numTicks,c=e.tickValues,l=(e.offset,e.className),f=e.animationTrajectory,d=e.top,p=e.left,h=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,a);return r.default.createElement(o.default,{scale:t,height:n,numTicks:s,tickValues:c,className:l,top:d,left:p},(function(e){var n=e.lines;return r.default.createElement(i.default,u({scale:t,lines:n,animationTrajectory:f,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e||null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},h))}))};var r=s(n(67294)),o=s(n(62860)),i=s(n(88293)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}},88293:function(e,t,n){"use strict";t.__esModule=!0,t.default=l;var r=u(n(45697)),o=u(n(67294)),i=n(81247),a=u(n(22371)),s=["scale","lines","animationTrajectory","animateXOrY","lineKey","lineStyle"];function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=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},c.apply(this,arguments)}function l(e){var t=e.scale,n=e.lines,r=e.animationTrajectory,u=e.animateXOrY,l=e.lineKey,f=e.lineStyle,d=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,s),p=(0,i.useTransition)(n,c({},(0,a.default)({scale:t,animateXOrY:u,animationTrajectory:r}),{key:l}));return o.default.createElement(o.default.Fragment,null,p((function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,u=e.toY,l=e.opacity,p=n.key;return o.default.createElement(i.animated.line,c({key:p,x1:r,x2:a,y1:s,y2:u,strokeOpacity:l,style:f},d))})))}l.propTypes={lineKey:r.default.func.isRequired}},52334:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,c=e.tickValues,l=(e.offset,e.className),f=e.animationTrajectory,d=e.top,p=e.left,h=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,a);return r.default.createElement(o.default,{scale:t,width:n,numTicks:s,tickValues:c,className:l,top:d,left:p},(function(e){var n=e.lines;return r.default.createElement(i.default,u({scale:t,lines:n,animationTrajectory:f,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e||null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},h))}))};var r=s(n(67294)),o=s(n(98112)),i=s(n(88293)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}},22371:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.scale,n=e.animateXOrY,s=e.animationTrajectory,u=void 0===s?"outside":s,c="x"===n;return(0,r.useMemo)((function(){var e=t.range().map(o.coerceNumber),n=e[0],r=e[1],s=null!=r&&null!=n&&r<n?[r,n]:[n,r],l=s[0],f=s[1],d=null!=r&&null!=n?Math.abs(r-n):0,p=(null!=l?l:0)+d/2,h=u;c||"min"!==u||(h="max"),c||"max"!==u||(h="min");var v=function(e){var t=e.from,n=e.to;return{fromX:c?i(h,t.x,l,f,p):t.x,toX:c?i(h,t.x,l,f,p):n.x,fromY:c?t.y:i(h,t.y,l,f,p),toY:c?n.y:i(h,t.y,l,f,p),opacity:0}
163};return{from:v,leave:v,enter:a,update:a}}),[t,c,u])};var r=n(67294),o=n(65362);function i(e,t,n,r,o){var i;switch(e){case"center":return o;case"min":return null!=n?n:0;case"max":return null!=r?r:0;default:return null!=(i=(null!=t?t:0)<o?n:r)?i:0}}function a(e){var t=e.from,n=e.to;return{fromX:t.x,toX:n.x,fromY:t.y,toY:n.y,opacity:1}}},95142:function(e,t,n){"use strict";t.Z=d;var r=c(n(45697)),o=c(n(23279)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(67294)),a=n(58354),s=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function l(){return l=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},l.apply(this,arguments)}var f=[];function d(e){var t=e.className,n=e.children,r=e.debounceTime,u=void 0===r?300:r,c=e.ignoreDimensions,d=void 0===c?f:c,p=e.parentSizeStyles,h=void 0===p?{width:"100%",height:"100%"}:p,v=e.enableDebounceLeadingCall,m=void 0===v||v,y=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,s),g=(0,i.useRef)(null),b=(0,i.useRef)(0),_=(0,i.useState)({width:0,height:0,top:0,left:0}),w=_[0],x=_[1],k=(0,i.useMemo)((function(){var e=Array.isArray(d)?d:[d];return(0,o.default)((function(t){x((function(n){return Object.keys(n).filter((function(e){return n[e]!==t[e]})).every((function(t){return e.includes(t)}))?n:t}))}),u,{leading:m})}),[u,m,d]);return(0,i.useEffect)((function(){var e=new a.ResizeObserver((function(e){void 0===e&&(e=[]),e.forEach((function(e){var t=e.contentRect,n=t.left,r=t.top,o=t.width,i=t.height;b.current=window.requestAnimationFrame((function(){k({width:o,height:i,top:r,left:n})}))}))}));return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(b.current),e.disconnect(),null!=k&&k.cancel&&k.cancel()}}),[k]),i.default.createElement("div",l({style:h,ref:g,className:t},y),n(l({},w,{ref:g.current,resize:k})))}d.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},29673:function(e,t,n){"use strict";var r=n(77833),o=n(36102),i=n(81289),a=n(11981),s=n(63545),u=n(85107),c=n(21184),l=n(99609),f=n(34382),d=n(97976),p=n(61217),h=n(95690),v=n(89662);t.Z=function(e){if("undefined"!==typeof e&&"type"in e)switch(e.type){case"linear":return(0,r.Z)(e);case"log":return(0,o.Z)(e);case"pow":return(0,i.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,u.Z)(e);case"utc":return(0,c.Z)(e);case"quantile":return(0,l.Z)(e);case"quantize":return(0,f.Z)(e);case"threshold":return(0,d.Z)(e);case"ordinal":return(0,p.Z)(e);case"point":return(0,h.Z)(e);case"band":return(0,v.Z)(e)}return(0,r.Z)(e)}},65362:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return E.Z},createScale:function(){return _.Z},getTicks:function(){return O.Z},inferScaleType:function(){return S},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return T.Z},scaleLinear:function(){return i.Z},scaleLog:function(){return d.Z},scaleOrdinal:function(){return h.Z},scalePoint:function(){return o.Z},scalePower:function(){return p.Z},scaleQuantile:function(){return m.Z},scaleQuantize:function(){return v.Z},scaleRadial:function(){return c},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return y.Z},scaleThreshold:function(){return g.Z},scaleTime:function(){return l.Z},scaleUtc:function(){return f.Z},toString:function(){return P.Z},updateScale:function(){return x}});var r=n(89662),o=n(95690),i=n(77833),a=n(80635),s=n(82826),u=(0,s.Z)("domain","range","clamp","nice","round","unknown");function c(e){return u((0,a.Z)(),e)}var l=n(85107),f=n(21184),d=n(36102),p=n(81289),h=n(61217),v=n(34382),m=n(99609),y=n(63545),g=n(97976),b=n(11981),_=n(29673),w=s.Z.apply(void 0,s.a);var x=function(e,t){return w(e.copy(),t)},k=n(76602);function S(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var E=n(54371),O=n(14703),P=n(47045),T=n(76876)},82826:function(e,t,n){"use strict";n.d(t,{a:function(){return O},Z:function(){return T}});var r=n(23385),o=n(1077),i=n(24038),a=n(58723),s=n(93414),u={lab:r.Z,hcl:o.Z,"hcl-long":o.b,hsl:i.Z,"hsl-long":i.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb
163:s.ZP};var c=n(69478),l=n(42784),f=n(7197),d=n(4584),p=n(15086),h=n(22776),v=n(82209),m=n(89692),y=n(60590),g=n(74878),b=n(47512),_=n(67519),w=n(31181),x=n(76602),k={day:c.Z,hour:l.Z,minute:f.Z,month:d.Z,second:p.Z,week:h.OM,year:v.Z},S={day:m.Z,hour:y.Z,minute:g.Z,month:b.Z,second:p.Z,week:_.Ox,year:w.Z};var E=n(55720);var O=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],P={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&"undefined"!==typeof t.nice&&"nice"in e){var n=t.nice;if("boolean"===typeof n)n&&e.nice();else if("number"===typeof n)e.nice(n);else{var r=e,o=(0,x.Z)(r);if("string"===typeof n)r.nice(o?S[n]:k[n]);else{var i=n.interval,a=n.step,s=(o?S[i]:k[i]).every(a);null!=s&&r.nice(s)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],o=n[1],i=o<r,a=i?[o,r]:[r,o],s=a[0],u=a[1],c=[Math.min(0,s),Math.max(0,u)];e.domain(i?c.reverse():c)}},interpolate:function(e,t){if("interpolate"in t&&"interpolate"in e&&"undefined"!==typeof t.interpolate){var n=function(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return u[e]}var t=e.type,n=e.gamma,r=u[t];return"undefined"===typeof n?r:r.gamma(n)}(t.interpolate);e.interpolate(n)}},round:function(e,t){"round"in t&&"undefined"!==typeof t.round&&(t.round&&"interpolate"in t&&"undefined"!==typeof t.interpolate?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(E.Z))},align:function(e,t){"align"in e&&"align"in t&&"undefined"!==typeof t.align&&e.align(t.align)},base:function(e,t){"base"in e&&"base"in t&&"undefined"!==typeof t.base&&e.base(t.base)},clamp:function(e,t){"clamp"in e&&"clamp"in t&&"undefined"!==typeof t.clamp&&e.clamp(t.clamp)},constant:function(e,t){"constant"in e&&"constant"in t&&"undefined"!==typeof t.constant&&e.constant(t.constant)},exponent:function(e,t){"exponent"in e&&"exponent"in t&&"undefined"!==typeof t.exponent&&e.exponent(t.exponent)},padding:function(e,t){"padding"in e&&"padding"in t&&"undefined"!==typeof t.padding&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&"undefined"!==typeof t.paddingInner&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&"undefined"!==typeof t.paddingOuter&&e.paddingOuter(t.paddingOuter)},range:function(e,t){t.range&&e.range(t.range)},reverse:function(e,t){if(t.reverse){var n=e.range().slice().reverse();e.range(n)}},unknown:function(e,t){"unknown"in e&&"unknown"in t&&"undefined"!==typeof t.unknown&&e.unknown(t.unknown)}};function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=O.filter((function(e){return r.has(e)}));return function(e,t){return"undefined"!==typeof t&&o.forEach((function(n){P[n](e,t)})),e}}},89662:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49649),o=(0,n(82826).Z)("domain","range","reverse","align","padding","round");function i(e){return o((0,r.Z)(),e)}},77833:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50289),o=(0,n(82826).Z)("domain","range","reverse","clamp","interpolate","nice","round","zero");function i(e){return o((0,r.Z)(),e)}},36102:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(72685),o=(0,n(82826).Z)("domain","range","reverse","base","clamp","interpolate","nice","round");function i(e){return o((0,r.Z)(),e)}},61217:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57603),o=(0,n(82826).Z)("domain","range","reverse","unknown");function i(e){return o((0,r.Z)(),e)}},95690:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49649),o=(0,n(82826).Z)("domain","range","reverse","align","padding","round");function i(e){return o((0,r.x)(),e)}},81289:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(55128),o=(0,n(82826).Z)("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function i(e){return o((0,r.ZP)(),e)}},99609:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(12110),o=(0,n(82826).Z)("domain","range","reverse");function i(e){return o((0,r.Z)(),e)}},34382:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(16602),o=(0,n(82826).Z)("domain","range","reverse","nice","zero");function i(e){return o((0,r.Z)(),e)}},11981:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(55128),o=(0,n(82826).Z)("domain","range","reverse","clamp","interpolate","nice","round","zero");function i(e){return o((0,r._b)(),e)}},63545:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(55437),o=(0,n(82826).Z)("domain","range","reverse","clamp","constant","nice","zero","round");function i(e){return o((0,r.Z)(),e)}},97976:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86297),o=(0,n(82826).Z)("domain","range","reverse");function i(e){return o((0,r.Z)(),e)}},85107:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(88383),o=(0,n(82826).Z)("domain","range","reverse","clamp","interpolate","nice","round");function i(e){return o((0,r.Z)(),e)}},21184:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30819),o=(0,n(82826).Z)("domain","range","reverse","clamp","interpolate","nice","round");function i(e){return o((0,r.Z)(),e)}},54371:function(e,t,n){"use strict";function r(e){if(("function"===typeof e||"object"===typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"===typeof t)return t}return e}n.d(t,{Z:function(){return r}})},14703:function(e,t,n){"use strict";function r(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter((function(e,n,r){return null==t||r.length<=t||n%Math.round((r.length-1)/t)===0}))}n.d(t,{Z:function(){return r}})},76602:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=new Date(Date.UTC(2020,1,2,3,4,5));function o(e){return"2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(r)}
163},76876:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=new Set(["linear","pow","quantize","sqrt","symlog"]);function o(e){return r.has(e.type)}},47045:function(e,t,n){"use strict";function r(e){return null==e?void 0:e.toString()}n.d(t,{Z:function(){return r}})},81227:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"align"in e&&"align"in t&&"undefined"!==typeof t.align&&e.align(t.align)}},72537:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"base"in e&&"base"in t&&"undefined"!==typeof t.base&&e.base(t.base)}},15084:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"clamp"in e&&"clamp"in t&&"undefined"!==typeof t.clamp&&e.clamp(t.clamp)}},40289:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"constant"in e&&"constant"in t&&"undefined"!==typeof t.constant&&e.constant(t.constant)}},76579:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){t.domain&&e.domain(t.domain)}},49430:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"exponent"in e&&"exponent"in t&&"undefined"!==typeof t.exponent&&e.exponent(t.exponent)}},62829:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if("interpolate"in t&&"interpolate"in e&&"undefined"!==typeof t.interpolate){var n=(0,o.default)(t.interpolate);e.interpolate(n)}};var r,o=(r=n(56955))&&r.__esModule?r:{default:r}},30254:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if("nice"in t&&"undefined"!==typeof t.nice&&"nice"in e){var n=t.nice;if("boolean"===typeof n)n&&e.nice();else if("number"===typeof n)e.nice(n);else{var r=e,o=(0,i.default)(r);if("string"===typeof n)r.nice(o?s[n]:a[n]);else{var u=n.interval,c=n.step,l=(o?s[u]:a[u]).every(c);null!=l&&r.nice(l)}}}};var r,o=n(42796),i=(r=n(70306))&&r.__esModule?r:{default:r};var a={day:o.timeDay,hour:o.timeHour,minute:o.timeMinute,month:o.timeMonth,second:o.timeSecond,week:o.timeWeek,year:o.timeYear},s={day:o.utcDay,hour:o.utcHour,minute:o.utcMinute,month:o.utcMonth,second:o.utcSecond,week:o.utcWeek,year:o.utcYear}},97608:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"padding"in e&&"padding"in t&&"undefined"!==typeof t.padding&&e.padding(t.padding);"paddingInner"in e&&"paddingInner"in t&&"undefined"!==typeof t.paddingInner&&e.paddingInner(t.paddingInner);"paddingOuter"in e&&"paddingOuter"in t&&"undefined"!==typeof t.paddingOuter&&e.paddingOuter(t.paddingOuter)}},32463:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){t.range&&e.range(t.range)}},64266:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(t.reverse){var n=e.range().slice().reverse();e.range(n)}}},76729:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){"round"in t&&"undefined"!==typeof t.round&&(t.round&&"interpolate"in t&&"undefined"!==typeof t.interpolate?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(r.interpolateRound))};var r=n(59061)},85292:function(e,t,n){"use strict";t.__esModule=!0,t.ALL_OPERATORS=void 0,t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=g.filter((function(e){return r.has(e)}));return function(e,t){return"undefined"!==typeof t&&o.forEach((function(n){b[n](e,t)})),e}};var r=y(n(76579)),o=y(n(32463)),i=y(n(81227)),a=y(n(72537)),s=y(n(15084)),u=y(n(40289)),c=y(n(49430)),l=y(n(62829)),f=y(n(30254)),d=y(n(97608)),p=y(n(64266)),h=y(n(76729)),v=y(n(54107)),m=y(n(41136));function y(e){return e&&e.__esModule?e:{default:e}}var g=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];t.ALL_OPERATORS=g;var b={domain:r.default,nice:f.default,zero:m.default,interpolate:l.default,round:h.default,align:i.default,base:a.default,clamp:s.default,constant:u.default,exponent:c.default,padding:d.default,range:o.default,reverse:p.default,unknown:v.default}},54107:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){"unknown"in e&&"unknown"in t&&"undefined"!==typeof t.unknown&&e.unknown(t.unknown)}},41136:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],o=n[1],i=o<r,a=i?[o,r]:[r,o],s=a[0],u=a[1],c=[Math.min(0,s),Math.max(0,u)];e.domain(i?c.reverse():c)}}},38382:function(e,t,n){"use strict";t.ZP=function(e){return i((0,o.scaleOrdinal)(),e)};var r,o=n(41328);var i=(0,((r=n(85292))&&r.__esModule?r:{default:r}).default)("domain","range","reverse","unknown")},56955:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return o[e]}var t=e.type,n=e.gamma,r=o[t];return"undefined"===typeof n?r:r.gamma(n)};var r=n(59061),o={lab:r.interpolateLab,hcl:r.interpolateHcl,"hcl-long":r.interpolateHclLong,hsl:r.interpolateHsl,"hsl-long":r.interpolateHslLong,cubehelix:r.interpolateCubehelix,"cubehelix-long":r.interpolateCubehelixLong,rgb:r.interpolateRgb}},70306:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(n)};var n=new Date(Date.UTC(2020,1,2,3,4,5))},61027:function(e,t,n){"use strict";n.r(t),n.d(t,{Arc:function(){return c},Area:function(){return w},AreaClosed:function(){return E},AreaStack:function(){return j},Bar:function(){return D},BarGroup:function(){return F},BarGroupHorizontal:function(){return V},BarRounded:function(){return I.Z},BarStack:function(){return ee},BarStackHorizontal:function(){return re},Circle:function(){return ct},Line:function(){return h.Z},LinePath:function(){return v.Z},LineRadial:function(){return g},LinkHorizontal:function(){return ce},LinkHorizontalCurve:function(){return xe},LinkHorizontalLine:function(){return De},LinkHorizontalStep:function(){return qe},LinkRadial:function(){return ye},LinkRadialCurve:function(){return Ae},LinkRadialLine:function(){return Ve},LinkRadialStep:function(){return et},LinkVertical:function(){return pe},LinkVerticalCurve:function(){return Oe},LinkVerticalLine:function(){return Be},LinkVerticalStep:function(){return Ke},Pie:function(){return p},Polygon:function(){return at}
163,STACK_OFFSETS:function(){return X.nW},STACK_OFFSET_NAMES:function(){return X.ed},STACK_ORDERS:function(){return K.un},STACK_ORDER_NAMES:function(){return K.s2},SplitLinePath:function(){return gt},Stack:function(){return T},arc:function(){return a.Nb},area:function(){return a.SO},degreesToRadians:function(){return oe},getPoint:function(){return ot},getPoints:function(){return it},line:function(){return a.jv},pathHorizontalCurve:function(){return we},pathHorizontalDiagonal:function(){return ue},pathHorizontalLine:function(){return Me},pathHorizontalStep:function(){return He},pathRadialCurve:function(){return Ce},pathRadialDiagonal:function(){return me},pathRadialLine:function(){return ze},pathRadialStep:function(){return Je},pathVerticalCurve:function(){return Ee},pathVerticalDiagonal:function(){return de},pathVerticalLine:function(){return Ne},pathVerticalStep:function(){return Ye},pie:function(){return a.ve},radialLine:function(){return a.aJ},stack:function(){return a.kn},stackOffset:function(){return X.ZP},stackOrder:function(){return K.ZP}});var r=n(67294),o=n(94184),i=n.n(o),a=n(24067),s=["className","data","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","children","innerRef"];function u(){return u=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},u.apply(this,arguments)}function c(e){var t=e.className,n=e.data,o=e.innerRadius,c=e.outerRadius,l=e.cornerRadius,f=e.startAngle,d=e.endAngle,p=e.padAngle,h=e.padRadius,v=e.children,m=e.innerRef,y=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,s),g=(0,a.Nb)({innerRadius:o,outerRadius:c,cornerRadius:l,startAngle:f,endAngle:d,padAngle:p,padRadius:h});return v?r.createElement(r.Fragment,null,v({path:g})):n||null!=f&&null!=d&&null!=o&&null!=c?r.createElement("path",u({ref:m,className:i()("visx-arc",t),d:g(n)||""},y)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var l=n(99599),f=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function d(){return d=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},d.apply(this,arguments)}function p(e){var t=e.className,n=e.top,o=e.left,s=e.data,u=void 0===s?[]:s,c=e.centroid,p=e.innerRadius,h=void 0===p?0:p,v=e.outerRadius,m=e.cornerRadius,y=e.startAngle,g=e.endAngle,b=e.padAngle,_=e.padRadius,w=e.pieSort,x=e.pieSortValues,k=e.pieValue,S=e.children,E=e.fill,O=void 0===E?"":E,P=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,f),T=(0,a.Nb)({innerRadius:h,outerRadius:v,cornerRadius:m,padRadius:_}),C=(0,a.ve)({startAngle:y,endAngle:g,padAngle:b,value:k,sort:w,sortValues:x}),A=C(u);return S?r.createElement(r.Fragment,null,S({arcs:A,path:T,pie:C})):r.createElement(l.Z,{className:"visx-pie-arcs-group",top:n,left:o},A.map((function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",d({className:i()("visx-pie-arc",t),d:T(e)||"",fill:null==O||"string"===typeof O?O:O(e)},P)),null==c?void 0:c(T.centroid(e),e))})))}var h=n(89163),v=n(14645),m=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function y(){return y=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},y.apply(this,arguments)}function g(e){var t=e.className,n=e.angle,o=e.radius,s=e.defined,u=e.curve,c=e.data,l=void 0===c?[]:c,f=e.innerRef,d=e.children,p=e.fill,h=void 0===p?"transparent":p,v=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,m),g=(0,a.aJ)({angle:n,radius:o,defined:s,curve:u});return d?r.createElement(r.Fragment,null,d({path:g})):r.createElement("path",y({ref:f,className:i()("visx-line-radial",t),d:g(l)||"",fill:h},v))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function _(){return _=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},_.apply(this,arguments)}function w(e){var t=e.children,n=e.x,o=e.x0,s=e.x1,u=e.y,c=e.y0,l=e.y1,f=e.data,d=void 0===f?[]:f,p=e.defined,h=void 0===p?function(){return!0}:p,v=e.className,m=e.curve,y=e.innerRef,g=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,b),w=(0,a.SO)({x:n,x0:o,x1:s,y:u,y0:c,y1:l,defined:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:w})):r.createElement("path",_({ref:y,className:i()("visx-area",v),d:w(d)||""},g))}var x=n(81525),k=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function S(){return S=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},S.apply(this,arguments)}function E(e){var t=e.x,n=e.x0,o=e.x1,s=e.y,u=e.y1,c=e.y0,l=e.yScale,f=e.data,d=void 0===f?[]:f,p=e.defined,h=void 0===p?function(){return!0}:p,v=e.className,m=e.curve,y=e.innerRef,g=e.children,b=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,k),_=(0,a.SO)({x:t,x0:n,x1:o,defined:h,curve:m});return null==c?_.y0(l.range()[0]):(0,x.Z)(_.y0,c),s&&!u&&(0,x.Z)(_.y1,s),u&&!s&&(0,x.Z)(_.y1,u),g?r.createElement(r.Fragment,null,g({path:_})):r.createElement("path",S({ref:y,className:i()("visx-area-closed",v),d:_(d)||""},b))}var O=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function P(){return P=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},P.apply(this,arguments)}function T(e){var t=e.className,n=e.top,o=e.left,s=e.keys,u=e.data,c=e.curve,f=e.defined,d=e.x,p=e.x0,h=e.x1,v=e.y0,m=e.y1,y=e.value,g=e.order,b=e.offset,_=e.color,w=e.children,x=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,O),k=(0,a.kn)({keys:s,value:y,order:g,offset:b}),S=(0,a.SO)({x:d,x0:p,x1:h,y0:v,y1:m,curve:c,defined:f}),E=k(u);return w?r.createElement(r.Fragment,null,w({stacks:E,path:S,stack:k})):r.createElement(l.Z,{top:n,left:o},E.map((function(e,n){return r.createElement("path",P({className:i()("visx-stack",t),key:"stack-"
163+n+"-"+(e.key||""),d:S(e)||"",fill:null==_?void 0:_(e.key,n)},x))})))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function A(){return A=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},A.apply(this,arguments)}function j(e){var t=e.className,n=e.top,o=e.left,a=e.keys,s=e.data,u=e.curve,c=e.defined,l=e.x,f=e.x0,d=e.x1,p=e.y0,h=e.y1,v=e.value,m=e.order,y=e.offset,g=e.color,b=e.children,_=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,C);return r.createElement(T,A({className:t,top:n,left:o,keys:a,data:s,curve:u,defined:c,x:l,x0:f,x1:d,y0:p,y1:h,value:v,order:m,offset:y,color:g},_),b||function(e){var n=e.stacks,o=e.path;return n.map((function(e,n){return r.createElement("path",A({className:i()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:o(e)||"",fill:null==g?void 0:g(e.key,n)},_))}))})}var R=["className","innerRef"];function M(){return M=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},M.apply(this,arguments)}function D(e){var t=e.className,n=e.innerRef,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,R);return r.createElement("rect",M({ref:n,className:i()("visx-bar",t)},o))}var I=n(28761);function L(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var N=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function B(){return B=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},B.apply(this,arguments)}function F(e){var t=e.data,n=e.className,o=e.top,a=e.left,s=e.x0,u=e.x0Scale,c=e.x1Scale,f=e.yScale,d=e.color,p=e.keys,h=e.height,v=e.children,m=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,N),y=L(c),g=t.map((function(e,t){return{index:t,x0:u(s(e)),bars:p.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:y,x:c(t)||0,y:f(r)||0,color:d(t,n),height:h-(f(r)||0)}}))}}));return v?r.createElement(r.Fragment,null,v(g)):r.createElement(l.Z,{className:i()("visx-bar-group",n),top:o,left:a},g.map((function(e){return r.createElement(l.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(D,B({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},m))})))})))}var Z=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(this,arguments)}function V(e){var t=e.data,n=e.className,o=e.top,a=e.left,s=e.x,u=void 0===s?function(){return 0}:s,c=e.y0,f=e.y0Scale,d=e.y1Scale,p=e.xScale,h=e.color,v=e.keys,m=(e.width,e.children),y=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,Z),g=L(d),b=t.map((function(e,t){return{index:t,y0:f(c(e))||0,bars:v.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:g,x:u(r)||0,y:d(t)||0,color:h(t,n),width:p(r)||0}}))}}));return m?r.createElement(r.Fragment,null,m(b)):r.createElement(l.Z,{className:i()("visx-bar-group-horizontal",n),top:o,left:a},b.map((function(e){return r.createElement(l.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(D,z({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},y))})))})))}var U=n(10098);function W(e){return"number"===typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function H(e){return"number"===typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function q(e){return null==e?void 0:e.source}function $(e){return null==e?void 0:e.target}function G(e){return null==e?void 0:e[0]}function Y(e){return null==e?void 0:e[1]}var K=n(13659),X=n(12828),Q=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return J=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},J.apply(this,arguments)}function ee(e){var t=e.data,n=e.className,o=e.top,a=e.left,s=e.x,u=e.y0,c=void 0===u?G:u,f=e.y1,d=void 0===f?Y:f,p=e.xScale,h=e.
163yScale,v=e.color,m=e.keys,y=e.value,g=e.order,b=e.offset,_=e.children,w=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,Q),k=(0,U.Z)();m&&k.keys(m),y&&(0,x.Z)(k.value,y),g&&k.order((0,K.ZP)(g)),b&&k.offset((0,X.ZP)(b));var S=k(t),E=L(p),O=S.map((function(e,t){var n=e.key;return{index:t,key:n,bars:e.map((function(t,r){var o=(h(c(t))||0)-(h(d(t))||0),i=h(d(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-E/2);return{bar:t,key:n,index:r,height:o,width:E,x:a||0,y:i||0,color:v(e.key,r)}}))}}));return _?r.createElement(r.Fragment,null,_(O)):r.createElement(l.Z,{className:i()("visx-bar-stack",n),top:o,left:a},O.map((function(e){return e.bars.map((function(t){return r.createElement(D,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))}))})))}var te=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function ne(){return ne=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},ne.apply(this,arguments)}function re(e){var t=e.data,n=e.className,o=e.top,a=e.left,s=e.y,u=e.x0,c=void 0===u?G:u,f=e.x1,d=void 0===f?Y:f,p=e.xScale,h=e.yScale,v=e.color,m=e.keys,y=e.value,g=e.order,b=e.offset,_=e.children,w=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,te),k=(0,U.Z)();m&&k.keys(m),y&&(0,x.Z)(k.value,y),g&&k.order((0,K.ZP)(g)),b&&k.offset((0,X.ZP)(b));var S=k(t),E=L(h),O=S.map((function(e,t){var n=e.key;return{index:t,key:n,bars:e.map((function(t,r){var o=(p(d(t))||0)-(p(c(t))||0),i=p(c(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-o/2);return{bar:t,key:n,index:r,height:E,width:o,x:i||0,y:a||0,color:v(e.key,r)}}))}}));return _?r.createElement(r.Fragment,null,_(O)):r.createElement(l.Z,{className:i()("visx-bar-stack-horizontal",n),top:o,left:a},O.map((function(e){return e.bars.map((function(t){return r.createElement(D,ne({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))}))})))}var oe=function(e){return Math.PI/180*e},ie=n(67717),ae=["className","children","data","innerRef","path","x","y","source","target"];function se(){return se=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},se.apply(this,arguments)}function ue(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(e){var i=(0,ie.h5)();return i.x(r),i.y(o),i.source(t),i.target(n),i(e)}}function ce(e){var t=e.className,n=e.children,o=e.data,a=e.innerRef,s=e.path,u=e.x,c=void 0===u?H:u,l=e.y,f=void 0===l?W:l,d=e.source,p=void 0===d?q:d,h=e.target,v=void 0===h?$:h,m=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,ae),y=s||ue({source:p,target:v,x:c,y:f});return n?r.createElement(r.Fragment,null,n({path:y})):r.createElement("path",se({ref:a,className:i()("visx-link visx-link-horizontal-diagonal",t),d:y(o)||""},m))}var le=["className","children","data","innerRef","path","x","y","source","target"];function fe(){return fe=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},fe.apply(this,arguments)}function de(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(e){var i=(0,ie.rR)();return i.x(r),i.y(o),i.source(t),i.target(n),i(e)}}function pe(e){var t=e.className,n=e.children,o=e.data,a=e.innerRef,s=e.path,u=e.x,c=void 0===u?W:u,l=e.y,f=void 0===l?H:l,d=e.source,p=void 0===d?q:d,h=e.target,v=void 0===h?$:h,m=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,le),y=s||de({source:p,target:v,x:c,y:f});return n?r.createElement(r.Fragment,null,n({path:y})):r.createElement("path",fe({ref:a,className:i()("visx-link visx-link-vertical-diagonal",t),d:y(o)||""},m))}var he=["className","children","data","innerRef","path","angle","radius","source","target"];function ve(){return ve=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},ve.apply(this,arguments)}function me(e){var t=e.source,n=e.target,r=e.angle,o=e.radius;return function(e){var i=(0,ie.M4)();return i.angle(r),i.radius(o),i.source(t),i.target(n),i(e)}}function ye(e){var t=e.className,n=e.children,o=e.data,a=e.innerRef,s=e.path,u=e.angle,c=void 0===u?W:u,l=e.radiu
163s,f=void 0===l?H:l,d=e.source,p=void 0===d?q:d,h=e.target,v=void 0===h?$:h,m=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,he),y=s||me({source:p,target:v,angle:c,radius:f});return n?r.createElement(r.Fragment,null,n({path:y})):r.createElement("path",ve({ref:a,className:i()("visx-link visx-link-radial-diagonal",t),d:y(o)||""},m))}var ge=n(11108),be=["className","children","data","innerRef","path","percent","x","y","source","target"];function _e(){return _e=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.apply(this,arguments)}function we(e){var t=e.source,n=e.target,r=e.x,o=e.y,i=e.percent;return function(e){var a=t(e),s=n(e),u=r(a),c=o(a),l=r(s),f=o(s),d=l-u,p=f-c,h=i*(d+p),v=i*(p-d),m=(0,ge.Z)();return m.moveTo(u,c),m.bezierCurveTo(u+h,c+v,l+v,f-h,l,f),m.toString()}}function xe(e){var t=e.className,n=e.children,o=e.data,a=e.innerRef,s=e.path,u=e.percent,c=void 0===u?.2:u,l=e.x,f=void 0===l?H:l,d=e.y,p=void 0===d?W:d,h=e.source,v=void 0===h?q:h,m=e.target,y=void 0===m?$:m,g=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,be),b=s||we({source:v,target:y,x:f,y:p,percent:c});return n?r.createElement(r.Fragment,null,n({path:b})):r.createElement("path",_e({ref:a,className:i()("visx-link visx-link-horizontal-curve",t),d:b(o)||""},g))}var ke=["className","children","data","innerRef","path","percent","x","y","source","target"];function Se(){return Se=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},Se.apply(this,arguments)}function Ee(e){var t=e.source,n=e.target,r=e.x,o=e.y,i=e.percent;return function(e){var a=t(e),s=n(e),u=r(a),c=o(a),l=r(s),f=o(s),d=l-u,p=f-c,h=i*(d+p),v=i*(p-d),m=(0,ge.Z)();return m.moveTo(u,c),m.bezierCurveTo(u+h,c+v,l+v,f-h,l,f),m.toString()}}function Oe(e){var t=e.className,n=e.children,o=e.data,a=e.innerRef,s=e.path,u=e.percent,c=void 0===u?.2:u,l=e.x,f=void 0===l?W:l,d=e.y,p=void 0===d?H:d,h=e.source,v=void 0===h?q:h,m=e.target,y=void 0===m?$:m,g=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,ke),b=s||Ee({source:v,target:y,x:f,y:p,percent:c});return n?r.createElement(r.Fragment,null,n({path:b})):r.createElement("path",Se({ref:a,className:i()("visx-link visx-link-vertical-curve",t),d:b(o)||""},g))}var Pe=["className","children","data","innerRef","path","percent","x","y","source","target"];function Te(){return Te=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},Te.apply(this,arguments)}function Ce(e){var t=e.source,n=e.target,r=e.x,o=e.y,i=e.percent;return function(e){var a=t(e),s=n(e),u=r(a)-Math.PI/2,c=o(a),l=r(s)-Math.PI/2,f=o(s),d=c*
163Math.cos(u),p=c*Math.sin(u),h=f*Math.cos(l),v=f*Math.sin(l),m=h-d,y=v-p,g=i*(m+y),b=i*(y-m),_=(0,ge.Z)();return _.moveTo(d,p),_.bezierCurveTo(d+g,p+b,h+b,v-g,h,v),_.toString()}}function Ae(e){var t=e.className,n=e.children,o=e.data,a=e.innerRef,s=e.path,u=e.percent,c=void 0===u?.2:u,l=e.x,f=void 0===l?W:l,d=e.y,p=void 0===d?H:d,h=e.source,v=void 0===h?q:h,m=e.target,y=void 0===m?$:m,g=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,Pe),b=s||Ce({source:v,target:y,x:f,y:p,percent:c});return n?r.createElement(r.Fragment,null,n({path:b})):r.createElement("path",Te({ref:a,className:i()("visx-link visx-link-radial-curve",t),d:b(o)||""},g))}var je=["className","children","innerRef","data","path","x","y","source","target"];function Re(){return Re=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},Re.apply(this,arguments)}function Me(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(e){var i=t(e),a=n(e),s=r(i),u=o(i),c=r(a),l=o(a),f=(0,ge.Z)();return f.moveTo(s,u),f.lineTo(c,l),f.toString()}}function De(e){var t=e.className,n=e.children,o=e.innerRef,a=e.data,s=e.path,u=e.x,c=void 0===u?H:u,l=e.y,f=void 0===l?W:l,d=e.source,p=void 0===d?q:d,h=e.target,v=void 0===h?$:h,m=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,je),y=s||Me({source:p,target:v,x:c,y:f});return n?r.createElement(r.Fragment,null,n({path:y})):r.createElement("path",Re({ref:o,className:i()("visx-link visx-link-horizontal-line",t),d:y(a)||""},m))}var Ie=["className","innerRef","data","path","x","y","source","target","children"];function Le(){return Le=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},Le.apply(this,arguments)}function Ne(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(e){var i=t(e),a=n(e),s=r(i),u=o(i),c=r(a),l=o(a),f=(0,ge.Z)();return f.moveTo(s,u),f.lineTo(c,l),f.toString()}}function Be(e){var t=e.className,n=e.innerRef,o=e.data,a=e.path,s=e.x,u=void 0===s?W:s,c=e.y,l=void 0===c?H:c,f=e.source,d=void 0===f?q:f,p=e.target,h=void 0===p?$:p,v=e.children,m=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,Ie),y=a||Ne({source:d,target:h,x:u,y:l});return v?r.createElement(r.Fragment,null,v({path:y})):r.createElement("path",Le({ref:n,className:i()("visx-link visx-link-vertical-line",t),d:y(o)||""},m))}var Fe=["className","innerRef","data","path","x","y","source","target","children"];function Ze(){return Ze=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},Ze.apply(this,arguments)}function ze(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(e){var i=t(e),a=n(e),s=r(i)-Math.PI/2,u=o(i),c=r(a)-Math.PI/2,l=o(a),f=Math.cos(s),d=Math.sin(s),p=Math.cos(c),h=Math.sin(c),v=(0,ge.Z)();return v.moveTo(u*f,u*d),v.lineTo(l*p,l*h),v.toString()}}function Ve(e){var t=e.className,n=e.innerRef,o=e.data,a=e.path,s=e.x,u=void 0===s?W:s,c=e.y,l=void 0===c?H:c,f=e.source,d=void 0===f?q:f,p=e.target,h=void 0===p?$:p,v=e.children,m=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,Fe),y=a||ze({source:d,target:h,x:u,y:l});return v?r.createElement(r.Fragment,null,v({path:y})):r.createElement("path",Ze({ref:n,className:i()("visx-link visx-link-radial-line",t),d:y(o)||""},m))}var Ue=["className","innerRef","data","path","percent","x","y","source","target","children"];function We(){return We=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},We.apply(this,arguments)}function He(e){var t=e.source,n=e.target,r=e.x,o=e.y,i=e.percent;return function(e){var a=t(e),s=n(e),u=r(a),c=o(a),l=r(s),f=o(s),d=(0,ge.Z)();return d.moveTo(u,c),d.lineTo(u+(l-u)*i,c),d.lineTo(u+(l-u)*i,f),d.lineTo(l,f),d.toString()}}function qe(e){var t=e.className,n=e.innerRef,o=e.data,a=e.path,s=e.percent,u=void 0===s?.5:s,c=e.x,l=void 0===c?H:c,f=e.y,d=void 0===f?W:f,p=e.source,h=void 0===p?q:p,v=e.target,m=void 0===v?$:v,y=e.children,g=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,Ue),b=a||He({source:h,target:m,x:l,y:d,percent:u});return y?r.createElement(r.Fragment,null,y({path:b})):r.createElement("path",We({ref:n,className:i()("visx-link visx-link-horizontal-step",t),d:b(o)||""},g))}var $e=["className","innerRef","data","path","percent","x","y","source","target","children"];function Ge(){return Ge=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},Ge.apply(this,arguments)}function Ye(e){var t=e.source,n=e.target,r=e.x,o=e.y,i=e.percent;return function(e){var a=t(e),s=n(e),u=r(a),c=o(a),l=r(s),f=o(s),d=(0,ge.Z)();return d.moveTo(u,c),d.lineTo(u,c+(f-c)*i),d.lineTo(l,c+(f-c)*i),d.lineTo(l,f),d.toString()}}function Ke(e){var t=e.className,n=e.innerRef,o=e.data,a=e.path,s=e.percent,u=void 0===s?.5:s,c=e.x,l=void 0===c?W:c,f=e.y,d=void 0===f?H:f,p=e.source,h=void 0===p?q:p,v=e.target,m=void 0===v?$:v,y=e.children,g=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,$e),b=a||Ye({source:h,target:m,x:l,y:d,percent:u});return y?r.createElement(r.Fragment,null,y({path:b})):r.createElement("path",Ge({ref:n,className:i()("visx-link visx-link-vertical-step",t),d:b(o)||""},g))}var Xe=["className","innerRef","data","path","x","y","source","target","children"];function Qe(){return Qe=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},Qe.apply(this,arguments)}function Je(e){var t=e.source,n=e.target,r=e.x,o=e.y;return function(e){var i=t(e),a=n(e),s=r(i),u=o(i),c=r(a),l=o(a),f=s-Math.PI/2,d=u,p=c-Math.PI/2,h=l,v=Math.cos(f),m=Math.sin(f),y=Math.cos(p),g=Math.sin(p);
163return"\n      M"+d*v+","+d*m+"\n      A"+d+","+d+",0,0,"+((Math.abs(p-f)>Math.PI?p<=f:p>f)?1:0)+","+d*y+","+d*g+"\n      L"+h*y+","+h*g+"\n    "}}function et(e){var t=e.className,n=e.innerRef,o=e.data,a=e.path,s=e.x,u=void 0===s?W:s,c=e.y,l=void 0===c?H:c,f=e.source,d=void 0===f?q:f,p=e.target,h=void 0===p?$:p,v=e.children,m=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,Xe),y=a||Je({source:d,target:h,x:u,y:l});return v?r.createElement(r.Fragment,null,v({path:y})):r.createElement("path",Qe({ref:n,className:i()("visx-link visx-link-radial-step",t),d:y(o)||""},m))}var tt=["sides","size","center","rotate","className","children","innerRef","points"];function nt(){return nt=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},nt.apply(this,arguments)}var rt={x:0,y:0},ot=function(e){var t=e.sides,n=void 0===t?4:t,r=e.size,o=void 0===r?25:r,i=e.center,a=void 0===i?rt:i,s=e.rotate,u=void 0===s?0:s,c=e.side,l=oe(360/n*c-u);return{x:a.x+o*Math.cos(l),y:a.y+o*Math.sin(l)}},it=function(e){var t=e.sides,n=e.size,r=e.center,o=e.rotate;return new Array(t).fill(0).map((function(e,i){return ot({sides:t,size:n,center:r,rotate:o,side:i})}))};function at(e){var t=e.sides,n=void 0===t?4:t,o=e.size,a=void 0===o?25:o,s=e.center,u=void 0===s?rt:s,c=e.rotate,l=void 0===c?0:c,f=e.className,d=e.children,p=e.innerRef,h=e.points,v=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,tt),m=h||it({sides:n,size:a,center:u,rotate:l}).map((function(e){return[e.x,e.y]}));return d?r.createElement(r.Fragment,null,d({points:m})):r.createElement("polygon",nt({ref:p,className:i()("visx-polygon",f),points:m.join(" ")},v))}var st=["className","innerRef"];function ut(){return ut=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},ut.apply(this,arguments)}function ct(e){var t=e.className,n=e.innerRef,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,st);return r.createElement("circle",ut({ref:n,className:i()("visx-circle",t)},o))}var lt=n(45697),ft=n.n(lt),dt="http://www.w3.org/2000/svg";var pt=function(){return!0};function ht(e){var t=e.path,n=e.pointsInSegments,r=e.segmentation,o=void 0===r?"x":r,i=e.sampleRate,a=void 0===i?1:i;try{var s=function(e){var t=document.getElementById(e);if(!t){var n=document.createElementNS(dt,"svg");n.setAttribute("aria-hidden","true"),n.style.opacity="0",n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",n.style.pointerEvents="none",(t=document.createElementNS(dt,"path")).setAttribute("id",e),n.appendChild(t),document.body.appendChild(n)}return t}("__visx_splitpath_svg_path_measurement_id");s.setAttribute("d",t);var u=s.getTotalLength(),c=n.length,l=n.map((function(){return[]}));if("x"===o||"y"===o)for(var f=n.map((function(e){var t;return null==(t=e.find((function(e){return"number"===typeof e[o]})))?void 0:t[o]})),d=s.getPointAtLength(0),p=s.getPointAtLength(u)[o]>d[o]?f.map((function(e){return"undefined"===typeof e?pt:function(t){return t>=e}})):f.map((function(e){return"undefined"===typeof e?pt:function(t){return t<=e}})),h=0,v=0;v<=u;v+=a){for(var m=s.getPointAtLength(v),y=m[o];h<c-1&&p[h+1](y);)h+=1;l[h].push(m)}else{var g=n.map((function(e){return e.length})),b=g.reduce((function(e,t){return e+t}),0),_=u/Math.max(1,b-1),w=g.slice(0,c-1);w.unshift(0);for(var x=2;x<c;x+=1)w[x]+=w[x-1];for(var k=0;k<c;k+=1)w[k]*=_;for(var S=0,E=0;E<=u;E+=a){for(var O=s.getPointAtLength(E);S<c-1&&E>=w[S+1];)S+=1;l[S].push(O)}}return l}catch(P){return[]}}function vt(){return vt=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},vt.apply(this,arguments)}var mt=function(e){return e.x||0},yt=function(e){return e.y||0};function gt(e){var t=e.children,n=e.className,o=e.curve,i=e.defined,s=e.segmentation,u=e.sampleRate,c=e.segments,l=e.x,f=e.y,d=e.styles,p=(0,r.useMemo)((function(){var e="number"===typeof l||"undefined"===typeof l?function(){return l}:l,t="number"===typeof f||"undefined"===typeof f?function(){return f}:f;return c.map((function(n){return n.map((function(r,o){return{x:e(r,o,n),y:t(r,o,n)}}))}))}),[l,f,c]),h=(0,r.useMemo)((function(){return(0,a.jv)({x:l,y:f,defined:i,curve:o})(c.flat())||""}),[l,f,i,o,c]),m=(0,r.useMemo)((function(){return ht({path:h,segmentation:s,pointsInSegments:p,sampleRate:u})}),[h,s,p,u]);return r.createElement("g",null,m.map((function(e,o){return t?r.createElement(r.Fragment,{key:o},t({index:o,segment:e,styles:d[o]||d[o%d.length]})):r.createElement(v.Z,vt({key:o,className:n,data:e,x:mt,y:yt},d[o]||d[o%d.length]))})))}
163gt.propTypes={segments:ft().arrayOf(ft().array).isRequired,styles:ft().array.isRequired,children:ft().func,className:ft().string}},28761:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294),o=n(94184),i=n.n(o),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return s=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},s.apply(this,arguments)}function u(e){var t=e.children,n=e.className,o=e.innerRef,u=e.x,c=e.y,l=e.width,f=e.height,d=e.radius,p=e.all,h=void 0!==p&&p,v=e.top,m=void 0!==v&&v,y=e.bottom,g=void 0!==y&&y,b=e.left,_=void 0!==b&&b,w=e.right,x=void 0!==w&&w,k=e.topLeft,S=void 0!==k&&k,E=e.topRight,O=void 0!==E&&E,P=e.bottomLeft,T=void 0!==P&&P,C=e.bottomRight,A=void 0!==C&&C,j=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,a),R=function(e){var t=e.all,n=e.bottom,r=e.bottomLeft,o=e.bottomRight,i=e.height,a=e.left,s=e.radius,u=e.right,c=e.top,l=e.topLeft,f=e.topRight,d=e.width,p=e.x,h=e.y;f=t||c||u||f,o=t||n||u||o,r=t||n||a||r,l=t||c||a||l;var v=2*(s=Math.max(1,Math.min(s,Math.min(d,i)/2)));return("M"+(p+s)+","+h+" h"+(d-v)+"\n "+(f?"a"+s+","+s+" 0 0 1 "+s+","+s:"h"+s+"v"+s)+"\n v"+(i-v)+"\n "+(o?"a"+s+","+s+" 0 0 1 "+-s+","+s:"v"+s+"h"+-s)+"\n h"+(v-d)+"\n "+(r?"a"+s+","+s+" 0 0 1 "+-s+","+-s:"h"+-s+"v"+-s)+"\n v"+(v-i)+"\n "+(l?"a"+s+","+s+" 0 0 1 "+s+","+-s:"v"+-s+"h"+s)+"\nz").split("\n").join("")}({x:u,y:c,width:l,height:f,radius:d,all:h,top:m,bottom:g,left:_,right:x,topLeft:S,topRight:O,bottomLeft:T,bottomRight:A});return t?r.createElement(r.Fragment,null,t({path:R})):r.createElement("path",s({ref:o,className:i()("visx-bar-rounded",n),d:R},j))}},89163:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294),o=n(94184),i=n.n(o),a=["from","to","fill","className","innerRef"];function s(){return s=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},s.apply(this,arguments)}function u(e){var t=e.from,n=void 0===t?{x:0,y:0}:t,o=e.to,u=void 0===o?{x:1,y:1}:o,c=e.fill,l=void 0===c?"transparent":c,f=e.className,d=e.innerRef,p=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,a),h=n.x===u.x||n.y===u.y;return r.createElement("line",s({ref:d,className:i()("visx-line",f),x1:n.x,y1:n.y,x2:u.x,y2:u.y,fill:l,shapeRendering:h?"crispEdges":"auto"},p))}},14645:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(67294),o=n(94184),i=n.n(o),a=n(24067),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=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},u.apply(this,arguments)}function c(e){var t=e.children,n=e.data,o=void 0===n?[]:n,c=e.x,l=e.y,f=e.fill,d=void 0===f?"transparent":f,p=e.className,h=e.curve,v=e.innerRef,m=e.defined,y=void 0===m?function(){return!0}:m,g=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,s),b=(0,a.jv)({x:c,y:l,defined:y,curve:h});return t?r.createElement(r.Fragment,null,t({path:b})):r.createElement("path",u({ref:v,className:i()("visx-linepath",p),d:b(o)||"",fill:d,strokeLinecap:"round"},g))}},24067:function(e,t,n){"use strict";n.d(t,{Nb:function(){return d},SO:function(){return p},aJ:function(){return m},jv:function(){return h},kn:function(){return y},ve:function(){return v}});var r=n(10233),o=n(37633),i=n(25049),a=n(14119),s=n(73671),u=n(10098),c=n(81525),l=n(13659),f=n(12828);function d(e){var t=void 0===e?{}:e,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.startAngle,s=t.endAngle,u=t.padAngle,l=t.padRadius,f=(0,r.Z)();
163return null!=n&&(0,c.Z)(f.innerRadius,n),null!=o&&(0,c.Z)(f.outerRadius,o),null!=i&&(0,c.Z)(f.cornerRadius,i),null!=a&&(0,c.Z)(f.startAngle,a),null!=s&&(0,c.Z)(f.endAngle,s),null!=u&&(0,c.Z)(f.padAngle,u),null!=l&&(0,c.Z)(f.padRadius,l),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,i=t.x1,a=t.y,s=t.y0,u=t.y1,l=t.defined,f=t.curve,d=(0,o.Z)();return n&&(0,c.Z)(d.x,n),r&&(0,c.Z)(d.x0,r),i&&(0,c.Z)(d.x1,i),a&&(0,c.Z)(d.y,a),s&&(0,c.Z)(d.y0,s),u&&(0,c.Z)(d.y1,u),l&&d.defined(l),f&&d.curve(f),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,s=(0,i.Z)();return n&&(0,c.Z)(s.x,n),r&&(0,c.Z)(s.y,r),o&&s.defined(o),a&&s.curve(a),s}function v(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,o=t.padAngle,i=t.value,s=t.sort,u=t.sortValues,l=(0,a.Z)();return(null===s||null!=s)&&l.sort(s),(null===u||null!=u)&&l.sortValues(u),null!=i&&l.value(i),null!=o&&(0,c.Z)(l.padAngle,o),null!=n&&(0,c.Z)(l.startAngle,n),null!=r&&(0,c.Z)(l.endAngle,r),l}function m(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,o=t.defined,i=t.curve,a=(0,s.Z)();return n&&(0,c.Z)(a.angle,n),r&&(0,c.Z)(a.radius,r),o&&a.defined(o),i&&a.curve(i),a}function y(e){var t=e.keys,n=e.value,r=e.order,o=e.offset,i=(0,u.Z)();return t&&i.keys(t),n&&(0,c.Z)(i.value,n),r&&i.order((0,l.ZP)(r)),o&&i.offset((0,f.ZP)(o)),i}},81525:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},12828:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},ed:function(){return c},nW:function(){return u}});var r=n(57854),o=n(8655),i=n(29766),a=n(33585),s=n(22352),u={expand:r.Z,diverging:o.Z,none:i.Z,silhouette:a.Z,wiggle:s.Z},c=Object.keys(u);function l(e){return e&&u[e]||u.none}},13659:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},s2:function(){return c},un:function(){return u}});var r=n(36873),o=n(16522),i=n(51075),a=n(69681),s=n(35522),u={ascending:r.Z,descending:o.Z,insideout:i.Z,none:a.Z,reverse:s.Z},c=Object.keys(u);function l(e){return e&&u[e]||u.none}},15351:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,c=e.x1,l=e.y,f=e.y0,d=e.y1,p=e.data,h=void 0===p?[]:p,v=e.defined,m=void 0===v?function(){return!0}:v,y=e.className,g=e.curve,b=e.innerRef,_=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,a),w=(0,i.area)({x:n,x0:s,x1:c,y:l,y0:f,y1:d,defined:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:w})):r.default.createElement("path",u({ref:b,className:(0,o.default)("visx-area",y),d:w(h)||""},_))};var r=s(n(67294)),o=s(n(94184)),i=n(55882),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}},53282:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.from,n=void 0===t?{x:0,y:0}:t,a=e.to,u=void 0===a?{x:1,y:1}:a,c=e.fill,l=void 0===c?"transparent":c,f=e.className,d=e.innerRef,p=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,i),h=n.x===u.x||n.y===u.y;return r.default.createElement("line",s({ref:d,className:(0,o.default)("visx-line",f),x1:n.x,y1:n.y,x2:u.x,y2:u.y,fill:l,shapeRendering:h?"crispEdges":"auto"},p))};var r=a(n(67294)),o=a(n(94184)),i=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=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},s.apply(this,arguments)}},80167:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.data,s=void 0===n?[]:n,c=e.x,l=e.y,f=e.fill,d=void 0===f?"transparent":f,p=e.className,h=e.curve,v=e.innerRef,m=e.defined,y=void 0===m?function(){return!0}:m,g=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,a),b=(0,i.line)({x:c,y:l,defined:y,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",u({ref:v,className:(0,o.default)("visx-linepath",p),d:b(s)||"",fill:d,strokeLinecap:"round"},g))};var r=s(n(67294)),o=s(n(94184)),i=n(55882),a=["children","data","x","y","fill","className","curve","innerRef","defined"];
163function s(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(this,arguments)}},55882:function(e,t,n){"use strict";t.__esModule=!0,t.arc=function(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.startAngle,u=t.endAngle,c=t.padAngle,l=t.padRadius,f=(0,r.arc)();null!=n&&(0,o.default)(f.innerRadius,n);null!=i&&(0,o.default)(f.outerRadius,i);null!=a&&(0,o.default)(f.cornerRadius,a);null!=s&&(0,o.default)(f.startAngle,s);null!=u&&(0,o.default)(f.endAngle,u);null!=c&&(0,o.default)(f.padAngle,c);null!=l&&(0,o.default)(f.padRadius,l);return f},t.area=function(e){var t=void 0===e?{}:e,n=t.x,i=t.x0,a=t.x1,s=t.y,u=t.y0,c=t.y1,l=t.defined,f=t.curve,d=(0,r.area)();n&&(0,o.default)(d.x,n);i&&(0,o.default)(d.x0,i);a&&(0,o.default)(d.x1,a);s&&(0,o.default)(d.y,s);u&&(0,o.default)(d.y0,u);c&&(0,o.default)(d.y1,c);l&&d.defined(l);f&&d.curve(f);return d},t.line=function(e){var t=void 0===e?{}:e,n=t.x,i=t.y,a=t.defined,s=t.curve,u=(0,r.line)();n&&(0,o.default)(u.x,n);i&&(0,o.default)(u.y,i);a&&u.defined(a);s&&u.curve(s);return u},t.pie=function(e){var t=void 0===e?{}:e,n=t.startAngle,i=t.endAngle,a=t.padAngle,s=t.value,u=t.sort,c=t.sortValues,l=(0,r.pie)();(null===u||null!=u)&&l.sort(u);(null===c||null!=c)&&l.sortValues(c);null!=s&&l.value(s);null!=a&&(0,o.default)(l.padAngle,a);null!=n&&(0,o.default)(l.startAngle,n);null!=i&&(0,o.default)(l.endAngle,i);return l},t.radialLine=function(e){var t=void 0===e?{}:e,n=t.angle,i=t.radius,a=t.defined,s=t.curve,u=(0,r.radialLine)();n&&(0,o.default)(u.angle,n);i&&(0,o.default)(u.radius,i);a&&u.defined(a);s&&u.curve(s);return u},t.stack=function(e){var t=e.keys,n=e.value,s=e.order,u=e.offset,c=(0,r.stack)();t&&c.keys(t);n&&(0,o.default)(c.value,n);s&&c.order((0,i.default)(s));u&&c.offset((0,a.default)(u));return c};var r=n(83993),o=s(n(57181)),i=s(n(22532)),a=s(n(39168));function s(e){return e&&e.__esModule?e:{default:e}}},7118:function(e,t){"use strict";t.l8=function(e){return null==e?void 0:e[0]},t.xf=function(e){return null==e?void 0:e[1]}},24572:function(e,t){"use strict";t.Z=function(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}},57181:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){e(t)}},39168:function(e,t,n){"use strict";t.__esModule=!0,t.STACK_OFFSET_NAMES=t.STACK_OFFSETS=void 0,t.default=function(e){return e&&o[e]||o.none};var r=n(83993),o={expand:r.stackOffsetExpand,diverging:r.stackOffsetDiverging,none:r.stackOffsetNone,silhouette:r.stackOffsetSilhouette,wiggle:r.stackOffsetWiggle};t.STACK_OFFSETS=o;var i=Object.keys(o);t.STACK_OFFSET_NAMES=i},22532:function(e,t,n){"use strict";t.__esModule=!0,t.STACK_ORDER_NAMES=t.STACK_ORDERS=void 0,t.default=function(e){return e&&o[e]||o.none};var r=n(83993),o={ascending:r.stackOrderAscending,descending:r.stackOrderDescending,insideout:r.stackOrderInsideOut,none:r.stackOrderNone,reverse:r.stackOrderReverse};t.STACK_ORDERS=o;var i=Object.keys(o);t.STACK_ORDER_NAMES=i},55280:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294),o=n(28732),i=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function a(){return a=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},a.apply(this,arguments)}var s={overflow:"visible"};function u(e){var t=e.dx,n=void 0===t?0:t,u=e.dy,c=void 0===u?0:u,l=e.textAnchor,f=void 0===l?"start":l,d=e.innerRef,p=e.innerTextRef,h=(e.verticalAnchor,e.angle,e.lineHeight),v=void 0===h?"1em":h,m=(e.scaleToFit,e.capHeight,e.width,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,i)),y=m.x,g=void 0===y?0:y,b=m.fontSize,_=(0,o.Z)(e),w=_.wordsByLine
163s,x=_.startDy,k=_.transform;return r.createElement("svg",{ref:d,x:n,y:c,fontSize:b,style:s},w.length>0?r.createElement("text",a({ref:p,transform:k},m,{textAnchor:f}),w.map((function(e,t){return r.createElement("tspan",{key:t,x:g,dy:0===t?x:v},e.words.join(" "))}))):null)}},28732:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(67294),o=n(26488),i=n.n(o),a=n(86275),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function u(e){return"number"===typeof e}function c(e){return"number"===typeof e&&Number.isFinite(e)||"string"===typeof e}function l(e){var t=e.verticalAnchor,n=void 0===t?"end":t,o=e.scaleToFit,l=void 0!==o&&o,f=e.angle,d=e.width,p=e.lineHeight,h=void 0===p?"1em":p,v=e.capHeight,m=void 0===v?"0.71em":v,y=e.children,g=e.style,b=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,s),_=b.x,w=void 0===_?0:_,x=b.y,k=void 0===x?0:x,S=!c(w)||!c(k),E=(0,r.useMemo)((function(){return{wordsWithWidth:(null==y?[]:y.toString().split(/(?:(?!\u00A0+)\s+)/)).map((function(e){return{word:e,wordWidth:(0,a.Z)(e,g)||0}})),spaceWidth:(0,a.Z)("\xa0",g)||0}}),[y,g]),O=E.wordsWithWidth,P=E.spaceWidth,T=(0,r.useMemo)((function(){return S?[]:d||l?O.reduce((function(e,t){var n=t.word,r=t.wordWidth,o=e[e.length-1];if(o&&(null==d||l||(o.width||0)+r+P<d))o.words.push(n),o.width=o.width||0,o.width+=r+P;else{var i={words:[n],width:r};e.push(i)}return e}),[]):[{words:null==y?[]:y.toString().split(/(?:(?!\u00A0+)\s+)/)}]}),[S,d,l,y,O,P]),C=(0,r.useMemo)((function(){return S?"":"start"===n?i()("calc("+m+")"):"middle"===n?i()("calc("+(T.length-1)/2+" * -"+h+" + ("+m+" / 2))"):i()("calc("+(T.length-1)+" * -"+h+")")}),[S,n,m,T.length,h]),A=(0,r.useMemo)((function(){var e=[];if(S)return"";if(u(w)&&u(k)&&u(d)&&l&&T.length>0){var t=T[0].width||1,n="shrink-only"===l?Math.min(d/t,1):d/t,r=n,o=w-n*w,i=k-r*k;e.push("matrix("+n+", 0, 0, "+r+", "+o+", "+i+")")}return f&&e.push("rotate("+f+", "+w+", "+k+")"),e.length>0?e.join(" "):""}),[S,w,k,d,l,T,f]);return{wordsByLines:T,startDy:C,transform:A}}},75733:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return o.Z},useText:function(){return i.Z}});var r=n(55280),o=n(86275),i=n(28732)},86275:function(e,t,n){"use strict";var r=n(88306),o=n.n(r),i="__react_svg_text_measurement_id";t.Z=o()((function(e,t){try{var n=document.getElementById(i);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",i),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(o){return null}}),(function(e,t){return e+"_"+JSON.stringify(t)}))},27794:function(e,t,n){"use strict";t.Z=function(e){var t=e.dx,n=void 0===t?0:t,a=e.dy,c=void 0===a?0:a,l=e.textAnchor,f=void 0===l?"start":l,d=e.innerRef,p=e.innerTextRef,h=(e.verticalAnchor,e.angle,e.lineHeight),v=void 0===h?"1em":h,m=(e.scaleToFit,e.capHeight,e.width,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,i)),y=m.x,g=void 0===y?0:y,b=m.fontSize,_=(0,o.default)(e),w=_.wordsByLines,x=_.startDy,k=_.transform;return r.default.createElement("svg",{ref:d,x:n,y:c,fontSize:b,style:u},w.length>0?r.default.createElement("text",s({ref:p,transform:k},m,{textAnchor:f}),w.map((function(e,t){return r.default.createElement("tspan",{key:t,x:g,dy:0===t?x:v},e.words.join(" "))}))):null)};var r=a(n(67294)),o=a(n(77139)),i=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=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},s.apply(this,arguments)}var u={overflow:"visible"}},77139:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.verticalAnchor,n=void 0===t?"end":t,s=e.scaleToFit,l=void 0!==s&&s,f=e.angle,d=e.width,p=e.lineHeight,h=void 0===p?"1em":p,v=e.capHeight,m=void 0===v?"0.71em":v,y=e.children,g=e.style,b=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}
163(e,a),_=b.x,w=void 0===_?0:_,x=b.y,k=void 0===x?0:x,S=!c(w)||!c(k),E=(0,r.useMemo)((function(){return{wordsWithWidth:(null==y?[]:y.toString().split(/(?:(?!\u00A0+)\s+)/)).map((function(e){return{word:e,wordWidth:(0,i.default)(e,g)||0}})),spaceWidth:(0,i.default)("\xa0",g)||0}}),[y,g]),O=E.wordsWithWidth,P=E.spaceWidth,T=(0,r.useMemo)((function(){return S?[]:d||l?O.reduce((function(e,t){var n=t.word,r=t.wordWidth,o=e[e.length-1];if(o&&(null==d||l||(o.width||0)+r+P<d))o.words.push(n),o.width=o.width||0,o.width+=r+P;else{var i={words:[n],width:r};e.push(i)}return e}),[]):[{words:null==y?[]:y.toString().split(/(?:(?!\u00A0+)\s+)/)}]}),[S,d,l,y,O,P]),C=(0,r.useMemo)((function(){return S?"":"start"===n?(0,o.default)("calc("+m+")"):"middle"===n?(0,o.default)("calc("+(T.length-1)/2+" * -"+h+" + ("+m+" / 2))"):(0,o.default)("calc("+(T.length-1)+" * -"+h+")")}),[S,n,m,T.length,h]),A=(0,r.useMemo)((function(){var e=[];if(S)return"";if(u(w)&&u(k)&&u(d)&&l&&T.length>0){var t=T[0].width||1,n="shrink-only"===l?Math.min(d/t,1):d/t,r=n,o=w-n*w,i=k-r*k;e.push("matrix("+n+", 0, 0, "+r+", "+o+", "+i+")")}return f&&e.push("rotate("+f+", "+w+", "+k+")"),e.length>0?e.join(" "):""}),[S,w,k,d,l,T,f]);return{wordsByLines:T,startDy:C,transform:A}};var r=n(67294),o=s(n(26488)),i=s(n(13489)),a=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return"number"===typeof e}function c(e){return"number"===typeof e&&Number.isFinite(e)||"string"===typeof e}},13489:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(88306))&&r.__esModule?r:{default:r};var i="__react_svg_text_measurement_id";var a=(0,o.default)((function(e,t){try{var n=document.getElementById(i);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",i),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(o){return null}}),(function(e,t){return e+"_"+JSON.stringify(t)}));t.default=a},83613:function(e,t,n){"use strict";n.r(t),n.d(t,{AnimatedAnnotation:function(){return pr},AnimatedAreaSeries:function(){return Ts},AnimatedAreaStack:function(){return As},AnimatedAxis:function(){return Jr},AnimatedBarGroup:function(){return $s},AnimatedBarSeries:function(){return Us},AnimatedBarStack:function(){return Hs},AnimatedGlyphSeries:function(){return Qs},AnimatedGrid:function(){return so},AnimatedLineSeries:function(){return eu},Annotation:function(){return w},AnnotationCircleSubject:function(){return zr},AnnotationConnector:function(){return Lr},AnnotationLabel:function(){return Rr},AnnotationLineSubject:function(){return $r},AreaSeries:function(){return wa},AreaStack:function(){return Ua},Axis:function(){return Po},BarGroup:function(){return ts},BarSeries:function(){return us},BarStack:function(){return hs},DataContext:function(){return p},DataProvider:function(){return Vi},EventEmitterContext:function(){return vi},EventEmitterProvider:function(){return yi},GlyphSeries:function(){return ys},Grid:function(){return jo},LineSeries:function(){return xs},ThemeContext:function(){return Di},ThemeProvider:function(){return tu},Tooltip:function(){return di},TooltipContext:function(){return ni},TooltipProvider:function(){return Si},XYChart:function(){return ia},allColors:function(){return Oi},buildChartTheme:function(){return Ri},darkTheme:function(){return nu},defaultColors:function(){return Ci},grayColors:function(){return Pi},lightTheme:function(){return Mi},useEventEmitter:function(){return mi}});var r=n(45697),o=n.n(r),i=n(67294),a=n(67757),s=(0,i.createContext)({});function u(e){var t=e.x,n=e.y,r=e.dx,o=e.dy,a=e.children,u=(0,i.useMemo)((function(){return{x:t,y:n,dx:r,dy:o}}),[t,n,r,o]);return i.createElement(s.Provider,{value:u},a)}function c(){return c=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},c.apply(this,arguments)}
163u.propTypes={children:o().node.isRequired};var l={r:10,fill:"transparent",stroke:"#777",strokeDasharray:"4,2",strokeWidth:2};function f(e){var t=e.canEditLabel,n=void 0===t||t,r=e.canEditSubject,o=void 0===r||r,s=e.children,f=e.dx,d=void 0===f?0:f,p=e.dy,h=void 0===p?0:p,v=e.height,m=e.labelDragHandleProps,y=e.onDragEnd,g=e.onDragMove,b=e.onDragStart,_=e.subjectDragHandleProps,w=e.width,x=e.x,k=void 0===x?0:x,S=e.y,E=void 0===S?0:S,O=(0,i.useRef)(),P=(0,i.useRef)(),T=(0,i.useCallback)((function(e){var t,n,r,o,i,a,s,u,c=e.event;b&&b({event:c,x:k+(null!=(t=null==(n=O.current)?void 0:n.dx)?t:0),y:E+(null!=(r=null==(o=O.current)?void 0:o.dy)?r:0),dx:d+(null!=(i=null==(a=P.current)?void 0:a.dx)?i:0),dy:h+(null!=(s=null==(u=P.current)?void 0:u.dy)?s:0)})}),[d,h,b,k,E]),C=(0,i.useCallback)((function(e){var t,n,r,o,i,a,s,u,c=e.event;g&&g({event:c,x:k+(null!=(t=null==(n=O.current)?void 0:n.dx)?t:0),y:E+(null!=(r=null==(o=O.current)?void 0:o.dy)?r:0),dx:d+(null!=(i=null==(a=P.current)?void 0:a.dx)?i:0),dy:h+(null!=(s=null==(u=P.current)?void 0:u.dy)?s:0)})}),[d,h,g,k,E]),A=(0,i.useCallback)((function(e){var t,n,r,o,i,a,s,u,c=e.event;y&&y({event:c,x:k+(null!=(t=null==(n=O.current)?void 0:n.dx)?t:0),y:E+(null!=(r=null==(o=O.current)?void 0:o.dy)?r:0),dx:d+(null!=(i=null==(a=P.current)?void 0:a.dx)?i:0),dy:h+(null!=(s=null==(u=P.current)?void 0:u.dy)?s:0)})}),[d,h,y,k,E]),j=(0,a.Z)({onDragStart:T,onDragMove:C,onDragEnd:A,x:k,y:E}),R=(0,a.Z)({onDragStart:T,onDragMove:C,onDragEnd:A,x:d,y:h});return O.current=j,P.current=R,i.createElement(i.Fragment,null,i.createElement(u,{x:k+j.dx,y:E+j.dy,dx:d+R.dx,dy:h+R.dy},s),j.isDragging&&i.createElement("rect",{width:w,height:v,onMouseMove:j.dragMove,onMouseUp:j.dragEnd,fill:"transparent"}),o&&i.createElement("circle",c({cx:k,cy:E,transform:"translate("+j.dx+","+j.dy+")",onMouseMove:j.dragMove,onMouseUp:j.dragEnd,onMouseDown:j.dragStart,onTouchStart:j.dragStart,onTouchMove:j.dragMove,onTouchEnd:j.dragEnd,cursor:j.isDragging?"grabbing":"grab"},l,_)),R.isDragging&&i.createElement("rect",{width:w,height:v,onMouseMove:R.dragMove,onMouseUp:R.dragEnd,fill:"transparent"}),n&&i.createElement("circle",c({cx:k+j.dx+d,cy:E+j.dy+h,transform:"translate("+R.dx+","+R.dy+")",onMouseMove:R.dragMove,onMouseUp:R.dragEnd,onMouseDown:R.dragStart,onTouchStart:R.dragStart,onTouchMove:R.dragMove,onTouchEnd:R.dragEnd,cursor:R.isDragging?"grabbing":"grab"},l,m)))}f.propTypes={width:o().number.isRequired,height:o().number.isRequired,children:o().node.isRequired,canEditLabel:o().bool,canEditSubject:o().bool,onDragStart:o().func,onDragMove:o().func,onDragEnd:o().func};var d=n(54371),p=i.createContext({});function h(e){var t;return e&&"bandwidth"in e&&null!=(t=null==e?void 0:e.bandwidth())?t:0}function v(e){return null!=e&&"number"===typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}var m=["AnnotationComponent","children","datum","dataKey","xAccessor","yAccessor","dx","dy"];function y(){return y=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},y.apply(this,arguments)}function g(e){var t,n,r=e.AnnotationComponent,o=e.children,a=e.datum,s=e.dataKey,u=e.xAccessor,c=e.yAccessor,l=e.dx,f=void 0===l?0:l,g=e.dy,b=void 0===g?0:g,_=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,m),w=(0,i.useContext)(p)||{},x=w.innerHeight,k=w.innerWidth,S=w.margin,E=w.xScale,O=w.yScale,P=w.dataRegistry,T=(0,i.useMemo)((function(){return E?h(E):0}),[E]),C=(0,i.useMemo)((function(){return O?h(O):0}),[O]);if((!u||!c)&&!s)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var A=u&&c||null==s?null:null==P?void 0:P.get(s),j=u||(null==A?void 0:A.xAccessor),R=c||(null==A?void 0:A.yAccessor);if(!E||!O||!k||!x||!j||!R||!S)return null;var M=(null!=(t=(0,d.Z)(E(j(a))))?t:NaN)+T/2,D=(null!=(n=(0,d.Z)(O(R(a))))?n:NaN)+C/2,I=M+f+16>S.left+k?-f:f,L=D+b+16>S.top+x?-b:b;return v(M)&&v(D)?i.createElement(r,y({width:k,height:x},_,{x:M,y:D,dx:I,dy:L}),o):null}g.propTypes={dataKey:o().string,xAccessor:o().func,yAccessor:o().func};var b=["editable"];function _(){return _=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},_.apply(this,arguments)}function w(e){var t=e.editable,n=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,b);return i.createElement(g,_({AnnotationComponent:t?f:u},n))}w.propTypes={editable:o().bool};var x=Object.defineProperty,k={};((e,t)=>
163{for(var n in t)x(e,n,{get:t[n],enumerable:!0})})(k,{assign:()=>ne,colors:()=>J,createStringInterpolator:()=>Y,skipAnimation:()=>ee,to:()=>K,willAdvance:()=>te});var S=Z(),E=e=>L(e,S),O=Z();E.write=e=>L(e,O);var P=Z();E.onStart=e=>L(e,P);var T=Z();E.onFrame=e=>L(e,T);var C=Z();E.onFinish=e=>L(e,C);var A=[];E.setTimeout=(e,t)=>{const n=E.now()+t,r=()=>{const e=A.findIndex((e=>e.cancel==r));~e&&A.splice(e,1),D-=~e?1:0},o={time:n,handler:e,cancel:r};return A.splice(j(n),0,o),D+=1,N(),o};var j=e=>~(~A.findIndex((t=>t.time>e))||~A.length);E.cancel=e=>{P.delete(e),T.delete(e),C.delete(e),S.delete(e),O.delete(e)},E.sync=e=>{I=!0,E.batchedUpdates(e),I=!1},E.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,E.onStart(n)}return r.handler=e,r.cancel=()=>{P.delete(n),t=null},r};var R="undefined"!=typeof window?window.requestAnimationFrame:()=>{};E.use=e=>R=e,E.now="undefined"!=typeof performance?()=>performance.now():Date.now,E.batchedUpdates=e=>e(),E.catch=console.error,E.frameLoop="always",E.advance=()=>{"demand"!==E.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):F()};var M=-1,D=0,I=!1;function L(e,t){I?(t.delete(e),e(0)):(t.add(e),N())}function N(){M<0&&(M=0,"demand"!==E.frameLoop&&R(B))}function B(){~M&&(R(B),E.batchedUpdates(F))}function F(){const e=M;M=E.now();const t=j(M);t&&(z(A.splice(0,t),(e=>e.handler())),D-=t),D?(P.flush(),S.flush(e?Math.min(64,M-e):16.667),T.flush(),O.flush(),C.flush()):M=-1}function Z(){let e=new Set,t=e;return{add(n){D+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(D-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,D-=t.size,z(t,(t=>t(n)&&e.add(t))),D+=e.size,t=e)}}}function z(e,t){e.forEach((e=>{try{t(e)}catch(n){E.catch(n)}}))}function V(){}var U={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,und:e=>void 0===e};function W(e,t){if(U.arr(e)){if(!U.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var H=(e,t)=>e.forEach(t);function q(e,t,n){if(U.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var $=e=>U.und(e)?[]:U.arr(e)?e:[e];function G(e,t){if(e.size){const n=Array.from(e);e.clear(),H(n,t)}}var Y,K,X=(e,...t)=>G(e,(e=>e(...t))),Q=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),J=null,ee=!1,te=V,ne=e=>{e.to&&(K=e.to),e.now&&(E.now=e.now),void 0!==e.colors&&(J=e.colors),null!=e.skipAnimation&&(ee=e.skipAnimation),e.createStringInterpolator&&(Y=e.createStringInterpolator),e.requestAnimationFrame&&E.use(e.requestAnimationFrame),e.batchedUpdates&&(E.batchedUpdates=e.batchedUpdates),e.willAdvance&&(te=e.willAdvance),e.frameLoop&&(E.frameLoop=e.frameLoop)},re=new Set,oe=[],ie=[],ae=0,se={get idle(){return!re.size&&!oe.length},start(e){ae>e.priority?(re.add(e),E.onStart(ue)):(ce(e),E(fe))},advance:fe,sort(e){if(ae)E.onFrame((()=>se.sort(e)));else{const t=oe.indexOf(e);~t&&(oe.splice(t,1),le(e))}},clear(){oe=[],re.clear()}};function ue(){re.forEach(ce),re.clear(),E(fe)}function ce(e){oe.includes(e)||le(e)}function le(e){oe.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(oe,(t=>t.priority>e.priority)),0,e)}function fe(e){const t=ie;for(let n=0;n<oe.length;n++){const r=oe[n];ae=r.priority,r.idle||(te(r),r.advance(e),r.idle||t.push(r))}return ae=0,(ie=oe).length=0,(oe=t).length>0}var de="[-+]?\\d*\\.?\\d+",pe=de+"%";function he(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ve=new RegExp("rgb"+he(de,de,de)),me=new RegExp("rgba"+he(de,de,de,de)),ye=new RegExp("hsl"+he(de,pe,pe)),ge=new RegExp("hsla"+he(de,pe,pe,de)),be=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,we=/^#([0-9a-fA-F]{6})$/,xe=/^#([0-9a-fA-F]{8})$/;function ke(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Se(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ke(o,r,e+1/3),a=ke(o,r,e),s=ke(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Ee(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Oe(e){return(parseFloat(e)%360+360)%360/360}function Pe(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Te(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ce(e){let t=function(e){let t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=we.exec(e))?parseInt(t[1]+"ff",16)>>>0:J&&void 0!==J[e]?J[e]:(t=ve.exec(e))?(Ee(t[1])<<24|Ee(t[2])<<16|Ee(t[3])<<8|255)>>>0:(t=me.exec(e))?(Ee(t[1])<<24|Ee(t[2])<<16|Ee(t[3])<<8|Pe(t[4]))>>>0:(t=be.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>
1630:(t=xe.exec(e))?parseInt(t[1],16)>>>0:(t=_e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ye.exec(e))?(255|Se(Oe(t[1]),Te(t[2]),Te(t[3])))>>>0:(t=ge.exec(e))?(Se(Oe(t[1]),Te(t[2]),Te(t[3]))|Pe(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ae=(e,t,n)=>{if(U.fun(e))return e;if(U.arr(e))return Ae({range:e,output:t,extrapolate:n});if(U.str(e.output[0]))return Y(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,u){let c=u?u(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],u,a,s,r.map)}};var je=1.70158,Re=1.525*je,Me=je+1,De=2*Math.PI/3,Ie=2*Math.PI/4.5,Le=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ne={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Me*e*e*e-je*e*e,easeOutBack:e=>1+Me*Math.pow(e-1,3)+je*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Re)/2:(Math.pow(2*e-2,2)*((Re+1)*(2*e-2)+Re)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*De),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*De)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ie)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ie)/2+1,easeInBounce:e=>1-Le(1-e),easeOutBounce:Le,easeInOutBounce:e=>e<.5?(1-Le(1-2*e))/2:(1+Le(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return i=0,a=1,s=o/e,Math.min(Math.max(s,i),a);var i,a,s}},Be=Symbol.for("FluidValue.get"),Fe=Symbol.for("FluidValue.observers"),Ze=e=>Boolean(e&&e[Be]),ze=e=>e&&e[Be]?e[Be]():e,Ve=e=>e[Fe]||null;function Ue(e,t){const n=e[Fe];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var We=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");He(this,e)}},He=(e,t)=>Ye(e,Be,t);function qe(e,t){if(e[Be]){let n=e[Fe];n||Ye(e,Fe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $e(e,t){const n=e[Fe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Fe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ge,Ye=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ke=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Xe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Qe=new RegExp(`(${Ke.source})(%|[a-z]+)`,"i"),Je=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,et=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,tt=e=>{const[t,n]=nt(e);if(!t||Q())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&et.test(n)?tt(n):n||e},nt=e=>{const t=et.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},rt=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ot=e=>{Ge||(Ge=J?new RegExp(`(${Object.keys(J).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>ze(e).replace(et,tt).replace(Xe,Ce).replace(Ge,Ce))),n=t.map((e=>e.match(Ke).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Ae({...e,output:t})));return e=>{const n=!Qe.test(t[0])&&t.find((e=>Qe.test(e)))?.replace(Ke,"");let o=0;return t[0].replace(Ke,(()=>`${r[o++](e)}${n||""}`)).replace(Je,rt)}},it="react-spring: ",at=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${it}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},st=at(console.warn);var ut=at(console.warn);function ct(e){return U.str(e)&&("#"==e[0]||/\d/.test(e)||!Q()&&et.test(e)||e in(J||{}))}var lt=Q()?i.useEffect:i.useLayoutEffect;function ft(){const e=(0,i.useState)()[1],t=(()=>{const e=(0,i.useRef)(!1);return lt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var dt=e=>(0,i.useEffect)(e,pt),pt=[];function ht(e){const t=(0,i.useRef)();return(0,i.useEffect)((()=>{t.current=e})),t.current}var vt=Symbol.for("Animated:node"),mt=e=>e&&e[vt],yt=(e,t)=>
163{return n=e,r=vt,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},gt=e=>e&&e[vt]&&e[vt].getPayload(),bt=class{constructor(){yt(this,this)}getPayload(){return this.payload||[]}},_t=class extends bt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,U.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _t(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return U.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,U.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},wt=class extends _t{constructor(e){super(0),this._string=null,this._toString=Ae({output:[e,e]})}static create(e){return new wt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(U.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ae({output:[this.getValue(),e]})),this._value=0,super.reset()}},xt={dependencies:null},kt=class extends bt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return q(this.source,((n,r)=>{var o;(o=n)&&o[vt]===o?t[r]=n.getValue(e):Ze(n)?t[r]=ze(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&H(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return q(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xt.dependencies&&Ze(e)&&xt.dependencies.add(e);const t=gt(e);t&&H(t,(e=>this.add(e)))}},St=class extends kt{constructor(e){super(e)}static create(e){return new St(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Et)),!0)}};function Et(e){return(ct(e)?wt:_t).create(e)}function Ot(e){const t=mt(e);return t?t.constructor:U.arr(e)?St:ct(e)?wt:_t}var Pt=(e,t)=>{const n=!U.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,i.forwardRef)(((r,o)=>{const a=(0,i.useRef)(null),s=n&&(0,i.useCallback)((e=>{a.current=function(e,t){e&&(U.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,c]=function(e,t){const n=new Set;xt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
163);return e=new kt(e),xt.dependencies=null,[e,n]}(r,t),l=ft(),f=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&l()},d=new Tt(f,c),p=(0,i.useRef)();lt((()=>(p.current=d,H(c,(e=>qe(e,d))),()=>{p.current&&(H(p.current.deps,(e=>$e(e,p.current))),E.cancel(p.current.update))}))),(0,i.useEffect)(f,[]),dt((()=>()=>{const e=p.current;H(e.deps,(t=>$e(t,e)))}));const h=t.getComponentProps(u.getValue());return i.createElement(e,{...h,ref:s})}))},Tt=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&E.write(this.update)}};var Ct=Symbol.for("AnimatedComponent"),At=e=>U.str(e)?e:e&&U.str(e.displayName)?e.displayName:U.fun(e)&&e.name||null;function jt(e,...t){return U.fun(e)?e(...t):e}var Rt=(e,t)=>!0===e||!!(t&&e&&(U.fun(e)?e(t):$(e).includes(t))),Mt=(e,t)=>U.obj(e)?t&&e[t]:e,Dt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,It=e=>e,Lt=(e,t=It)=>{let n=Nt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);U.und(n)||(r[o]=n)}return r},Nt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Bt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ft(e){const t=function(e){const t={};let n=0;if(q(e,((e,r)=>{Bt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return q(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function Zt(e){return e=ze(e),U.arr(e)?e.map(Zt):ct(e)?k.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zt(e){for(const t in e)return!0;return!1}function Vt(e){return U.fun(e)||U.arr(e)&&U.obj(e[0])}function Ut(e,t){e.ref?.delete(e),t?.delete(e)}function Wt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ht={tension:170,friction:26,mass:1,damping:1,easing:Ne.linear,clamp:!1};function qt(e,t){if(U.und(t.decay)){const n=!U.und(t.tension)||!U.und(t.friction);!n&&U.und(t.frequency)&&U.und(t.damping)&&U.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var $t=[];function Gt(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let u,c,l=Rt(n.cancel??r?.cancel,t);if(l)p();else{U.und(n.pause)||(o.paused=Rt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||Rt(e,t)),u=jt(n.delay||0,t),e?(o.resumeQueue.add(d),i.pause()):(i.resume(),d())}function f(){o.resumeQueue.add(d),o.timeouts.delete(c),c.cancel(),u=c.time-E.now()}function d(){u>0&&!k.skipAnimation?(o.delayed=!0,c=E.setTimeout(p,u),o.pauseQueue.add(f),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(c),e<=(o.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},a)}catch(t){s(t)}}}))}var Yt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qt(e.get()):t.every((e=>e.noop))?Kt(e.get()):Xt(e.get(),t.every((e=>e.finished))),Kt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Xt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qt=e=>({value:e,cancelled:!0,finished:!1});function Jt(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:u}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Lt(t,((e,t)=>"onRest"===t?void 0:e));let l,f;const d=new Promise(((e,t)=>(l=e,f=t))),p=e=>{const t=o<=(n.cancelId||0)&&Qt(r)||o!==n.asyncId&&Xt(r,!1);if(t)throw e.result=t,f(e),e},h=(e,t)=>{const i=new tn,a=new nn;return(async()=>{if(k.skipAnimation)throw en(n),a.result=Xt(r,!1),f(a),a;p(i);const s=U.obj(e)?{...e}:{...t,to:e};s.parentId=o,q(c,((e,t)=>{U.und(s[t])&&(s[t]=e)}));const u=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),u})()};let v;if(k.skipAnimation)return en(n),Xt(r,!1);try{let t;t=U.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(l),d]),v=Xt(r.get(),!0,!1)}catch(m){if(m instanceof tn)v=m.result;else{if(!(m instanceof nn))throw m;v=m.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return U.fun(a)&&E.batchedUpdates((()=>{a(v,r,r.item)})),v})():u}function en(e,t){G(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}
163var tn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},nn=class extends Error{constructor(){super("SkipAnimationSignal")}},rn=e=>e instanceof an,on=1,an=class extends We{constructor(){super(...arguments),this.id=on++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=mt(this);return e&&e.getValue()}to(...e){return k.to(this,e)}interpolate(...e){return st(`${it}The "interpolate" function is deprecated in v9 (use "to" instead)`),k.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ue(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||se.sort(this),Ue(this,{type:"priority",parent:this,priority:e})}},sn=Symbol.for("SpringPhase"),un=e=>(1&e[sn])>0,cn=e=>(2&e[sn])>0,ln=e=>(4&e[sn])>0,fn=(e,t)=>t?e[sn]|=3:e[sn]&=-3,dn=(e,t)=>t?e[sn]|=4:e[sn]&=-5,pn=class extends an{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=$t,this.toValues=null,this.fromValues=$t,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Ht)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!U.und(e)||!U.und(t)){const n=U.obj(e)?{...e}:{...t,from:e};U.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(cn(this)||this._state.asyncTo)||ln(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=mt(this);return e instanceof _t?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return un(this)}get isAnimating(){return cn(this)}get isPaused(){return ln(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=gt(r.to);!a&&Ze(r.to)&&(o=$(ze(r.to))),r.values.forEach(((s,u)=>{if(s.done)return;const c=s.constructor==wt?1:a?a[u].lastPosition:o[u];let l=r.immediate,f=c;if(!l){if(f=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[u],o=null!=s.v0?s.v0:s.v0=U.arr(i.velocity)?i.velocity[u]:i.velocity;let a;const d=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(U.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);f=n+o/(1-e)*(1-r),l=Math.abs(s.lastPosition-f)<=d,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,u=!U.und(r),p=n==c?s.v0>0:n<c;let h,v=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(h=Math.abs(a)>t,h||(l=Math.abs(c-f)<=d,!l));++e){u&&(v=f==c||f>c==p,v&&(a=-a*r,f=c));a+=(1e-6*-i.tension*(f-c)+.001*-i.friction*a)/i.mass*m,f+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),f=n+i.easing(r)*(c-n),a=(f-s.lastPosition)/e,l=1==r}s.lastVelocity=a,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),l=!0)}a&&!a[u].done&&(l=!1),l?s.done=!0:t=!1,s.setValue(f,i.round)&&(n=!0)}));const s=mt(this),u=s.getValue();if(t){const e=ze(r.to);u===e&&!n||i.decay?n&&i.decay&&this._onChange(u):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return E.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cn(this)){const{to:e,config:t}=this.animation;E.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return U.und(e)?(n=this.queue||[],this.queue=[]):n=[U.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>
163this._update(e)))).then((e=>Yt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),en(this._state,e&&this._lastCallId),E.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=U.obj(n)?n[t]:n,(null==n||Vt(n))&&(n=void 0),r=U.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return un(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),U.und(r)?mt(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Lt(e,((e,t)=>/^on/.test(t)?Mt(e,n):e))),_n(this,e,"onProps"),wn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Gt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ln(this)||(dn(this,!0),X(i.pauseQueue),wn(this,"onPause",Xt(this,hn(this,this.animation.to)),this))},resume:()=>{ln(this)&&(dn(this,!1),cn(this)&&this._resume(),X(i.resumeQueue),wn(this,"onResume",Xt(this,hn(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=vn(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qt(this));const r=!U.und(e.to),o=!U.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(Qt(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:u,from:c}=s;let{to:l=u,from:f=c}=e;!o||r||t.default&&!U.und(l)||(l=f),t.reverse&&([l,f]=[f,l]);const d=!W(f,c);d&&(s.from=f),f=ze(f);const p=!W(l,u);p&&this._focus(l);const h=Vt(t.to),{config:v}=s,{decay:m,velocity:y}=v;(r||o)&&(v.velocity=0),t.config&&!h&&function(e,t,n){n&&(qt(n={...n},t),t={...n,...t}),qt(e,t),Object.assign(e,t);for(const a in Ht)null==e[a]&&(e[a]=Ht[a]);let{frequency:r,damping:o}=e;const{mass:i}=e;U.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(v,jt(t.config,i),t.config!==a.config?jt(a.config,i):void 0);let g=mt(this);if(!g||U.und(l))return n(Xt(this,!0));const b=U.und(t.reset)?o&&!t.default:!U.und(f)&&Rt(t.reset,i),_=b?f:this.get(),w=Zt(l),x=U.num(w)||U.arr(w)||ct(w),k=!h&&(!x||Rt(a.immediate||t.immediate,i));if(p){const e=Ot(l);if(e!==g.constructor){if(!k)throw Error(`Cannot animate between ${g.constructor.name} and ${e.name}, as the "to" prop suggests`);g=this._set(w)}}const S=g.constructor;let O=Ze(l),P=!1;if(!O){const e=b||!un(this)&&d;(p||e)&&(P=W(Zt(_),w),O=!P),(W(s.immediate,k)||k)&&W(v.decay,m)&&W(v.velocity,y)||(O=!0)}if(P&&cn(this)&&(s.changed&&!b?O=!0:O||this._stop(u)),!h&&((O||Ze(u))&&(s.values=g.getPayload(),s.toValues=Ze(l)?null:S==wt?[1]:$(w)),s.immediate!=k&&(s.immediate=k,k||b||this._set(u)),O)){const{onRest:e}=s;H(bn,(e=>_n(this,t,e)));const r=Xt(this,hn(this,u));X(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&E.batchedUpdates((()=>{s.changed=!b,e?.(r,this),b?jt(a.onRest,r):s.onStart?.(r,this)}))}b&&this._set(_),h?n(Jt(t.to,t,this._state,this)):O?this._start():cn(this)&&!p?this._pendingCalls.add(n):n(Kt(_))}_focus(e){const t=this.animation;e!==t.to&&(Ve(this)&&this._detach(),t.to=e,Ve(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ze(t)&&(qe(t,this),rn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ze(e)&&$e(e,this)}_set(e,t=!0){const n=ze(e);if(!U.und(n)){const e=mt(this);if(!e||!W(n,e.getValue())){const r=Ot(n);e&&e.constructor==r?e.setValue(n):yt(this,r.create(n)),e&&E.batchedUpdates((()=>{this._onChange(n,t)}))}}return mt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,wn(this,"onStart",Xt(this,hn(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),jt(this.animation.onChange,e,this)),jt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;mt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),cn(this)||(fn(this,!0),ln(this)||this._resume())}_resume(){k.skipAnimation?this.finish():se.start(this)}_stop(e,t){if(cn(this)){fn(this,!1);const n=this.animation;H(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ue(this,{type:"idle",parent:this});const r=t?Qt(this.get()):Xt(this.get(),hn(this,e??n.to));
163X(this._pendingCalls,r),n.changed&&(n.changed=!1,wn(this,"onRest",r,this))}}};function hn(e,t){const n=Zt(t);return W(Zt(e.get()),n)}function vn(e,t=e.loop,n=e.to){const r=jt(t);if(r){const o=!0!==r&&Ft(r),i=(o||e).reverse,a=!o||o.reset;return mn({...e,loop:t,default:!1,pause:void 0,to:!i||Vt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function mn(e){const{to:t,from:n}=e=Ft(e),r=new Set;return U.obj(t)&&gn(t,r),U.obj(n)&&gn(n,r),e.keys=r.size?Array.from(r):null,e}function yn(e){const t=mn(e);return U.und(t.default)&&(t.default=Lt(t)),t}function gn(e,t){q(e,((e,n)=>null!=e&&t.add(n)))}var bn=["onStart","onRest","onChange","onPause","onResume"];function _n(e,t,n){e.animation[n]=t[n]!==Dt(t,n)?Mt(t[n],e.key):void 0}function wn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xn=["onStart","onChange","onRest"],kn=1,Sn=class{constructor(e,t){this.id=kn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];U.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(mn(e)),this}start(e){let{queue:t}=this;return e?t=$(e).map(mn):this.queue=[],this._flush?this._flush(this,t):(jn(this,t),En(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;H($(t),(t=>n[t].stop(!!e)))}else en(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(U.und(e))this.start({pause:!0});else{const t=this.springs;H($(e),(e=>t[e].pause()))}return this}resume(e){if(U.und(e))this.start({pause:!1});else{const t=this.springs;H($(e),(e=>t[e].resume()))}return this}each(e){q(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,G(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&G(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,G(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}E.onFrame(this._onFrame)}};function En(e,t){return Promise.all(t.map((t=>On(e,t)))).then((t=>Yt(e,t)))}async function On(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:u}=t,c=U.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const l=U.arr(o)||U.fun(o)?o:void 0;l?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):H(xn,(n=>{const r=t[n];if(U.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const f=e._state;t.pause===!f.paused?(f.paused=t.pause,X(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const d=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Dt(t,"cancel");(l||p&&f.asyncId)&&d.push(Gt(++e._lastAsyncId,{props:t,state:f,actions:{pause:V,resume:V,start(t,n){p?(en(f,e._lastAsyncId),n(Qt(e))):(t.onRest=s,n(Jt(l,t,f,e)))}}})),f.paused&&await new Promise((e=>{f.resumeQueue.add(e)}));const h=Yt(e,await Promise.all(d));if(a&&h.finished&&(!n||!h.noop)){const n=vn(t,a,o);if(n)return jn(e,[n]),On(e,n,!0)}return u&&E.batchedUpdates((()=>u(h,e,e.item))),h}function Pn(e,t){const n={...e.springs};return t&&H($(t),(e=>{U.und(e.keys)&&(e=mn(e)),U.obj(e.to)||(e={...e,to:void 0}),An(n,e,(e=>Cn(e)))})),Tn(e,n),n}function Tn(e,t){q(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,qe(t,e))}))}function Cn(e,t){const n=new pn;return n.key=e,t&&qe(n,t),n}
163function An(e,t,n){t.keys&&H(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function jn(e,t){H(t,(t=>{An(e.springs,t,(t=>Cn(t,e)))}))}var Rn,Mn,Dn=({children:e,...t})=>{const n=(0,i.useContext)(In),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,i.useState)((()=>({inputs:t,result:e()}))),r=(0,i.useRef)(),o=r.current;let a=o;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,i.useEffect)((()=>{r.current=a,o==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:a}=In;return i.createElement(a,{value:t},e)},In=(Rn=Dn,Mn={},Object.assign(Rn,i.createContext(Mn)),Rn.Provider._context=Rn,Rn.Consumer._context=Rn,Rn);Dn.Provider=In.Provider,Dn.Consumer=In.Consumer;var Ln=()=>{const e=[],t=function(t){ut(`${it}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return H(e,((e,o)=>{if(U.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return H(e,(e=>e.pause(...arguments))),this},t.resume=function(){return H(e,(e=>e.resume(...arguments))),this},t.set=function(t){H(e,((e,n)=>{const r=U.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return H(e,((e,r)=>{if(U.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return H(e,(e=>e.stop(...arguments))),this},t.update=function(t){return H(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return U.fun(e)?e(n,t):e};return t._getProps=n,t};function Nn(e,t,n){const r=U.fun(t)&&t;r&&!n&&(n=[]);const o=(0,i.useMemo)((()=>r||3==arguments.length?Ln():void 0),[]),a=(0,i.useRef)(0),s=ft(),u=(0,i.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Pn(e,t);return a.current>0&&!u.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?En(e,t):new Promise((r=>{Tn(e,n),u.queue.push((()=>{r(En(e,t))})),s()}))}})),[]),c=(0,i.useRef)([...u.ctrls]),l=[],f=ht(e)||0;function d(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new Sn(null,u.flush)),n=r?r(o,e):t[o];n&&(l[o]=yn(n))}}(0,i.useMemo)((()=>{H(c.current.slice(e,f),(e=>{Ut(e,o),e.stop(!0)})),c.current.length=e,d(f,e)}),[e]),(0,i.useMemo)((()=>{d(0,Math.min(f,e))}),n);const p=c.current.map(((e,t)=>Pn(e,l[t]))),h=(0,i.useContext)(Dn),v=ht(h),m=h!==v&&zt(h);lt((()=>{a.current++,u.ctrls=c.current;const{queue:e}=u;e.length&&(u.queue=[],H(e,(e=>e()))),H(c.current,((e,t)=>{o?.add(e),m&&e.start({default:h});const n=l[t];n&&(Wt(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),dt((()=>()=>{H(u.ctrls,(e=>e.stop(!0)))}));const y=p.map((e=>({...e})));return o?[y,o]:y}function Bn(e,t){const n=U.fun(e),[[r],o]=Nn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}function Fn(e,t,n){const r=U.fun(t)&&t,{reset:o,sort:a,trail:s=0,expires:u=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:f,config:d}=r?r():t,p=(0,i.useMemo)((()=>r||3==arguments.length?Ln():void 0),[]),h=$(e),v=[],m=(0,i.useRef)(null),y=o?null:m.current;lt((()=>{m.current=v})),dt((()=>(H(v,(e=>{p?.add(e.ctrl),e.ctrl.ref=p})),()=>{H(m.current,(e=>{e.expired&&clearTimeout(e.expirationId),Ut(e.ctrl,p),e.ctrl.stop(!0)}))})));const g=zn(h,r?r():t,y),b=o&&m.current||[];lt((()=>H(b,(({ctrl:e,item:t,key:n})=>{Ut(e,p),jt(l,t,n)}))));const _=[];if(y&&H(y,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=_[t]=g.indexOf(e.key))&&(v[t]=e)})),H(h,((e,t)=>{v[t]||(v[t]={key:g[t],item:e,phase:"mount",ctrl:new Sn},v[t].ctrl.item=e)})),_.length){let e=-1;const{leave:n}=r?r():t;H(_,((t,r)=>{const o=y[r];~t?(e=v.indexOf(o),v[e]={...o,item:h[t]}):n&&v.splice(++e,0,o)}))}U.fun(a)&&v.sort(((e,t)=>a(e.item,t.item)));let w=-s;const x=ft(),k=Lt(t),S=new Map,E=(0,i.useRef)(new Map),O=(0,i.useRef)(!1);H(v,((e,n)=>{const o=e.key,i=e.phase,a=r?r():t;let l,p;const h=jt(a.delay||0,o);if("mount"==i)l=a.enter,p="enter";else{const e=g.indexOf(o)<0;if("leave"!=i)if(e)l=a.leave,p="leave";else{if(!(l=a.update))return;p="update"}else{if(e)return;l=a.enter,p="enter"}}if(l=jt(l,e.item,n),l=U.obj(l)?Ft(l):{to:l},!l.config){const t=d||k.config;l.config=jt(t,e.item,n,p)}w+=s;
163const v={...k,delay:h+w,ref:f,immediate:a.immediate,reset:!1,...l};if("enter"==p&&U.und(v.from)){const o=r?r():t,i=U.und(o.initial)||y?o.from:o.initial;v.from=jt(i,e.item,n)}const{onResolve:b}=v;v.onResolve=e=>{jt(b,e);const t=m.current,n=t.find((e=>e.key===o));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=jt(u,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(x,r)))}}e&&t.some((e=>e.expired))&&(E.current.delete(n),c&&(O.current=!0),x())}};const _=Pn(e.ctrl,v);"leave"===p&&c?E.current.set(e,{phase:p,springs:_,payload:v}):S.set(e,{phase:p,springs:_,payload:v})}));const P=(0,i.useContext)(Dn),T=ht(P),C=P!==T&&zt(P);lt((()=>{C&&H(v,(e=>{e.ctrl.start({default:P})}))}),[P]),H(S,((e,t)=>{if(E.current.size){const e=v.findIndex((e=>e.key===t.key));v.splice(e,1)}})),lt((()=>{H(E.current.size?E.current:S,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,p?.add(r),C&&"enter"==e&&r.start({default:P}),t&&(Wt(r,t.ref),!r.ref&&!p||O.current?(r.start(t),O.current&&(O.current=!1)):r.update(t))}))}),o?void 0:n);const A=e=>i.createElement(i.Fragment,null,v.map(((t,n)=>{const{springs:r}=S.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?i.createElement(o.type,{...o.props,key:U.str(t.key)||U.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return p?[A,p]:A}var Zn=1;function zn(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):Zn++}))}return U.und(n)?e:U.fun(n)?e.map(n):$(n)}var Vn=class extends an{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ae(...t);const n=this._get(),r=Ot(n);yt(this,r.create(n))}advance(e){const t=this._get();W(t,this.get())||(mt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Wn(this._active)&&Hn(this)}_get(){const e=U.arr(this.source)?this.source.map(ze):$(ze(this.source));return this.calc(...e)}_start(){this.idle&&!Wn(this._active)&&(this.idle=!1,H(gt(this),(e=>{e.done=!1})),k.skipAnimation?(E.batchedUpdates((()=>this.advance())),Hn(this)):se.start(this))}_attach(){let e=1;H($(this.source),(t=>{Ze(t)&&qe(t,this),rn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){H($(this.source),(e=>{Ze(e)&&$e(e,this)})),this._active.clear(),Hn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=$(this.source).reduce(((e,t)=>Math.max(e,(rn(t)?t.priority:0)+1)),0))}};function Un(e){return!1!==e.idle}function Wn(e){return!e.size||Array.from(e).every(Un)}function Hn(e){e.idle||(e.idle=!0,H(gt(e),(e=>{e.done=!0})),Ue(e,{type:"idle",parent:e}))}var qn=(e,...t)=>new Vn(e,t);k.assign({createStringInterpolator:ot,to:(e,t)=>new Vn(e,t)});se.advance;var $n=n(73935),Gn=/^--/;function Yn(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||Gn.test(e)||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}var Kn={};var Xn={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,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},Qn=["Webkit","Ms","Moz","O"];Xn=Object.keys(Xn).reduce(((e,t)=>(Qn.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Xn);var Jn=/^(matrix|translate|scale|rotate|skew)/,er=/^(translate)/,tr=/^(rotate|skew)/,nr=(e,t)=>
163U.num(e)&&0!==e?e+t:e,rr=(e,t)=>U.arr(e)?e.every((e=>rr(e,t))):U.num(e)?e===t:parseFloat(e)===t,or=class extends kt{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>nr(e,"px"))).join(",")})`,rr(e,0)]))),q(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Jn.test(t)){if(delete r[t],U.und(e))return;const n=er.test(t)?"px":tr.test(t)?"deg":"";o.push($(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${nr(o,n)})`,rr(o,0)]:e=>[`${t}(${e.map((e=>nr(e,n))).join(",")})`,rr(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new ir(o,i)),super(r)}},ir=class extends We{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return H(this.inputs,((n,r)=>{const o=ze(n[0]),[i,a]=this.transforms[r](U.arr(o)?o:n.map(ze));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&H(this.inputs,(e=>H(e,(e=>Ze(e)&&qe(e,this)))))}observerRemoved(e){0==e&&H(this.inputs,(e=>H(e,(e=>Ze(e)&&$e(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ue(this,e)}};k.assign({batchedUpdates:$n.unstable_batchedUpdates,createStringInterpolator:ot,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var ar=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new kt(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=At(e)||"Anonymous";return(e=U.str(e)?i[e]||(i[e]=Pt(e,o)):e[Ct]||(e[Ct]=Pt(e,o))).displayName=`Animated(${t})`,e};return q(e,((t,n)=>{U.arr(e)&&(n=At(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...u}=t,c=Object.values(u),l=Object.keys(u).map((t=>n||e.hasAttribute(t)?t:Kn[t]||(Kn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const f in r)if(r.hasOwnProperty(f)){const t=Yn(f,r[f]);Gn.test(f)?e.style.setProperty(f,t):e.style[f]=t}l.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new or(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),sr=ar.animated,ur=["x","y","AnnotationComponent"],cr=["editable"];function lr(){return lr=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},lr.apply(this,arguments)}function fr(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}function dr(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,a=e.AnnotationComponent,s=fr(e,ur),u=(0,i.useRef)({x:n,y:o}),c=Bn({from:{x:u.current.x-n,y:u.current.y-o},to:{x:0,y:0},reset:!0});return(0,i.useEffect)((function(){u.current={x:n,y:o}}),[n,o]),i.createElement(sr.g,{transform:qn([c.x,c.y],(function(e,t){return"translate("+e+", "+t+")"}))},i.createElement(a,lr({x:n,y:o},s)))}function pr(e){var t=e.editable,n=fr(e,cr),r=(0,i.useCallback)((function(e){return i.createElement(dr,lr({AnnotationComponent:t?f:u},e))}),[t]);return i.createElement(g,lr({AnnotationComponent:r},n))}pr.propTypes={editable:o().bool};var hr=n(94184),vr=n.n(hr),mr=n(43387),yr=n(27794),gr=n(28732),br=n(20296),_r=n.n(br);function wr(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||("undefined"===typeof window?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,u]=(0,i.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}
163),c=(0,i.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),l=t?"number"===typeof t?t:t.scroll:null,f=t?"number"===typeof t?t:t.resize:null,d=(0,i.useRef)(!1);(0,i.useEffect)((()=>(d.current=!0,()=>{d.current=!1})));const[p,h,v]=(0,i.useMemo)((()=>{const e=()=>{if(!c.current.element)return;const{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:l}=c.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:l};c.current.element instanceof HTMLElement&&o&&(f.height=c.current.element.offsetHeight,f.width=c.current.element.offsetWidth),Object.freeze(f),d.current&&!Sr(c.current.lastBounds,f)&&u(c.current.lastBounds=f)};return[e,f?_r()(e,f):e,l?_r()(e,l):e]}),[u,o,l,f]);function m(){c.current.scrollContainers&&(c.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",v,!0))),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function y(){c.current.element&&(c.current.resizeObserver=new a(v),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach((e=>e.addEventListener("scroll",v,{capture:!0,passive:!0}))))}var g;return function(e,t){(0,i.useEffect)((()=>{if(t){const t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",t,!0)}}}),[e,t])}(v,Boolean(n)),g=h,(0,i.useEffect)((()=>{const e=g;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[g]),(0,i.useEffect)((()=>{m(),y()}),[n,v,h]),(0,i.useEffect)((()=>m),[]),[e=>{e&&e!==c.current.element&&(m(),c.current.element=e,c.current.scrollContainers=xr(e),y())},s,p]}function xr(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...xr(e.parentElement)]}const kr=["x","y","top","bottom","left","right","width","height"],Sr=(e,t)=>kr.every((n=>e[n]===t[n]));function Er(){return Er=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},Er.apply(this,arguments)}function Or(e){var t=e.anchorLineOrientation,n=e.anchorLineStroke,r=e.verticalAnchor,o=e.horizontalAnchor,a=e.width,s=e.height,u={stroke:n,strokeWidth:2};return i.createElement(i.Fragment,null,"horizontal"===t&&"start"===r&&i.createElement("line",Er({},u,{x1:0,x2:a,y1:0,y2:0})),"horizontal"===t&&"end"===r&&i.createElement("line",Er({},u,{x1:0,x2:a,y1:s,y2:s})),"vertical"===t&&"start"===o&&i.createElement("line",Er({},u,{x1:0,x2:0,y1:0,y2:s})),"vertical"===t&&"end"===o&&i.createElement("line",Er({},u,{x1:a,x2:a,y1:0,y2:s})))}function Pr(){return Pr=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},Pr.apply(this,arguments)}Or.propTypes={anchorLineOrientation:o().oneOf(["horizontal","vertical"]).isRequired,anchorLineStroke:o().string.isRequired,width:o().number.isRequired,height:o().number.isRequired};var Tr={top:12,right:12,bottom:12,left:12};function Cr(e){var t,n,r,o=e.anchorLineStroke,a=void 0===o?"#222":o,u=e.backgroundFill,c=void 0===u?"#eaeaea":u,l=e.backgroundPadding,f=e.backgroundProps,d=e.className,p=e.fontColor,h=void 0===p?"#222":p,v=e.horizontalAnchor,m=e.resizeObserverPolyfill,y=e.showAnchorLine,g=void 0===y||y,b=e.showBackground,_=void 0===b||b,w=e.subtitle,x=e.subtitleDy,k=void 0===x?4:x,S=e.subtitleFontSize,E=void 0===S?12:S,O=e.subtitleFontWeight,P=void 0===O?200:O,T=e.subtitleProps,C=e.title,A=e.titleFontSize,j=void 0===A?16:A,R=e.titleFontWeight,M=void 0===R?600:R,D=e.titleProps,I=e.verticalAnchor,L=e.width,N=e.maxWidth,B=void 0===N?125:N,F=e.x,Z=e.y,z=wr({polyfill:m}),V=z[0],U=z[1],W=wr({polyfill:m}),H=W[0],q=W[1],$=(0,i.useMemo)((function(){return function(e){return"undefined"===typeof e?Tr:"number"===typeof e?{top:e,right:e,bottom:e,left:e}:Pr({},Tr,e)}(l)}),[l]),G=(0,i.useContext)(s),Y=G.x,K=void 0===Y?0:Y,X=G.y,Q=void 0===X?0:X,J=G.dx,ee=void 0===J?0:J,te=G.dy,ne=void 0===te?0:te,re=Math.floor($.top+$.bottom+(null!=(t=U.height)?t:0)+(null!=(n=q.height)?n:0)),oe=(0,gr.Z)(Pr({children:C,verticalAnchor:"start",capHeight:j,fontSize:j,fontWeight:M,fontFamily:null==D?void 0:D.fontFamily,width:B}
163,D)).wordsByLines,ie=(0,gr.Z)(Pr({children:w,verticalAnchor:"start",capHeight:E,fontSize:E,fontWeight:P,fontFamily:null==T?void 0:T.fontFamily,width:B},T)).wordsByLines,ae=oe.reduce((function(e,t){var n;return Math.max(e,null!=(n=t.width)?n:0)}),0),se=ie.reduce((function(e,t){var n;return Math.max(e,null!=(n=t.width)?n:0)}),0),ue=Math.ceil(Math.min(B,Math.max(ae,se))),ce=$.right+$.left+ue,le=null!=L?L:ce,fe=le-$.left-$.right,de=v||(Math.abs(ee)<Math.abs(ne)?"middle":ee>0?"start":"end"),pe=I||(Math.abs(ee)>Math.abs(ne)?"middle":ne>0?"start":"end"),he=(0,i.useMemo)((function(){var e=null==F?K+ee:F,t=null==Z?Q+ne:Z;return"middle"===de&&(e-=le/2),"end"===de&&(e-=le),"middle"===pe&&(t-=re/2),"end"===pe&&(t-=re),{x:e,y:t}}),[F,K,ee,Z,Q,ne,de,pe,le,re]),ve=null==D?void 0:D.fontFamily,me=(0,i.useMemo)((function(){return{fontSize:j,fontWeight:M,fontFamily:ve}}),[j,M,ve]),ye=null==T?void 0:T.fontFamily,ge=(0,i.useMemo)((function(){return{fontSize:E,fontWeight:P,fontFamily:ye}}),[E,P,ye]);return C||w?i.createElement(mr.Z,{top:he.y,left:he.x,pointerEvents:"none",className:vr()("visx-annotationlabel",d),opacity:0===U.height&&0===q.height?0:1},_&&i.createElement("rect",Pr({className:"visx-annotationlabel-background",fill:c,x:0,y:0,width:le,height:re},f)),g&&i.createElement(Or,{anchorLineOrientation:Math.abs(ee)>Math.abs(ne)?"vertical":"horizontal",anchorLineStroke:a,verticalAnchor:pe,horizontalAnchor:de,width:le,height:re}),C&&i.createElement(yr.Z,Pr({innerTextRef:V,fill:h,verticalAnchor:"start",x:$.left+("middle"===(null==D?void 0:D.textAnchor)?fe/2:0),y:$.top,width:fe,capHeight:j,style:me},D),C),w&&i.createElement(yr.Z,Pr({innerTextRef:H,fill:h,verticalAnchor:"start",x:$.left+("middle"===(null==T?void 0:T.textAnchor)?fe/2:0),y:$.top+(null!=(r=U.height)?r:0),dy:C?k:0,width:fe,capHeight:E,style:ge},T),w)):null}function Ar(){return Ar=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},Ar.apply(this,arguments)}Cr.propTypes={anchorLineStroke:o().string,backgroundFill:o().string,backgroundPadding:o().oneOfType([o().number,o().shape({top:o().number,right:o().number,bottom:o().number,left:o().number})]),className:o().string,fontColor:o().string,showAnchorLine:o().bool,showBackground:o().bool,subtitle:o().string,subtitleDy:o().number,title:o().string,width:o().number,maxWidth:o().number,x:o().number,y:o().number};var jr={fillOpacity:.7};function Rr(e){var t=(0,i.useContext)(p).theme,n=null==t?void 0:t.svgLabelBig,r=null==t?void 0:t.svgLabelSmall;return i.createElement(Cr,Ar({anchorLineStroke:null==t?void 0:t.axisStyles.x.bottom.axisLine.stroke,backgroundFill:null==t?void 0:t.backgroundColor,backgroundProps:jr,showAnchorLine:!0,subtitleFontSize:null==r?void 0:r.fontSize,subtitleFontWeight:null==r?void 0:r.fontWeight,subtitleProps:r,titleFontSize:null==n?void 0:n.fontSize,titleFontWeight:null==n?void 0:n.fontWeight,titleProps:n},e))}function Mr(){return Mr=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},Mr.apply(this,arguments)}function Dr(e){var t,n,r,o,a=e.className,u=e.x,c=e.y,l=e.dx,f=e.dy,d=e.type,p=void 0===d?"elbow":d,h=e.stroke,v=void 0===h?"#222":h,m=e.pathProps,y=(0,i.useContext)(s),g=null==u?null!=(t=y.x)?t:0:u,b=null==c?null!=(n=y.y)?n:0:c,_=null==l?null!=(r=y.dx)?r:0:l,w=null==f?null!=(o=y.dy)?o:0:f,x=g,k=b,S=g+_,E=b+w;"elbow"===p&&(Math.abs(_)<=Math.abs(w)?(x=S,k=b+(w>0?1:-1)*Math.abs(x-g)):(k=E,x=g+(_>0?1:-1)*Math.abs(k-b)));return i.createElement("path",Mr({className:vr()("visx-annotation-connector",a),strokeWidth:1,stroke:v,fill:"transparent",pointerEvents:"none",d:"M"+g+","+b+("elbow"===p?"L"+x+","+k:"")+"L"+S+","+E},m))}function Ir(){return Ir=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},Ir.apply(this,arguments)}function Lr(e){var t=(0,i.useContext)(p).theme;return i.createElement(Dr,Ir({stroke:null==t?void 0:t.axisStyles.x.bottom.axisLine.stroke},e))}Dr.propTypes={className:o().string,type:o().oneOf(["line","elbow"]),stroke:o().string};var Nr=["className","x","y","stroke","radius"];function Br(){return Br=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},Br.apply(this,arguments)}function Fr(e){var t=e.className,n=e.x,r=e.y,o=e.stroke,a=void 0===o?"#222":o,u=e.radiu
163s,c=void 0===u?16:u,l=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,Nr),f=(0,i.useContext)(s);return i.createElement("circle",Br({className:vr()("visx-annotation-subject","visx-annotation-subject-circle",t),cx:n||f.x,cy:r||f.y,r:c,fill:"transparent",pointerEvents:"none",stroke:a},l))}function Zr(){return Zr=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},Zr.apply(this,arguments)}function zr(e){var t=(0,i.useContext)(p).theme;return i.createElement(Fr,Zr({stroke:null==t?void 0:t.axisStyles.x.bottom.axisLine.stroke},e))}Fr.propTypes={className:o().string,stroke:o().string,radius:o().number};var Vr=["className","x","y","orientation","min","max","stroke"];function Ur(){return Ur=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},Ur.apply(this,arguments)}function Wr(e){var t=e.className,n=e.x,r=e.y,o=e.orientation,a=void 0===o?"vertical":o,u=e.min,c=e.max,l=e.stroke,f=void 0===l?"#222":l,d=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,Vr),p=(0,i.useContext)(s),h="vertical"===a;return i.createElement("line",Ur({className:vr()("visx-annotation-subject","visx-annotation-subject-line",t),x1:h?n||p.x:u,x2:h?n||p.x:c,y1:h?u:r||p.y,y2:h?c:r||p.y,fill:"transparent",pointerEvents:"none",stroke:f},d))}Wr.propTypes={className:o().string,stroke:o().string,strokeWidth:o().number,orientation:o().oneOf(["vertical","horizontal"]),x:o().number,y:o().number,min:o().number.isRequired,max:o().number.isRequired};var Hr=["min","max"];function qr(){return qr=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},qr.apply(this,arguments)}function $r(e){var t,n,r,o=e.min,a=e.max,s=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,Hr),u=(0,i.useContext)(p),c=u.theme,l=u.margin,f=u.innerHeight,d=void 0===f?0:f,h=u.innerWidth,v=void 0===h?0:h;return i.createElement(Wr,qr({stroke:null==c?void 0:c.axisStyles.x.bottom.axisLine.stroke,min:null!=(t=null!=o?o:"horizontal"===s.orientation?null==l?void 0:l.left:null==l?void 0:l.top)?t:0,max:null!=a?a:"horizontal"===s.orientation?(null!=(n=null==l?void 0:l.left)?n:0)+v:(null!=(r=null==l?void 0:l.top)?r:0)+d},s))}$r.propTypes={min:o().number,max:o().number};var Gr=n(560),Yr=["AxisComponent"];function Kr(){return Kr=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},Kr.apply(this,arguments)}function Xr(e){var t,n,r,o,a,s,u,c=e.AxisComponent,l=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,Yr),f=(0,i.useContext)(p),d=f.theme,h=f.xScale,v=f.yScale,m=f.margin,y=f.width,g=f.height,b=l.orientation,_=(0,i.useMemo)((function(){var e,t,n,r;return"left"===b||"right"===b?null==d||null==(e=d.axisStyles)||null==(t=e.y)?void 0:t[b]:null==d||null==(n=d.axisStyles)||null==(r=n.x)?void 0:r[b]}),[d,b]),w=l.tickLabelProps,x=(0,i.useMemo)((function(){return w||_?function(e,t,n){return Kr({},null==_?void 0:_.tickLabel,{width:"left"===b||"right"===b?null==m?void 0:m[b]:void 0},null==w?void 0:w(e,t,n))}:void 0}),[w,_,b,m]),k="bottom"===b?(null!=g?g:0)-(null!=(t=null==m?void 0:m.bottom)?t:0):"top"===b&&null!=(n=null==m?void 0:m.top)?n:0,S="left"===b?null!=(r=null==m?void 0:m.left)?r:0:"right"===b?(null!=y?y:0)-(null!=(o=null==m?void 0:m.right)?o:0):0,E="left"===b||"right"===b?v:h;return E?i.createElement(c,Kr({top:k,left:S,labelProps:null==_?void 0:_.axisLabel,stroke:null==_||null==(a=_.axisLine)?void 0:a.stroke,strokeWidth:null==_||null==(s=_.axisLine)?void 0:s.strokeWidth,tickLength:null==_?void 0:_.tickLength,tickStroke:null==_||null==(u=_.tickLine)?void 0:u.stroke},l,{tickLabelProps:x,scale:E})):null}function Qr(){return Qr=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},Qr.apply(this,arguments)}function Jr(e){return i.createElement(Xr,Qr({AxisComponent:Gr.Z},e))}var eo=n(52334),to=n(71801),no=["rows","columns","GridRowsComponent","GridColumnsComponent"];function ro(){return ro=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},ro.apply(this,arguments)}function oo(e){var t=e.rows,n=void 0===t||t,r=e.columns,o=void 0===r||r,a=e.GridRowsComponent,s=e.GridColumnsComponent,u=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,no),c=(0,i.useContext)(p),l=c.theme,f=c.xScale,d=c.yScale,h=c.margin,v=c.innerWidth,m=c.innerHeight,y=null==l?void 0:l.gridStyles;return i.createElement(i.Fragment,null,n&&d&&null!=v&&i.createElement(a,ro({left:null==h?void 0:h.left,lineStyle:y,width:v,scale:d},u)),o&&f&&null!=m&&i.createElement(s,ro({top:null==h?void 0:h.top,lineStyle:y,height:m,scale:f},u)))}oo.propTypes={rows:o().bool,columns:o().bool};var io=["animationTrajectory"];function ao(){return ao=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},ao.apply(this,arguments)}function so(e){var t=e.animationTrajectory,n=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,io),r=(0,i.useMemo)((function(){return function(e){return i.createElement(eo.Z,ao({},e,{animationTrajectory:t}))}}),[t]),o=(0,i.useMemo)((function(){return function(e){return i.createElement(to.Z,ao({},e,{animationTrajectory:t}))}}),[t]);return i.createElement(oo,ao({GridRowsComponent:r,GridColumnsComponent:o}
163,n))}var uo=n(99599),co=n(14703),lo=n(89163),fo=n(55280),po={top:"top",left:"left",right:"right",bottom:"bottom"};function ho(){return ho=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},ho.apply(this,arguments)}function vo(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,o=e.tickClassName,a=e.tickComponent,s=e.tickLabelProps,u=e.tickStroke,c=void 0===u?"#222":u,l=e.tickTransform,f=e.ticks,d=e.strokeWidth,p=e.tickLineProps;return f.map((function(e){var u,f=e.value,h=e.index,v=e.from,m=e.to,y=e.formattedValue,g=null!=(u=s[h])?u:{},b=Math.max(10,"number"===typeof g.fontSize&&g.fontSize||0),_=m.y+(n&&r!==po.top?b:0);return i.createElement(uo.Z,{key:"visx-tick-"+f+"-"+h,className:vr()("visx-axis-tick",o),transform:l},!t&&i.createElement(lo.Z,ho({from:v,to:m,stroke:c,strokeWidth:d,strokeLinecap:"square"},p)),a?a(ho({},g,{x:m.x,y:_,formattedValue:y})):i.createElement(fo.Z,ho({x:m.x,y:_},g),y))}))}function mo(){return mo=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},mo.apply(this,arguments)}var yo={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function go(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,o=e.hideAxisLine,a=e.hideTicks,s=e.horizontal,u=e.label,c=void 0===u?"":u,l=e.labelClassName,f=e.labelOffset,d=void 0===f?14:f,p=e.labelProps,h=void 0===p?yo:p,v=e.orientation,m=void 0===v?po.bottom:v,y=e.scale,g=e.stroke,b=void 0===g?"#222":g,_=e.strokeDasharray,w=e.strokeWidth,x=void 0===w?1:w,k=e.tickClassName,S=e.tickComponent,E=e.tickLineProps,O=e.tickLabelProps,P=void 0===O?function(){return yo}:O,T=e.tickLength,C=void 0===T?8:T,A=e.tickStroke,j=void 0===A?"#222":A,R=e.tickTransform,M=e.ticks,D=e.ticksComponent,I=void 0===D?vo:D,L=M.map((function(e){var t=e.value,n=e.index;return P(t,n,M)})),N=Math.max.apply(Math,[10].concat(L.map((function(e){return"number"===typeof e.fontSize?e.fontSize:0}))));return i.createElement(i.Fragment,null,I({hideTicks:a,horizontal:s,orientation:m,scale:y,tickClassName:k,tickComponent:S,tickLabelProps:L,tickStroke:j,tickTransform:R,ticks:M,strokeWidth:x,tickLineProps:E}),!o&&i.createElement(lo.Z,{className:vr()("visx-axis-line",n),from:t,to:r,stroke:b,strokeWidth:x,strokeDasharray:_}),c&&i.createElement(fo.Z,mo({className:vr()("visx-axis-label",l)},function(e){var t,n,r,o=e.labelOffset,i=e.labelProps,a=e.orientation,s=e.range,u=e.tickLabelFontSize,c=e.tickLength,l=a===po.left||a===po.top?-1:1;if(a===po.top||a===po.bottom){var f=a===po.bottom&&"number"===typeof i.fontSize?i.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=l*(c+o+u+f)}else t=l*((Number(s[0])+Number(s[s.length-1]))/2),n=-(c+o),r="rotate("+90*l+")";return{x:t,y:n,transform:r}}({labelOffset:d,labelProps:h,orientation:m,range:y.range(),tickLabelFontSize:N,tickLength:C}),h),c))}var bo=n(47045);var _o=n(87731);function wo(e,t){var n=e.x,r=e.y;return new _o.Z(t?{x:n,y:r}:{x:r,y:n})}function xo(){return xo=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},xo.apply(this,arguments)}var ko=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function So(){return So=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},So.apply(this,arguments)}function Eo(e){var t,n=e.children,r=void 0===n?go:n,o=e.axisClassName,a=e.hideAxisLine,s=void 0!==a&&a,u=e.hideTicks,c=void 0!==u&&u,l=e.hideZero,f=void 0!==l&&l,p=e.left,h=void 0===p?0:p,v=e.numTicks,m=void 0===v?10:v,y=e.orientation,g=void 0===y?po.bottom:y,b=e.rangePadding,_=void 0===b?0:b,w=e.scale,x=e.tickFormat,k=e.tickLength,S=void 0===k?8:k,E=e.tickValues,O=e.top,P=void 0===O?0:O,T=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,ko),C=null!=x?x:function(e){return"tickFormat"in e?e.tickFormat():bo.Z}(w),A=g===po.left,j=g===po.top,R=j||g===po.bottom,M=function(e,t){void 0===t&&(t="center");var n=e;if("start"!==t&&"bandwidth"in n){var r=n.bandwidth();
163return"center"===t&&(r/=2),n.round()&&(r=Math.round(r)),function(e){var t=n(e);return"number"===typeof t?t+r:t}}return e}(w),D=A||j?-1:1,I=w.range(),L=(void 0===(t=_)&&(t=0),"number"===typeof t?{start:t,end:t}:xo({start:0,end:0},t)),N=wo({x:Number(I[0])+.5-L.start,y:0},R),B=wo({x:Number(I[I.length-1])+.5+L.end,y:0},R),F=(null!=E?E:(0,co.Z)(w,m)).filter((function(e){return!f||0!==e&&"0"!==e})).map((function(e,t){return{value:e,index:t}})),Z=F.map((function(e){var t=e.value,n=e.index,r=(0,d.Z)(M(t));return{value:t,index:n,from:wo({x:r,y:0},R),to:wo({x:r,y:S*D},R),formattedValue:C(t,n,F)}}));return i.createElement(uo.Z,{className:vr()("visx-axis",o),top:P,left:h},r(So({},T,{axisFromPoint:N,axisToPoint:B,hideAxisLine:s,hideTicks:c,hideZero:f,horizontal:R,numTicks:m,orientation:g,rangePadding:_,scale:w,tickFormat:C,tickLength:S,tickPosition:M,tickSign:D,ticks:Z})))}function Oo(){return Oo=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},Oo.apply(this,arguments)}function Po(e){return i.createElement(Xr,Oo({AxisComponent:Eo},e))}var To=n(98112),Co=n(62860);function Ao(){return Ao=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},Ao.apply(this,arguments)}function jo(e){return i.createElement(oo,Ao({GridRowsComponent:To.default,GridColumnsComponent:Co.default},e))}function Ro(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const a=r||("undefined"===typeof window?class{}:window.ResizeObserver);if(!a)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,u]=(0,i.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=(0,i.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),l=t?"number"===typeof t?t:t.scroll:null,f=t?"number"===typeof t?t:t.resize:null,d=(0,i.useRef)(!1);(0,i.useEffect)((()=>(d.current=!0,()=>{d.current=!1})));const[p,h,v]=(0,i.useMemo)((()=>{const e=()=>{if(!c.current.element)return;const{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:l}=c.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:l};c.current.element instanceof HTMLElement&&o&&(f.height=c.current.element.offsetHeight,f.width=c.current.element.offsetWidth),Object.freeze(f),d.current&&!Io(c.current.lastBounds,f)&&u(c.current.lastBounds=f)};return[e,f?_r()(e,f):e,l?_r()(e,l):e]}),[u,o,l,f]);function m(){c.current.scrollContainers&&(c.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",v,!0))),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function y(){c.current.element&&(c.current.resizeObserver=new a(v),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach((e=>e.addEventListener("scroll",v,{capture:!0,passive:!0}))))}var g;return function(e,t){(0,i.useEffect)((()=>{if(t){const t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",t,!0)}}}),[e,t])}(v,Boolean(n)),g=h,(0,i.useEffect)((()=>{const e=g;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[g]),(0,i.useEffect)((()=>{m(),y()}),[n,v,h]),(0,i.useEffect)((()=>m),[]),[e=>{e&&e!==c.current.element&&(m(),c.current.element=e,c.current.scrollContainers=Mo(e),y())},s,p]}function Mo(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...Mo(e.parentElement)]}const Do=["x","y","top","bottom","left","right","width","height"],Io=(e,t)=>Do.every((n=>e[n]===t[n]));function Lo(e,t){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lo(e,t)}var No=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Lo(t,n);var o=r.prototype;return o.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},o.render=function(){return this.node||"undefined"===typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?$n.createPortal(this.props.children,this.node):null},r}(i.PureComponent);No.propTypes={zIndex:o().oneOfType([o().number,o().string])};var Bo=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Fo(){return Fo=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},Fo.apply(this,arguments)}var Zo={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},zo=i.forwardRef((function(e,t){var n=e.className,r=e.top,o=e.left,a=e.offsetLeft,s=void 0===a?10:a,u=e.offsetTop,c=void 0===u?10:u,l=e.style,f=void 0===l?Zo:l,d=e.children,p=e.unstyled,h=void 0!==p&&p,v=e.applyPositionStyle,m=void 0!==v&&v,y=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,Bo);return i.createElement("div",Fo({ref:t,className:vr()("visx-tooltip",n),style:Fo({top:null==r||null==c?r:r+c,left:null==o||null==s?o:o+s},m&&{position:"absolute"},!h&&f)},y),d)}));zo.propTypes={children:o().node,className:o().string,left:o().number,offsetLeft:o().number,offsetTop:o().number,top:o().number,applyPositionStyle:o().bool,unstyled:o().bool},zo.displayName="Tooltip";var Vo=zo;function Uo(){return Uo=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},Uo.apply(this,arguments)}
163function Wo(e,t){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wo(e,t)}var Ho={top:0,right:0,bottom:0,left:0,width:0,height:0};var qo=(0,i.createContext)({isFlippedVertically:!1,isFlippedHorizontally:!1}),$o=qo.Provider,Go=(qo.Consumer,["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"]);function Yo(){return Yo=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},Yo.apply(this,arguments)}function Ko(e){var t,n=e.children,r=(e.getRects,e.left),o=void 0===r?0:r,a=e.offsetLeft,s=void 0===a?10:a,u=e.offsetTop,c=void 0===u?10:u,l=e.parentRect,f=e.rect,d=e.style,p=void 0===d?Zo:d,h=e.top,v=void 0===h?0:h,m=e.unstyled,y=void 0!==m&&m,g=e.nodeRef,b=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,Go),_=!1,w=!1;if(f&&l){var x=o,k=v;if(l.width){var S=x+s+f.width-l.width,E=f.width-x-s;_=S>0&&S>E}else{var O=x+s+f.width-window.innerWidth,P=f.width-x-s;_=O>0&&O>P}if(l.height){var T=k+c+f.height-l.height,C=f.height-k-c;w=T>0&&T>C}else w=k+c+f.height>window.innerHeight;
163x=_?x-f.width-s:x+s,k=w?k-f.height-c:k+c,t="translate("+(x=Math.round(x))+"px, "+(k=Math.round(k))+"px)"}return i.createElement(Vo,Yo({ref:g,style:Yo({left:0,top:0,transform:t},!y&&p)},b),i.createElement($o,{value:{isFlippedVertically:!w,isFlippedHorizontally:!_}},n))}Ko.propTypes={nodeRef:o().oneOfType([o().string,o().func,o().object])};var Xo=function(e){var t;return(t=function(t){var n,r;function o(e){var n;return(n=t.call(this,e)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=i.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,Wo(n,r);var a=o.prototype;return a.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:$n.findDOMNode(this),this.setState((function(){return t.getRects()}))},a.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():Ho,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():Ho}},a.render=function(){return i.createElement(e,Uo({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},o}(i.PureComponent)).displayName="withBoundingRects("+(e.displayName||"")+")",t}(Ko),Qo=["detectBounds","zIndex"],Jo=["left","top","detectBounds","zIndex"];function ei(){return ei=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},ei.apply(this,arguments)}function ti(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}var ni=(0,i.createContext)(null),ri=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],oi=["x","y"];function ii(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}function ai(){return ai=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},ai.apply(this,arguments)}var si={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},ui={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function ci(e){var t=((0,i.useContext)(p)||{}).theme;return i.createElement("circle",ai({cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:null==t?void 0:t.backgroundColor,strokeWidth:1.5,paintOrder:"fill"},e.glyphStyle))}function li(e){return i.createElement(ci,e)}function fi(e){var t,n,r,o,a,s,u,c,l,f,d,m,y,g=e.debounce,b=e.detectBounds,_=e.horizontalCrosshairStyle,w=e.glyphStyle,x=e.renderTooltip,k=e.renderGlyph,S=void 0===k?li:k,E=e.resizeObserverPolyfill,O=e.scroll,P=void 0===O||O,T=e.showDatumGlyph,C=void 0!==T&&T,A=e.showHorizontalCrosshair,j=void 0!==A&&A,R=e.showSeriesGlyphs,M=void 0!==R&&R,D=e.showVerticalCrosshair,I=void 0!==D&&D,L=e.snapTooltipToDatumX,N=void 0!==L&&L,B=e.snapTooltipToDatumY,F=void 0!==B&&B,Z=e.verticalCrosshairStyle,z=e.zIndex,V=ii(e,ri),U=(0,i.useContext)(p)||{},W=U.colorScale,H=U.theme,q=U.innerHeight,$=U.innerWidth,G=U.margin,Y=U.xScale,K=U.yScale,X=U.dataRegistry,Q=(0,i.useContext)(ni),J=function(e){var t=void 0===e?{}:e,n=t.detectBounds,r=void 0===n||n,o=t.zIndex,a=Ro(ti(t,Qo)),s=a[0],u=a[1],c=a[2],l=(0,i.useMemo)((function(){return function(e){var t=e.left,n=void 0===t?0:t,a=e.top,s=void 0===a?0:a,c=e.detectBounds,l=e.zIndex,f=ti(e,Jo),d=null==l?o:l,p=(null==c?r:c)?Xo:Vo,h=n+(u.left||0)+window.scrollX,v=s+(u.top||0)+window.scrollY;return i.createElement(No,{zIndex:d},i.createElement(p,ei({left:h,top:v},f)))}}),[r,o,u.left,u.top]);return{containerRef:s,containerBounds:u,forceRefreshBounds:c,TooltipInPortal:l}}({debounce:g,detectBounds:b,polyfill:E,scroll:P,zIndex:z}),ee=J.containerRef,te=J.TooltipInPortal,ne=J.forceRefreshBounds,re=(0,i.useCallback)((function(e){var t;ee(null!=(t=null==e?void 0:e.parentElement)?t:null)}
163),[ee]),oe=null!=Q&&Q.tooltipOpen?x(ai({},Q,{colorScale:W})):null,ie=(null==Q?void 0:Q.tooltipOpen)&&null!=oe,ae=(0,i.useRef)(!1);(0,i.useEffect)((function(){ie&&!ae.current&&ne(),ae.current=ie}),[ie,ne]);var se=null==Q?void 0:Q.tooltipLeft,ue=null==Q?void 0:Q.tooltipTop,ce=Y?h(Y):0,le=K?h(K):0,fe=(0,i.useCallback)((function(e,t){var n,r,o=null==X?void 0:X.get(e),i=null==o?void 0:o.xAccessor,a=null==o?void 0:o.yAccessor;return{left:Y&&i?null!=(n=Number(Y(i(t)))+ce/2)?n:0:void 0,top:K&&a?null!=(r=Number(K(a(t)))+le/2)?r:0:void 0}}),[X,ce,le,Y,K]),de=null==Q||null==(t=Q.tooltipData)?void 0:t.nearestDatum,pe=null!=(n=null==de?void 0:de.key)?n:"";if(ie&&de&&(N||F)){var he=fe(pe,de.datum),ve=he.left,me=he.top;se=N&&v(ve)?ve:se,ue=F&&v(me)?me:ue}var ye=[];if(ie&&(C||M)){var ge,be,_e,we=Number(null!=(ge=null==w?void 0:w.radius)?ge:4);if(M)Object.values(null!=(be=null==Q||null==(_e=Q.tooltipData)?void 0:_e.datumByKey)?be:{}).forEach((function(e){var t,n,r,o=e.key,i=e.datum,a=e.index,s=null!=(t=null!=(n=null==W?void 0:W(o))?n:null==H||null==(r=H.htmlLabel)?void 0:r.color)?t:"#222",u=fe(o,i),c=u.left,l=u.top;v(c)&&v(l)&&ye.push({key:o,color:s,datum:i,index:a,size:we,x:c,y:l,glyphStyle:w,isNearestDatum:!!de&&de.key===o})}));else if(de){var xe=fe(pe,de.datum),ke=xe.left,Se=xe.top;if(v(ke)&&v(Se)){var Ee,Oe,Pe,Te,Ce,Ae,je=null!=(Ee=null!=(Oe=null!=(Pe=null!=(Te=pe&&(null==W?void 0:W(pe)))?Te:null)?Pe:null==H||null==(Ce=H.gridStyles)?void 0:Ce.stroke)?Oe:null==H||null==(Ae=H.htmlLabel)?void 0:Ae.color)?Ee:"#222";ye.push({key:pe,color:je,datum:de.datum,index:de.index,size:we,x:ke,y:Se,glyphStyle:w,isNearestDatum:!0})}}}return i.createElement(i.Fragment,null,i.createElement("svg",{ref:re,style:ui}),ie&&i.createElement(i.Fragment,null,I&&i.createElement(te,{className:"visx-crosshair visx-crosshair-vertical",left:se,top:null==G?void 0:G.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:si},i.createElement("svg",{width:"1",height:q,overflow:"visible"},i.createElement("line",ai({x1:0,x2:0,y1:0,y2:q,strokeWidth:1.5,stroke:null!=(r=null!=(o=null==H||null==(a=H.gridStyles)?void 0:a.stroke)?o:null==H||null==(s=H.htmlLabel)?void 0:s.color)?r:"#222"},Z)))),j&&i.createElement(te,{className:"visx-crosshair visx-crosshair-horizontal",left:null==G?void 0:G.left,top:ue,offsetLeft:0,offsetTop:0,detectBounds:!1,style:si},i.createElement("svg",{width:$,height:"1",overflow:"visible"},i.createElement("line",ai({x1:0,x2:$,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(u=null!=(c=null==H||null==(l=H.gridStyles)?void 0:l.stroke)?c:null==H||null==(f=H.htmlLabel)?void 0:f.color)?u:"#222"},_)))),ye.map((function(e,t){var n=e.x,r=e.y,o=ii(e,oi);return i.createElement(te,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:si},i.createElement("svg",{overflow:"visible"},S(ai({x:0,y:0},o))))})),i.createElement(te,ai({left:se,top:ue,style:ai({},Zo,{background:null!=(d=null==H?void 0:H.backgroundColor)?d:"white",boxShadow:"0 1px 2px "+(null!=H&&null!=(m=H.htmlLabel)&&m.color?(null==H||null==(y=H.htmlLabel)?void 0:y.color)+"55":"#22222255")},null==H?void 0:H.htmlLabel)},V),oe)))}function di(e){var t=(0,i.useContext)(ni);return null!=t&&t.tooltipOpen?i.createElement(fi,e):null}ci.propTypes={isNearestDatum:o().bool.isRequired},fi.propTypes={renderTooltip:o().func.isRequired,renderGlyph:o().func,snapTooltipToDatumX:o().bool,snapTooltipToDatumY:o().bool,showVerticalCrosshair:o().bool,showHorizontalCrosshair:o().bool,showDatumGlyph:o().bool,showSeriesGlyphs:o().bool},di.propTypes={renderTooltip:o().func.isRequired,renderGlyph:o().func,snapTooltipToDatumX:o().bool,snapTooltipToDatumY:o().bool,showVerticalCrosshair:o().bool,showHorizontalCrosshair:o().bool,showDatumGlyph:o().bool,showSeriesGlyphs:o().bool};var pi=n(95142),hi=n(73850),vi=(0,i.createContext)(null);function mi(e,t,n){var r=(0,i.useContext)(vi),o=(0,i.useRef)();o.current=n;var a=(0,i.useCallback)((function(e,t,n){r&&r.emit(e,{event:t,svgPoint:(0,hi.Z)(t),source:n})}),[r]);return(0,i.useEffect)((function(){if(r&&e&&t){var n=function(e){var n;(!o.current||null!=e&&e.source&&null!=(n=o.current)&&n.includes(e.source))&&t(e)};return r.on(e,n),function(){return null==r?void 0:r.off(e,n)}}}),[r,e,t]),r?a:null}function yi(e){var t=e.children,n=(0,i.useMemo)((function(){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map((function(e){e(n)})),(e.get("*")||[]).slice().map((function(e){e(t,n)}))}};var e}),[]);return i.createElement(vi.Provider,{value:n},t)}var gi=n(23279),bi=n.n(gi),_i=["tooltipOpen"];function wi(){return wi=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},wi.apply(this,arguments)}function xi(e){var t=(0,i.useState)(wi({tooltipOpen:!1},e)),n=t[0],r=t[1],o=(0,i.useCallback)((function(e){return r("function"===typeof e?function(t){t.tooltipOpen;var n=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}(t,_i);return wi({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})}),[r]),a=(0,i.useCallback)((function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}),[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:o,hideTooltip:a}}function ki(){return ki=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},ki.apply(this,arguments)}function Si(e){var t=e.hideTooltipDebounceMs,n=void 0===t?400:t,r=e.children,o=xi(void 0),a=o.tooltipOpen,s=o.tooltipLeft,u=o.tooltipTop,c=o.tooltipData,l=o.updateTooltip,f=o.hideTooltip,d=(0,i.useRef)(null),p=(0,i.useRef)((function(e){var t=e.svgPoint,n=e.index,r=e.key,o=e.datum,i=e.distanceX,a=e.distanceY;d.current&&(d.current.cancel(),d.current=null);var s=v(i)?i:1/0,u=v(a)?a:1/0,c=Math.sqrt(Math.pow(s,2)+Math.pow(u,2));l((function(e){var i,a,s,u=e.tooltipData,l=null!=u&&u.nearestDatum&&v(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(i=null==u||null==(a=u.nearestDatum)?void 0:a.key)?i:"")!==r&&l<c?null==u?void 0:u.nearestDatum:{key:r,index:n,datum:o,distance:c},datumByKey:ki({},null==u?void 0:u.datumByKey,(s={},s[r]={datum:o,index:n,key:r},s))}}}))})),h=(0,i.useCallback)((function(){d.current=bi()(f,n),d.current()}),[f,n]),m=(0,i.useMemo)((function(){return{tooltipOpen:a,tooltipLeft:s,tooltipTop:u,tooltipData:c,updateTooltip:l,showTooltip:p.current,hideTooltip:h}}),[h,c,s,a,u,l]);return i.createElement(ni.Provider,{value:m},r)}Si.propTypes={hideTooltipDebounceMs:o().number,children:o().node.isRequired};var Ei=n(38382),Oi={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},Pi=Oi.gray,Ti=Pi[7],Ci=[Oi.cyan[9],Oi.cyan[3],Oi.yellow[5],Oi.red[4],Oi.grape[8],Oi.grape[5],Oi.pink[9]];function Ai(){return Ai=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},Ai.apply(this,arguments)}var ji={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function Ri(e){var t,n,r,o,i,a,s=Ai({},ji,{fill:Ti,stroke:"none"},e.svgLabelBig),u=Ai({},ji,{fontWeight:200,fontSize:11,fill:Ti,stroke:"none"},e.svgLabelSmall),c=Ai({color:null!=(t=null!=(n=null!=(r=null==(o=e.htmlLabel)?void 0:o.color)?r:null==(i=e.svgLabelBig)?void 0:i.fill)?n:null==(a=e.svgLabelSmall)?void 0:a.fill)?t:Ti},ji,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Ai({},c),svgLabelSmall:Ai({},u),svgLabelBig:Ai({},s),gridStyles:Ai({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Ai({},s,{dy:"-0.25em"}
163),axisLine:Ai({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Ai({},u,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Ai({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Ai({},s,{dy:"-0.25em"}),axisLine:Ai({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Ai({},u,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Ai({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Ai({},s,{dx:"-1.25em"}),axisLine:Ai({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Ai({},u,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Ai({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Ai({},s,{dx:"1.25em"}),axisLine:Ai({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Ai({},u,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Ai({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}var Mi=Ri({backgroundColor:"#fff",colors:Ci,tickLength:4,svgLabelSmall:{fill:Pi[7]},svgLabelBig:{fill:Pi[9]},gridColor:Pi[5],gridColorDark:Pi[9]}),Di=i.createContext(Mi),Ii=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(e){var t=this;(Array.isArray(e)?e:[e]).forEach((function(e){e.key in t.registry&&null!=t.registry[e.key]&&console.debug("Overriding data registry key",e.key),t.registry[e.key]=e,t.registryKeys=Object.keys(t.registry)}))},t.unregisterData=function(e){var t=this;(Array.isArray(e)?e:[e]).forEach((function(e){delete t.registry[e],t.registryKeys=Object.keys(t.registry)}))},t.entries=function(){return Object.values(this.registry)},t.get=function(e){return this.registry[e]},t.keys=function(){return this.registryKeys},e}();var Li={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Ni=n(76876),Bi=n(29673),Fi=n(23865);function Zi(e){return"band"===(null==e?void 0:e.type)||"ordinal"===(null==e?void 0:e.type)||"point"===(null==e?void 0:e.type)}function zi(){return zi=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},zi.apply(this,arguments)}function Vi(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,o=e.yScale,a=e.children,s=e.horizontal,u=void 0===s?"auto":s,c=(0,i.useContext)(Di),l=n||c,f=function(e){var t=(0,i.useState)({width:null==(null==e?void 0:e.width)?Li.width:e.width,height:null==(null==e?void 0:e.height)?Li.height:e.height,margin:null==(null==e?void 0:e.margin)?Li.margin:e.margin}),n=t[0],r=t[1],o=(0,i.useCallback)((function(e){e.width===n.width&&e.height===n.height&&e.margin.left===n.margin.left&&e.margin.right===n.margin.right&&e.margin.top===n.margin.top&&e.margin.bottom===n.margin.bottom||r(e)}),[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,o]}(t),d=f[0],h=d.width,v=d.height,m=d.margin,y=f[1],g=Math.max(0,h-m.left-m.right),b=Math.max(0,v-m.top-m.bottom),_=function(){var e=(0,i.useState)(Math.random())[1],t=(0,i.useMemo)((function(){return new Ii}),[]);return(0,i.useMemo)((function(){return{registerData:function(){t.registerData.apply(t,arguments),e(Math.random())},unregisterData:function(){t.unregisterData.apply(t,arguments),e(Math.random())},entries:function(){return t.entries()},get:function(e){return t.get(e)},keys:function(){return t.keys()}}}),[t])}(),w=function(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,o=e.yRange,a=e.yScaleConfig,s=t.keys(),u=n[0],c=n[1],l=o[0],f=o[1];return{xScale:(0,i.useMemo)((function(){var e=s.map((function(e){return t.get(e)})),n=e.reduce((function(e,t){return t?e.concat(t.data.map((function(e){return t.xAccessor(e)}))):e}),[]);if(0!==n.length){var o=Zi(r)?n:(0,Fi.Z)(n),i=(0,Ni.Z)(r)?(0,Bi.Z)(zi({range:[u,c],domain:o,zero:!0},r)):(0,Bi.Z)(zi({range:[u,c],domain:o},r));return e.forEach((function(e){null!=e&&e.xScale&&(i=e.xScale(i))})),i}}),[t,r,s,u,c]),yScale:(0,i.useMemo)((function(){var e=s.map((function(e){return t.get(e)})),n=e.reduce((function(e,t){return t?e.concat(t.data.map((function(e){return t.yAccessor(e)}))):e}),[]);if(0!==n.length){var r=Zi(a)?n:(0,Fi.Z)(n),o=(0,Ni.Z)(a)?(0,Bi.Z)(zi({range:[l,f],domain:r,zero:!0},a)):(0,Bi.Z)(zi({range:[l,f],domain:r},a));return e.forEach((function(e){null!=e&&e.yScale&&(o=e.yScale(o))})),o}}),[t,a,s,l,f])}}({dataRegistry:_,xScaleConfig:r,yScaleConfig:o,xRange:[m.left,Math.max(0,h-m.right)],yRange:[Math.max(0,v-m.bottom),m.top]}),x=w.xScale,k=w.yScale,S=_.keys(),E=(0,i.useMemo)((function(){return(0,Ei.ZP)({domain:S,range:l.colors})}),[S,l.colors]),O="auto"===u?Zi(o)||"time"===o.type||"utc"===o.type:u,P=(0,i.useMemo)((function(){return{dataRegistry:_,registerData:_.registerData,unregisterData:_.unregisterData,xScale:x,yScale:k,colorScale:E,theme:l,width:h,height:v,margin:m,innerWidth:g,innerHe
163ight:b,setDimensions:y,horizontal:O}}),[E,_,v,O,b,g,m,y,l,h,x,k]);return i.createElement(p.Provider,{value:P},a)}function Ui(e){var t=e.source,n=e.onPointerOut,r=void 0===n||n,o=e.onPointerMove,a=void 0===o||o,s=e.onPointerUp,u=void 0===s||s,c=e.onPointerDown,l=void 0===c||c,f=e.onFocus,d=void 0!==f&&f,p=e.onBlur,h=void 0!==p&&p,v=mi(),m=(0,i.useCallback)((function(e){return null==v?void 0:v("pointermove",e,t)}),[v,t]),y=(0,i.useCallback)((function(e){return null==v?void 0:v("pointerout",e,t)}),[v,t]),g=(0,i.useCallback)((function(e){return null==v?void 0:v("pointerup",e,t)}),[v,t]),b=(0,i.useCallback)((function(e){return null==v?void 0:v("pointerdown",e,t)}),[v,t]),_=(0,i.useCallback)((function(e){return null==v?void 0:v("focus",e,t)}),[v,t]),w=(0,i.useCallback)((function(e){return null==v?void 0:v("blur",e,t)}),[v,t]);return{onPointerMove:a?m:void 0,onFocus:d?_:void 0,onBlur:h?w:void 0,onPointerOut:r?y:void 0,onPointerUp:u?g:void 0,onPointerDown:l?b:void 0}}Vi.propTypes={children:o().node.isRequired,horizontal:o().oneOfType([o().bool,o().oneOf(["auto"])])};var Wi="XYCHART_EVENT_SOURCE";function Hi(e){return!!e&&("clientX"in e||"changedTouches"in e)}var qi=n(29173),$i=n(34893),Gi=n(44355);function Yi(e){var t,n,r=e.scale,o=e.accessor,i=e.scaledValue,a=e.data,s=r;if("invert"in s&&"function"===typeof s.invert){var u=(0,qi.Z)(o).left,c=Number(s.invert(i)),l=u(a,c),f=a[l-1],d=a[l];n=(t=!f||Math.abs(c-o(f))>Math.abs(c-o(d))?d:f)===f?l-1:l}else{if(!("step"in s)||"undefined"===typeof s.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var p=r.domain(),h=r.range().map(Number),v=[].concat(h).sort((function(e,t){return e-t})),m=(0,$i.Z)(v[0],v[1],s.step()),y=(0,Gi.Nw)(m,i),g=(h[0]<h[1]?p:p.reverse())[y-1],b=a.findIndex((function(e){return String(o(e))===String(g)}));t=a[b],n=b}return null==t||null==n?null:{datum:t,index:n,distance:Math.abs(Number(s(o(t)))-i)}}function Ki(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,o=e.yAccessor,i=e.point,a=e.data;if(!i)return null;var s=Yi({scale:t,accessor:n,scaledValue:i.x,data:a});return s?{datum:s.datum,index:s.index,distanceX:s.distance,distanceY:Math.abs(Number(r(o(s.datum)))-i.y)}:null}function Xi(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,o=e.xAccessor,i=e.point,a=e.data;if(!i)return null;var s=Yi({scale:t,accessor:n,scaledValue:i.y,data:a});return s?{datum:s.datum,index:s.index,distanceY:s.distance,distanceX:Math.abs(Number(r(o(s.datum)))-i.x)}:null}function Qi(){return Qi=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},Qi.apply(this,arguments)}var Ji="__POINTER_EVENTS_ALL",ea="__POINTER_EVENTS_NEAREST";function ta(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,o=e.onFocus,a=e.onPointerMove,s=e.onPointerOut,u=e.onPointerUp,c=e.onPointerDown,l=e.allowedSources,f=(0,i.useContext)(p),d=f.width,h=f.height,v=f.horizontal,m=f.dataRegistry,y=f.xScale,g=f.yScale,b=n||(v?Xi:Ki),_=(0,i.useCallback)((function(e){var n,r=e||{},o=r.svgPoint,i=r.event,a={},s=null,u=1/0;return e&&i&&o&&d&&h&&y&&g?((t===ea||t===Ji?null!=(n=null==m?void 0:m.keys())?n:[]:Array.isArray(t)?t:[t]).forEach((function(e){var n=null==m?void 0:m.get(e);if(n){var r=b({dataKey:e,data:n.data,height:h,point:o,width:d,xAccessor:n.xAccessor,xScale:y,yAccessor:n.yAccessor,yScale:g});if(r&&(a[e]=Qi({key:e,svgPoint:o,event:i},r),t===ea)){var c,l,f=Math.sqrt((null!=(c=r.distanceX)?c:Math.pow(1/0,2))+(null!=(l=r.distanceY)?l:Math.pow(1/0,2)));s=f<u?a[e]:s,u=Math.min(u,f)}}})),(t===ea?[s]:t===Ji||Array.isArray(t)?Object.values(a):[a[t]]).filter((function(e){return e}))):[]}),[t,m,y,g,d,h,b]),w=(0,i.useCallback)((function(e){a&&_(e).forEach((function(e){return a(e)}))}),[_,a]),x=(0,i.useCallback)((function(e){u&&_(e).forEach((function(e){return u(e)}))}),[_,u]),k=(0,i.useCallback)((function(e){c&&_(e).forEach((function(e){return c(e)}))}),[_,c]),S=(0,i.useCallback)((function(e){o&&_(e).forEach((function(e){return o(e)}))}),[_,o]),E=(0,i.useCallback)((function(e){var t=null==e?void 0:e.event;t&&Hi(t)&&s&&s(t)}),[s]),O=(0,i.useCallback)((function(e){var t=null==e?void 0:e.event;t&&function(e){return!!e&&!Hi(e)}(t)&&r&&r(t)}),[r]);mi("pointermove",a?w:void 0,l),mi("pointerout",s?E:void 0,l),mi("pointerup",u?x:void 0,l),mi("pointerdown",c?k:void 0,l),mi("focus",o?S:void 0,l),mi("blur",r?O:void 0,l)}function na(){return na=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},na.apply(this,arguments)}var ra={top:50,right:50,bottom:50,left:50},oa=[Wi];function ia(e){var t=e.accessibilityLabel,n=void 0===t?"XYChart":t,r=e.captureEvents,o=void 0===r||r,a=e.children,s=e.height,u=e.horizontal,c=e.margin,l=void 0===c?ra:c,f=e.onPointerMove,d=e.onPointerOut,h=e.onPointerUp,v=e.onPointerDown,m=e.pointerEventsDataKey,y=void 0===m?"nearest":m,g=e.theme,b=e.width,_=e.xScale,w=e.yScale,x=(0,i.useContext)(p).setDimensions,k=(0,i.useContext)(ni),S=mi();(0,i.useEffect)((function(){x&&null!=b&&null!=s&&b>0&&s>0&&x({width:b,height:s,margin:l})}),[x,b,s,l]);var E=Ui({source:Wi});return ta({dataKey:"nearest"===y?ea:Ji,onPointerMove:f,onPointerOut:d,onPointerUp:h,onPointerDown:v,allowedSources:oa}),x?null==b||null==s?i.createElement(pi.Z,null,(function(t){return i.createElement(ia,na({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))})):null==k?i.createElement(Si,null,i.createElement(ia,e)):null==S?i.createElement(yi,null,i.createElement(ia,e)):b>0&&s>0?i.createElement("svg",{width:b,height:s,"aria-label":n},a,o&&i.createElement("rect",na({x:l.left,y:l.top,width:b-l.left-l.right,height:s-l.top-l.bottom,fill:"transparent"},E))):null:_&&w?i.createElement(Vi,{xScale:_,yScale:w,theme:g,initialDimensions:{width:b,height:s,margin:l},horizontal:u},i.createElement(ia,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}ia.propTypes={accessibilityLabel:o().string,captureEvents:o().bool,width:o().number,height:o().number,children:o().node.isRequired,horizontal:o().oneOfType([o().bool,o().oneOf(["auto"])]),onPointerMove:o().func,onPointerOut:o().func,onPointerUp:o().func,onPointerDown:o().func,pointerEventsDataKey:o().oneOf(["all","nearest"])};var aa=n(15351),sa=n(80167);function ua(){return ua=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},ua.apply(this,arguments)}function ca(e){return function(t){var n=t.dataKey,r=t.data,o=t.xAccessor,a=t.yAccessor,s=(0,i.useContext)(p),u=s.xScale,c=s.yScale,l=s.dataRegistry;(0,i.useEffect)((function(){return l&&l.registerData({key:n,data:r,xAccessor:o,yAccessor:a}),function(){return null==l?void 0:l.unregisterData(n)}}),[l,n,r,o,a]);var f=null==l?void 0:l.get(n);if(!u||!c||!f)return null;var d=e;return i.createElement(d,ua({},t,{xScale:u,yScale:c,data:f.data,xAccessor:f.xAccessor,yAccessor:f.yAccessor}))}}function la(e,t,n){return void 0===n&&(n="center"),function(r){var o=e(t(r));return v(o)?o+("start"===n?0:h(e))/("center"===n?2:1):NaN}}function fa(e){var t=e.range().map((function(e){var t;return null!=(t=(0,d.Z)(e))?t:0})),n=t[0],r=t[1],o=null!=n&&null!=r&&r<n,i=e(0),a=o?[r,n]:[n,r],s=a[0],u=a[1];return o?v(i)?Math.min(Math.max(s,i),u):u:v(i)?Math.max(i,s):s}function da(e){var t,n=e.dataKey,r=e.enableEvents,o=e.findNearestDatum,a=e.onBlur,s=e.onFocus,u=e.onPointerMove,c=e.onPointerOut,l=e.onPointerUp,f=e.onPointerDown,d=e.source,p=e.allowedSources,h=null!=(t=(0,i.useContext)(ni))?t:{},v=h.showTooltip,m=h.hideTooltip,y=(0,i.useCallback)((function(e){v(e),u&&u(e)}),[v,u]),g=(0,i.useCallback)((function(e){v(e),s&&s(e)}),[v,s]),b=(0,i.useCallback)((function(e){m(),e&&c&&c(e)}),[m,c]),_=(0,i.useCallback)((function(e){m(),e&&a&&a(e)}),[m,a]),w=(0,i.useCallback)((function(e){v(e),f&&f(e)}),[v,f]);return ta({dataKey:n,findNearestDatum:o,onBlur:r?_:void 0,onFocus:r?g:void 0,onPointerMove:r?y:void 0,onPointerOut:r?b:void 0,onPointerUp:r?l:void 0,onPointerDown:r?w:void 0,allowedSources:p}),Ui({source:d,onBlur:!!a&&r,onFocus:!!s&&r,onPointerMove:!!u&&r,onPointerOut:!!c&&r,onPointerUp:!!l&&r,onPointerDown:!!f&&r})}function pa(){return pa=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},pa.apply(this,arguments)}function ha(e){var t,n,r,o=e.colorAccessor,a=e.data,s=e.dataKey,u=e.onBlur,c=e.onFocus,l=e.onPointerMove,f=e.onPointerOut,d=e.onPointerUp,h=e.onPointerDown,m=e.enableEvents,y=void 0===m||m,g=e.renderGlyphs,b=e.size,_=void 0===b?8:b,w=e.xAccessor,x=e.xScale,k=e.yAccessor,S=e.yScale,E=(0,i.useContext)(p),O=E.colorScale,P=E.theme,T=E.horizontal,C=(0,i.useMemo)((function(){return la(x,w)}),[x,w]),A=(0,i.useMemo)((function(){return la(S,k)}),[S,k]),j=null!=(t=null!=(n=null==O?void 0:O(s))?n:null==P||null==(r=P.colors)?void 0:r[0])?t:"#222",R="GLYPHSERIES_EVENT_SOURCE-"+s,M=da({dataKey:s,enableEvents:y,onBlur:u,onFocus:c,onPointerMove:l,onPointerOut:f,onPointerUp:d,onPointerDown:h,source:R,allowedSources:[Wi,R]}),D=(0,i.useMemo)((function(){return a.map((function(e,t){var n,r=C(e);if(!v(r))return null;var i=A(e);return v(i)?{key:""+t,x:r,y:i,color:null!=(n=null==o?void 0:o(e,t))?n:j,size:"function"===typeof _?_(e):_,datum:e}:null})).filter((function(e){return e}))}),[j,o,a,C,A,_]);return i.createElement(i.Fragment,null,g(pa({glyphs:D,xScale:x,yScale:S,horizontal:T},M)))}ha.propTypes={colorAccessor:o().func,size:o().oneOfType([o().number,o().func]),renderGlyphs:o().func.isRequired};var va=ca(ha);function ma(e){var t=e.key,n=e.color,r=e.x,o=e.y,a=e.size,s=e.onBlur,u=e.onFocus,c=e.onPointerMove,l=e.onPointerOut,f=e.onPointerUp;return i.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:s||u?0:void 0,fill:n,r:a/2,cx:r,cy:o,onBlur:s,onFocus:u,onPointerMove:c,onPointerOut:l,onPointerUp:f})}var ya=["PathComponent","curve","data","dataKey","lineProps","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","renderLine","xAccessor","x0Accessor","xScale","yAccessor","y0Accessor","yScale"];function ga(){return ga=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},ga.apply(this,arguments)}function ba(e){var t,n,r,o=e.PathComponent,a=void 0===o?"path":o,s=e.curve,u=e.data,c=e.dataKey,l=e.lineProps,f=e.onBlur,d=e.onFocus,h=e.onPointerMove,m=e.onPointerOut,y=e.onPointerUp,g=e.onPointerDown,b=e.enableEvents,_=void 0===b||b,w=e.renderLine,x=void 0===w||w,k=e.xAccessor,S=e.x0Accessor,E=e.xScale,O=e.yAccessor,P=e.y0Accessor,T=e.yScale,C=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,ya),A=(0,i.useContext)(p),j=A.colorScale,R=A.theme,M=A.horizontal,D=(0,i.useMemo)((function(){return S?la(E,S):void 0}),[E,S]),I=(0,i.useMemo)((function(){return la(E,k)}),[E,k]),L=(0,i.useMemo)((function(){return P?la(T,P):void 0}),[T,P]),N=(0,i.useMemo)((function(){return la(T,O)}),[T,O]),B=(0,i.useCallback)((function(e){return v(E(k(e)))&&v(T(O(e)))}),[E,k,T,O]),F=null!=(t=null!=(n=null==j?void 0:j(c))?n:null==R||null==(r=R.colors)?void 0:r[0])?t:"#222",Z="AREASERIES_EVENT_SOURCE-"+c,z=da({dataKey:c,enableEvents:_,onBlur:f,onF
163ocus:d,onPointerMove:h,onPointerOut:m,onPointerUp:y,onPointerDown:g,source:Z,allowedSources:[Wi,Z]}),V=(0,i.useMemo)((function(){var e=fa(M?E:T);return M?{x0:null!=D?D:e,x1:I,y:N}:{x:I,y0:null!=L?L:e,y1:N}}),[E,T,M,I,N,D,L]),U=Boolean(d||f),W=(0,i.useCallback)((function(e){var t=e.glyphs;return U?t.map((function(e){return i.createElement(i.Fragment,{key:e.key},ma(ga({},e,{color:"transparent",onFocus:z.onFocus,onBlur:z.onBlur})))})):null}),[U,z.onFocus,z.onBlur]);return i.createElement(i.Fragment,null,i.createElement(aa.Z,ga({},V,C,{curve:s,defined:B}),(function(e){var t=e.path;return i.createElement(a,ga({className:"visx-area",stroke:"transparent",fill:F,strokeLinecap:"round"},C,{d:t(u)||""},z))})),x&&i.createElement(sa.Z,ga({x:I,y:N,defined:B,curve:s},l),(function(e){var t=e.path;return i.createElement(a,ga({className:"visx-line",fill:"transparent",stroke:F,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},l,{d:t(u)||""}))})),U&&i.createElement(ha,{dataKey:c,data:u,xAccessor:k,yAccessor:O,xScale:E,yScale:T,renderGlyphs:W}))}ba.propTypes={renderLine:o().bool};var _a=ca(ba);function wa(e){return i.createElement(_a,e)}var xa=n(14645),ka=n(7118);Array.prototype.slice;function Sa(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Ea(e){return function(){return e}}function Oa(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Pa(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Ta(e,t){return e[t]}function Ca(e){const t=[];return t.key=e,t}var Aa=n(39168),ja=n(22532),Ra=function(e){var t;return null==e||null==(t=e.data)?void 0:t.stack},Ma=function(e){return((0,ka.l8)(e)+(0,ka.xf)(e))/2};var Da=function(e){return e.stack};function Ia(e){return i.Children.toArray(e).flatMap((function(e){return"object"===typeof e&&"props"in e&&e.props.children?e.props.children:e})).filter((function(e){return function(e){return!!e&&"object"===typeof e&&"props"in e&&null!=e.props}(e)}))}function La(e){var t=e.children,n=e.order,r=e.offset,o=(0,i.useContext)(p),a=o.horizontal,s=o.registerData,u=o.unregisterData,c=(0,i.useMemo)((function(){return Ia(t)}),[t]),l=(0,i.useMemo)((function(){return c.filter((function(e){return e.props.dataKey})).map((function(e){return e.props.dataKey}))}),[c]),f=(0,i.useMemo)((function(){return function(e,t){var n={};return e.forEach((function(e){var r=e.props,o=r.dataKey,i=r.data,a=r.xAccessor,s=r.yAccessor;if(a&&s){var u=t?[s,a]:[a,s],c=u[0],l=u[1];i.forEach((function(e){var t=c(e),r=l(e),i=String(t);n[i]||(n[i]={stack:t,positiveSum:0,negativeSum:0}),n[i][o]=r,n[i][r>=0?"positiveSum":"negativeSum"]+=r}))}})),Object.values(n)}(c,a)}),[a,c]),d=(0,i.useMemo)((function(){var e=r?null:f.some((function(e){return e.negativeSum<0})),t=function(){var e=Ea([]),t=Pa,n=Oa,r=Ta;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Ca),u=s.length,c=-1;for(const e of o)for(i=0,++c;i<u;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=Sa(t(s));i<u;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:Ea(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"===typeof e?e:Ea(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Pa:"function"===typeof e?e:Ea(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Oa:e,o):n},o}();return t.keys(l),n&&t.order((0,ja.default)(n)),(r||e)&&t.offset((0,Aa.default)(r||"diverging")),t(f)}),[f,l,n,r]),h=(0,i.useMemo)((function(){return(0,Fi.Z)(d.reduce((function(e,t){return t.forEach((function(t){var n=t[0],r=t[1];e.push(n),e.push(r)})),e}),[]))}),[d]);return(0,i.useEffect)((function(){var e=function(e,t,n){var r=n?[Ma,Ra]:[Ra,Ma],o=r[0],i=r[1];return e.map((function(e,r){var a={key:e.key,data:e,xAccessor:o,yAccessor:i};return t.length>0&&0===r&&(n?a.xScale=function(e){return e.domain((0,Fi.Z)(e.domain().concat(t)))}:a.yScale=function(e){return e.domain((0,Fi.Z)(e.domain().concat(t)))}),a})).filter((function(e){return e}))}(d,h,a);return s(e),function(){return u(l)}}),[l,h,a,d,s,u,c]),{seriesChildren:c,dataKeys:l,stackedData:d}}function Na(e,t,n){var r,o,i,a,s=e.xScale,u=e.yScale,c=e.point,l=(n?Xi:Ki)(e),f=null==(null==l?void 0:l.index)?null:t[l.index];return l&&f&&c?{index:l.index,datum:f,distanceX:n&&c.x>=(null!=(r=s((0,ka.l8)(l.datum)))?r:1/0)&&c.x<=(null!=(o=s((0,ka.xf)(l.datum)))?o:-1/0)?0:l.distanceX,distanceY:n?l.distanceY:c.y<=(null!=(i=u((0,ka.l8)(l.datum)))?i:-1/0)&&c.y>=(null!=(a=u((0,ka.xf)(l.datum)))?a:1/0)?0:l.distanceY}:null}var Ba=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function Fa(){return Fa=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},Fa.apply(this,arguments)}var Za=function(e){return e};function za(e){var t=e.PathComponent,n=void 0===t?"path":t,r=e.children,o=e.curve,a=e.enableEvents,s=void 0===a||a,u=e.offset,c=e.onBlur,l=e.onFocus,f=e.onPointerMove,m=e.onPointerOut,y=e.onPointerUp,g=e.onPointerDown,b=e.order,_=e.renderLine,w=void 0===_||_,x=(0,i.useContext)(p),k=x.colorScale,S=x.dataRegistry,E=x.horizontal,O=x.xScale,P=x.yScale,T=x.theme,C=La({children:r,order:b,offset:u}),A=C.dataKeys,j=C.seriesChildren,R=C.stackedData,M=(0,i.useMemo)((function(){var e=h(O)/2,t=h(P)/2;return E?{y:function(e){var n;return(null!=(n=(0,d.Z)(P(Da(e.data))))?n:0)+t},x0:function(t){var n;return(null!=(n=(0,d.Z)(O((0,ka.l8)(t))))?n:0)+e},x1:function(t){var n;return(null!=(n=(0,d.Z)(O((0,ka.xf)(t))))?n:0)+e},defined:function(e){return v(P(Da(e.data)))&&v(O((0,ka.xf)(e)))}}:{x:function(t){var n;return(null!=(n=(0,d.Z)(O(Da(t.data))))?n:0)+e},y0:function(e){var n;return(null!=(n=(0,d.Z)(P((0,ka.l8)(e))))?n:0)+t},y1:function(e){var n;return(null!=(n=(0,d.Z)(P((0,ka.xf)(e))))?n:0)+t},defined:function(e){return v(O(Da(e.data)))&&v(P((0,ka.xf)(e)))}}}),[O,P,E]),D=(0,i.useMemo)((function(){return R.map((function(e,t){var n,r,o,i=j.find((function(t){return t.props.dataKey===e.key})),a=(null==i?void 0:i.props)||{},s=(a.data,a.dataKey,a.xAccessor,a.yAccessor,a.curve,a.PathComponent,a.lineProps),u=(a.renderLine,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}(a,Ba)),c=Fa({fill:null!=(n=null!=(r=null==k?void 0:k(e.key))?r:null==T||null==(o=T.colors)?void 0:o[0])?n:"#222"},u);return{key:t+"-"+e.key,accessors:M,data:e,areaProps:c,lineProps:s}}))}),[R,M,k,j,T]),I=(0,i.useCallback)((function(e){var t,n,r=null==(t=j.find((function(t){return t.props.dataKey===e.dataKey})))||null==(n=t.props)?void 0:n.data;return r?Na(e,r,E):null}),[j,E]),L="AREASTACK_EVENT_SOURCE-"+A.join("-"),N=da({dataKey:A,enableEvents:s,findNearestDatum:I,onBlur:c,onFocus:l,onPointerMove:f,onPointerOut:m,onPointerUp:y,onPointerDown:g,source:L,allowedSources:[Wi,L]}),B=Boolean(l||c),F=(0,i.useCallback)((function(e){var t=e.glyphs;return B?t.map((function(e){return i.createElement(i.Fragment,{key:e.key},ma(Fa({},e,{color:"transparent",onFocus:N.onFocus,onBlur:N.onBlur})))})):null}),[B,N.onFocus,N.onBlur]);return!A.some((function(e){return null==S.get(e)}))&&O&&P&&k?i.createElement("g",{className:"visx-area-stack"},D.map((function(e){return i.createElement(aa.Z,Fa({key:e.key,curve:o},e.accessors),(function(t){var r=t.path;return i.createElement(n,Fa({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,N))}))})),w&&D.map((function(e){return i.createElement(xa.Z,Fa({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:o},e.lineProps),(function(t){var r=t.path;return i.createElement(n,Fa({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))}))})),B&&D.map((function(e,t){var n=D[D.length-t-1];return i.createElement(ha,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:Za,yScale:Za,renderGlyphs:F})}))):null}za.propTypes={children:o().oneOfType([o().element,o().arrayOf(o().element)]).isRequired,renderLine:o().bool};var Va=za;function Ua(e){return i.createElement(Va,e)}var Wa=n(89662);function Ha(){return Ha=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},Ha.apply(this,arguments)}function qa(){return qa=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},qa.apply(this,arguments)}function $a(e){var t=e.children,n=e.padding,r=void 0===n?.1:n,o=e.sortBars,a=e.BarsComponent,s=e.onBlur,u=e.onFocus,c=e.onPointerMove,l=e.onPointerOut,f=e.onPointerUp,d=e.onPointerDown,m=e.enableEvents,y=void 0===m||m,g=(0,i.useContext)(p),b=g.colorScale,_=g.dataRegistry,w=g.horizontal,x=g.registerData,k=g.unregisterData,S=g.xScale,E=g.yScale,O=(0,i.useMemo)((function(){return Ia(t)}),[t]),P=(0,i.useMemo)((function(){return O.map((function(e){var t;return null!=(t=e.props.dataKey)?t:""})).filter((function(e){return e}))}),[O]);(0,i.useEffect)((function(){var e=O.map((function(e){var t=e.props;return{key:t.dataKey,data:t.data,xAccessor:t.xAccessor,yAccessor:t.yAccessor}}));return x(e),function(){return k(P)}}),[x,k,O,P]);var T=(0,i.useMemo)((function(){return(0,Wa.Z)({domain:o?[].concat(P).sort(o):P,range:[0,h(w?E:S)],padding:r})}),[o,P,S,E,w,r]),C=(0,i.useCallback)((function(e){return function(e,t,n){var r=e.dataKey,o=e.xAccessor,i=e.yAccessor,a=e.xScale,s=e.yScale,u=e.point,c=(n?Xi:Ki)(e);if(!c||!u)return null;var l=t(r),f=t.step();if(n){var d=s(i(c.datum)),p=(null!=d?d:1/0)+(null!=l?l:1/0),h=p+f,v=(p+h)/2;return Ha({},c,{distanceX:0,distanceY:u.y>=p&&u.y<=h?0:Math.abs(u.y-v)})}var m=a(o(c.datum)),y=(null!=m?m:1/0)+(null!=l?l:1/0),g=y+f,b=(y+g)/2;return Ha({},c,{distanceY:0,distanceX:u.x>=y&&u.x<=g?0:Math.abs(u.x-b)})}
163(e,T,w)}),[T,w]),A="BARGROUP_EVENT_SOURCE-"+P.join("-")+"}",j=da({dataKey:P,enableEvents:y,findNearestDatum:C,onBlur:s,onFocus:u,onPointerMove:c,onPointerOut:l,onPointerUp:f,onPointerDown:d,source:A,allowedSources:[Wi,A]}),R=(0,i.useMemo)((function(){return S?fa(S):0}),[S]),M=(0,i.useMemo)((function(){return E?fa(E):0}),[E]),D=P.map((function(e){return _.get(e)}));if(D.some((function(e){return null==e}))||!S||!E||!b)return null;var I=h(T),L=D.map((function(e){var t,n=e.xAccessor,r=e.yAccessor,o=e.data,i=e.key,a=function(e){var t,o;return w?(null!=(t=S(n(e)))?t:NaN)-R:(null!=(o=E(r(e)))?o:NaN)-M},s=w?function(e){var t;return null!=(t=E(r(e)))?t:NaN}:function(e){var t;return null!=(t=S(n(e)))?t:NaN},u=null!=(t=T(i))?t:0,c=w?function(e){return R+Math.min(0,a(e))}:function(e){return s(e)+u},l=w?function(e){return s(e)+u}:function(e){return M+Math.min(0,a(e))},f=w?function(e){return Math.abs(a(e))}:function(){return I},d=w?function(){return I}:function(e){return Math.abs(a(e))},p=O.find((function(e){return e.props.dataKey===i})),h=(null==p?void 0:p.props)||{},m=h.colorAccessor,y=h.radius,g=h.radiusAll,_=h.radiusBottom,x=h.radiusLeft,k=h.radiusRight,P=h.radiusTop;return{key:i,radius:y,radiusAll:g,radiusBottom:_,radiusLeft:x,radiusRight:k,radiusTop:P,bars:o.map((function(e,t){var n,r=c(e);if(!v(r))return null;var o=l(e);if(!v(o))return null;var a=f(e);if(!v(a))return null;var s=d(e);return v(s)?{key:i+"-"+t,x:r,y:o,width:a,height:s,fill:null!=(n=null==m?void 0:m(e,t))?n:b(i)}:null})).filter((function(e){return e}))}}));return i.createElement("g",{className:"visx-bar-group"},L.map((function(e){return e&&i.createElement(a,qa({horizontal:w,xScale:S,yScale:E},e,j,{key:e.key}))})))}$a.propTypes={children:o().node.isRequired,padding:o().number,sortBars:o().func};var Ga=n(28761),Ya=["bars","horizontal","xScale","yScale","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],Ka=["key"];function Xa(){return Xa=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},Xa.apply(this,arguments)}function Qa(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}function Ja(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,o=e.radiusTop,a=e.radiusRight,s=e.radiusBottom,u=e.radiusLeft,c=Qa(e,Ya),l=Boolean(c.onFocus||c.onBlur);return i.createElement(i.Fragment,null,t.map((function(e){var t=e.key,f=Qa(e,Ka);return null==n?i.createElement("rect",Xa({key:t,className:"visx-bar",tabIndex:l?0:void 0},f,c)):i.createElement(Ga.Z,Xa({key:t,className:"visx-bar",tabIndex:l?0:void 0,radius:n,all:r,top:o,right:a,bottom:s,left:u},f,c))})))}function es(){return es=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},es.apply(this,arguments)}function ts(e){return i.createElement($a,es({},e,{BarsComponent:Ja}))}var ns=["BarsComponent","barPadding","colorAccessor","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale"];function rs(){return rs=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},rs.apply(this,arguments)}function os(e){var t,n,r,o=e.BarsComponent,a=e.barPadding,s=void 0===a?.1:a,u=e.colorAccessor,c=e.data,l=e.dataKey,f=e.onBlur,d=e.onFocus,m=e.onPointerMove,y=e.onPointerOut,g=e.onPointerUp,b=e.onPointerDown,_=e.enableEvents,w=void 0===_||_,x=e.xAccessor,k=e.xScale,S=e.yAccessor,E=e.yScale,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,ns),P=(0,i.useContext)(p),T=P.colorScale,C=P.horizontal,A=P.theme,j=P.innerWidth,R=void 0===j?0:j,M=P.innerHeight,D=void 0===M?0:M,I=(0,i.useMemo)((function(){return la(k,x)}),[k,x]),L=(0,i.useMemo)((function(){return la(E,S)}),[E,S]),N=h(C?E:k)||function(e,t){return e*(1-Math.min(1,Math.max(0,t)))}((C?D:R)/c.length,s),B=(0,i.useMemo)((function(){return k?fa(k):0}),[k]),F=(0,i.useMemo)((function(){return E?fa(E):0}),[E]),Z=null!=(t=null!=(n=null==T?void 0:T(l))?n:null==A||null==(r=A.colors)?void 0:r[0])?t:"#222",z=(0,i.useMemo)((function(){var e=C?0:-N/2,t=C?-N/2:0;return c.map((function(n,r){var o,i=I(n)+e;if(!v(i))return null;var a=L(n)+t;if(!v(a))return null;var s=C?i-B:a-F;return v(s)?{key:""+r,x:C?B+Math.min(0,s):i,y:C?a:F+Math.min(0,s),width:C?Math.abs(s):N,height:C?N:Math.abs(s),fill:null!=(o=null==u?void 0:u(n,r))?o:Z}:null})).filter((function(e){return e}))}),[N,Z,u,c,I,L,C,B,F]),V="BARSERIES_EVENT_SOURCE-"+l,U=da({dataKey:l,enableEvents:w,onBlur:f,onF
163ocus:d,onPointerMove:m,onPointerOut:y,onPointerUp:g,onPointerDown:b,source:V,allowedSources:[Wi,V]});return i.createElement("g",{className:"vx-bar-series"},i.createElement(o,rs({bars:z,horizontal:C,xScale:k,yScale:E},U,O)))}os.propTypes={barPadding:o().number,colorAccessor:o().func};var is=ca(os),as=["colorAccessor"];function ss(){return ss=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},ss.apply(this,arguments)}var us=function(e){var t=e.colorAccessor,n=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,as);return i.createElement(is,ss({},n,{colorAccessor:t,BarsComponent:Ja}))},cs=n(24572);function ls(){return ls=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},ls.apply(this,arguments)}function fs(e){var t=e.children,n=e.order,r=e.offset,o=e.BarsComponent,a=e.onBlur,s=e.onFocus,u=e.onPointerMove,c=e.onPointerOut,l=e.onPointerUp,f=e.onPointerDown,d=e.enableEvents,h=void 0===d||d,m=(0,i.useContext)(p),y=m.colorScale,g=m.dataRegistry,b=m.horizontal,_=m.xScale,w=m.yScale,x=La({children:t,order:n,offset:r}),k=x.seriesChildren,S=x.dataKeys,E=x.stackedData,O=(0,i.useCallback)((function(e){var t,n,r=null==(t=k.find((function(t){return t.props.dataKey===e.dataKey})))||null==(n=t.props)?void 0:n.data;return r?Na(e,r,b):null}),[k,b]),P="BARSTACK_EVENT_SOURCE-"+S.join("-"),T=da({dataKey:S,enableEvents:h,findNearestDatum:O,onBlur:a,onFocus:s,onPointerMove:u,onPointerOut:c,onPointerUp:l,onPointerDown:f,source:P,allowedSources:[Wi,P]});if(S.map((function(e){return g.get(e)})).some((function(e){return null==e}))||!_||!w||!y)return null;var C,A,j,R,M=(0,cs.Z)(b?w:_),D=M/2;b?(C=function(e){var t,n;return(null!=(t=_((0,ka.xf)(e)))?t:NaN)-(null!=(n=_((0,ka.l8)(e)))?n:NaN)},A=function(){return M},j=function(e){return _((0,ka.l8)(e))},R=function(e){var t;return"bandwidth"in w?w(Da(e.data)):Math.max((null!=(t=w(Da(e.data)))?t:NaN)-D)}):(C=function(){return M},A=function(e){var t,n;return(null!=(t=w((0,ka.l8)(e)))?t:NaN)-(null!=(n=w((0,ka.xf)(e)))?n:NaN)},j=function(e){var t;return"bandwidth"in _?_(Da(e.data)):Math.max((null!=(t=_(Da(e.data)))?t:NaN)-D)},R=function(e){return w((0,ka.xf)(e))});var I=E.map((function(e,t){if(!g.get(e.key))return null;var n=k.find((function(t){return t.props.dataKey===e.key})),r=(null==n?void 0:n.props)||{},o=r.colorAccessor,i=r.radius,a=r.radiusAll,s=r.radiusBottom,u=r.radiusLeft,c=r.radiusRight,l=r.radiusTop;return{key:e.key,radius:i,radiusAll:a,radiusBottom:s,radiusLeft:u,radiusRight:c,radiusTop:l,bars:e.map((function(r,i){var a,s=j(r);if(!v(s))return null;var u=R(r);if(!v(u))return null;var c=C(r);if(!v(c))return null;var l=A(r);if(!v(l))return null;var f=o?null==n||null==(a=n.props)?void 0:a.data[i]:null;return{key:t+"-"+e.key+"-"+i,x:s,y:u,width:c,height:l,fill:f&&o?o(f,i):y(e.key)}})).filter((function(e){return e}))}})).filter((function(e){return e}));return i.createElement("g",{className:"visx-bar-stack"},I.map((function(e){return e&&i.createElement(o,ls({horizontal:b,xScale:_,yScale:w},e,T,{key:e.key}))})))}fs.propTypes={children:o().oneOfType([o().element,o().arrayOf(o().element)]).isRequired};var ds=fs;function ps(){return ps=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},ps.apply(this,arguments)}function hs(e){return i.createElement(ds,ps({},e,{BarsComponent:Ja}))}var vs=["renderGlyph"];function ms(){return ms=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},ms.apply(this,arguments)}function ys(e){var t=e.renderGlyph,n=void 0===t?ma:t,r=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,vs),o=(0,i.useCallback)((function(e){var t=e.glyphs,r=e.onPointerMove,o=e.onPointerOut,a=e.onPointerUp,s=e.onFocus,u=e.onBlur;return t.map((function(e){return i.createElement(i.Fragment,{key:e.key},n(ms({},e,{onPointerMove:r,onPointerOut:o,onPointerUp:a,onFocus:s,onBlur:u})))}))}),[n]);return i.createElement(va,ms({},r,{renderGlyphs:o}))}var gs=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function bs(){return bs=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},bs.apply(this,arguments)}function _s(e){var t,n,r,o=e.colorAccessor,a=e.curve,s=e.data,u=e.dataKey,c=e.onBlur,l=e.onFocus,f=e.onPointerMove,d=e.onPointerOut,h=e.onPointerUp,m=e.onPointerDown,y=e.enableEvents,g=void 0===y||y,b=e.xAccessor,_=e.xScale,w=e.yAccessor,x=e.yScale,k=e.PathComponent,S=void 0===k?"path":k,E=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,gs),O=(0,i.useContext)(p),P=O.colorScale,T=O.theme,C=(0,i.useMemo)((function(){return la(_,b)}),[_,b]),A=(0,i.useMemo)((function(){return la(x,w)}),[x,w]),j=(0,i.useCallback)((function(e){return v(_(b(e)))&&v(x(w(e)))}),[_,b,x,w]),R=null!=(t=null!=(n=null==P?void 0:P(u))?n:null==T||null==(r=T.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+u,D=da({dataKey:u,enableEvents:g,onBlur:c,onFocus:l,onPointerMove:f,onPointerOut:d,onPointerUp:h,onPointerDown:m,source:M,allowedSources:[Wi,M]}),I=Boolean(l||c),L=(0,i.useCallback)((function(e){var t=e.glyphs;return I?t.map((function(e){return i.createElement(i.Fragment,{key:e.key},ma(bs({},e,{color:"transparent",onFocus:D.onFocus,onBlur:D.onBlur})))})):null}),[I,D.onFocus,D.onBlur]);return i.createElement(i.Fragment,null,i.createElement(sa.Z,bs({x:C,y:A,defined:j,curve:a},E),(function(e){var t,n=e.path;return i.createElement(S,bs({stroke:null!=(t=null==o?void 0:o(u))?t
163:R,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},E,{d:n(s)||""},D))})),I&&i.createElement(ha,{dataKey:u,data:s,xAccessor:b,yAccessor:w,xScale:_,yScale:x,renderGlyphs:L}))}_s.propTypes={colorAccessor:o().func};var ws=ca(_s);function xs(e){return i.createElement(ws,e)}var ks=n(36088),Ss=["d","stroke","fill"];function Es(){return Es=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},Es.apply(this,arguments)}function Os(e){var t=e.d,n=e.stroke,r=void 0===n?"transparent":n,o=e.fill,a=void 0===o?"transparent":o,s=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,Ss),u=(0,i.useRef)(t),c=(0,i.useCallback)(bi()((function(e){u.current=e}),50),[]),l=(0,ks.interpolatePath)(u.current,t);c(t);var f=Bn({from:{t:0},to:{t:1},reset:!0,delay:0}).t,d=Bn({stroke:r,fill:a});return i.createElement(sr.path,Es({className:"visx-path",d:f.to(l),stroke:d.stroke,fill:d.fill},s))}function Ps(){return Ps=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},Ps.apply(this,arguments)}function Ts(e){return i.createElement(_a,Ps({},e,{PathComponent:Os}))}function Cs(){return Cs=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},Cs.apply(this,arguments)}function As(e){return i.createElement(Va,Cs({},e,{PathComponent:Os}))}var js=function(e){return Boolean(null==e?void 0:e.includes("url("))},Rs=function(e){return js(e)?"rgba(0,0,0,0.1)":e},Ms=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],Ds=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function Is(){return Is=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},Is.apply(this,arguments)}function Ls(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}function Ns(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill;return{x:t,y:n,width:r,height:o,fill:Rs(i),opacity:1}}function Bs(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,o=e.radiusTop,a=e.radiusRight,s=e.radiusBottom,u=e.radiusLeft,c=Ls(e,Ms);return i.createElement(i.Fragment,null,t.map((function(e){var t=e.key,l=e.fill,f=e.x,d=e.y,p=e.width,h=e.height;return i.createElement(Ga.Z,{key:t,x:f,y:d,width:p,height:h,radius:n,all:r,top:o,right:a,bottom:s,left:u},(function(e){var t=e.path;return i.createElement(Os,Is({className:"visx-bar visx-bar-rounded",d:t,fill:l},c))}))})))}function Fs(e){var t=e.bars,n=e.xScale,r=e.yScale,o=e.horizontal,a=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,Ls(e,Ds)),s=Fn(t,Is({},function(e){var t=e.scale,n=!!e.horizontal;return(0,i.useMemo)((function(){var e=fa(t);function r(t){var r=t.x,o=t.y,i=t.width,a=t.height,s=t.fill;return{x:n?null!=e?e:0:r,y:n?o:null!=e?e:0,width:n?0:i,height:n?a:0,fill:Rs(s),opacity:0}}return{unique:!0,from:r,leave:r,enter:Ns,update:Ns,keys:function(e){return e.key}}}),[t,n])}({horizontal:o,scale:o?n:r}))),u=Boolean(a.onFocus||a.onBlur);return i.createElement(i.Fragment,null,s((function(e,t,n){var r=e.x,o=e.y,s=e.width,c=e.height,l=e.fill,f=e.opacity,d=n.key;return null==t||null==d?null:i.createElement(sr.rect,Is({key:d,tabIndex:u?0:void 0,className:"visx-bar",x:r,y:o,width:s,height:c,fill:js(t.fill)?t.fill:l,opacity:f},a))})))}function Zs(e){return null==e.radius?i.createElement(Fs,e):i.createElement(Bs,Is({},e,{radius:e.radius}))}var zs=["colorAccessor"];function Vs(){return Vs=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},Vs.apply(this,arguments)}function Us(e){var t=e.colorAccessor,n=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,zs);return i.createElement(is,Vs({},n,{colorAccessor:t,BarsComponent:Zs}))}function Ws(){return Ws=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},Ws.apply(this,arguments)}function Hs(e){return i.createElement(ds,Ws({},e,{BarsComponent:Zs}))}function qs(){return qs=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},qs.apply(this,arguments)}function $s(e){return i.createElement($a,qs({},e,{BarsComponent:Zs}))}function Gs(){return Gs=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},Gs.apply(this,arguments)}function Ys(e){var t=e.renderGlyph,n=e.glyphs,r=e.horizontal,o=e.xScale,a=e.yScale,s=e.onBlur,u=e.onFocus,c=e.onPointerMove,l=e.onPointerOut,f=e.onPointerUp,d=Fn(n,Gs({},function(e){var t=e.xScale,n=e.yScale,r=e.horizontal,o=fa(t),a=fa(n);return(0,i.useMemo)((function(){return{unique:!0,from:function(e){var t=e.x,n=e.y,i=e.color;return{x:r?o:t,y:r?n:a,color:Rs(i),opacity:0}
163},leave:function(e){var t=e.x,n=e.y,i=e.color;return{x:r?o:t,y:r?n:a,color:Rs(i),opacity:0}},enter:function(e){var t=e.x,n=e.y,r=e.color;return{x:t,y:n,color:Rs(r),opacity:1}},update:function(e){var t=e.x,n=e.y,r=e.color;return{x:t,y:n,color:Rs(r),opacity:1}},keys:function(e){return e.key}}}),[o,a,r])}({xScale:o,yScale:a,horizontal:r})));return i.createElement(i.Fragment,null,d((function(e,n,r){var o=e.x,a=e.y,d=e.color,p=e.opacity,h=r.key;return i.createElement(sr.g,{key:h,transform:qn([o,a],(function(e,t){return"translate("+e+", "+t+")"})),color:d,opacity:p},t({key:h,datum:n.datum,index:n.index,x:0,y:0,size:n.size,color:js(n.color)?n.color:"currentColor",onBlur:s,onFocus:u,onPointerMove:c,onPointerOut:l,onPointerUp:f}))})))}var Ks=["renderGlyph"];function Xs(){return Xs=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},Xs.apply(this,arguments)}function Qs(e){var t=e.renderGlyph,n=void 0===t?ma:t,r=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,Ks),o=(0,i.useCallback)((function(e){return i.createElement(Ys,Xs({},e,{renderGlyph:n}))}),[n]);return i.createElement(va,Xs({},r,{renderGlyphs:o}))}function Js(){return Js=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},Js.apply(this,arguments)}function eu(e){return i.createElement(ws,Js({},e,{PathComponent:Os}))}function tu(e){var t=e.theme,n=void 0===t?Mi:t,r=e.children;return i.createElement(Di.Provider,{value:n},r)}var nu=Ri({backgroundColor:"#222",colors:[Oi.cyan[4],Oi.teal[1],Oi.yellow[2],Oi.red[4],Oi.grape[3],Oi.grape[6],Oi.pink[3]],tickLength:4,svgLabelSmall:{fill:Pi[2]},svgLabelBig:{fill:Pi[0]},gridColor:Pi[4],gridColorDark:Pi[1]})},69282:function(e,t,n){"use strict";var r=n(83454);function o(e){return o="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},o(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,s(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var u,c,l=n(62136).codes,f=l.ERR_AMBIGUOUS_ARGUMENT,d=l.ERR_INVALID_ARG_TYPE,p=l.ERR_INVALID_ARG_VALUE,h=l.ERR_INVALID_RETURN_VALUE,v=l.ERR_MISSING_ARGS,m=n(25961),y=n(89539).inspect,g=n(89539).types,b=g.isPromise,_=g.isRegExp,w=n(38399)(),x=n(75624)(),k=n(21924)("RegExp.prototype.test");new Map;function S(){var e=n(19158);u=e.isDeepEqual,c=e.isDeepStrictEqual}var E=!1,O=e.exports=A,P={};function T(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function C(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];C.apply(void 0,[A,t.length].concat(t))}O.fail=function e(t,n,o,i,a){var s,u=arguments.length;if(0===u)s="Failed";else if(1===u)o=t,t=void 0;else{if(!1===E){E=!0;var c=r.emitWarning?r.emitWarning:console.warn.bind(console);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===u&&(i="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:n,operator:void 0===i?"fail":i,stackStartFn:a||e};
163void 0!==o&&(l.message=o);var f=new m(l);throw s&&(f.message=s,f.generatedMessage=!0),f},O.AssertionError=m,O.ok=A,O.equal=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");t!=n&&T({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},O.notEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");t==n&&T({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===u&&S(),u(t,n)||T({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===u&&S(),u(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===u&&S(),c(t,n)||T({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");void 0===u&&S();c(t,n)&&T({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},O.strictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");x(t,n)||T({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new v("actual","expected");x(t,n)&&T({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var j=a((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),n.forEach((function(e){e in t&&(void 0!==r&&"string"===typeof r[e]&&_(t[e])&&k(t[e],r[e])?o[e]=r[e]:o[e]=t[e])}))}));function R(e,t,n,r,o,i){if(!(n in e)||!c(e[n],t[n])){if(!r){var a=new j(e,o),s=new j(t,o,e),u=new m({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=e,u.expected=t,u.operator=i.name,u}T({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}function M(e,t,n,r){if("function"!==typeof t){if(_(t))return k(t,e);if(2===arguments.length)throw new d("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var i=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===u&&S(),a.forEach((function(o){"string"===typeof e[o]&&_(t[o])&&k(t[o],e[o])||R(e,t,o,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function D(e){if("function"!==typeof e)throw new d("fn","Function",e);try{e()}catch(t){return t}return P}function I(e){return b(e)||null!==e&&"object"===o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function L(e){return Promise.resolve().then((function(){var t;if("function"===typeof e){if(!I(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!I(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return P})).catch((function(e){return e}))}))}function N(e,t,n,r){if("string"===typeof n){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],n);if("object"===o(t)&&null!==t){if(t.message===n)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==o(n)&&"function"!==typeof n)throw new d("error",["Object","Error","Function","RegExp"],n);if(t===P){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(n&&!M(t,n,r,e))throw t}function B(e,t,n,r){if(t!==P){if("string"===typeof n&&(r=n,n=void 0),!n||M(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";
163T({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function F(e,t,n,r,i){if(!_(t))throw new d("regexp","RegExp",t);var a="match"===i;if("string"!==typeof e||k(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!==typeof e?'The "string" argument must be of type string. Received type '+"".concat(o(e)," (").concat(y(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var u=new m({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw u.generatedMessage=s,u}}function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];C.apply(void 0,[Z,t.length].concat(t))}O.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];N.apply(void 0,[e,D(t)].concat(r))},O.rejects=function e(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 L(t).then((function(t){return N.apply(void 0,[e,t].concat(r))}))},O.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];B.apply(void 0,[e,D(t)].concat(r))},O.doesNotReject=function e(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 L(t).then((function(t){return B.apply(void 0,[e,t].concat(r))}))},O.ifError=function e(t){if(null!==t&&void 0!==t){var n="ifError got unwanted exception: ";"object"===o(t)&&"string"===typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"===typeof i){var a=i.split("\n");a.shift();for(var s=r.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},O.match=function e(t,n,r){F(t,n,r,e,"match")},O.doesNotMatch=function e(t,n,r){F(t,n,r,e,"doesNotMatch")},O.strict=w(Z,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},25961:function(e,t,n){"use strict";var r=n(83454);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=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function c(e,t){if(t&&("object"===m(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t="function"===typeof Map?new Map:void 0;return f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,v(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)},f(e)}function d(e,t,n){return d=p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o},d.apply(null,arguments)}function p(){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}}
vendor: 15,214 bytes, line 163
163function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e){return m="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},m(e)}var y=n(89539).inspect,g=n(62136).codes.ERR_INVALID_ARG_TYPE;function b(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var _="",w="",x="",k="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function O(e){return y(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(e,t,n){var o="",i="",a=0,s="",u=!1,c=O(e),l=c.split("\n"),f=O(t).split("\n"),d=0,p="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var h=l[0].length+f[0].length;if(h<=10){if(("object"!==m(e)||null===e)&&("object"!==m(t)||null===t)&&(0!==e||0!==t))return"".concat(S[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n){if(h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][d]===f[0][d];)d++;d>2&&(p="\n  ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}}for(var v=l[l.length-1],y=f[f.length-1];v===y&&(d++<2?s="\n  ".concat(v).concat(s):o=v,l.pop(),f.pop(),0!==l.length&&0!==f.length);)v=l[l.length-1],y=f[f.length-1];var g=Math.max(l.length,f.length);if(0===g){var E=c.split("\n");if(E.length>30)for(E[26]="".concat(_,"...").concat(k);E.length>27;)E.pop();return"".concat(S.notIdentical,"\n\n").concat(E.join("\n"),"\n")}d>3&&(s="\n".concat(_,"...").concat(k).concat(s),u=!0),""!==o&&(s="\n  ".concat(o).concat(s),o="");var P=0,T=S[n]+"\n".concat(w,"+ actual").concat(k," ").concat(x,"- expected").concat(k),C=" ".concat(_,"...").concat(k," Lines skipped");for(d=0;d<g;d++){var A=d-a;if(l.length<d+1)A>1&&d>2&&(A>4?(i+="\n".concat(_,"...").concat(k),u=!0):A>3&&(i+="\n  ".concat(f[d-2]),P++),i+="\n  ".concat(f[d-1]),P++),a=d,o+="\n".concat(x,"-").concat(k," ").concat(f[d]),P++;else if(f.length<d+1)A>1&&d>2&&(A>4?(i+="\n".concat(_,"...").concat(k),u=!0):A>3&&(i+="\n  ".concat(l[d-2]),P++),i+="\n  ".concat(l[d-1]),P++),a=d,i+="\n".concat(w,"+").concat(k," ").concat(l[d]),P++;else{var j=f[d],R=l[d],M=R!==j&&(!b(R,",")||R.slice(0,-1)!==j);M&&b(j,",")&&j.slice(0,-1)===R&&(M=!1,R+=","),M?(A>1&&d>2&&(A>4?(i+="\n".concat(_,"...").concat(k),u=!0):A>3&&(i+="\n  ".concat(l[d-2]),P++),i+="\n  ".concat(l[d-1]),P++),a=d,i+="\n".concat(w,"+").concat(k," ").concat(R),o+="\n".concat(x,"-").concat(k," ").concat(j),P+=2):(i+=o,o="",1!==A&&0!==d||(i+="\n  ".concat(R),P++))}if(P>20&&d<g-2)return"".concat(T).concat(C,"\n").concat(i,"\n").concat(_,"...").concat(k).concat(o,"\n")+"".concat(_,"...").concat(k)}return"".concat(T).concat(u?C:"","\n").concat(i).concat(o).concat(s).concat(p)}var T=function(e,t){!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&&h(e,t)}(f,e);var n,o,a,u=function(e){var t=p();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}(f);function f(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),"object"!==m(e)||null===e)throw new g("options","Object",e);var n=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,s=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=u.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(_="\x1b[34m",w="\x1b[32m",k="\x1b[39m",x="\x1b[31m"):(_="",w="",k="",x="")),"object"===m(a)&&null!==a&&"object"===m(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=E(a),s=E(s)),"deepStrictEqual"===o||"strictEqual"===o)t=u.call(this,P(a,s,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var p=S[o],h=O(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(p=S.notStrictEqualObject),h.length>30)for(h[26]="".concat(_,"...").concat(k);h.length>27;)h.pop();t=1===h.length?u.call(this,"".concat(p," ").concat(h[0])):u.call(this,"".concat(p,"\n\n").concat(h.join("\n"),"\n"))}else{var v=O(a),y="",b=S[o];"notDeepEqual"===o||"notEqual"===o?(v="".concat(S[o],"\n\n").concat(v)).length>1024&&(v="".concat(v.slice(0,1021),"...")):(y="".concat(O(s)),v.length>512&&(v="".concat(v.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===o||"equal"===o?v="".concat(b,"\n\n").concat(v,"\n\nshould equal\n\n"):y=" ".concat(o," ").concat(y)),t=u.call(this,"".concat(v).concat(y))}return Error.stackTraceLimit=d,t.generatedMessage=!n,Object.defineProperty(l(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(t),i),t.stack,t.name="AssertionError",c(t)}return n=f,(o=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return y(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&s(n.prototype,o),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),f}(f(Error),y.custom);e.exports=T},62136:function(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)}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,i(r.key),r)}}function i(e){var t=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,"string");return"symbol"===r(t)?t:String(t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=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}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l,f,d={};function p(e,t,n){n||(n=Error);var r=function(n){!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&&a(e,t)}(l,n);var r,i,u,c=s(l);function l(n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i=c.call(this,function(e,n,r){return"string"===typeof t?t:t(e,n,r)}(n,r,o)),i.code=e,i}return r=l,i&&o(r.prototype,i),u&&o(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r}(n);d[e]=r}function h(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,s,u;if(void 0===l&&(l=n(69282)),l("string"===typeof e,"'name' must be a string"),"string"===typeof t&&(a="not ",t.substr(!s||s<0?0:+s,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))u="The ".concat(e," ").concat(i," ").concat(h(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(h(t,"type"))}return u+=". Received type ".concat(r(o))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=n(89539));var o=f.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===l&&(l=n(69282)),l(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=d},19158:function(e,t,n){"use strict";function r(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,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(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 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){return i="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},i(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},u=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},c=Object.is?Object.is:n(20609),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(20360);function d(e){return e.call.bind(e)}var p=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),v=d(Object.prototype.toString),m=n(89539).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,b=m.isDate,_=m.isMap,w=m.isRegExp,x=m.isSet,k=m.isNativeError,S=m.isBoxedPrimitive,E=m.isNumberObject,O=m.isStringObject,P=m.isBooleanObject,T=m.isBigIntObject,C=m.isSymbolObject,A=m.isFloat32Array,j=m.isFloat64Array;function R(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(R).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function D(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function I(e,t,n,r){if(e===t)return 0!==e||(!n||c(e,t));if(n){if("object"!==i(e))return"number"===typeof e&&f(e)&&f(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,u,l,d=v(e);if(d!==v(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=M(e),h=M(t);return p.length===h.length&&N(e,t,n,r,1,p)}if("[object Object]"===d&&(!_(e)&&_(t)||!x(e)&&x(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(u=e,l=t,!(a?u.source===l.source&&u.flags===l.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(l))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(g(e)){if(n||!A(e)&&!j(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===D(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=M(e),R=M(t);return m.length===R.length&&N(e,t,n,r,0,m)}if(x(e))return!(!x(t)||e.size!==t.size)&&N(e,t,n,r,2);if(_(e))return!(!_(t)||e.size!==t.size)&&N(e,t,n,r,3);
163if(y(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==D(new Uint8Array(o),new Uint8Array(s)))return!1}else if(S(e)&&!function(e,t){return E(e)?E(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):P(e)?P(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):T(e)?T(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return N(e,t,n,r,0)}function L(e,t){return t.filter((function(t){return h(e,t)}))}function N(e,t,n,r,o,i){if(5===arguments.length){i=Object.keys(e);var a=Object.keys(t);if(i.length!==a.length)return!1}for(var s=0;s<i.length;s++)if(!p(t,i[s]))return!1;if(n&&5===arguments.length){var u=l(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var f=u[s];if(h(e,f)){if(!h(t,f))return!1;i.push(f),c++}else if(h(t,f))return!1}var d=l(t);if(u.length!==d.length&&L(t,d).length!==c)return!1}else{var v=l(t);if(0!==v.length&&0!==L(t,v).length)return!1}}if(0===i.length&&(0===o||1===o&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var m=r.val1.get(e);if(void 0!==m){var y=r.val2.get(t);if(void 0!==y)return m===y}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=U(e,t,n,i,r,o);return r.val1.delete(e),r.val2.delete(t),g}function B(e,t,n,r){for(var o=s(e),i=0;i<o.length;i++){var a=o[i];if(I(t,a,n,r))return e.delete(a),!0}return!1}function F(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function Z(e,t,n){var r=F(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,o){var i=F(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!I(r,a,!1,o))&&(!e.has(i)&&I(r,a,!1,o))}function V(e,t,n,r,o,i){for(var a=s(e),u=0;u<a.length;u++){var c=a[u];if(I(n,c,o,i)&&I(r,t.get(c),o,i))return e.delete(c),!0}return!1}function U(e,t,n,o,a,c){var l=0;if(2===c){if(!function(e,t,n,r){for(var o=null,a=s(e),u=0;u<a.length;u++){var c=a[u];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!t.has(c)){if(n)return!1;if(!Z(e,t,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var l=s(t),f=0;f<l.length;f++){var d=l[f];if("object"===i(d)&&null!==d){if(!B(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!B(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(3===c){if(!function(e,t,n,o){for(var a=null,s=u(e),c=0;c<s.length;c++){var l=r(s[c],2),f=l[0],d=l[1];if("object"===i(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!I(d,p,n,o)){if(n)return!1;if(!z(e,t,f,d,o))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var h=u(t),v=0;v<h.length;v++){var m=r(h[v],2),y=m[0],g=m[1];if("object"===i(y)&&null!==y){if(!V(a,e,y,g,n,o))return!1}else if(!n&&(!e.has(y)||!I(e.get(y),g,!1,o))&&!V(a,e,y,g,!1,o))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===c)for(;l<e.length;l++){if(!p(e,l)){if(p(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var d=f[l];if(!p(t,d)||!I(e[d],t[d],n,a))return!1}return f.length===Object.keys(t).length}if(!p(t,l)||!I(e[l],t[l],n,a))return!1}for(l=0;l<o.length;l++){var h=o[l];if(!I(e[h],t[h],n,a))return!1}return!0}e.exports={isDeepEqual:function(e,t){return I(e,t,false)},isDeepStrictEqual:function(e,t){return I(e,t,true)}}},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),o=n(36026),i=n(4372),a=n(15327),s=n(94097),u=n(84109),c=n(67985),l=n(77874),f=n(82648),d=n(60644),p=n(90205);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,m=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+w)}var x=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||c(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof v&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),y&&"json"!==y&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var E=p(x);E&&-1===["http","https","file"].indexOf(E)?n(new f("Unsupported protocol "+E+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},51609:function(e,t,n){"use strict";var r=n(64867),o=n(91849),i=n(30321),a=n(47185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(45546));s.Axios=i,s.CanceledError=n(60644),s.CancelToken=n(14972),s.isCancel=n(26502),s.VERSION=n(97288).version,s.toFormData=n(47675),s.AxiosError=n(82648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},14972:function(e,t,n){"use strict";var r=n(60644);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},60644:function(e,t,n){"use strict";var r=n(82648);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(64867).inherits(o,r,{__CANCEL__:!0}),e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),o=n(15327),i=n(80782),a=n(13572),s=n(47185),u=n(94097),c=n(54875),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];
vendor: 4,553 bytes, line 163
163if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(v){h(v);break}}try{i=a(d)}catch(v){return Promise.reject(v)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},82648:function(e,t,n){"use strict";var r=n(64867);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,u){var c=Object.create(i);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},80782:function(e,t,n){"use strict";var r=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var r=n(91793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},13572:function(e,t,n){"use strict";var r=n(64867),o=n(18527),i=n(26502),a=n(45546),s=n(60644);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)})),n}},36026:function(e,t,n){"use strict";var r=n(82648);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ER
163R_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),o=n(45546);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},45546:function(e,t,n){"use strict";var r=n(83454),o=n(64867),i=n(16016),a=n(82648),s=n(77874),u=n(47675),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof r&&"[object process]"===Object.prototype.toString.call(r))&&(e=n(55448)),e}(),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),a=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw a.from(s,a.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(91623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){f.headers[e]=o.merge(c)})),e.exports=f},77874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(e){e.exports={version:"0.27.2"}},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},91623:function(e){e.exports=null},84109:function(e,t,n){"use strict";var r=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},90205:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47675:function(e,t,n){"use strict";var r=n(48764).lW,o=n(64867);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var s,u=a?a+"."+r:r;if(n&&!a&&"object"===typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(s=o.toArray(n)))return void s.forEac
163h((function(e){!o.isUndefined(e)&&t.append(u,i(e))}));e(n,u)}})),n.pop()}else t.append(a,i(r))}(e),t}},54875:function(e,t,n){"use strict";var r=n(97288).version,o=n(82648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},64867:function(e,t,n){"use strict";var r,o=n(91849),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return"undefined"===typeof e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),v=s("Blob"),m=s("FileList");function y(e){return"[object Function]"===i.call(e)}var g=s("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var _,w=(_="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:p,isFile:h,isBlob:v,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"===typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:m}},5623:function(e){"use strict";function t(e,t,o){e instanceof RegExp&&(e=n(e,o)),t instanceof RegExp&&(t=n(t,o));var i=r(e,t,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,o,i,a,s,u=n.indexOf(e),c=n.indexOf(t,u+1),l=u;if(u>=0&&c>0){if(e===t)return[u,c];for(r=[],i=n.length;l>=0&&!s;)l==u?(r.push(l),u=n.indexOf(e,l+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())<i&&(i=o,a=c),c=n.indexOf(t,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[i,a])}return s}
vendor: 8,781 bytes, line 163
163e.exports=t,t.range=r},79742:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,u=r-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:function(e,t,n){"use strict";const r=n(79742),o=n(80645),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=u,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|v(e,t);let r=s(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const o=function(e){if(u.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||K(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),s(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(o)return r?-1:q(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===u)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){let n=!0;for(let r=0;r<u;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function _(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(K(r))return a;e[n+a]=r}return a}function w(e,t,n,r){return G(q(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return G($(t),e,n,r)}function S(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128===(192&n)&&(u=(31&t)<<6|63&n,u>127&&(i=u));break;case 3:n=e[o+1],r=e[o+2],128===(192&n)&&128===(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}
vendor: 4,642 bytes, line 163
163),u.poolSize=8192,u.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},u.byteLength=v,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):m.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n);for(let u=0;u<s;++u)if(c[u]!==l[u]){i=c[u],a=l[u];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}
vendor: 9,720 bytes, line 163
163function C(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function A(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let i=t;i<n;++i)o+=X[e[i]];return o}function j(e,t,n){const r=e.slice(t,n);let o="";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function R(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return t=+t,n>>>=0,i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=Q((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),u.prototype.readBigUInt64BE=Q((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=Q((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=Q((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){M(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){M(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Q((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Q((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=u.isBuffer(e)?e:u.from(e,r),a=i.length;
163if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const F={};function Z(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,o,i)}function U(e,t){if("number"!==typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}Z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),Z("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=z(String(n)):"bigint"===typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=z(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function q(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function Q(e){return"undefined"===typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},21924:function(e,t,n){"use strict";var r=n(40210),o=n(55559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},55559:function(e,t,n){"use strict";var r=n(58612),o=n(40210),i=n(67771),a=o("%TypeError%"),s=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(u,s),l=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(p){l=null}e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,u,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,s,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},94184:function(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}
163.apply(t,[]))||(e.exports=n)}()},86010:function(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}t.Z=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},20640:function(e,t,n){"use strict";var r=n(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},27642:function(e,t,n){"use strict";n.d(t,{iz:function(){return c}});var r=n(38776),o=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}}},i=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},a={top:0,right:0,bottom:0,left:0},s=function(e){var t,n,r=e.borderBox,s=e.margin,u=void 0===s?a:s,c=e.border,l=void 0===c?a:c,f=e.padding,d=void 0===f?a:f,p=o((n=u,{top:(t=r).top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right})),h=o(i(r,l)),v=o(i(h,d));return{marginBox:p,borderBox:o(r),paddingBox:h,contentBox:v,margin:u,border:l,padding:d}},u=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,r.Z)(!1),n},c=function(e){return function(e,t){var n={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},r={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},o={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return s({borderBox:e,margin:n,padding:r,border:o})}(e.getBoundingClientRect(),window.getComputedStyle(e))}},91077:function(e,t,n){"use strict";function r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},44355:function(e,t,n){"use strict";n.d(t,{Nw:function(){return u},ZR:function(){return c},ml:function(){return s}});var r=n(91077),o=n(29173),i=n(62921);const a=(0,o.Z)(r.Z),s=a.right,u=a.left,c=(0,o.Z)(i.Z).center;t.ZP=s},29173:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(91077);function o(e){let t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>(0,r.Z)(e(t),n)}(e)),{left:o,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}},23865:function(e,t,n){"use strict";function r(e,t){let n,r;if(void 0===t)for(const o of e)null!=o&&(void 0===n?o>=o&&(n=r=o):(n>
vendor: 5,830 bytes, line 163
163o&&(n=o),r<o&&(r=o)));else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}n.d(t,{Z:function(){return r}})},67414:function(e,t,n){"use strict";n.r(t),n.d(t,{Adder:function(){return m},InternMap:function(){return b},InternSet:function(){return _},ascending:function(){return o.Z},bin:function(){return U},bisect:function(){return r.ZP},bisectCenter:function(){return r.ZR},bisectLeft:function(){return r.Nw},bisectRight:function(){return r.ml},bisector:function(){return i.Z},count:function(){return a},cross:function(){return l},cumsum:function(){return f},descending:function(){return d},deviation:function(){return h},difference:function(){return we},disjoint:function(){return xe},every:function(){return ve},extent:function(){return v.Z},fcumsum:function(){return g},filter:function(){return ye},fsum:function(){return y},greatest:function(){return ae},greatestIndex:function(){return se},group:function(){return O},groupSort:function(){return L},groups:function(){return P},histogram:function(){return U},index:function(){return A},indexes:function(){return j},intersection:function(){return Se},least:function(){return oe},leastIndex:function(){return ie},map:function(){return ge},max:function(){return $.Z},maxIndex:function(){return G},mean:function(){return Y},median:function(){return K},merge:function(){return X},min:function(){return Q.Z},minIndex:function(){return J},nice:function(){return z},pairs:function(){return ee},permute:function(){return D},quantile:function(){return W.Z},quantileSorted:function(){return W.s},quickselect:function(){return ne.Z},range:function(){return re.Z},reduce:function(){return be},reverse:function(){return _e},rollup:function(){return T},rollups:function(){return C},scan:function(){return ue},shuffle:function(){return ce},shuffler:function(){return le},some:function(){return me},sort:function(){return I},subset:function(){return Oe},sum:function(){return fe},superset:function(){return Ee},thresholdFreedmanDiaconis:function(){return H},thresholdScott:function(){return q},thresholdSturges:function(){return V},tickIncrement:function(){return Z.G9},tickStep:function(){return Z.ly},ticks:function(){return Z.ZP},transpose:function(){return de},union:function(){return Pe},variance:function(){return p},zip:function(){return he}});var r=n(44355),o=n(91077),i=n(29173);function a(e,t){let n=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(o=+o)>=o&&++n}return n}function s(e){return 0|e.length}function u(e){return!(e>0)}function c(e){return"object"!==typeof e||"length"in e?e:Array.from(e)}function l(...e){const t="function"===typeof e[e.length-1]&&function(e){return t=>e(...t)}(e.pop()),n=(e=e.map(c)).map(s),r=e.length-1,o=new Array(r+1).fill(0),i=[];if(r<0||n.some(u))return i;for(;;){i.push(o.map(((t,n)=>e[n][t])));let a=r;for(;++o[a]===n[a];){if(0===a)return t?i.map(t):i;o[a--]=0}}}function f(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:o=>n+=+t(o,r++,e)||0)}function d(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function p(e,t){let n,r=0,o=0,i=0;if(void 0===t)for(let a of e)null!=a&&(a=+a)>=a&&(n=a-o,o+=n/++r,i+=n*(a-o));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-o,o+=n/++r,i+=n*(s-o))}if(r>1)return i/(r-1)}function h(e,t){const n=p(e,t);return n?Math.sqrt(n):n}var v=n(23865);class m{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const o=t[r],i=e+o,a=Math.abs(e)<Math.abs(o)?e-(i-o):o-(i-e);a&&(t[n++]=a),e=i}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,o=this._n,i=0;if(o>0){for(i=e[--o];o>0&&(t=i,n=e[--o],i=t+n,r=n-(i-t),!r););o>0&&(r<0&&e[o-1]<0||r>0&&e[o-1]>0)&&(n=2*r,t=i+n,n==t-i&&(i=t))}return i}}function y(e,t){const n=new m;if(void 0===t)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&n.add(o)}return+n}function g(e,t){const n=new m;let r=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):o=>n.add(+t(o,++r,e)||0))}class b extends Map{constructor(e,t=S){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(w(this,e))}has(e){return super.has(w(this,e))}set(e,t){return super.set(x(this,e),t)}delete(e){return super.delete(k(this,e))}}class _ extends Set{constructor(e,t=S){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const n of e)this.add(n)}has(e){return super.has(w(this,e))}add(e){return super.add(x(this,e))}delete(e){return super.delete(k(this,e))}}function w({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function x({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function k({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function S(e){return null!==e&&"object"===typeof e?e.valueOf():e}function E(e){return e}function O(e,...t){return M(e,E,E,t)}function P(e,...t){return M(e,Array.from,E,t)}function T(e,t,...n){return M(e,E,t,n)}function C(e,t,...n){return M(e,Array.from,t,n)}function A(e,...t){return M(e,E,R,t)}function j(e,...t){return M(e,Array.from,R,t)}function R(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function M(e,t,n,r){return function e(o,i){if(i>=r.length)return n(o);const a=new b,s=r[i++];let u=-1;for(const t of o){const e=s(t,++u,o),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[t,n]of a)a.set(t,e(n,i));return t(a)}(e,0)}function D(e,t){return Array.from(t,(t=>e[t]))}function I(e,...t){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[n=o.Z]=t;if(1===n.length||t.length>1){const r=Uint32Array.from(e,((e,t)=>
163t));return t.length>1?(t=t.map((t=>e.map(t))),r.sort(((e,n)=>{for(const r of t){const t=(0,o.Z)(r[e],r[n]);if(t)return t}}))):(n=e.map(n),r.sort(((e,t)=>(0,o.Z)(n[e],n[t])))),D(e,r)}return e.sort(n)}function L(e,t,n){return(1===t.length?I(T(e,t,n),(([e,t],[n,r])=>(0,o.Z)(t,r)||(0,o.Z)(e,n))):I(O(e,n),(([e,n],[r,i])=>t(n,i)||(0,o.Z)(e,r)))).map((([e])=>e))}var N=Array.prototype,B=N.slice;N.map;function F(e){return function(){return e}}var Z=n(67614);function z(e,t,n){let r;for(;;){const o=(0,Z.G9)(e,t,n);if(o===r||0===o||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}function V(e){return Math.ceil(Math.log(a(e))/Math.LN2)+1}function U(){var e=E,t=v.Z,n=V;function o(o){Array.isArray(o)||(o=Array.from(o));var i,a,s=o.length,u=new Array(s);for(i=0;i<s;++i)u[i]=e(o[i],i,o);var c=t(u),l=c[0],f=c[1],d=n(u,l,f);if(!Array.isArray(d)){const e=f,n=+d;if(t===v.Z&&([l,f]=z(l,f,n)),(d=(0,Z.ZP)(l,f,n))[d.length-1]>=f)if(e>=f&&t===v.Z){const e=(0,Z.G9)(l,f,n);isFinite(e)&&(e>0?f=(Math.floor(f/e)+1)*e:e<0&&(f=(Math.ceil(f*-e)+1)/-e))}else d.pop()}for(var p=d.length;d[0]<=l;)d.shift(),--p;for(;d[p-1]>f;)d.pop(),--p;var h,m=new Array(p+1);for(i=0;i<=p;++i)(h=m[i]=[]).x0=i>0?d[i-1]:l,h.x1=i<p?d[i]:f;for(i=0;i<s;++i)l<=(a=u[i])&&a<=f&&m[(0,r.ZP)(d,a,0,p)].push(o[i]);return m}return o.value=function(t){return arguments.length?(e="function"===typeof t?t:F(t),o):e},o.domain=function(e){return arguments.length?(t="function"===typeof e?e:F([e[0],e[1]]),o):t},o.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?F(B.call(e)):F(e),o):n},o}var W=n(41461);function H(e,t,n){return Math.ceil((n-t)/(2*((0,W.Z)(e,.75)-(0,W.Z)(e,.25))*Math.pow(a(e),-1/3)))}function q(e,t,n){return Math.ceil((n-t)/(3.5*h(e)*Math.pow(a(e),-1/3)))}var $=n(98823);function G(e,t){let n,r=-1,o=-1;if(void 0===t)for(const i of e)++o,null!=i&&(n<i||void 0===n&&i>=i)&&(n=i,r=o);else for(let i of e)null!=(i=t(i,++o,e))&&(n<i||void 0===n&&i>=i)&&(n=i,r=o);return r}function Y(e,t){let n=0,r=0;if(void 0===t)for(let o of e)null!=o&&(o=+o)>=o&&(++n,r+=o);else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}function K(e,t){return(0,W.Z)(e,.5,t)}function X(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}var Q=n(47622);function J(e,t){let n,r=-1,o=-1;if(void 0===t)for(const i of e)++o,null!=i&&(n>i||void 0===n&&i>=i)&&(n=i,r=o);else for(let i of e)null!=(i=t(i,++o,e))&&(n>i||void 0===n&&i>=i)&&(n=i,r=o);return r}function ee(e,t=te){const n=[];let r,o=!1;for(const i of e)o&&n.push(t(r,i)),r=i,o=!0;return n}function te(e,t){return[e,t]}var ne=n(64781),re=n(34893);function oe(e,t=o.Z){let n,r=!1;if(1===t.length){let i;for(const a of e){const e=t(a);(r?(0,o.Z)(e,i)<0:0===(0,o.Z)(e,e))&&(n=a,i=e,r=!0)}}else for(const o of e)(r?t(o,n)<0:0===t(o,o))&&(n=o,r=!0);return n}function ie(e,t=o.Z){if(1===t.length)return J(e,t);let n,r=-1,i=-1;for(const o of e)++i,(r<0?0===t(o,o):t(o,n)<0)&&(n=o,r=i);return r}function ae(e,t=o.Z){let n,r=!1;if(1===t.length){let i;for(const a of e){const e=t(a);(r?(0,o.Z)(e,i)>0:0===(0,o.Z)(e,e))&&(n=a,i=e,r=!0)}}else for(const o of e)(r?t(o,n)>0:0===t(o,o))&&(n=o,r=!0);return n}function se(e,t=o.Z){if(1===t.length)return G(e,t);let n,r=-1,i=-1;for(const o of e)++i,(r<0?0===t(o,o):t(o,n)>0)&&(n=o,r=i);return r}function ue(e,t){const n=ie(e,t);return n<0?void 0:n}var ce=le(Math.random);function le(e){return function(t,n=0,r=t.length){let o=r-(n=+n);for(;o;){const r=e()*o--|0,i=t[o+n];t[o+n]=t[r+n],t[r+n]=i}return t}}function fe(e,t){let n=0;if(void 0===t)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function de(e){if(!(o=e.length))return[];for(var t=-1,n=(0,Q.Z)(e,pe),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r}function pe(e){return e.length}function he(){return de(arguments)}function ve(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function me(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function ye(e,t){if("function"!==typeof t)throw new TypeError("test is not a function");const n=[];let r=-1;for(const o of e)t(o,++r,e)&&n.push(o);return n}function ge(e,t){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!==typeof t)throw new TypeError("mapper is not a function");return Array.from(e,((n,r)=>t(n,r,e)))}function be(e,t,n){if("function"!==typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let o,i,a=-1;if(arguments.length<3){if(({done:o,value:n}=r.next()),o)return;++a}for(;({done:o,value:i}=r.next()),!o;)n=t(n,i,++a,e);return n}function _e(e){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function we(e,...t){e=new Set(e);for(const n of t)for(const t of n)e.delete(t);return e}function xe(e,t){const n=t[Symbol.iterator](),r=new Set;for(const o of e){if(r.has(o))return!1;let e,t;for(;({value:e,done:t}=n.next())&&!t;){if(Object.is(o,e))return!1;r.add(e)}}return!0}function ke(e){return e instanceof Set?e:new Set(e)}function Se(e,...t){e=new Set(e),t=t.map(ke);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function Ee(e,t){const n=e[Symbol.iterator](),r=new Set;for(const o of t){if(r.has(o))continue;let e,t;for(;({value:e,done:t}=n.next());){if(t)return!1;if(r.add(e),Object.is(o,e))break}}return!0}function Oe(e,t){return Ee(t,e)}function Pe(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t}},98823:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}n.d(t,{Z:function(){return r}})},47622:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}n.d(t,{Z:function(){return r}})},62921:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*o(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return o},Z:function(){return r}})},41461:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},s:function(){return u}});var r=n(98823),o=n(47622),i=n(64781),a=n(62921);function s(e,t,n){if(s=(e=Float64Array.from((0,a.K)(e,n))).length){if((t=+t)<=0||s<2)return(0,o.Z)(e);if(t>=1)return(0,r.Z)(e);var s,u=(s-1)*t,c=Math.floor(u),l=(0,r.Z)((0,i.Z)(e,c).subarray(0,c+1));return l+((0,o.Z)(e.subarray(c+1))-l)*(u-c)}}function u(e,t,n=a.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),s=+n(e[i],i,e);return s+(+n(e[i+1],i+1,e)-s)*(o-i)}}},64781:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(91077);function o(e,t,n=0,a=e.length-1,s=r.Z){for(;a>n;){if(a-n>600){const r=a-n+1,i=t-n+1,u=Math.log(r),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(r-c)/r)*(i-r/2<0?-1:1);o(e,t,Math.max(n,Math.floor(t-i*c/r+l)),Math.min(a,Math.floor(t+(r-i)*c/r+l)),s)}const r=e[t];let u=n,c=a;for(i(e,n,t),s(e[a],r)>0&&i(e,n,a);u<c;){for(i(e,u,c),++u,--c;s(e[u],r)<0;)++u;for(;s(e[c],r)>0;)--c}0===s(e[n],r)?i(e,n,c):(++c,i(e,c,a)),c<=t&&(n=c+1),t<=c&&(a=c-1)}return e}function i(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}},34893:function(e,t,n){"use strict";function r(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}n.d(t,{Z:function(){return r}})},67614:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return u}});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var r,o,i,a,u=-1;
vendor: 4,296 bytes, line 163
163if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=s(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)/a}return r&&i.reverse(),i}function s(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,s);return s>=0?(u>=r?10:u>=o?5:u>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(u>=r?10:u>=o?5:u>=i?2:1)}function u(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/s;return u>=r?s*=10:u>=o?s*=5:u>=i&&(s*=2),t<e?-s:s}},16372:function(e,t,n){"use strict";n.d(t,{B8:function(){return S},Il:function(){return o},J5:function(){return a},SU:function(){return k},Ss:function(){return E},Ym:function(){return j},ZP:function(){return _},xV:function(){return i}});var r=n(44087);function o(){}var i=.7,a=1/i,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),p=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),h=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),v=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),m=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?
vendor: 4,436 bytes, line 163
163new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?x(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?x(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=f.exec(e))?new E(t[1],t[2],t[3],1):(t=d.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?x(t[1],t[2],t[3],t[4]):(t=h.exec(e))?x(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=v.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function w(e){return new E(e>>16&255,e>>8&255,255&e,1)}function x(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function k(e){return e instanceof o||(e=_(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function S(e,t,n,r){return 1===arguments.length?k(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function O(){return"#"+T(this.r)+T(this.g)+T(this.b)}function P(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function T(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new R(e,t,n,r)}function A(e){if(e instanceof R)return new R(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=_(e)),!e)return new R;if(e instanceof R)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-i,c=(a+i)/2;return u?(s=t===a?(n-r)/u+6*(n<r):n===a?(r-t)/u+2:(t-n)/u+4,u/=c<.5?a+i:2-a-i,s*=60):u=c>0&&c<1?0:s,new R(s,u,c,e.opacity)}function j(e,t,n,r){return 1===arguments.length?A(e):new R(e,t,n,null==r?1:r)}function R(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function M(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}(0,r.Z)(o,_,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return A(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(E,S,(0,r.l)(o,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:O,formatHex:O,formatRgb:P,toString:P})),(0,r.Z)(R,j,(0,r.l)(o,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new R(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new R(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new E(M(e>=240?e-240:e+120,o,r),M(e,o,r),M(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},44087:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return o}})},80241:function(e,t,n){"use strict";n.d(t,{Uc:function(){return b},ZP:function(){return d}});var r=n(44087),o=n(16372),i=n(11144),a=.96422,s=.82521,u=4/29,c=6/29,l=3*c*c;function f(e){if(e instanceof p)return new p(e.l,e.a,e.b,e.opacity);if(e instanceof _)return w(e);e instanceof o.Ss||(e=(0,o.SU)(e));var t,n,r=y(e.r),i=y(e.g),u=y(e.b),c=h((.2225045*r+.7168786*i+.0606169*u)/1);return r===i&&i===u?t=n=c:(t=h((.4360747*r+.3850649*i+.1430804*u)/a),n=h((.0139322*r+.0971045*i+.7141733*u)/s)),new p(116*c-16,500*(t-c),200*(c-n),e.opacity)}function d(e,t,n,r){return 1===arguments.length?f(e):new p(e,t,n,null==r?1:r)}function p(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>.008856451679035631?Math.pow(e,1/3):e/l+u}function v(e){return e>c?e*e*e:l*(e-u)}
163function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function y(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e){if(e instanceof _)return new _(e.h,e.c,e.l,e.opacity);if(e instanceof p||(e=f(e)),0===e.a&&0===e.b)return new _(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*i.B;return new _(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function b(e,t,n,r){return 1===arguments.length?g(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function w(e){if(isNaN(e.h))return new p(e.l,0,0,e.opacity);var t=e.h*i.V;return new p(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,r.Z)(p,d,(0,r.l)(o.Il,{brighter:function(e){return new p(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new p(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=a*v(t),e=1*v(e),n=s*v(n),new o.Ss(m(3.1338561*t-1.6168667*e-.4906146*n),m(-.9787684*t+1.9161415*e+.033454*n),m(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),(0,r.Z)(_,b,(0,r.l)(o.Il,{brighter:function(e){return new _(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new _(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return w(this).rgb()}}))},11144:function(e,t,n){"use strict";n.d(t,{B:function(){return o},V:function(){return r}});var r=Math.PI/180,o=180/Math.PI},42957:function(e,t,n){"use strict";n.d(t,{WU:function(){return f},jH:function(){return d}});var r=n(33085);var o=n(46196);var i,a=n(38885);function s(e,t){var n=(0,a.V)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}var u={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:a.Z,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>s(100*e,t),r:s,s:function(e,t){var n=(0,a.V)(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(i=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=r.length;return s===u?r:s>u?r+new Array(s-u+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+(0,a.V)(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function c(e){return e}var l,f,d,p=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function v(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?c:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",f=void 0===e.decimal?".":e.decimal+"",d=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),v=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"\u2212":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function g(e){var t=(e=(0,o.Z)(e)).fill,n=e.align,r=e.sign,c=e.symbol,p=e.zero,g=e.width,b=e.comma,_=e.precision,w=e.trim,x=e.type;"n"===x?(b=!0,x="g"):u[x]||(void 0===_&&(_=12),w=!0,x="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var k="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",S="$"===c?l:/[%p]/.test(x)?v:"",E=u[x],O=/[defgprs%]/.test(x);function P(e){var o,s,u,c=k,l=S;if("c"===x)l=E(e)+l,e="";else{var v=(e=+e)<0||1/e<0;
163if(e=isNaN(e)?y:E(Math.abs(e),_),w&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),v&&0===+e&&"+"!==r&&(v=!1),c=(v?"("===r?r:m:"-"===r||"("===r?"":r)+c,l=("s"===x?h[8+i/3]:"")+l+(v&&"("===r?")":""),O)for(o=-1,s=e.length;++o<s;)if(48>(u=e.charCodeAt(o))||u>57){l=(46===u?f+e.slice(o+1):e.slice(o))+l,e=e.slice(0,o);break}}b&&!p&&(e=a(e,1/0));var P=c.length+e.length+l.length,T=P<g?new Array(g-P+1).join(t):"";switch(b&&p&&(e=a(T+e,T.length?g-l.length:1/0),T=""),n){case"<":e=c+e+l+T;break;case"=":e=c+T+e+l;break;case"^":e=T.slice(0,P=T.length>>1)+c+e+l+T.slice(P);break;default:e=T+c+e+l}return d(e)}return _=void 0===_?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),P.toString=function(){return e+""},P}return{format:g,formatPrefix:function(e,t){var n=g(((e=(0,o.Z)(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3))),a=Math.pow(10,-i),s=h[8+i/3];return function(e){return n(a*e)+s}}}}l=v({thousands:",",grouping:[3],currency:["$",""]}),f=l.format,d=l.formatPrefix},33085:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(38885);function o(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},38885:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function o(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return o},Z:function(){return r}})},46196:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}o.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},36088:function(e,t){!function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(){return n=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},n.apply(this,arguments)}function r(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 o(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(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}}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,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(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 a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e}
163,f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function u(e,t){var n=[],r=[];function o(e,t){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var i=Array(e.length-1),a=0;a<i.length;a++)0===a&&n.push(e[0]),a===i.length-1&&r.push(e[a+1]),i[a]=[(1-t)*e[a][0]+t*e[a+1][0],(1-t)*e[a][1]+t*e[a+1][1]];o(i,t)}}return e.length&&o(e,t),{left:n,right:r.reverse()}}function c(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}function l(e,t){for(var n=[],r=e,o=1/(t=t||2),i=0;i<t-1;i++){var a=u(r,o/(1-o*i));n.push(a.left),r=a.right}return n.push(r),n}function f(e,t,n){var r=[[e.x,e.y]];return null!=t.x1&&r.push([t.x1,t.y1]),null!=t.x2&&r.push([t.x2,t.y2]),r.push([t.x,t.y]),l(r,n).map(c)}var d=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,p={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function h(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t;return n}function v(e){return"".concat(e.type).concat(p[e.type].map((function(t){return e[t]})).join(","))}function m(e,t){var n={x1:"x",y1:"y",x2:"x",y2:"y"},r=["xAxisRotation","largeArcFlag","sweepFlag"];if(e.type!==t.type&&"M"!==t.type.toUpperCase()){var o={};Object.keys(t).forEach((function(i){var a=t[i],s=e[i];void 0===s&&(r.includes(i)?s=a:(void 0===s&&n[i]&&(s=e[n[i]]),void 0===s&&(s=0))),o[i]=s})),o.type=t.type,e=o}return e}function y(e,t,r){var o=[];if("L"===t.type||"Q"===t.type||"C"===t.type)o=o.concat(f(e,t,r));else{var i=n({},e);
163"M"===i.type&&(i.type="L"),(o=o.concat(h(r-1).map((function(){return i})))).push(t)}return o}function g(e,t,r){var o=e.length-1,i=t.length-1,a=o/i,s=h(i).reduce((function(t,n,o){var i=Math.floor(a*o);if(r&&i<e.length-1&&r(e[i],e[i+1])){var s=a*o%1<.5;t[i]&&(s?i>0?i-=1:i<e.length-1&&(i+=1):i<e.length-1?i+=1:i>0&&(i-=1))}return t[i]=(t[i]||0)+1,t}),[]).reduce((function(t,r,o){if(o===e.length-1){var i=h(r,n({},e[e.length-1]));return"M"===i[0].type&&i.forEach((function(e){e.type="L"})),t.concat(i)}return t.concat(y(e[o],e[o+1],r))}),[]);return s.unshift(e[0]),s}function b(e){for(var t,n,r=(e||"").match(d)||[],o=[],i=0;i<r.length;++i)if(t=p[r[i]]){n={type:r[i]};for(var a=0;a<t.length;++a)n[t[a]]=+r[i+a+1];i+=t.length,o.push(n)}return o}function _(e,t,n){var r=null==e?[]:e.slice(),i=null==t?[]:t.slice();if(!r.length&&!i.length)return function(){return[]};var a=(0===r.length||"Z"===r[r.length-1].type)&&(0===i.length||"Z"===i[i.length-1].type);r.length>0&&"Z"===r[r.length-1].type&&r.pop(),i.length>0&&"Z"===i[i.length-1].type&&i.pop(),r.length?i.length||i.push(r[0]):r.push(i[0]),0!==Math.abs(i.length-r.length)&&(i.length>r.length?r=g(r,i,n):i.length<r.length&&(i=g(i,r,n)));var u=(r=r.map((function(e,t){return m(e,i[t])}))).map((function(e){return o({},e)}));return a&&u.push({type:"Z"}),function(e){if(1===e)return null==t?[]:t;if(e>0)for(var n=0;n<u.length;++n){var o,a=r[n],c=i[n],l=u[n],f=s(p[l.type]);try{for(f.s();!(o=f.n()).done;){var d=o.value;l[d]=(1-e)*a[d]+e*c[d],"largeArcFlag"!==d&&"sweepFlag"!==d||(l[d]=Math.round(l[d]))}}catch(h){f.e(h)}finally{f.f()}}return u}}function w(e,t,n){var r=b(e),o=b(t);if(!r.length&&!o.length)return function(){return""};var i=_(r,o,n);return function(e){if(1===e)return null==t?"":t;var n,r="",o=s(i(e));try{for(o.s();!(n=o.n()).done;)r+=v(n.value)}catch(a){o.e(a)}finally{o.f()}return r}}Object.keys(p).forEach((function(e){p[e.toLowerCase()]=p[e]})),e.interpolatePath=w,e.interpolatePathCommands=_,e.pathCommandsFromString=b,Object.defineProperty(e,"__esModule",{value:!0})}(t)},88122:function(e,t,n){"use strict";n.d(t,{M:function(){return a},Z:function(){return i}});var r=n(81265),o=n(67896);function i(e,t){return((0,o.v)(t)?o.Z:a)(e,t)}function a(e,t){var n,o=t?t.length:0,i=e?Math.min(o,e.length):0,a=new Array(i),s=new Array(o);for(n=0;n<i;++n)a[n]=(0,r.Z)(e[n],t[n]);for(;n<o;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=a[n](e);return s}}},49885:function(e,t,n){"use strict";function r(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function o(e){var t=e.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[o],a=e[o+1],s=o>0?e[o-1]:2*i-a,u=o<t-1?e[o+2]:2*a-i;return r((n-o/t)*t,s,i,a,u)}}n.d(t,{Z:function(){return o},t:function(){return r}})},95692:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49885);function o(e){var t=e.length;return function(n){var o=Math.floor(((n%=1)<0?++n:n)*t),i=e[(o+t-1)%t],a=e[o%t],s=e[(o+1)%t],u=e[(o+2)%t];return(0,r.t)((n-o/t)*t,i,a,s,u)}}},85910:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s},wx:function(){return i},yi:function(){return a}});var r=n(55302);function o(e,t){return function(n){return e+n*t}}function i(e,t){var n=t-e;return n?o(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?s:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?o(e,n):(0,r.Z)(isNaN(e)?t:e)}},55302:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},58723:function(e,t,n){"use strict";n.d(t,{B:function(){return _},Z:function(){return b}});var r=n(44087),o=n(16372),i=n(11144),a=-.14861,s=1.78277,u=-.29227,c=-.90649,l=1.97294,f=l*c,d=l*s,p=s*u-c*a;function h(e){if(e instanceof m)return new m(e.h,e.s,e.l,e.opacity);e instanceof o.Ss||(e=(0,o.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(p*r+f*t-d*n)/(p+f-d),s=r-a,h=(l*(n-a)-u*s)/c,v=Math.sqrt(h*h+s*s)/(l*a*(1-a)),y=v?Math.atan2(h,s)*i.B-120:NaN;return new m(y<0?y+360:y,v,a,e.opacity)}function v(e,t,n,r){return 1===arguments.length?h(e):new m(e,t,n,null==r?1:r)}function m(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(m,v,(0,r.l)(o.Il,{brighter:function(e){return e=null==e?o.J5:Math.pow(o.J5,e),new m(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o.xV:Math.pow(o.xV,e),new m(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*i.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),f=Math.sin(e);return new o.Ss(255*(t+n*(a*r+s*f)),255*(t+n*(u*r+c*f)),255*(t+n*(l*r)),this.opacity)}}));var y=n(85910);function g(e){return function t(n){function r(t,r){var o=e((t=v(t)).h,(r=v(r)).h),i=(0,y.ZP)(t.s,r.s),a=(0,y.ZP)(t.l,r.l),s=(0,y.ZP)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}var b=g(y.wx),_=g(y.ZP)},70088:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},1077:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(80241),o=n(85910);function i(e){return function(t,n){var i=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,o.ZP)(t.c,n.c),s=(0,o.ZP)(t.l,n.l),u=(0,o.ZP)(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=a(e),t.l=s(e),t.opacity=u(e),t+""}}}t.Z=i(o.wx);var a=i(o.ZP)},24038:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(16372),o=n(85910);function i(e){return function(t,n){var i=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,o.ZP)(t.s,n.s),s=(0,o.ZP)(t.l,n.l),u=(0,o.ZP)(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=s(e),t.opacity=u(e),t+""}}}t.Z=i(o.wx);var a=i(o.ZP)},59061:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return r.Z},interpolateArray:function(){return o.Z},interpolateBasis:function(){return i.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return M.Z},interpolateCubehelixLong:function(){return M.B},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return R.Z},interpolateHclLong:function(){return R.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return l},interpolateLab:function(){return j.Z},interpolateNumber:function(){return v.Z},interpolateNumberArray:function(){return m.Z},interpolateObject:function(){return y.Z},interpolateRgb:function(){return C.ZP},interpolateRgbBasis:function(){return C.hD},interpolateRgbBasisClosed:function(){return C.YD},interpolateRound:function(){return g.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return S},interpolateTransformSvg:function(){return E},interpolateZoom:function(){return T},piecewise:function(){return D.Z},quantize:function(){return I}});var r=n(81265),o=n(88122),i=n(49885),a=n(95692),s=n(70088);function u(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var c=n(85910);function l(e,t){var n=(0,c.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var f,d,p,h,v=n(73626),m=n(67896),y=n(48528),g=n(55720),b=n(59843),_=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function x(e,t,n,r,o,i){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*_,skewX:Math.atan(u)*_,scaleX:a,scaleY:s}}function k(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var s=[],u=[];
163return i=e(i),a=e(a),function(e,r,o,i,a,s){if(e!==o||r!==i){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:(0,v.Z)(e,o)},{i:u-2,x:(0,v.Z)(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,s,u),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:(0,v.Z)(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:(0,v.Z)(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,u),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,v.Z)(e,n)},{i:s-2,x:(0,v.Z)(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var S=k((function(e){return"none"===e?w:(f||(f=document.createElement("DIV"),d=document.documentElement,p=document.defaultView),f.style.transform=e,e=p.getComputedStyle(d.appendChild(f),null).getPropertyValue("transform"),d.removeChild(f),x(+(e=e.slice(7,-1).split(","))[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),E=k((function(e){return null==e?w:(h||(h=document.createElementNS("http://www.w3.org/2000/svg","g")),h.setAttribute("transform",e),(e=h.transform.baseVal.consolidate())?x((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):w)}),", ",")",")"),O=Math.SQRT2;function P(e){return((e=Math.exp(e))+1/e)/2}function T(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-o,f=u-i,d=l*l+f*f;if(d<1e-12)r=Math.log(c/a)/O,n=function(e){return[o+e*l,i+e*f,a*Math.exp(O*e*r)]};else{var p=Math.sqrt(d),h=(c*c-a*a+4*d)/(2*a*2*p),v=(c*c-a*a-4*d)/(2*c*2*p),m=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-m)/O,n=function(e){var t,n=e*r,s=P(m),u=a/(2*p)*(s*(t=O*n+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[o+u*l,i+u*f,a*s/P(O*n+m)]}}return n.duration=1e3*r,n}var C=n(93414),A=n(24038),j=n(23385),R=n(1077),M=n(58723),D=n(30108);function I(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}},23385:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(80241),o=n(85910);function i(e,t){var n=(0,o.ZP)((e=(0,r.ZP)(e)).l,(t=(0,r.ZP)(t)).l),i=(0,o.ZP)(e.a,t.a),a=(0,o.ZP)(e.b,t.b),s=(0,o.ZP)(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=a(t),e.opacity=s(t),e+""}}},73626:function(e,t,n){"use strict";function r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}n.d(t,{Z:function(){return r}})},67896:function(e,t,n){"use strict";function r(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function o(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.d(t,{Z:function(){return r},v:function(){return o}})},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(81265);function o(e,t){var n,o={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?o[n]=(0,r.Z)(e[n],t[n]):i[n]=t[n];return function(e){for(n in o)i[n]=o[n](e);return i}}},30108:function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}n.d(t,{Z:function(){return r}})},93414:function(e,t,n){"use strict";n.d(t,{YD:function(){return c},hD:function(){return u}});var r=n(16372),o=n(49885),i=n(95692),a=n(85910);function s(e){return function(t){var n,o,i=t.length,a=new Array(i),s=new Array(i),u=new Array(i);for(n=0;n<i;++n)o=(0,r.B8)(t[n]),a[n]=o.r||0,s[n]=o.g||0,u[n]=o.b||0;return a=e(a),s=e(s),u=e(u),o.opacity=1,function(e){return o.r=a(e),o.g=s(e),o.b=u(e),o+""}}}t.ZP=function e(t){var n=(0,a.yi)(t);function o(e,t){var o=n((e=(0,r.B8)(e)).r,(t=(0,r.B8)(t)).r),i=n(e.g,t.g),s=n(e.b,t.b),u=(0,a.ZP)(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=i(t),e.b=s(t),e.opacity=u(t),e+""}}return o.gamma=e,o}(1);var u=s(o.Z),c=s(i.Z)},55720:function(e,t,n){"use strict";function r(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}n.d(t,{Z:function(){return r}})},59843:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(73626),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=new RegExp(o.source,"g");function a(e,t){var n,a,s,u=o.lastIndex=i.lastIndex=0,c=-1,l=[],f=[];for(e+="",t+="";(n=o.exec(e))&&(a=i.exec(t));)(s=a.index)>u&&(s=t.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,f.push({i:c,x:(0,r.Z)(n,a)})),u=i.lastIndex;return u<t.length&&(s=t.slice(u),l[c]?l[c]+=s:l[++c]=s),l.length<2?f[0]?function(e){return function(t){return e(t)+""}}(f[0].x):function(e){return function(){return e}}(t):(t=f.length,function(e){for(var n,r=0;r<t;++r)l[(n=f[r]).i]=n.x(e);return l.join("")})}},81265:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(16372),o=n(93414),i=n(88122),a=n(70088),s=n(73626),u=n(48528),c=n(59843),l=n(55302),f=n(67896);function d(e,t){var n,d=typeof t;return null==t||"boolean"===d?(0,l.Z)(t):("number"===d?s.Z:"string"===d?(n=(0,r.ZP)(t))?(t=n,o.ZP):c.Z:t instanceof r.ZP?o.ZP:t instanceof Date?a.Z:(0,f.v)(t)?f.Z:Array.isArray(t)?i.M:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?u.Z:s.Z)(e,t)}},11108:function(e,t){"use strict";var n=Math.PI,r=2*n,o=1e-6,i=r-o;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new a}a.prototype=s.prototype={constructor:a,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,r,i,a){e=+e,t=+t,r=+r,i=+i,a=+a;var s=this._x1,u=this._y1,c=r-e,l=i-t,f=s-e,d=u-t,p=f*f+d*d;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>o)if(Math.abs(d*c-l*f)>o&&a){var h=r-s,v=i-u,m=c*c+l*l,y=h*h+v*v,g=Math.sqrt(m),b=Math.sqrt(p),_=a*Math.tan((n-Math.acos((m+p-y)/(2*g*b)))/2),w=_/b,x=_/g;Math.abs(w-1)>o&&(this._+="L"+(e+w*f)+","+(t+w*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>f*v)+","+(this._x1=e+x*c)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,a,s,u,c){e=+e,t=+t,c=!!c;var l=(a=+a)*Math.cos(s),f=a*Math.sin(s),d=e+l,p=t+f,h=1^c,v=c?s-u:u-s;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+d+","+p:(Math.abs(this._x1-d)>o||Math.abs(this._y1-p)>o)&&(this._+="L"+d+","+p),a&&(v<0&&(v=v%r+r),v>i?this._+="A"+a+","+a+",0,1,"+h+","+(e-l)+","+(t-f)+"A"+a+","+a+",0,1,"+h+","+(this._x1=d)+","+(this._y1=p):v>o&&(this._+="A"+a+","+a+",0,"+ +(v>=n)+","+h+","+(this._x1=e+a*Math.cos(u))+","+(this._y1=t+a*Math.sin(u))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=s},49649:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},x:function(){return u}});var r=n(34893),o=n(48348),i=n(57603);function a(){var e,t,n=(0,i.Z)().unknown(void 0),s=n.domain,u=n.range,c=0,l=1,f=!1,d=0,p=0,h=.5;function v(){var n=s().length,o=l<c,i=o?l:c,a=o?c:l;e=(a-i)/Math.max(1,n-d+2*p),f&&(e=Math.floor(e)),i+=(a-i-e*(n-d))*h,t=e*(1-d),f&&(i=Math.round(i),t=Math.round(t));var v=(0,r.Z)(n).map((function(t){return i+e*t}));return u(o?v.reverse():v)}return delete n.unknown,n.domain=function(e){return arguments.length?(s(e),v()):s()},n.range=function(e){return arguments.length?([c,l]=e,c=+c,l=+l,v()):[c,l]},n.rangeRound=function(e){return[c,l]=e,c=+c,l=+l,f=!0,v()},n.bandwidth=function(){return t},n.step=function(){return e}
163,n.round=function(e){return arguments.length?(f=!!e,v()):f},n.padding=function(e){return arguments.length?(d=Math.min(1,p=+e),v()):d},n.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),v()):d},n.paddingOuter=function(e){return arguments.length?(p=+e,v()):p},n.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),v()):h},n.copy=function(){return a(s(),[c,l]).round(f).paddingInner(d).paddingOuter(p).align(h)},o.o.apply(v(),arguments)}function s(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return s(t())},e}function u(){return s(a.apply(null,arguments).paddingInner(1))}},68741:function(e,t,n){"use strict";n.d(t,{JG:function(){return p},ZP:function(){return v},yR:function(){return c},l4:function(){return h}});var r=n(44355),o=n(81265),i=n(73626),a=n(55720);var s=n(34299),u=[0,1];function c(e){return e}function l(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function f(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=l(o,r),i=n(a,i)):(r=l(r,o),i=n(i,a)),function(e){return i(r(e))}}function d(e,t,n){var o=Math.min(e.length,t.length)-1,i=new Array(o),a=new Array(o),s=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<o;)i[s]=l(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=(0,r.ZP)(e,t,1,o)-1;return a[n](i[n](t))}}function p(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function h(){var e,t,n,r,l,p,h=u,v=u,m=o.Z,y=c;function g(){var e=Math.min(h.length,v.length);return y!==c&&(y=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(h[0],h[e-1])),r=e>2?d:f,l=p=null,b}function b(t){return null==t||isNaN(t=+t)?n:(l||(l=r(h.map(e),v,m)))(e(y(t)))}return b.invert=function(n){return y(t((p||(p=r(v,h.map(e),i.Z)))(n)))},b.domain=function(e){return arguments.length?(h=Array.from(e,s.Z),g()):h.slice()},b.range=function(e){return arguments.length?(v=Array.from(e),g()):v.slice()},b.rangeRound=function(e){return v=Array.from(e),m=a.Z,g()},b.clamp=function(e){return arguments.length?(y=!!e||c,g()):y!==c},b.interpolate=function(e){return arguments.length?(m=e,g()):m},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,g()}}function v(){return h()(c,c)}},41328:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return D},scaleDivergingLog:function(){return I},scaleDivergingPow:function(){return N},scaleDivergingSqrt:function(){return B},scaleDivergingSymlog:function(){return L},scaleIdentity:function(){return a},scaleImplicit:function(){return c.O},scaleLinear:function(){return o.Z},scaleLog:function(){return s.Z},scaleOrdinal:function(){return c.Z},scalePoint:function(){return r.x},scalePow:function(){return l.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return p.Z},scaleRadial:function(){return f.Z},scaleSequential:function(){return k},scaleSequentialLog:function(){return S},scaleSequentialPow:function(){return O},scaleSequentialQuantile:function(){return j},scaleSequentialSqrt:function(){return P},scaleSequentialSymlog:function(){return E},scaleSqrt:function(){return l._b},scaleSymlog:function(){return u.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return v.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return F.Z}});var r=n(49649),o=n(50289),i=n(34299);function a(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,i.Z),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return a(e).unknown(t)},e=arguments.length?Array.from(e,i.Z):[0,1],(0,o.Q)(n)}var s=n(72685),u=n(55437),c=n(57603),l=n(55128),f=n(80635),d=n(12110),p=n(16602),h=n(86297),v=n(88383),m=n(30819),y=n(81265),g=n(55720),b=n(68741),_=n(48348);function w(){var e,t,n,r,o,i=0,a=1,s=b.yR,u=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(u=!!e,c):u},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=l(y.Z),c.rangeRound=l(g.Z),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function x(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function k(){var e=(0,o.Q)(w()(b.yR));return e.copy=function(){return x(e,k())},_.O.apply(e,arguments)}function S(){var e=(0,s.Q)(w()).domain([1,10]);return e.copy=function(){return x(e,S()).base(e.base())},_.O.apply(e,arguments)}function E(){var e=(0,u.P)(w());return e.copy=function(){return x(e,E()).constant(e.constant())},_.O.apply(e,arguments)}function O(){var e=(0,l.Hh)(w());return e.copy=function(){return x(e,O()).exponent(e.exponent())},_.O.apply(e,arguments)}function P(){return O.apply(null,arguments).exponent(.5)}var T=n(44355),C=n(91077),A=n(41461);function j(){var e=[],t=b.yR;
163function n(n){if(null!=n&&!isNaN(n=+n))return t(((0,T.ZP)(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(C.Z),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>(0,A.Z)(e,r/t)))},n.copy=function(){return j(t).domain(e)},_.O.apply(n,arguments)}var R=n(30108);function M(){var e,t,n,r,o,i,a,s=0,u=.5,c=1,l=1,f=b.yR,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=(0,R.Z)(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,u,c]=a,e=i(s=+s),t=i(u=+u),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p):[s,u,c]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(y.Z),p.rangeRound=h(g.Z),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(u),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p}}function D(){var e=(0,o.Q)(M()(b.yR));return e.copy=function(){return x(e,D())},_.O.apply(e,arguments)}function I(){var e=(0,s.Q)(M()).domain([.1,1,10]);return e.copy=function(){return x(e,I()).base(e.base())},_.O.apply(e,arguments)}function L(){var e=(0,u.P)(M());return e.copy=function(){return x(e,L()).constant(e.constant())},_.O.apply(e,arguments)}function N(){var e=(0,l.Hh)(M());return e.copy=function(){return x(e,N()).exponent(e.exponent())},_.O.apply(e,arguments)}function B(){return N.apply(null,arguments).exponent(.5)}var F=n(48433)},48348:function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,{O:function(){return o},o:function(){return r}})},50289:function(e,t,n){"use strict";n.d(t,{Q:function(){return s},Z:function(){return u}});var r=n(67614),o=n(68741),i=n(48348),a=n(48433);function s(e){var t=e.domain;return e.ticks=function(e){var n=t();return(0,r.ZP)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return(0,a.Z)(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var o,i,a=t(),s=0,u=a.length-1,c=a[s],l=a[u],f=10;for(l<c&&(i=c,c=l,l=i,i=s,s=u,u=i);f-- >0;){if((i=(0,r.G9)(c,l,n))===o)return a[s]=c,a[u]=l,t(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}o=i}return e},e}function u(){var e=(0,o.ZP)();return e.copy=function(){return(0,o.JG)(e,u())},i.o.apply(e,arguments),s(e)}},72685:function(e,t,n){"use strict";n.d(t,{Q:function(){return h},Z:function(){return v}});var r=n(67614),o=n(42957),i=n(37604),a=n(68741),s=n(48348);function u(e){return Math.log(e)}function c(e){return Math.exp(e)}function l(e){return-Math.log(-e)}function f(e){return-Math.exp(-e)}function d(e){return isFinite(e)?+("1e"+e):e<0?0:e}function p(e){return function(t){return-e(-t)}}function h(e){var t,n,a=e(u,c),s=a.domain,h=10;function v(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(h),n=function(e){return 10===e?d:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(h),s()[0]<0?(t=p(t),n=p(n),e(l,f)):e(u,c),a}return a.base=function(e){return arguments.length?(h=+e,v()):h},a.domain=function(e){return arguments.length?(s(e),v()):s()},a.ticks=function(e){var o,i=s(),a=i[0],u=i[i.length-1];(o=u<a)&&(d=a,a=u,u=d);var c,l,f,d=t(a),p=t(u),v=null==e?10:+e,m=[];if(!(h%1)&&p-d<v){if(d=Math.floor(d),p=Math.ceil(p),a>0){for(;d<=p;++d)for(l=1,c=n(d);l<h;++l)if(!((f=c*l)<a)){if(f>u)break;m.push(f)}}else for(;d<=p;++d)for(l=h-1,c=n(d);l>=1;--l)if(!((f=c*l)<a)){if(f>u)break;m.push(f)}2*m.length<v&&(m=(0,r.ZP)(a,u,v))}else m=(0,r.ZP)(d,p,Math.min(p-d,v)).map(n);return o?m.reverse():m},a.tickFormat=function(e,r){if(null==r&&(r=10===h?".0e":","),"function"!==typeof r&&(r=(0,o.WU)(r)),e===1/0)return r;null==e&&(e=10);var i=Math.max(1,h*e/a.ticks().length);return function(e){var o=e/n(Math.round(t(e)));return o*h<h-.5&&(o*=h),o<=i?r(e):""}},a.nice=function(){return s((0,i.Z)(s(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},a}function v(){var e=h((0,a.l4)()).domain([1,10]);return e.copy=function(){return(0,a.JG)(e,v()).base(e.base())},s.o.apply(e,arguments),e}},37604:function(e,t,n){"use strict";function r(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}n.d(t,{Z:function(){return r}})},34299:function(e,t,n){"use strict";function r(e){return+e}n.d(t,{Z:function(){return r}})},57603:function(e,t,n){"use strict";n.d(t,{O:function(){return o},Z:function(){return i}});var r=n(48348);
163const o=Symbol("implicit");function i(){var e=new Map,t=[],n=[],a=o;function s(r){var i=r+"",s=e.get(i);if(!s){if(a!==o)return a;e.set(i,s=t.push(r))}return n[(s-1)%n.length]}return s.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return s},s.range=function(e){return arguments.length?(n=Array.from(e),s):n.slice()},s.unknown=function(e){return arguments.length?(a=e,s):a},s.copy=function(){return i(t,n).unknown(a)},r.o.apply(s,arguments),s}},55128:function(e,t,n){"use strict";n.d(t,{Hh:function(){return c},ZP:function(){return l},_b:function(){return f}});var r=n(50289),o=n(68741),i=n(48348);function a(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function s(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function u(e){return e<0?-e*e:e*e}function c(e){var t=e(o.yR,o.yR),n=1;function i(){return 1===n?e(o.yR,o.yR):.5===n?e(s,u):e(a(n),a(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,i()):n},(0,r.Q)(t)}function l(){var e=c((0,o.l4)());return e.copy=function(){return(0,o.JG)(e,l()).exponent(e.exponent())},i.o.apply(e,arguments),e}function f(){return l.apply(null,arguments).exponent(.5)}},12110:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(41461),o=n(44355),i=n(91077),a=n(48348);function s(){var e,t=[],n=[],u=[];function c(){var e=0,o=Math.max(1,n.length);for(u=new Array(o-1);++e<o;)u[e-1]=(0,r.s)(t,e/o);return l}function l(t){return null==t||isNaN(t=+t)?e:n[(0,o.ZP)(u,t)]}return l.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?u[r-1]:t[0],r<u.length?u[r]:t[t.length-1]]},l.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(i.Z),c()},l.range=function(e){return arguments.length?(n=Array.from(e),c()):n.slice()},l.unknown=function(t){return arguments.length?(e=t,l):e},l.quantiles=function(){return u.slice()},l.copy=function(){return s().domain(t).range(n).unknown(e)},a.o.apply(l,arguments)}},16602:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(44355),o=n(50289),i=n(48348);function a(){var e,t=0,n=1,s=1,u=[.5],c=[0,1];function l(t){return null!=t&&t<=t?c[(0,r.ZP)(u,t,0,s)]:e}function f(){var e=-1;for(u=new Array(s);++e<s;)u[e]=((e+1)*n-(e-s)*t)/(s+1);return l}return l.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,f()):[t,n]},l.range=function(e){return arguments.length?(s=(c=Array.from(e)).length-1,f()):c.slice()},l.invertExtent=function(e){var r=c.indexOf(e);return r<0?[NaN,NaN]:r<1?[t,u[0]]:r>=s?[u[s-1],n]:[u[r-1],u[r]]},l.unknown=function(t){return arguments.length?(e=t,l):l},l.thresholds=function(){return u.slice()},l.copy=function(){return a().domain([t,n]).range(c).unknown(e)},i.o.apply((0,o.Q)(l),arguments)}},80635:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(68741),o=n(48348),i=n(50289),a=n(34299);function s(e){return Math.sign(e)*e*e}function u(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function c(){var e,t=(0,r.ZP)(),n=[0,1],l=!1;function f(n){var r=u(t(n));return isNaN(r)?e:l?Math.round(r):r}return f.invert=function(e){return t.invert(s(e))},f.domain=function(e){return arguments.length?(t.domain(e),f):t.domain()},f.range=function(e){return arguments.length?(t.range((n=Array.from(e,a.Z)).map(s)),f):n.slice()},f.rangeRound=function(e){return f.range(e).round(!0)},f.round=function(e){return arguments.length?(l=!!e,f):l},f.clamp=function(e){return arguments.length?(t.clamp(e),f):t.clamp()},f.unknown=function(t){return arguments.length?(e=t,f):e},f.copy=function(){return c(t.domain(),n).round(l).clamp(t.clamp()).unknown(e)},o.o.apply(f,arguments),(0,i.Q)(f)}},55437:function(e,t,n){"use strict";n.d(t,{P:function(){return u},Z:function(){return c}});var r=n(50289),o=n(68741),i=n(48348);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function u(e){var t=1,n=e(a(t),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}function c(){var e=u((0,o.l4)());return e.copy=function(){return(0,o.JG)(e,c()).constant(e.constant())},i.o.apply(e,arguments)}},86297:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(44355),o=n(48348);function i(){var e,t=[.5],n=[0,1],a=1;function s(o){return null!=o&&o<=o?n[(0,r.ZP)(t,o,0,a)]:e}return s.domain=function(e){return arguments.length?(t=Array.from(e),a=Math.min(t.length,n.length-1),s):t.slice()},s.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(t.length,n.length-1),s):n.slice()},s.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},s.unknown=function(t){return arguments.length?(e=t,s):e},s.copy=function(){return i().domain(t).range(n).unknown(e)},o.o.apply(s,arguments)}},48433:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67614),o=n(46196),i=n(33085);var a=n(42957);function s(e,t,n,s){var u,c=(0,r.ly)(e,t,n);switch((s=(0,o.Z)(null==s?",f":s)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(u=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(t)/3)))-(0,i.Z)(Math.abs(e)))}(c,l))||(s.precision=u),(0,a.jH)(s,l);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN(u=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,i.Z)(t)-(0,i.Z)(e))+1}(c,Math.max(Math.abs(e),Math.abs(t))))||(s.precision=u-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(u=function(e){return Math.max(0,-(0,i.Z)(Math.abs(e)))}(c))||(s.precision=u-2*("%"===s.type))}return(0,a.WU)(s)}},88383:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},Z:function(){return g}});var r=n(41955),o=n(82209),i=n(4584),a=n(22776),s=n(69478),u=n(42784),c=n(7197),l=n(15086),f=n(47123),d=n(68741),p=n(48348),h=n(37604);function v(e){return new Date(e)}function m(e){return e instanceof Date?+e:+new Date(+e)}function y(e,t,n,r,o,i,a,s,u,c){var l=(0,d.ZP)(),f=l.invert,p=l.domain,g=c(".%L"),b=c(":%S"),_=c("%I:%M"),w=c("%I %p"),x=c("%a %d"),k=c("%b %
163d"),S=c("%B"),E=c("%Y");function O(e){return(u(e)<e?g:s(e)<e?b:a(e)<e?_:i(e)<e?w:r(e)<e?o(e)<e?x:k:n(e)<e?S:E)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,m)):p().map(v)},l.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?O:c(t)},l.nice=function(e){var n=p();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p((0,h.Z)(n,e)):l},l.copy=function(){return(0,d.JG)(l,y(e,t,n,r,o,i,a,s,u,c))},l}function g(){return p.o.apply(y(r.jK,r._g,o.Z,i.Z,a.OM,s.Z,u.Z,c.Z,l.Z,f.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},30819:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(41955),o=n(31181),i=n(47512),a=n(67519),s=n(89692),u=n(60590),c=n(74878),l=n(15086),f=n(47123),d=n(88383),p=n(48348);function h(){return p.o.apply((0,d.Y)(r.WG,r.jo,o.Z,i.Z,a.Ox,s.Z,u.Z,c.Z,l.Z,f.g0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},10233:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(11108),o=n(93072),i=n(44915);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function u(e){return e.startAngle}function c(e){return e.endAngle}function l(e){return e&&e.padAngle}function f(e,t,n,r,o,a,s,u){var c=n-e,l=r-t,f=s-o,d=u-a,p=d*c-f*l;if(!(p*p<i.Ho))return[e+(p=(f*(t-a)-d*(e-o))/p)*c,t+p*l]}function d(e,t,n,r,o,a,s){var u=e-n,c=t-r,l=(s?a:-a)/(0,i._b)(u*u+c*c),f=l*c,d=-l*u,p=e+f,h=t+d,v=n+f,m=r+d,y=(p+v)/2,g=(h+m)/2,b=v-p,_=m-h,w=b*b+_*_,x=o-a,k=p*m-v*h,S=(_<0?-1:1)*(0,i._b)((0,i.Fp)(0,x*x*w-k*k)),E=(k*_-b*S)/w,O=(-k*b-_*S)/w,P=(k*_+b*S)/w,T=(-k*b+_*S)/w,C=E-y,A=O-g,j=P-y,R=T-g;return C*C+A*A>j*j+R*R&&(E=P,O=T),{cx:E,cy:O,x01:-f,y01:-d,x11:E*(o/x-1),y11:O*(o/x-1)}}function p(){var e=a,t=s,n=(0,o.Z)(0),p=null,h=u,v=c,m=l,y=null;function g(){var o,a,s=+e.apply(this,arguments),u=+t.apply(this,arguments),c=h.apply(this,arguments)-i.ou,l=v.apply(this,arguments)-i.ou,g=(0,i.Wn)(l-c),b=l>c;if(y||(y=o=(0,r.Z)()),u<s&&(a=u,u=s,s=a),u>i.Ho)if(g>i.BZ-i.Ho)y.moveTo(u*(0,i.mC)(c),u*(0,i.O$)(c)),y.arc(0,0,u,c,l,!b),s>i.Ho&&(y.moveTo(s*(0,i.mC)(l),s*(0,i.O$)(l)),y.arc(0,0,s,l,c,b));else{var _,w,x=c,k=l,S=c,E=l,O=g,P=g,T=m.apply(this,arguments)/2,C=T>i.Ho&&(p?+p.apply(this,arguments):(0,i._b)(s*s+u*u)),A=(0,i.VV)((0,i.Wn)(u-s)/2,+n.apply(this,arguments)),j=A,R=A;if(C>i.Ho){var M=(0,i.ZR)(C/s*(0,i.O$)(T)),D=(0,i.ZR)(C/u*(0,i.O$)(T));(O-=2*M)>i.Ho?(S+=M*=b?1:-1,E-=M):(O=0,S=E=(c+l)/2),(P-=2*D)>i.Ho?(x+=D*=b?1:-1,k-=D):(P=0,x=k=(c+l)/2)}var I=u*(0,i.mC)(x),L=u*(0,i.O$)(x),N=s*(0,i.mC)(E),B=s*(0,i.O$)(E);if(A>i.Ho){var F,Z=u*(0,i.mC)(k),z=u*(0,i.O$)(k),V=s*(0,i.mC)(S),U=s*(0,i.O$)(S);if(g<i.pi&&(F=f(I,L,V,U,Z,z,N,B))){var W=I-F[0],H=L-F[1],q=Z-F[0],$=z-F[1],G=1/(0,i.O$)((0,i.Kh)((W*q+H*$)/((0,i._b)(W*W+H*H)*(0,i._b)(q*q+$*$)))/2),Y=(0,i._b)(F[0]*F[0]+F[1]*F[1]);j=(0,i.VV)(A,(s-Y)/(G-1)),R=(0,i.VV)(A,(u-Y)/(G+1))}}P>i.Ho?R>i.Ho?(_=d(V,U,I,L,u,R,b),w=d(Z,z,N,B,u,R,b),y.moveTo(_.cx+_.x01,_.cy+_.y01),R<A?y.arc(_.cx,_.cy,R,(0,i.fv)(_.y01,_.x01),(0,i.fv)(w.y01,w.x01),!b):(y.arc(_.cx,_.cy,R,(0,i.fv)(_.y01,_.x01),(0,i.fv)(_.y11,_.x11),!b),y.arc(0,0,u,(0,i.fv)(_.cy+_.y11,_.cx+_.x11),(0,i.fv)(w.cy+w.y11,w.cx+w.x11),!b),y.arc(w.cx,w.cy,R,(0,i.fv)(w.y11,w.x11),(0,i.fv)(w.y01,w.x01),!b))):(y.moveTo(I,L),y.arc(0,0,u,x,k,!b)):y.moveTo(I,L),s>i.Ho&&O>i.Ho?j>i.Ho?(_=d(N,B,Z,z,s,-j,b),w=d(I,L,V,U,s,-j,b),y.lineTo(_.cx+_.x01,_.cy+_.y01),j<A?y.arc(_.cx,_.cy,j,(0,i.fv)(_.y01,_.x01),(0,i.fv)(w.y01,w.x01),!b):(y.arc(_.cx,_.cy,j,(0,i.fv)(_.y01,_.x01),(0,i.fv)(_.y11,_.x11),!b),y.arc(0,0,s,(0,i.fv)(_.cy+_.y11,_.cx+_.x11),(0,i.fv)(w.cy+w.y11,w.cx+w.x11),b),y.arc(w.cx,w.cy,j,(0,i.fv)(w.y11,w.x11),(0,i.fv)(w.y01,w.x01),!b))):y.arc(0,0,s,E,S,b):y.lineTo(N,B)}else y.moveTo(0,0);if(y.closePath(),o)return y=null,o+""||null}return g.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+h.apply(this,arguments)+ +v.apply(this,arguments))/2-i.pi/2;return[(0,i.mC)(r)*n,(0,i.O$)(r)*n]},g.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:(0,o.Z)(+t),g):e},g.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:(0,o.Z)(+e),g):t},g.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:(0,o.Z)(+e),g):n},g.padRadius=function(e){return arguments.length?(p=null==e?null:"function"===typeof e?e:(0,o.Z)(+e),g):p},g.startAngle=function(e){return arguments.length?(h="function"===typeof e?e:(0,o.Z)(+e),g):h},g.endAngle=function(e){return arguments.length?(v="function"===typeof e?e:(0,o.Z)(+e),g):v},g.padAngle=function(e){return arguments.length?(m="function"===typeof e?e:(0,o.Z)(+e),g):m},g.context=function(e){return arguments.length?(y=null==e?null:e,g):y},g}},37633:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(11108),o=n(93072),i=n(18143),a=n(25049),s=n(78260);function u(){var e=s.x,t=null,n=(0,o.Z)(0),u=s.y,c=(0,o.Z)(!0),l=null,f=i.Z,d=null;function p(o){var i,a,s,p,h,v=o.length,m=!1,y=new Array(v),g=new Array(v);for(null==l&&(d=f(h=(0,r.Z)())),i=0;i<=v;++i){if(!(i<v&&c(p=o[i],i,o))===m)if(m=!m)a=i,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),s=i-1;s>=a;--s)d.point(y[s],g[s]);d.lineEnd(),d.areaEnd()}m&&(y[i]=+e(p,i,o),g[i]=+n(p,i,o),d.point(t?+t(p,i,o):y[i],u?+u(p,i,o):g[i]))}if(h)return d=null,h+""||null}function h(){return(0,a.Z)().defined(c).curve(f).context(l)}return p.x=function(n){return arguments.length?(e="function"===typeof n?n:(0,o.Z)(+n),t=null,p):e},p.x0=function(t){return arguments.length?(e="function"===typeof t?t:(0,o.Z)(+t),p):e},p.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:(0,o.Z)(+e),p):t},p.y=function(e){return arguments.length?(n="function"===typeof e?e:(0,o.Z)(+e),u=null,p):n},p.y0=function(e){return arguments.length?(n="function"===typeof e?e:(0,o.Z)(+e),p):n},p.y1=function(e){return arguments.length?(u=null==e?null:"function"===typeof e?e:(0,o.Z)(+e),p):u},p.lineX0=p.lineY0=function(){return h().x(e).y(n)},p.lineY1=function(){return h().x(e).y(u)},p.lineX1=function(){return h().x(t).y(n)},p.defined=function(e){return arguments.length?(c="function"===typeof e?e:(0,o.Z)(!!e),p):c},p.curve=function(e){return arguments.length?(f=e,null!=l&&(d=f(l)),p):f}
163,p.context=function(e){return arguments.length?(null==e?l=d=null:d=f(l=e),p):l},p}},5742:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},93072:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},67829:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function o(e){this._context=e}function i(e){return new o(e)}n.d(t,{ZP:function(){return i},fE:function(){return o},xm:function(){return r}}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},79938:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(33046),o=n(67829);function i(e){this._context=e}function a(e){return new i(e)}i.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:(0,o.xm)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},99717:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67829);function o(e){this._context=e}function i(e){return new o(e)}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,o):this._context.moveTo(n,o);break;case 3:this._point=4;default:(0,r.xm)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},24849:function(e,t,n){"use strict";var r=n(67829);function o(e,t){this._basis=new r.fE(e),this._beta=t}o.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},t.Z=function e(t){function n(e){return 1===t?new r.fE(e):new o(e,t)}return n.beta=function(t){return e(+t)},n}(.85)},97018:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function o(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return o},xm:function(){return r}}),o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n}(0)},85200:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(33046),o=n(97018);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,o.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.Z=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},55669:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(97018);function o(e,t){this._context=e,this._k=(1-t)/6}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,r.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.Z=function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n}(0)},79039:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(44915),o=n(97018);function i(e,t,n){var o=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>r.Ho){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>r.Ho){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/f,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(o,i,a,s,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:i(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.Z=function e(t){function n(e){return t?new a(e,t):new o.pC(e,0)}
vendor: 9,824 bytes, line 163
163return n.alpha=function(t){return e(+t)},n}(.5)},68286:function(e,t,n){"use strict";var r=n(85200),o=n(33046),i=n(79039);function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:o.Z,areaEnd:o.Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,i.x)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.Z=function e(t){function n(e){return t?new a(e,t):new r.U(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},33506:function(e,t,n){"use strict";var r=n(55669),o=n(79039);function i(e,t){this._context=e,this._alpha=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,o.x)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.Z=function e(t){function n(e){return t?new i(e,t):new r.T(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},18143:function(e,t,n){"use strict";function r(e){this._context=e}function o(e){return new r(e)}n.d(t,{Z:function(){return o}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},57481:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(33046);function o(e){this._context=e}function i(e){return new o(e)}o.prototype={areaStart:r.Z,areaEnd:r.Z,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}},65165:function(e,t,n){"use strict";function r(e){return e<0?-1:1}function o(e,t,n){var o=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(o||i<0&&-0),s=(n-e._y1)/(i||o<0&&-0),u=(a*i+s*o)/(o+i);return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function a(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function s(e){this._context=e}function u(e){this._context=new c(e)}function c(e){this._context=e}function l(e){return new s(e)}function f(e){return new u(e)}n.d(t,{Z:function(){return l},s:function(){return f}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,i(this,n=o(this,e,t)),n);break;default:a(this,this._t0,n=o(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(u.prototype=Object.create(s.prototype)).point=function(e,t){s.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}}},56732:function(e,t,n){"use strict";function r(e){this._context=e}function o(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=o(e),i=o(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},45317:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},j:function(){return r}});var r=i(n(18143).Z);function o(e){this._curve=e}function i(e){function t(t){return new o(e(t))}return t._curve=e,t}o.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},77059:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function o(e){return new r(e,.5)}function i(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return i},ZP:function(){return o},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},83993:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return o.Z},areaRadial:function(){return c},curveBasis:function(){return L.ZP},curveBasisClosed:function(){return D.Z},curveBasisOpen:function(){return I.Z},curveBundle:function(){return N.Z},curveCardinal:function(){return Z.ZP},curveCardinalClosed:function(){return B.Z},curveCardinalOpen:function(){return F.Z},curveCatmullRom:function(){return U.Z},curveCatmullRomClosed:function(){return z.Z},curveCatmullRomOpen:function(){return V.Z},curveLinear:function(){return H.Z},curveLinearClosed:function(){return W.Z},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return $.Z},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return i.Z},lineRadial:function(){return u.Z},linkHorizontal:function(){return f.h5},linkRadial:function(){return f.M4},linkVertical:function(){return f.rR},pie:function(){return a.Z},pointRadial:function(){return l.Z},radialArea:function(){return c},radialLine:function(){return u.Z},stack:function(){return Y.Z},stackOffsetDiverging:function(){return X.Z},stackOffsetExpand:function(){return K.Z},stackOffsetNone:function(){return Q.Z},stackOffsetSilhouette:function(){return J.Z},stackOffsetWiggle:function(){return ee.Z},stackOrderAppearance:function(){return te.Z},stackOrderAscending:function(){return ne.Z},stackOrderDescending:function(){return re.Z},stackOrderInsideOut:function(){return oe.Z},stackOrderNone:function(){return ie.Z},stackOrderReverse:function(){return ae.Z},symbol:function(){return M},symbolCircle:function(){return h},symbolCross:function(){return v},symbolDiamond:function(){return g},symbolSquare:function(){return k},symbolStar:function(){return x},symbolTriangle:function(){return E},symbolWye:function(){return A},symbols:function(){return R}});var r=n(10233),o=n(37633),i=n(25049),a=n(14119),s=n(45317),u=n(73671);
163function c(){var e=(0,o.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,u.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,u.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,u.X)(i())},delete e.lineY0,e.lineOuterRadius=function(){return(0,u.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var l=n(81287),f=n(67717),d=n(11108),p=n(44915),h={draw:function(e,t){var n=Math.sqrt(t/p.pi);e.moveTo(n,0),e.arc(0,0,n,0,p.BZ)}},v={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},m=Math.sqrt(1/3),y=2*m,g={draw:function(e,t){var n=Math.sqrt(t/y),r=n*m;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},b=Math.sin(p.pi/10)/Math.sin(7*p.pi/10),_=Math.sin(p.BZ/10)*b,w=-Math.cos(p.BZ/10)*b,x={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=_*n,o=w*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=p.BZ*i/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*o,u*r+s*o)}e.closePath()}},k={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},S=Math.sqrt(3),E={draw:function(e,t){var n=-Math.sqrt(t/(3*S));e.moveTo(0,2*n),e.lineTo(-S*n,-n),e.lineTo(S*n,-n),e.closePath()}},O=-.5,P=Math.sqrt(3)/2,T=1/Math.sqrt(12),C=3*(T/2+1),A={draw:function(e,t){var n=Math.sqrt(t/C),r=n/2,o=n*T,i=r,a=n*T+n,s=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,u),e.lineTo(O*r-P*o,P*r+O*o),e.lineTo(O*i-P*a,P*i+O*a),e.lineTo(O*s-P*u,P*s+O*u),e.lineTo(O*r+P*o,O*o-P*r),e.lineTo(O*i+P*a,O*a-P*i),e.lineTo(O*s+P*u,O*u-P*s),e.closePath()}},j=n(93072),R=[h,v,g,k,x,E,A];function M(){var e=(0,j.Z)(h),t=(0,j.Z)(64),n=null;function r(){var r;if(n||(n=r=(0,d.Z)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:(0,j.Z)(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:(0,j.Z)(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}var D=n(79938),I=n(99717),L=n(67829),N=n(24849),B=n(85200),F=n(55669),Z=n(97018),z=n(68286),V=n(33506),U=n(79039),W=n(57481),H=n(18143),q=n(65165),$=n(56732),G=n(77059),Y=n(10098),K=n(57854),X=n(8655),Q=n(29766),J=n(33585),ee=n(22352),te=n(9821),ne=n(36873),re=n(16522),oe=n(51075),ie=n(69681),ae=n(35522)},25049:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(11108),o=n(93072),i=n(18143),a=n(78260);function s(){var e=a.x,t=a.y,n=(0,o.Z)(!0),s=null,u=i.Z,c=null;function l(o){var i,a,l,f=o.length,d=!1;for(null==s&&(c=u(l=(0,r.Z)())),i=0;i<=f;++i)!(i<f&&n(a=o[i],i,o))===d&&((d=!d)?c.lineStart():c.lineEnd()),d&&c.point(+e(a,i,o),+t(a,i,o));if(l)return c=null,l+""||null}return l.x=function(t){return arguments.length?(e="function"===typeof t?t:(0,o.Z)(+t),l):e},l.y=function(e){return arguments.length?(t="function"===typeof e?e:(0,o.Z)(+e),l):t},l.defined=function(e){return arguments.length?(n="function"===typeof e?e:(0,o.Z)(!!e),l):n},l.curve=function(e){return arguments.length?(u=e,null!=s&&(c=u(s)),l):u},l.context=function(e){return arguments.length?(null==e?s=c=null:c=u(s=e),l):s},l}},73671:function(e,t,n){"use strict";n.d(t,{X:function(){return i},Z:function(){return a}});var r=n(45317),o=n(25049);function i(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t((0,r.Z)(e)):t()._curve},e}function a(){return i((0,o.Z)().curve(r.j))}},67717:function(e,t,n){"use strict";n.d(t,{M4:function(){return m},h5:function(){return h},rR:function(){return v}});var r=n(11108),o=n(5742),i=n(93072),a=n(78260),s=n(81287);function u(e){return e.source}function c(e){return e.target}function l(e){var t=u,n=c,s=a.x,l=a.y,f=null;function d(){var i,a=o.t.call(arguments),u=t.apply(this,a),c=n.apply(this,a);if(f||(f=i=(0,r.Z)()),e(f,+s.apply(this,(a[0]=u,a)),+l.apply(this,a),+s.apply(this,(a[0]=c,a)),+l.apply(this,a)),i)return f=null,i+""||null}return d.source=function(e){return arguments.length?(t=e,d):t},d.target=function(e){return arguments.length?(n=e,d):n},d.x=function(e){return arguments.length?(s="function"===typeof e?e:(0,i.Z)(+e),d):s},d.y=function(e){return arguments.length?(l="function"===typeof e?e:(0,i.Z)(+e),d):l},d.context=function(e){return arguments.length?(f=null==e?null:e,d):f},d}function f(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function d(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function p(e,t,n,r,o){var i=(0,s.Z)(t,n),a=(0,s.Z)(t,n=(n+o)/2),u=(0,s.Z)(r,n),c=(0,s.Z)(r,o);
163e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function h(){return l(f)}function v(){return l(d)}function m(){var e=l(p);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},44915:function(e,t,n){"use strict";n.d(t,{BZ:function(){return p},Fp:function(){return a},Ho:function(){return l},Kh:function(){return h},O$:function(){return u},VV:function(){return s},Wn:function(){return r},ZR:function(){return v},_b:function(){return c},fv:function(){return o},mC:function(){return i},ou:function(){return d},pi:function(){return f}});var r=Math.abs,o=Math.atan2,i=Math.cos,a=Math.max,s=Math.min,u=Math.sin,c=Math.sqrt,l=1e-12,f=Math.PI,d=f/2,p=2*f;function h(e){return e>1?0:e<-1?f:Math.acos(e)}function v(e){return e>=1?d:e<=-1?-d:Math.asin(e)}},33046:function(e,t,n){"use strict";function r(){}n.d(t,{Z:function(){return r}})},8655:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,o,i,a,s,u=0,c=e[t[0]].length;u<c;++u)for(i=a=0,n=0;n<s;++n)(o=(r=e[t[n]][u])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)}n.d(t,{Z:function(){return r}})},57854:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(29766);function o(e,t){if((o=e.length)>0){for(var n,o,i,a=0,s=e[0].length;a<s;++a){for(i=n=0;n<o;++n)i+=e[n][a][1]||0;if(i)for(n=0;n<o;++n)e[n][a][1]/=i}(0,r.Z)(e,t)}}},29766:function(e,t,n){"use strict";function r(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}n.d(t,{Z:function(){return r}})},33585:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(29766);function o(e,t){if((n=e.length)>0){for(var n,o=0,i=e[t[0]],a=i.length;o<a;++o){for(var s=0,u=0;s<n;++s)u+=e[s][o][1]||0;i[o][1]+=i[o][0]=-u/2}(0,r.Z)(e,t)}}},22352:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(29766);function o(e,t){if((i=e.length)>0&&(o=(n=e[t[0]]).length)>0){for(var n,o,i,a=0,s=1;s<o;++s){for(var u=0,c=0,l=0;u<i;++u){for(var f=e[t[u]],d=f[s][1]||0,p=(d-(f[s-1][1]||0))/2,h=0;h<u;++h){var v=e[t[h]];p+=(v[s][1]||0)-(v[s-1][1]||0)}c+=d,l+=p*d}n[s-1][1]+=n[s-1][0]=a,c&&(a-=l/c)}n[s-1][1]+=n[s-1][0]=a,(0,r.Z)(e,t)}}},9821:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(69681);function o(e){var t=e.map(i);return(0,r.Z)(e).sort((function(e,n){return t[e]-t[n]}))}function i(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}},36873:function(e,t,n){"use strict";n.d(t,{S:function(){return i},Z:function(){return o}});var r=n(69681);function o(e){var t=e.map(i);return(0,r.Z)(e).sort((function(e,n){return t[e]-t[n]}))}function i(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}},16522:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(36873);function o(e){return(0,r.Z)(e).reverse()}},51075:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9821),o=n(36873);function i(e){var t,n,i=e.length,a=e.map(o.S),s=(0,r.Z)(e),u=0,c=0,l=[],f=[];for(t=0;t<i;++t)n=s[t],u<c?(u+=a[n],l.push(n)):(c+=a[n],f.push(n));return f.reverse().concat(l)}},69681:function(e,t,n){"use strict";function r(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},35522:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(69681);function o(e){return(0,r.Z)(e).reverse()}},14119:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(93072);function o(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function i(e){return e}var a=n(44915);function s(){var e=i,t=o,n=null,s=(0,r.Z)(0),u=(0,r.Z)(a.BZ),c=(0,r.Z)(0);function l(r){var o,i,l,f,d,p=r.length,h=0,v=new Array(p),m=new Array(p),y=+s.apply(this,arguments),g=Math.min(a.BZ,Math.max(-a.BZ,u.apply(this,arguments)-y)),b=Math.min(Math.abs(g)/p,c.apply(this,arguments)),_=b*(g<0?-1:1);for(o=0;o<p;++o)(d=m[v[o]=o]=+e(r[o],o,r))>0&&(h+=d);for(null!=t?v.sort((function(e,n){return t(m[e],m[n])})):null!=n&&v.sort((function(e,t){return n(r[e],r[t])})),o=0,l=h?(g-p*_)/h:0;o<p;++o,y=f)i=v[o],f=y+((d=m[i])>0?d*l:0)+_,m[i]={data:r[i],index:o,value:d,startAngle:y,endAngle:f,padAngle:b};return m}return l.value=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l):e},l.sortValues=function(e){return arguments.length?(t=e,n=null,l):t},l.sort=function(e){return arguments.length?(n=e,t=null,l):n},l.startAngle=function(e){return arguments.length?(s="function"===typeof e?e:(0,r.Z)(+e),l):s},l.endAngle=function(e){return arguments.length?(u="function"===typeof e?e:(0,r.Z)(+e),l):u},l.padAngle=function(e){return arguments.length?(c="function"===typeof e?e:(0,r.Z)(+e),l):c},l}},78260:function(e,t,n){"use strict";function r(e){return e[0]}function o(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return o}})},81287:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},10098:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(5742),o=n(93072),i=n(29766),a=n(69681);function s(e,t){return e[t]}function u(){var e=(0,o.Z)([]),t=a.Z,n=i.Z,u=s;function c(r){var o,i,a=e.apply(this,arguments),s=r.length,c=a.length,l=new Array(c);for(o=0;o<c;++o){for(var f,d=a[o],p=l[o]=new Array(s),h=0;h<s;++h)p[h]=f=[0,+u(r[h],d,h,r)],f.data=r[h];p.key=d}for(o=0,i=t(l);o<c;++o)l[i[o]].index=o;return n(l,i),l}return c.keys=function(t){return arguments.length?(e="function"===typeof t?t:(0,o.Z)(r.t.call(t)),c):e},c.value=function(e){return arguments.length?(u="function"===typeof e?e:(0,o.Z)(+e),c):u}
vendor: 8,903 bytes, line 163
163,c.order=function(e){return arguments.length?(t=null==e?a.Z:"function"===typeof e?e:(0,o.Z)(r.t.call(e)),c):t},c.offset=function(e){return arguments.length?(n=null==e?i.Z:e,c):n},c}},47123:function(e,t,n){"use strict";n.d(t,{i$:function(){return p},g0:function(){return h}});var r=n(67519),o=n(89692),i=n(22776),a=n(69478),s=n(82209),u=n(31181);function c(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function l(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function f(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var d,p,h,v={"-":"",_:" ",0:"0"},m=/^\s*\d+/,y=/^%/,g=/[\\^$*+?|[\]().{}]/g;function b(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function _(e){return e.replace(g,"\\$&")}function w(e){return new RegExp("^(?:"+e.map(_).join("|")+")","i")}function x(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function k(e,t,n){var r=m.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function S(e,t,n){var r=m.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function E(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function O(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function P(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function T(e,t,n){var r=m.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function C(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function A(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function j(e,t,n){var r=m.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function R(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function I(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function N(e,t,n){var r=m.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function B(e,t,n){var r=m.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function F(e,t,n){var r=m.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Z(e,t,n){var r=y.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function z(e,t,n){var r=m.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function V(e,t,n){var r=m.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function U(e,t){return b(e.getDate(),t,2)}function W(e,t){return b(e.getHours(),t,2)}function H(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+a.Z.count((0,s.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function G(e,t){return $(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function K(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return b(i.OM.count((0,s.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,i.bL)(e):i.bL.ceil(e)}function te(e,t){return e=ee(e),b(i.bL.count((0,s.Z)(e),e)+(4===(0,s.Z)(e).getDay()),t,2)}function ne(e){return e.getDay()}function re(e,t){return b(i.wA.count((0,s.Z)(e)-1,e),t,2)}function oe(e,t){return b(e.getFullYear()%100,t,2)}function ie(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function ae(e,t){return b(e.getFullYear()%1e4,t,4)}function se(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,i.bL)(e):i.bL.ceil(e)).getFullYear()%1e4,t,4)}function ue(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function ce(e,t){return b(e.getUTCDate(),t,2)}function le(e,t){return b(e.getUTCHours(),t,2)}function fe(e,t){return b(e.getUTCHours()%12||12,t,2)}function de(e,t){return b(1+o.Z.count((0,u.Z)(e),e),t,3)}function pe(e,t){return b(e.getUTCMilliseconds(),t,3)}function he(e,t){return pe(e,t)+"000"}function ve(e,t){return b(e.getUTCMonth()+1,t,2)}function me(e,t){return b(e.getUTCMinutes(),t,2)}function ye(e,t){return b(e.getUTCSeconds(),t,2)}function ge(e){var t=e.getUTCDay();return 0===t?7:t}function be(e,t){return b(r.Ox.count((0,u.Z)(e)-1,e),t,2)}function _e(e){var t=e.getUTCDay();return t>=4||0===t?(0,r.hB)(e):r.hB.ceil(e)}function we(e,t){return e=_e(e),b(r.hB.count((0,u.Z)(e),e)+(4===(0,u.Z)(e).getUTCDay()),t,2)}function xe(e){return e.getUTCDay()}function ke(e,t){return b(r.l6.count((0,u.Z)(e)-1,e),t,2)}function Se(e,t){return b(e.getUTCFullYear()%100,t,2)}function Ee(e,t){return b((e=_e(e)).getUTCFullYear()%100,t,2)}function Oe(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function Pe(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,r.hB)(e):r.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function Te(){return"+0000"}function Ce(){return"%"}function Ae(e){return+e}function je(e){return Math.floor(+e/1e3)}d=function(e){var t=e.dateTime,n=e.date,s=e.time,u=e.periods,d=e.days,p=e.shortDays,h=e.months,m=e.shortMonths,y=w(u),g=x(u),b=w(d),_=x(d),ee=w(p),_e=x(p),Re=w(h),Me=x(h),De=w(m),Ie=x(m),Le={a:function(e){return p[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:null,d:U,e:U,f:G,g:ie,G:se,H:W,I:H,j:q,L:$,m:Y,M:K,p:function(e){return u[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ae,s:je,S:X,u:Q,U:J,V:te,w:ne,W:re,x:null,X:null,y:oe,Y:ae,Z:ue,"%":Ce},Ne={a:function(e){return p[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return h[e.getUTCMonth()]},c:null,d:ce,e:ce,f:he,g:Ee,G:Pe,H:le,I:fe,j:de,L:pe,m:ve,M:me,p:function(e){return u[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ae,s:je,S:ye,u:ge,U:be,V:we,w:xe,W:ke,x:null,X:null,y:Se,Y:Oe,Z:Te,"%":Ce},Be={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=_e.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=_.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=De.exec(t.slice(n));return r?(e.m=Ie.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=Re.exec(t.slice(n));return r?(e.m=Me.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return ze(e,t,n,r)},d:M,e:M,f:F,g:C,G:T,H:I,I:I,j:D,L:B,m:R,M:L,p:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.p=g.get(r[0].toLowerCase()),n+r[0].length):-1},q:j,Q:z,s:V,S:N,u:S,U:E,V:O,w:k,W:P,x:function(e,t,r){return ze(e,n,t,r)},X:function(e,t,n){return ze(e,s,t,n)},y:C,Y:T,Z:A,"%":Z};function Fe(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=v[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function Ze(e,t){return function(n){var s,u,d=f(1900,void 0,1);if(ze(d,e,n+="",0)!=n.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(t&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(u=(s=l(f(d.y,0,1))).getUTCDay(),s=u>4||0===u?r.l6.ceil(s):(0,r.l6)(s),s=o.Z.offset(s,7*(d.V-1)),d.y=s.getUTCFullYear(),d.m=s.getUTCMonth(),d.d=s.getUTCDate()+(d.w+6)%7):(u=(s=c(f(d.y,0,1))).getDay(),s=u>4||0===u?i.wA.ceil(s):(0,i.wA)(s),s=a.Z.offset(s,7*(d.V-1)),d.y=s.getFullYear(),d.m=s.getMonth(),d.d=s.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),u="Z"in d?l(f(d.y,0,1)).getUTCDay():c(f(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(u+5)%7:d.w+7*d.U-(u+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,l(d)):c(d)}}function ze(e,t,n,r){for(var o,i,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Be[o in v?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return Le.x=Fe(n,Le),Le.X=Fe(s,Le),Le.c=Fe(t,Le),Ne.x=Fe(n,Ne),Ne.X=Fe(s,Ne),Ne.c=Fe(t,Ne),{format:function(e){var t=Fe(e+="",Le);return t.toString=function(){return e},t},parse:function(e){var t=Ze(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Fe(e+="",Ne);return t.toString=function(){return e},t},utcParse:function(e){var t=Ze(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
163ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),p=d.format,d.parse,h=d.utcFormat,d.utcParse},69478:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.yB)/o.UD),(e=>e.getDate()-1));t.Z=i;var a=i.range},61222:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return i},Ym:function(){return r},iM:function(){return s},jz:function(){return u},qz:function(){return c},yB:function(){return o}});const r=1e3,o=60*r,i=60*o,a=24*i,s=7*a,u=30*a,c=365*a},42784:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.Ym-e.getMinutes()*o.yB)}),(function(e,t){e.setTime(+e+t*o.Y2)}),(function(e,t){return(t-e)/o.Y2}),(function(e){return e.getHours()}));t.Z=i;var a=i.range},42796:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return u.Z},timeDays:function(){return u.a},timeFriday:function(){return c.mC},timeFridays:function(){return c.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return o.Z},timeMilliseconds:function(){return o.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return c.wA},timeMondays:function(){return c.bJ},timeMonth:function(){return l.Z},timeMonths:function(){return l.e},timeSaturday:function(){return c.EY},timeSaturdays:function(){return c.Ff},timeSecond:function(){return i.Z},timeSeconds:function(){return i.m},timeSunday:function(){return c.OM},timeSundays:function(){return c.vm},timeThursday:function(){return c.bL},timeThursdays:function(){return c.$t},timeTickInterval:function(){return g._g},timeTicks:function(){return g.jK},timeTuesday:function(){return c.sy},timeTuesdays:function(){return c.aU},timeWednesday:function(){return c.zg},timeWednesdays:function(){return c.Ld},timeWeek:function(){return c.OM},timeWeeks:function(){return c.vm},timeYear:function(){return f.Z},timeYears:function(){return f.g},utcDay:function(){return h.Z},utcDays:function(){return h.y},utcFriday:function(){return v.QQ},utcFridays:function(){return v.fz},utcHour:function(){return p.Z},utcHours:function(){return p.X},utcMillisecond:function(){return o.Z},utcMilliseconds:function(){return o.m},utcMinute:function(){return d.Z},utcMinutes:function(){return d.N},utcMonday:function(){return v.l6},utcMondays:function(){return v.$3},utcMonth:function(){return m.Z},utcMonths:function(){return m.K},utcSaturday:function(){return v.g4},utcSaturdays:function(){return v.Q_},utcSecond:function(){return i.Z},utcSeconds:function(){return i.m},utcSunday:function(){return v.Ox},utcSundays:function(){return v.SU},utcThursday:function(){return v.hB},utcThursdays:function(){return v.xj},utcTickInterval:function(){return g.jo},utcTicks:function(){return g.WG},utcTuesday:function(){return v.J1},utcTuesdays:function(){return v.DK},utcWednesday:function(){return v.b3},utcWednesdays:function(){return v.uy},utcWeek:function(){return v.Ox},utcWeeks:function(){return v.SU},utcYear:function(){return y.Z},utcYears:function(){return y.D}});var r=n(11829),o=n(98179),i=n(15086),a=n(7197),s=n(42784),u=n(69478),c=n(22776),l=n(4584),f=n(82209),d=n(74878),p=n(60590),h=n(89692),v=n(67519),m=n(47512),y=n(31181),g=n(41955)},11829:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=new Date,o=new Date;function i(e,t,n,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return i((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(s.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e===0}:function(t){return s.count(0,t)%e===0}):s:null}),s}},98179:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(11829),o=(0,r.Z)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,r.Z)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):o:null},t.Z=o;var i=o.range},7197:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.Ym)}),(function(e,t){e.setTime(+e+t*o.yB)}),(function(e,t){return(t-e)/o.yB}),(function(e){return e.getMinutes()}));t.Z=i;var a=i.range},4584:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var r=(0,n(11829).Z)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));t.Z=r;var o=r.range},15086:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*o.Ym)}),(function(e,t){return(t-e)/o.Ym}),(function(e){return e.getUTCSeconds()}));t.Z=i;var a=i.range},41955:function(e,t,n){"use strict";n.d(t,{WG:function(){return w},_g:function(){return S},jK:function(){return k},jo:function(){return x}});var r=n(29173),o=n(67614),i=n(61222),a=n(98179),s=n(15086),u=n(7197),c=n(42784),l=n(69478),f=n(22776),d=n(4584),p=n(82209),h=n(74878),v=n(60590),m=n(89692),y=n(67519),g=n(47512),b=n(31181);function _(e,t,n,u,c,l){const f=[[s.Z,1,i.Ym],[s.Z,5,5*i.Ym],[s.Z,15,15*i.Ym],[s.Z,30,30*i.Ym],[l,1,i.yB],[l,5,5*i.yB],[l,15,15*i.yB],[l,30,30*i.yB],[c,1,i.Y2],[c,3,3*i.Y2],[c,6,6*i.Y2],[c,12,12*i.Y2],[u,1,i.UD],[u,2,2*i.UD],[n,1,i.iM],[t,1,i.jz],[t,3,3*i.jz],[e,1,i.qz]];function d(t,n,s){const u=Math.abs(n-t)/s,c=(0,r.Z)((([,,e])=>e)).right(f,u);if(c===f.length)return e.every((0,o.ly)(t/i.qz,n/i.qz,s));if(0===c)return a.Z.every(Math.max((0,o.ly)(t,n,s),1));const[l,d]=f[u/f[c-1][2]<f[c][2]/u?c-1:c];return l.every(d)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);
163const o=n&&"function"===typeof n.range?n:d(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},d]}const[w,x]=_(b.Z,g.Z,y.Ox,m.Z,v.Z,h.Z),[k,S]=_(p.Z,d.Z,f.OM,l.Z,c.Z,u.Z)},89692:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/o.UD}),(function(e){return e.getUTCDate()-1}));t.Z=i;var a=i.range},60590:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*o.Y2)}),(function(e,t){return(t-e)/o.Y2}),(function(e){return e.getUTCHours()}));t.Z=i;var a=i.range},74878:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(11829),o=n(61222),i=(0,r.Z)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*o.yB)}),(function(e,t){return(t-e)/o.yB}),(function(e){return e.getUTCMinutes()}));t.Z=i;var a=i.range},47512:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=(0,n(11829).Z)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));t.Z=r;var o=r.range},67519:function(e,t,n){"use strict";n.d(t,{$3:function(){return h},DK:function(){return v},J1:function(){return u},Ox:function(){return a},QQ:function(){return f},Q_:function(){return b},SU:function(){return p},b3:function(){return c},fz:function(){return g},g4:function(){return d},hB:function(){return l},l6:function(){return s},uy:function(){return m},xj:function(){return y}});var r=n(11829),o=n(61222);function i(e){return(0,r.Z)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/o.iM}))}var a=i(0),s=i(1),u=i(2),c=i(3),l=i(4),f=i(5),d=i(6),p=a.range,h=s.range,v=u.range,m=c.range,y=l.range,g=f.range,b=d.range},31181:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(11829),o=(0,r.Z)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.Z=o;var i=o.range},22776:function(e,t,n){"use strict";n.d(t,{$t:function(){return y},EY:function(){return d},Ff:function(){return b},Ld:function(){return m},OM:function(){return a},aU:function(){return v},b$:function(){return g},bJ:function(){return h},bL:function(){return l},mC:function(){return f},sy:function(){return u},vm:function(){return p},wA:function(){return s},zg:function(){return c}});var r=n(11829),o=n(61222);function i(e){return(0,r.Z)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.yB)/o.iM}))}var a=i(0),s=i(1),u=i(2),c=i(3),l=i(4),f=i(5),d=i(6),p=a.range,h=s.range,v=u.range,m=c.range,y=l.range,g=f.range,b=d.range},82209:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(11829),o=(0,r.Z)((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.Z=o;var i=o.range},20296:function(e){function t(e,t,n){var r,o,i,a,s;function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(i,o),i=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},9996:function(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)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((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(n){return!1}}function s(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 u;var n=t.customMerge(e);return"function"===typeof n?n:u}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function u(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var c=u;e.exports=c},12296:function(e,t,n){"use strict";var r=n(31044)(),o=n(40210),i=r&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(c){i=!1}var a=o("%SyntaxError%"),s=o("%TypeError%"),u=n(27296);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");
163if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(i)i(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===o&&f?f.writable:!o});else{if(!l&&(r||o||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4289:function(e,t,n){"use strict";var r=n(82215),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=n(12296),u=n(31044)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;u?s(e,t,n,!0):s(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)c(e,i[s],t[i[s]],n[i[s]])};l.supportsDescriptors=!!u,e.exports=l},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},17187:function(e){"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,a;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,function(e){console&&console.warn&&console.warn(e)}(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
163,set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94029:function(e,t,n){"use strict";var r=n(95320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},u=function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),"[object Array]"===o.call(e)?a(e,t,i):"string"===typeof e?s(e,t,i):u(e,t,i)}},6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},17648:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var u=this;if("function"!==typeof u||n.apply(u)!==o)throw new TypeError(t+u);
vendor: 2,354 bytes, line 163
163for(var c,l=a(arguments,1),f=function(){if(this instanceof c){var t=u.apply(this,i(l,arguments));return Object(t)===t?t:this}return u.apply(e,i(l,arguments))},d=r(0,u.length-l.length),p=[],h=0;h<d;h++)p[h]="$"+h;if(c=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(f),u.prototype){var v=function(){};v.prototype=u.prototype,c.prototype=new v,v.prototype=null}return c}},58612:function(e,t,n){"use strict";var r=n(17648);e.exports=Function.prototype.bind||r},40210:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(j){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=n(41405)(),d=n(28185)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},v="undefined"!==typeof Uint8Array&&p?p(Uint8Array):r,m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
163IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":v,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(j){var y=p(p(j));m["%Error.prototype%"]=y}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&p&&(n=p(o.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(58612),w=n(48824),x=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),S=_.call(Function.call,String.prototype.replace),E=_.call(Function.call,String.prototype.slice),O=_.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,C=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return S(e,P,(function(e,t,n,o){r[r.length]=n?S(o,T,"$1"):t||e})),r},A=function(e,t){var n,r=e;if(w(b,r)&&(r="%"+(n=b[r])[0]+"%"),w(m,r)){var i=m[r];if(i===h&&(i=g(r)),"undefined"===typeof i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=C(e),r=n.length>0?n[0]:"",i=A("%"+r+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],k(n,x([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],v=E(h,0,1),y=E(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&p||(l=!0),w(m,s="%"+(r+="."+h)+"%"))c=m[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(c,h);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[h]}else p=w(c,h),c=c[h];p&&!l&&(m[s]=c)}}return c}},27296:function(e,t,n){"use strict";var r=n(40210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},31044:function(e,t,n){"use strict";var r=n(40210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},28185:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},41405:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(55419);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},55419:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},96410:function(e,t,n){"use strict";var r=n(55419);e.exports=function(){return r()&&!!Symbol.toStringTag}},48824:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(58612);e.exports=i.call(r,o)},99318:function(e,t,n){"use strict";n.d(t,{lX:function(){return _},q_:function(){return O},ob:function(){return p},PP:function(){return T},Ep:function(){return d}});var r=n(87462);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),u=t&&o(t),c=s||u;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h},s=n(38776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function p(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invali
163d percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"===typeof window||!window.document||!window.document.createElement);function m(e,t){t(window.confirm(e))}var y="popstate",g="hashchange";function b(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),v||(0,s.Z)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,_=i.getUserConfirmation,w=void 0===_?m:_,x=i.keyLength,k=void 0===x?6:x,S=e.basename?f(u(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=l(i,S)),p(i,r,n)}function O(){return Math.random().toString(36).substr(2,k)}var P=h();function T(e){(0,r.Z)(Z,e),Z.length=t.length,P.notifyListeners(Z.location,Z.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(E(e.state))}function A(){R(E(b()))}var j=!1;function R(e){if(j)j=!1,T();else{P.confirmTransitionTo(e,"POP",w,(function(t){t?T({action:"POP",location:e}):function(e){var t=Z.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(j=!0,L(o))}(e)}))}}var M=E(b()),D=[M.key];function I(e){return S+d(e)}function L(e){t.go(e)}var N=0;function B(e){1===(N+=e)&&1===e?(window.addEventListener(y,C),o&&window.addEventListener(g,A)):0===N&&(window.removeEventListener(y,C),o&&window.removeEventListener(g,A))}var F=!1;var Z={length:t.length,action:"POP",location:M,createHref:I,push:function(e,r){var o="PUSH",i=p(e,r,O(),Z.location);P.confirmTransitionTo(i,o,w,(function(e){if(e){var r=I(i),a=i.key,s=i.state;if(n)if(t.pushState({key:a,state:s},null,r),c)window.location.href=r;else{var u=D.indexOf(Z.location.key),l=D.slice(0,u+1);l.push(i.key),D=l,T({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=p(e,r,O(),Z.location);P.confirmTransitionTo(i,o,w,(function(e){if(e){var r=I(i),a=i.key,s=i.state;if(n)if(t.replaceState({key:a,state:s},null,r),c)window.location.replace(r);else{var u=D.indexOf(Z.location.key);-1!==u&&(D[u]=i.key),T({action:o,location:i})}else window.location.replace(r)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}}};return Z}var w="hashchange",x={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:u},slash:{encodePath:u,decodePath:u}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function E(e){window.location.replace(k(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),v||(0,s.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?m:o,a=n.hashType,c=void 0===a?"slash":a,y=e.basename?f(u(e.basename)):"",g=x[c],b=g.encodePath,_=g.decodePath;function O(){var e=_(S());return y&&(e=l(e,y)),p(e)}var P=h();function T(e){(0,r.Z)(Z,e),Z.length=t.length,P.notifyListeners(Z.location,Z.action)}var C=!1,A=null;function j(){var e,t,n=S(),r=b(n);if(n!==r)E(r);else{var o=O(),a=Z.location;if(!C&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===d(o))return;A=null,function(e){if(C)C=!1,T();else{var t="POP";P.confirmTransitionTo(e,t,i,(function(n){n?T({action:t,location:e}):function(e){var t=Z.location,n=I.lastIndexOf(d(t));-1===n&&(n=0);var r=I.lastIndexOf(d(e));-1===r&&(r=0);var o=n-r;o&&(C=!0,L(o))}(e)}))}}(o)}}var R=S(),M=b(R);R!==M&&E(M);var D=O(),I=[d(D)];function L(e){t.go(e)}var N=0;function B(e){1===(N+=e)&&1===e?window.addEventListener(w,j):0===N&&window.removeEventListener(w,j)}var F=!1;var Z={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+b(y+d(e))},push:function(e,t){var n="PUSH",r=p(e,void 0,void 0,Z.location);P.confirmTransitionTo(r,n,i,(function(e){if(e){var t=d(r),o=b(y+t);if(S()!==o){A=t,function(e){window.location.hash=e}(o);var i=I.lastIndexOf(d(Z.location)),a=I.slice(0,i+1);a.push(t),I=a,T({action:n,location:r})}else T()}}))},replace:function(e,t){var n="REPLACE",r=p(e,void 0,void 0,Z.location);P.confirmTransitionTo(r,n,i,(function(e){if(e){var t=d(r),o=b(y+t);S()!==o&&(A=t,E(o));var i=I.indexOf(d(Z.location));-1!==i&&(I[i]=t),T({action:n,location:r})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),t()}},listen:function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}}};return Z}function P(e,t,n){return Math.min(Math.max(e,t),n)}function T(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,c=void 0===u?6:u,l=h();function f(e){(0,r.Z)(_,e),_.length=_.entries.length,l.notifyListeners(_.location,_.action)}function v(){return Math.random().toString(36).substr(2,c)}var m=P(s,0,i.length-1),y=i.map((function(e){return p(e,void 0,"string"===typeof e?v():e.key||v())})),g=d;function b(e){var t=P(_.index+e,0,_.entries.length-1),r=_.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var _={length:y.length,action:"POP",location:y[m],index:m,entries:y,createHref:g,push:function(e,t){var r="PUSH",o=p(e,t,v(),_.location);l.confirmTransitionTo(o,r,n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,v(),_.location);l.confirmTransitionTo(o,r,n,(function(e){e&&(_.entries[_.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return _}},8679:function(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 u(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 c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=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=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var y=a[m];if(!i[y]&&(!r||!r[y])&&(!v||!v[y])&&(!s||!s[y])){var g=d(n,y);try{c(t,y,g)}catch(b){}}}}return t}},96103:function(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,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return w(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||w(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},80645:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}},35717:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},82584:function(e,t,n){"use strict";var r=n(96410)(),o=n(21924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},95320:function(e){"use strict";var t,n,r=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(p){p!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((l||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}
163e.exports=o?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},48662:function(e,t,n){"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(96410)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!==typeof e)return!1;if(a.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(e);if(!u)return!1;if("undefined"===typeof r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},98611:function(e){"use strict";e.exports=function(e){return e!==e}},20360:function(e,t,n){"use strict";var r=n(55559),o=n(4289),i=n(98611),a=n(29415),s=n(23194),u=r(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},29415:function(e,t,n){"use strict";var r=n(98611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},23194:function(e,t,n){"use strict";var r=n(4289),o=n(29415);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},85692:function(e,t,n){"use strict";var r=n(86430);e.exports=function(e){return!!r(e)}},68337:function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function l(e){var t=e.re=n(36066)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var u=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===o(n))return!function(e){return"[object RegExp]"===o(e)}(n.validate)?i(n.validate)?r.validate=n.validate:c(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?r.normalize=n.normalize:n.normalize?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(n)?c(t,n):u.push(t)}})),u.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var l=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","ig"),e.re.schema_at_start=Reg
163Exp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function f(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function d(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function p(e,t){if(!(this instanceof p))return new p(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},l(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,l(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},p.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},p.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,d(this,0)):null},p.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),l(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,l(this),this)},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},e.exports=p},36066:function(e,t,n){"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=n(29369).source,t.src_Cc=n(99413).source,t.src_Z=n(35045).source,t.src_P=n(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\uff5c]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}
163"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},49090:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,r,o){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof r&&(o=r,r={}),r=r||{},o=o||function(){},a.type=r.type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:n)(a,o),a.onload||t(a,o),i.appendChild(a)}},38554:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[i]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[a]=l["[object Map]"]=l["[object Number]"]=l[s]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),h=t&&!t.nodeType&&t,v=h&&e&&!e.nodeType&&e,m=v&&v.exports===h,y=m&&f.process,g=function(){try{var e=v&&v.require&&v.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(t){}}(),b=g&&g.isTypedArray;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)}var w,x,k=Array.prototype,S=Function.prototype,E=Object.prototype,O=p["__core-js_shared__"],P=S.toString,T=E.hasOwnProperty,C=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),A=E.toString,j=P.call(Object),R=RegExp("^"+P.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=m?p.Buffer:void 0,D=p.Symbol,I=p.Uint8Array,L=M?M.allocUnsafe:void 0,N=(w=Object.getPrototypeOf,x=Object,function(e){return w(x(e))}),B=Object.create,F=E.propertyIsEnumerable,Z=k.splice,z=D?D.toStringTag:void 0,V=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),U=M?M.isBuffer:void 0,W=Math.max,H=Date.now,q=he(p,"Map"),$=he(Object,"create"),G=function(){function e(){}return function(t){if(!Oe(t))return{};if(B)return B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Y(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])}}function K(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])}}function X(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])}}function Q(e){var t=this.__data__=new K(e);this.size=t.size}function J(e,t){var n=we(e),r=!n&&_e(e),o=!n&&!r&&ke(e),i=!n&&!r&&!o&&Te(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ve(c,u))||s.push(c);return s}function ee(e,t,n){(void 0!==n&&!be(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];
163T.call(e,t)&&be(r,n)&&(void 0!==n||t in e)||re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(be(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&V?V(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Y.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},Y.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Y.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},Y.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:T.call(t,e)},Y.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?r:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},K.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},K.prototype.has=function(e){return ne(this.__data__,e)>-1},K.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(q||K),string:new Y}},X.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return pe(this,e).get(e)},X.prototype.has=function(e){return pe(this,e).has(e)},X.prototype.set=function(e,t){var n=pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new K,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof K){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new X(r)}return n.set(e,t),this.size=n.size,this};var oe,ie=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[oe?a:++r];if(!1===t(o[s],s,o))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=T.call(e,z),n=e[z];try{e[z]=void 0;var r=!0}catch(i){}var o=A.call(e);r&&(t?e[z]=n:delete e[z]);return o}(e):function(e){return A.call(e)}(e)}function se(e){return Pe(e)&&ae(e)==i}function ue(e){return!(!Oe(e)||function(e){return!!C&&C in e}(e))&&(Se(e)?R:u).test(function(e){if(null!=e){try{return P.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ce(e){if(!Oe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=me(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}function le(e,t,n,r,o){e!==t&&ie(t,(function(i,a){if(o||(o=new Q),Oe(i))!function(e,t,n,r,o,i,a){var u=ye(e,n),c=ye(t,n),l=a.get(c);if(l)return void ee(e,n,l);var f=i?i(u,c,n+"",e,t,a):void 0,d=void 0===f;if(d){var p=we(c),h=!p&&ke(c),v=!p&&!h&&Te(c);f=c,p||h||v?we(u)?f=u:Pe(m=u)&&xe(m)?f=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(u):h?(d=!1,f=function(e,t){if(t)return e.slice();var n=e.length,r=L?L(n):new e.constructor(n);return e.copy(r),r}(c,!0)):v?(d=!1,f=function(e,t){var n=t?function(e){var t=new e.constructor(e.byteLength);return new I(t).set(new I(e)),t}(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(c,!0)):f=[]:function(e){if(!Pe(e)||ae(e)!=s)return!1;var t=N(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==j}(c)||_e(c)?(f=u,_e(u)?f=function(e){return function(e,t,n,r){var o=!n;n||(n={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?re(n,s,u):te(n,s,u)}return n}(e,Ce(e))}(u):Oe(u)&&!Se(u)||(f=function(e){return"function"!=typeof e.constructor||me(e)?{}:G(N(e))}(c))):d=!1}var m;d&&(a.set(c,f),o(f,c,r,i,a),a.delete(c));ee(e,n,f)}(e,t,a,n,le,r,o);else{var u=r?r(ye(e,a),i,a+"",e,t,o):void 0;void 0===u&&(u=i),ee(e,a,u)}}),Ce)}function fe(e,t){return ge(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),_(e,this,s)}}(e,t,Re),e+"")}var de=V?function(e,t){return V(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Re;function pe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function he(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ue(n)?n:void 0}function ve(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||E)}function ye(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ge=function(e){var t=0,n=0;return function(){var r=H(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(de);function be(e,t){return e===t||e!==e&&t!==t}var _e=se(function(){return arguments}())?se:function(e){return Pe(e)&&T.call(e,"callee")&&!F.call(e,"callee")},we=Array.isArray;function xe(e){return null!=e&&Ee(e.length)&&!Se(e)}var ke=U||function(){return!1};function Se(e){if(!Oe(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var Te=b?function(e){return function(t){return e(t)}}(b):function(e){return Pe(e)&&Ee(e.length)&&!!l[ae(e)]};function Ce(e){return xe(e)?J(e,!0):ce(e)}var Ae,je=(Ae=function(e,t,n,r){le(e,t,n,r)},fe((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Ae.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!Oe(n))return!1;var r=typeof t;return!!("number"==r?xe(n)&&ve(t,n.length):"string"==r&&t in n)&&be(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Ae(e,a,n,o)}return e})));function Re(e){return e}e.exports=je},93096:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function m(e,t,n){var o,i,a,s,u,c,l=0,f=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,l=t,s=e.apply(r,n)}function _(e){return l=e,u=setTimeout(x,t),f?b(e):s}function w(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=a}function x(){var e=v();if(w(e))return k(e);u=setTimeout(x,function(e){var n=t-(e-c);return d?h(n,a-(e-l)):n}(e))}function k(e){return u=void 0,m&&o?b(e):(o=i=void 0,s)}function S(){var e=v(),n=w(e);if(o=arguments,i=this,c=e,n){if(void 0===u)return _(c);if(d)return u=setTimeout(x,t),b(c)}return void 0===u&&(u=setTimeout(x,t)),s}return t=g(t)||0,y(n)&&(f=!!n.leading,a=(d="maxWait"in n)?p(g(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,o=c=i=u=void 0},S.flush=function(){return void 0===u?s:k(v())},S}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return y(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),s=n(81866);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),s=n(54705);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),s=n(95265);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},53818:function(e,t,n){var r=n(10852)(n(55639),"Promise");e.exports=r},58525:function(e,t,n){var r=n(10852)(n(55639),"Set");e.exports=r},46384:function(e,t,n){var r=n(38407),o=n(37465),i=n(63779),a=n(67599),s=n(44758),u=n(34309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},11149:function(e,t,n){var r=n(55639).Uint8Array;e.exports=r},70577:function(e,t,n){var r=n(10852)(n(55639),"WeakMap");e.exports=r},77412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;
vendor: 8,716 bytes, line 163
163++n<r&&!1!==t(e[n],n,e););return e}},34963:function(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}},14636:function(e,t,n){var r=n(22545),o=n(35694),i=n(1469),a=n(44144),s=n(65776),u=n(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),p=n||l||f||d,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||h.push(m);return h}},62488:function(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}},34865:function(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:function(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}},44037:function(e,t,n){var r=n(98363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},63886:function(e,t,n){var r=n(98363),o=n(81704);e.exports=function(e,t){return e&&r(t,o(t),e)}},89465:function(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:function(e,t,n){var r=n(46384),o=n(77412),i=n(34865),a=n(44037),s=n(63886),u=n(64626),c=n(278),l=n(18805),f=n(1911),d=n(58234),p=n(46904),h=n(64160),v=n(43824),m=n(29148),y=n(38517),g=n(1469),b=n(44144),_=n(56688),w=n(13218),x=n(72928),k=n(3674),S=n(81704),E="[object Arguments]",O="[object Function]",P="[object Object]",T={};T[E]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[P]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[O]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,C,A,j,R){var M,D=1&n,I=2&n,L=4&n;if(C&&(M=j?C(t,A,j,R):C(t)),void 0!==M)return M;if(!w(t))return t;var N=g(t);if(N){if(M=v(t),!D)return c(t,M)}else{var B=h(t),F=B==O||"[object GeneratorFunction]"==B;if(b(t))return u(t,D);if(B==P||B==E||F&&!j){if(M=I||F?{}:y(t),!D)return I?f(t,s(M,t)):l(t,a(M,t))}else{if(!T[B])return j?t:{};M=m(t,B,D)}}R||(R=new r);var Z=R.get(t);if(Z)return Z;R.set(t,M),x(t)?t.forEach((function(r){M.add(e(r,n,C,r,t,R))})):_(t)&&t.forEach((function(r,o){M.set(o,e(r,n,C,o,t,R))}));var z=N?void 0:(L?I?p:d:I?S:k)(t);return o(z||t,(function(r,o){z&&(r=t[o=r]),i(M,o,e(r,n,C,o,t,R))})),M}},3118:function(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},68866:function(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:function(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)}},9454:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},25588:function(e,t,n){var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},29221:function(e,t,n){var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},38749:function(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)]}},280:function(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:function(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}},22545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},27561:function(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:function(e){e.exports=function(e){return function(t){return e(t)}}},74318:function(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:function(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:function(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:function(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:function(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:function(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)}},278:function(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:function(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,u=t.length;++s<u;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?o(n,c,l):r(n,c,l)}return n}},18805:function(e,t,n){var r=n(98363),o=n(99551);e.exports=function(e,t){return r(e,o(e),t)}},1911:function(e,t,n){var r=n(98363),o=n(51442);e.exports=function(e,t){return r(e,o(e),t)}},14429:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},38777:function(e,t,n){var r=n(10852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},46904:function(e,t,n){var r=n(68866),o=n(51442),i=n(81704);e.exports=function(e){return r(e,i,o)}},45050:function(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}},10852:function(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:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:function(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(u){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},99551:function(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:function(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:function(e,t,n){var r=n(18552),o=n(57071),i=n(53818),a=n(58525),s=n(70577),u=n(44239),c=n(80346),l="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=c(r),m=c(o),y=c(i),g=c(a),b=c(s),_=u;(r&&_(new r(new ArrayBuffer(1)))!=h||o&&_(new o)!=l||i&&_(i.resolve())!=f||a&&_(new a)!=d||s&&_(new s)!=p)&&
vendor: 4,296 bytes, line 163
163(_=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case m:return l;case y:return f;case g:return d;case b:return p}return t}),e.exports=_},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(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:function(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:function(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:function(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:function(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 u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+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 u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},38517:function(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))}},65776:function(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}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r=n(14429),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(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:function(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:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},54705:function(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:function(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:function(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:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(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}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(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{var e=i&&i.require&&i.require("util").t
163ypes;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},55639:function(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},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(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}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},53888:function(e,t,n){var r=n(85990);e.exports=function(e,t){return r(e,5,t="function"==typeof t?t:void 0)}},23279:function(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 u,c,l,f,d,p,h=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(w,t),v?g(e):f}function _(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=l}function w(){var e=o();if(_(e))return x(e);d=setTimeout(w,function(e){var n=t-(e-p);return m?s(n,l-(e-h)):n}(e))}function x(e){return d=void 0,y&&u?g(e):(u=c=void 0,f)}function k(){var e=o(),n=_(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(m)return clearTimeout(d),d=setTimeout(w,t),g(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?a(i(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},k.flush=function(){return void 0===d?f:x(o())},k}},77813:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(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,u=(s?s.isBuffer:void 0)||o;e.exports=u},23560:function(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:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(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},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},72928:function(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},33448:function(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:function(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},3674:function(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:function(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)}},88306:function(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},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=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||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},22087:function(e,t,n){var r=n(28361);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],o=this.value,i=0;i<o.length;i++)1===o[i].type||3===o[i].type?r.push({value:3===o[i].type?o[i].show:o[i].value,type:1}):13===o[i].type?r.push({value:o[i].show,type:1}):0===o[i].type?r[r.length-1]={value:o[i].show+("-"!=o[i].show?"(":"")+r[r.length-1].value+("-"!=o[i].show?")":""),type:0}:7===o[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+o[i].show,type:7}:10===o[i].type?(e=r.pop(),t=r.pop(),"P"===o[i].show||"C"===o[i].show?r.push({value:"<sup>"+t.value+"</sup>"+o[i].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===o[i].type||9===o[i].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+o[i].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:o[i].type})):12===o[i].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[i].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},17735:function(e,t,n){"use strict";var r=n(93553);function o(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var i=[{token:"sin",show:"sin",type:0,value:r.math.sin}
163,{token:"cos",show:"cos",type:0,value:r.math.cos},{token:"tan",show:"tan",type:0,value:r.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:r.math.P},{token:"C",show:"C",type:10,value:r.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:r.math.asin},{token:"acos",show:"acos",type:0,value:r.math.acos},{token:"atan",show:"atan",type:0,value:r.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:r.math.cosh},{token:"acosh",show:"acosh",type:0,value:r.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:r.math.div},{token:"!",show:"!",type:7,value:r.math.fact},{token:"tanh",show:"tanh",type:0,value:r.math.tanh},{token:"atanh",show:"atanh",type:0,value:r.math.atanh},{token:"Mod",show:" Mod ",type:2,value:r.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:r.math.mul},{token:"sinh",show:"sinh",type:0,value:r.math.sinh},{token:"asinh",show:"asinh",type:0,value:r.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:r.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:r.math.add},{token:"-",show:"-",type:9,value:r.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:r.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:r.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:r.math.and}],a={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},s=0;s<i.length;s++)i[s].precedence=a[i[s].type];var u={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},c={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},l={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},f={},d={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},p={1:!0},h=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function v(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}function m(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function y(e){for(var t,n,o,a=[],s=e.length,u=0;u<s;u++)if(!(u<s-1&&" "===e[u]&&" "===e[u+1])){for(t="",n=e.length-u>h.length-2?h.length-1:e.length-u;n>0;n--)if(void 0!==h[n])for(o=0;o<h[n].length;o++)v(e,h[n][o],u,n)&&(t=h[n][o],o=h[n].length,n=0);if(u+=t.length-1,""===t)throw new r.Exception("Can't understand after "+e.slice(u));a.push(i[m(t,i)])}return a}r.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},r.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,o=-1;e[t].type===r.tokenTypes.FUNCTION_WITH_N_ARGS&&void 0===e[t].numberOfArguments&&(e[t].numberOfArguments=2),h[n]=h[n]||[];for(var s=0;s<h[n].length;s++)if(e[t].token===h[n][s]){o=m(h[n][s],i);break}-1===o?(i.push(e[t]),e[t].precedence=a[e[t].type],h.length<=e[t].token.length&&(h[e[t].token.length]=[]),h[e[t].token.length].push(e[t].token)):(i[o]=e[t],e[t].precedence=a[e[t].type])}};var g={value:r.math.changeSign,type:0,pre:21,show:"-"},b={value:")",show:")",type:5,pre:0},_={value:"(",type:4,pre:0,show:"("};r.lex=function(e,t){var n,i=[_],a=[],s=e,h=u,v=0,m=f,w="";"undefined"!==typeof t&&r.addToken(t);var x={},k=y(s);for(n=0;n<k.length;n++){var S=k[n];if(14!==S.type){var E,O=S.token,P=S.type,T=S.value,C=S.precedence,A=S.show,j=i[i.length-1];for(E=a.length;E--&&0===a[E];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(P)){if(!0!==h[P])throw new r.Exception(O+" is not allowed after "+w);i.push(b),h=c,m=d,a.pop()}if(!0!==h[P])throw new r.Exception(O+" is not allowed after "+w);if(!0===m[P]&&(P=2,T=r.math.mul,A="&times;",C=3,n-=1),x={value:T,type:P,pre:C,show:A,numberOfArguments:S.numberOfArguments},0===P)h=u,m=f,o(a,2),i.push(x),4!==k[n+1].type&&(i.push(_),a.push(2));
163else if(1===P)1===j.type?(j.value+=T,o(a,1)):i.push(x),h=c,m=l;else if(2===P)h=u,m=f,o(a,2),i.push(x);else if(3===P)i.push(x),h=c,m=d;else if(4===P)o(a,1),v++,h=u,m=f,i.push(x);else if(5===P){if(!v)throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");v--,h=c,m=d,i.push(x),o(a,1)}else if(6===P){if(j.hasDec)throw new r.Exception("Two decimals are not allowed in one number");1!==j.type&&(j={value:0,type:1,pre:0},i.push(j)),h=p,o(a,1),m=f,j.value+=T,j.hasDec=!0}else 7===P&&(h=c,m=d,o(a,1),i.push(x));8===P?(h=u,m=f,o(a,S.numberOfArguments+2),i.push(x),4!==k[n+1].type&&(i.push(_),a.push(S.numberOfArguments+2))):9===P?(9===j.type?j.value===r.math.add?(j.value=T,j.show=A,o(a,1)):j.value===r.math.sub&&"-"===A&&(j.value=r.math.add,j.show="+",o(a,1)):5!==j.type&&7!==j.type&&1!==j.type&&3!==j.type&&13!==j.type?"-"===O&&(h=u,m=f,o(a,2).push(2),i.push(g),i.push(_)):(i.push(x),o(a,2)),h=u,m=f):10===P?(h=u,m=f,o(a,2),i.push(x)):11===P?(h=u,m=f,i.push(x)):12===P?(h=u,m=f,o(a,6),i.push(x),4!==k[n+1].type&&(i.push(_),a.push(6))):13===P&&(h=c,m=d,i.push(x)),o(a,-1),w=O}else if(n>0&&n<k.length-1&&1===k[n+1].type&&(1===k[n-1].type||6===k[n-1].type))throw new r.Exception("Unexpected Space")}for(E=a.length;E--;)i.push(b);if(!0!==h[5])throw new r.Exception("complete the expression");for(;v--;)i.push(b);return i.push(b),new r(i)},e.exports=r},93553:function(e){"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var r=1,o=e-n,i=n;i<o&&(i=o,o=n);for(var a=i+1;a<=e;a++)r*=a;return r/t.math.fact(o)},changeSign:function(e){return-e},cos:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.tan(e)},tanh:function(e){return t.sinha(e)/t.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},t.Exception=function(e){this.message=e},e.exports=t},27186:function(e,t,n){var r=n(17735);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,o,i,a=[],s=[{value:"(",type:4,pre:0}],u=this.value,c=1;c<u.length;c++)if(1===u[c].type||3===u[c].type||13===u[c].type)1===u[c].type&&(u[c].value=Number(u[c].value)),a.push(u[c]);else if(4===u[c].type)s.push(u[c]);else if(5===u[c].type)for(;4!==(t=s.pop()).type;)a.push(t);else if(11===u[c].type){for(;4!==(t=s.pop()).type;)a.push(t);s.push(t)}else{o=(e=u[c]).pre,n=(i=s[s.length-1]).pre;var l="Math.pow"==i.value&&"Math.pow"==e.value;if(o>n)s.push(e);else{for(;n>=o&&!l||l&&o<n;)t=s.pop(),i=s[s.length-1],a.push(t),n=i.pre,l="Math.pow"==e.value&&"Math.pow"==i.value;s.push(e)}}return new r(a)},e.exports=r},28361:function(e,t,n){var r=n(27186);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,o,i=[],a=this.value,s="undefined"!==typeof e.n,u=0;u<a.length;u++)if(1===a[u].type)i.push({value:a[u].value,type:1});else if(3===a[u].type)i.push({value:e[a[u].value],type:1});else if(0===a[u].type)"undefined"===typeof i[i.length-1].type?i[i.length-1].value.push(a[u]):i[i.length-1].value=a[u].value(i[i.length-1].value);else if(7===a[u].type)"undefined"===typeof i[i.length-1].type?i[i.length-1].value.push(a[u]):i[i.length-1].value=a[u].value(i[i.length-1].value);else if(8===a[u].type){for(var c=[],l=0;l<a[u].numberOfArguments;l++)c.push(i.pop().value);i.push({type:1,value:a[u].value.apply(a[u],c.reverse())})}else 10===a[u].type?(t=i.pop(),"undefined"===typeof(n=i.pop()).type?(n.value=n.concat(t),n.value.push(a[u]),i.push(n)):"undefined"===typeof t.type?(t.unshift(n),t.push(a[u]),i.push(t)):i.push({type:1,value:a[u].value(n.value,t.value)})):2===a[u].type||9===a[u].type?(t=i.pop(),"undefined"===typeof(n=i.pop()).type?((n=n.concat(t)).push(a[u]),i.push(n)):"undefined"===typeof t.type?(t.unshift(n),t.push(a[u]),i.push(t)):i.push({type:1,value:a[u].value(n.value,t.value)})):12===a[u].type?("undefined"!==typeof(t=i.pop()).type&&(t=[t]),n=i.pop(),o=i.pop(),i.push({type:1,value:a[u].value(o.value,n.value,new r(t))})):13===a[u].type&&(s?i.push({value:e[a[u].value],type:3}):i.push([a[u]]));if(i.length>1)throw new r.Exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(e,t,n){return"undefined"===typeof t?this.lex(e).toPostfix().postfixEval():"undefined"===typeof n?"undefined"!==typeof t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},30845:function(e,t,n){"use strict";n.r(t);var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}t.default=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},38399:function(e){"use strict";e.exports=function(){return Object.assign}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"===typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},77663:function(e){!function(){var t={229:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},24244:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},20609:function(e,t,n){"use strict";var r=n(4289),o=n(55559),i=n(24244),a=n(75624),s=n(52281),u=o(a(),Object);r(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},75624:function(e,t,n){"use strict";var r=n(24244);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},52281:function(e,t,n){"use strict";var r=n(75624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},18987:function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(21414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}
163),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!o.call(e,0))for(var v=0;v<e.length;++v)d.push(String(v));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||d.push(String(y));if(u)for(var g=function(e){if("undefined"===typeof window||!p)return f(e);try{return f(e)}catch(t){return!1}}(e),b=0;b<l.length;++b)g&&"constructor"===l[b]||!o.call(e,l[b])||d.push(l[b]);return d}}e.exports=r},82215:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(21414),i=Object.keys,a=i?function(e){return i(e)}:n(18987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},21414:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},14779:function(e,t,n){var r=n(96173);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,d)s+=d[1];else{var h=e[a],v=n[2],m=n[3],y=n[4],g=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=v&&null!=h&&h!==v,x="+"===b||"*"===b,k="?"===b||"*"===b,S=n[2]||l,E=y||g;r.push({name:m||i++,prefix:v||"",delimiter:S,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:E?c(E):_?".*":"[^"+u(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",s=t||{},u=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!==typeof l){var f,d=s[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=u(c);else{var d=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+d+p+")*"),a+=p=c.optional?c.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=u(n.delimiter||"/"),v=a.slice(-h.length)===h;return o||(a=(v?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+h+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}
163(e,t,n)}},96173:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},92703:function(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:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69590:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!i(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!i(e[c[u]],a[c[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},69921:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,u=60110,c=60112,l=60113,f=60120,d=60115,p=60116,h=60121,v=60122,m=60117,y=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),d=b("react.memo"),p=b("react.lazy"),h=b("react.block"),v=b("react.server.block"),m=b("react.fundamental"),y=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}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 l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case d:case s:return e;default:return t}}case r:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===a||e===y||e===i||e===l||e===f||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===m||e.$$typeof===h||e[0]===v)},t.typeOf=_},59864:function(e,t,n){"use strict";e.exports=n(69921)},60722:function(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)}
163Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=(o=n(69590))&&o.__esModule?o:{default:o},s=n(85741),u=n(38045);function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}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)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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 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&&p(e,t)}(s,e);var t,n,r,o=h(s);function s(){var e;f(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(m(e=o.call.apply(o,[this].concat(n))),"mounted",!1),g(m(e),"isReady",!1),g(m(e),"isPlaying",!1),g(m(e),"isLoading",!0),g(m(e),"loadOnReady",null),g(m(e),"startOnPlay",!0),g(m(e),"seekOnPlay",null),g(m(e),"onDurationCalled",!1),g(m(e),"handlePlayerMount",(function(t){e.player||(e.player=t,e.player.load(e.props.url)),e.progress()})),g(m(e),"getInternalPlayer",(function(t){return e.player?e.player[t]:null})),g(m(e),"progress",(function(){if(e.props.url&&e.player&&e.isReady){var t=e.getCurrentTime()||0,n=e.getSecondsLoaded(),r=e.getDuration();if(r){var o={playedSeconds:t,played:t/r};null!==n&&(o.loadedSeconds=n,o.loaded=n/r),o.playedSeconds===e.prevPlayed&&o.loadedSeconds===e.prevLoaded||e.props.onProgress(o),e.prevPlayed=o.playedSeconds,e.prevLoaded=o.loadedSeconds}}e.progressTimeout=setTimeout(e.progress,e.props.progressFrequency||e.props.progressInterval)})),g(m(e),"handleReady",(function(){if(e.mounted){e.isReady=!0,e.isLoading=!1;var t=e.props,n=t.onReady,r=t.playing,o=t.volume,i=t.muted;n(),i||null===o||e.player.setVolume(o),e.loadOnReady?(e.player.load(e.loadOnReady,!0),e.loadOnReady=null):r&&e.player.play(),e.handleDurationCheck()}})),g(m(e),"handlePlay",(function(){e.isPlaying=!0,e.isLoading=!1;var t=e.props,n=t.onStart,r=t.onPlay,o=t.playbackRate;e.startOnPlay&&(e.player.setPlaybackRate&&1!==o&&e.player.setPlaybackRate(o),n(),e.startOnPlay=!1),r(),e.seekOnPlay&&(e.seekTo(e.seekOnPlay),e.seekOnPlay=null),e.handleDurationCheck()})),g(m(e),"handlePause",(function(t){e.isPlaying=!1,e.isLoading||e.props.onPause(t)})),g(m(e),"handleEnded",(function(){var t=e.props,n=t.activePlayer,r=t.loop,o=t.onEnded;n.loopOnEnded&&r&&e.seekTo(0),r||(e.isPlaying=!1,o())})),g(m(e),"handleError",(function(){var t;e.isLoading=!1,(t=e.props).onError.apply(t,arguments)})),g(m(e),"handleDurationCheck",(function(){clearTimeout(e.durationCheckTimeout);var t=e.getDuration();t?e.onDurationCalled||(e.props.onDuration(t),e.onDurationCalled=!0):e.durationCheckTimeout=setTimeout(e.handleDurationCheck,100)})),g(m(e),"handleLoaded",(function(){e.isLoading=!1})),e}return t=s,n=[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP(
163)),this.mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.player){var n=this.props,r=n.url,o=n.playing,i=n.volume,s=n.muted,c=n.playbackRate,l=n.pip,f=n.loop,d=n.activePlayer,p=n.disableDeferredLoading;if(!(0,a.default)(e.url,r)){if(this.isLoading&&!d.forceLoad&&!p&&!(0,u.isMediaStream)(r))return console.warn("ReactPlayer: the attempt to load ".concat(r," is being deferred until the player has loaded")),void(this.loadOnReady=r);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}e.playing||!o||this.isPlaying||this.player.play(),e.playing&&!o&&this.isPlaying&&this.player.pause(),!e.pip&&l&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!l&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==i&&null!==i&&this.player.setVolume(i),e.muted!==s&&(s?this.player.mute():(this.player.unmute(),null!==i&&setTimeout((function(){return t.player.setVolume(i)})))),e.playbackRate!==c&&this.player.setPlaybackRate&&this.player.setPlaybackRate(c),e.loop!==f&&this.player.setLoop&&this.player.setLoop(f)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e,t,n){var r=this;if(this.isReady){if(t?"fraction"===t:e>0&&e<1){var o=this.player.getDuration();return o?void this.player.seekTo(o*e,n):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,n)}else 0!==e&&(this.seekOnPlay=e,setTimeout((function(){r.seekOnPlay=null}),5e3))}},{key:"render",value:function(){var e=this.props.activePlayer;return e?i.default.createElement(e,l({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}],n&&d(t.prototype,n),r&&d(t,r),s}(i.Component);t.default=b,g(b,"displayName","Player"),g(b,"propTypes",s.propTypes),g(b,"defaultProps",s.defaultProps)},83855:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}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){v(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 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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
163function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(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}var m="64px",y={},g=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&&l(e,t)}(a,e);var t,n,r,i=f(a);function a(){var e;u(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(p(e=i.call.apply(i,[this].concat(n))),"mounted",!1),v(p(e),"state",{image:null}),v(p(e),"handleKeyPress",(function(t){"Enter"!==t.key&&" "!==t.key||e.props.onClick()})),e}return t=a,(n=[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.url,r=t.light;e.url===n&&e.light===r||this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(e){var t=this,n=e.url,r=e.light,i=e.oEmbedUrl;if(!o.default.isValidElement(r))if("string"!==typeof r){if(!y[n])return this.setState({image:null}),window.fetch(i.replace("{url}",n)).then((function(e){return e.json()})).then((function(e){if(e.thumbnail_url&&t.mounted){var r=e.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");t.setState({image:r}),y[n]=r}}));this.setState({image:y[n]})}else this.setState({image:r})}},{key:"render",value:function(){var e=this.props,t=e.light,n=e.onClick,r=e.playIcon,i=e.previewTabIndex,a=this.state.image,u=o.default.isValidElement(t),c={display:"flex",alignItems:"center",justifyContent:"center"},l={preview:s({width:"100%",height:"100%",backgroundImage:a&&!u?"url(".concat(a,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},c),shadow:s({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:m,width:m,height:m,position:u?"absolute":void 0},c),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},f=o.default.createElement("div",{style:l.shadow,className:"react-player__shadow"},o.default.createElement("div",{style:l.playIcon,className:"react-player__play-icon"}));return o.default.createElement("div",{style:l.preview,className:"react-player__preview",onClick:n,tabIndex:i,onKeyPress:this.handleKeyPress},u?t:null,r||f)}}])&&c(t.prototype,n),r&&c(t,r),a}(o.Component);t.default=g},70390:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0;var r=O(n(67294)),o=l(n(9996)),i=l(n(30845)),a=l(n(69590)),s=n(85741),u=n(38045),c=l(n(60722));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}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 p(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){S(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 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 v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(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 y(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 b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
163function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(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 E(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return E=function(){return e},e}function O(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=E();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}var P=(0,r.lazy)((function(){return Promise.resolve().then((function(){return O(n(83855))}))})),T="undefined"!==typeof window&&window.document,C="undefined"!==typeof n.g&&n.g.window&&n.g.window.document,A=Object.keys(s.propTypes),j=T||C?r.Suspense:function(){return null},R=[];t.createReactPlayer=function(e,t){var n,l;return l=n=function(n){!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)}(w,n);var l,f,d,m=_(w);function w(){var n;y(this,w);for(var a=arguments.length,l=new Array(a),f=0;f<a;f++)l[f]=arguments[f];return S(x(n=m.call.apply(m,[this].concat(l))),"state",{showPreview:!!n.props.light}),S(x(n),"references",{wrapper:function(e){n.wrapper=e},player:function(e){n.player=e}}),S(x(n),"handleClickPreview",(function(e){n.setState({showPreview:!1}),n.props.onClickPreview(e)})),S(x(n),"showPreview",(function(){n.setState({showPreview:!0})})),S(x(n),"getDuration",(function(){return n.player?n.player.getDuration():null})),S(x(n),"getCurrentTime",(function(){return n.player?n.player.getCurrentTime():null})),S(x(n),"getSecondsLoaded",(function(){return n.player?n.player.getSecondsLoaded():null})),S(x(n),"getInternalPlayer",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null})),S(x(n),"seekTo",(function(e,t,r){if(!n.player)return null;n.player.seekTo(e,t,r)})),S(x(n),"handleReady",(function(){n.props.onReady(x(n))})),S(x(n),"getActivePlayer",(0,i.default)((function(n){for(var r=0,o=[].concat(R,v(e));r<o.length;r++){var i=o[r];if(i.canPlay(n))return i}return t||null}))),S(x(n),"getConfig",(0,i.default)((function(e,t){var r=n.props.config;return o.default.all([s.defaultProps.config,s.defaultProps.config[t]||{},r,r[t]||{}])}))),S(x(n),"getAttributes",(0,i.default)((function(e){return(0,u.omit)(n.props,A)}))),S(x(n),"renderActivePlayer",(function(e){if(!e)return null;var t=n.getActivePlayer(e);if(!t)return null;var o=n.getConfig(e,t.key);return r.default.createElement(c.default,h({},n.props,{key:t.key,ref:n.references.player,config:o,activePlayer:t.lazyPlayer||t,onReady:n.handleReady}))})),n}return l=w,f=[{key:"shouldComponentUpdate",value:function(e,t){return!(0,a.default)(this.props,e)||!(0,a.default)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(e){if(!e)return null;var t=this.props,n=t.light,o=t.playIcon,i=t.previewTabIndex,a=t.oEmbedUrl;return r.default.createElement(P,{url:e,light:n,playIcon:o,previewTabIndex:i,oEmbedUrl:a,onClick:this.handleClickPreview})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.style,o=e.width,i=e.height,a=e.fallback,s=e.wrapper,u=this.state.showPreview,c=this.getAttributes(t),l="string"===typeof s?this.references.wrapper:void 0;return r.default.createElement(s,h({ref:l,style:p(p({},n),{},{width:o,height:i})},c),r.default.createElement(j,{fallback:a},u?this.renderPreview(t):this.renderActivePlayer(t)))}}],f&&g(l.prototype,f),d&&g(l,d),w}(r.Component),S(n,"displayName","ReactPlayer"),S(n,"propTypes",s.propTypes),S(n,"defaultProps",s.defaultProps),S(n,"addCustomPlayer",(function(e){R.push(e)})),S(n,"removeCustomPlayers",(function(){R.length=0})),S(n,"canPlay",(function(t){for(var n=0,r=[].concat(R,v(e));n<r.length;n++){if(r[n].canPlay(t))return!0}return!1})),S(n,"canEnablePIP",(function(t){for(var n=0,r=[].concat(R,v(e));n<r.length;n++){var o=r[n];if(o.canEnablePIP&&o.canEnablePIP(t))return!0}return!1})),l}},22004:function(e,t,n){"use strict";t.Z=void 0;var r,o=(r=n(86497))&&r.__esModule?r:{default:r},i=n(70390);var a=o.default[o.default.length-1],s=(0,i.createReactPlayer)(o.default,a);t.Z=s},71776:function(e,t,n){"use strict";
163Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0;var r=n(38045);function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}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=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;t.MATCH_URL_YOUTUBE=a;var s=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;t.MATCH_URL_SOUNDCLOUD=s;var u=/vimeo\.com\/(?!progressive_redirect).+/;t.MATCH_URL_VIMEO=u;var c=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;t.MATCH_URL_FACEBOOK=c;var l=/^https?:\/\/fb\.watch\/.+$/;t.MATCH_URL_FACEBOOK_WATCH=l;var f=/streamable\.com\/([a-z0-9]+)$/;t.MATCH_URL_STREAMABLE=f;var d=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/;t.MATCH_URL_WISTIA=d;var p=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;t.MATCH_URL_TWITCH_VIDEO=p;var h=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;t.MATCH_URL_TWITCH_CHANNEL=h;var v=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/;t.MATCH_URL_DAILYMOTION=v;var m=/mixcloud\.com\/([^/]+\/[^/]+)/;t.MATCH_URL_MIXCLOUD=m;var y=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;t.MATCH_URL_VIDYARD=y;var g=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/;t.MATCH_URL_KALTURA=g;var b=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;t.AUDIO_EXTENSIONS=b;var _=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;t.VIDEO_EXTENSIONS=_;var w=/\.(m3u8)($|\?)/i;t.HLS_EXTENSIONS=w;var x=/\.(mpd)($|\?)/i;t.DASH_EXTENSIONS=x;var k=/\.(flv)($|\?)/i;t.FLV_EXTENSIONS=k;var S={youtube:function(e){return e instanceof Array?e.every((function(e){return a.test(e)})):a.test(e)},soundcloud:function(e){return s.test(e)&&!b.test(e)},vimeo:function(e){return u.test(e)&&!_.test(e)&&!w.test(e)},facebook:function(e){return c.test(e)||l.test(e)},streamable:function(e){return f.test(e)},wistia:function(e){return d.test(e)},twitch:function(e){return p.test(e)||h.test(e)},dailymotion:function(e){return v.test(e)},mixcloud:function(e){return m.test(e)},vidyard:function(e){return y.test(e)},kaltura:function(e){return g.test(e)},file:function e(t){if(t instanceof Array){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if("string"===typeof a&&e(a))return!0;if(e(a.src))return!0}}catch(s){i.e(s)}finally{i.f()}return!1}return!(!(0,r.isMediaStream)(t)&&!(0,r.isBlobUrl)(t))||(b.test(t)||_.test(t)||w.test(t)||x.test(t)||k.test(t))}};t.canPlay=S},36807:function(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)}
163Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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){b(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 l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;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(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(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 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 d(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)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?y(e):t}function y(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)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=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&&h(e,t)}(u,e);var t,n,r,s=v(u);function u(){var e;d(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(y(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),b(y(e),"onDurationChange",(function(){var t=e.getDuration();e.props.onDuration(t)})),b(y(e),"mute",(function(){e.callPlayer("setMuted",!0)})),b(y(e),"unmute",(function(){e.callPlayer("setMuted",!1)})),b(y(e),"ref",(function(t){e.container=t})),e}return t=u,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.controls,o=n.config,s=n.onError,u=n.playing,f=l(e.match(a.MATCH_URL_DAILYMOTION),2)[1];this.player?this.player.load(f,{start:(0,i.parseStartTime)(e),autoplay:u}):(0,i.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",(function(e){return e.player})).then((function(n){if(t.container){var a=n.player;t.player=new a(t.container,{width:"100%",height:"100%",video:f,params:c({controls:r,autoplay:t.props.playing,mute:t.props.muted,start:(0,i.parseStartTime)(e),origin:window.location.origin},o.params),events:{apiready:t.props.onReady,seeked:function(){return t.props.onSeek(t.player.currentTime)},video_end:t.props.onEnded,durationchange:t.onDurationChange,pause:t.props.onPause,playing:t.props.onPlay,waiting:t.props.onBuffer,error:function(e){return s(e)}}})}}),s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}}
163,{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return o.default.createElement("div",{style:e},o.default.createElement("div",{ref:this.ref}))}}],n&&p(t.prototype,n),r&&p(t,r),u}(o.Component);t.default=_,b(_,"displayName","DailyMotion"),b(_,"canPlay",a.canPlay.dailymotion),b(_,"loopOnEnded",!0)},31972:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return u=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},u.apply(this,arguments)}function c(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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}
163var y="https://connect.facebook.net/en_US/sdk.js",g="fbAsyncInit",b="facebook-player-",_=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)}(s,e);var t,n,r,a=d(s);function s(){var e;c(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=a.call.apply(a,[this].concat(n))),"callPlayer",i.callPlayer),m(h(e),"playerID",e.props.config.playerId||"".concat(b).concat((0,i.randomString)())),m(h(e),"mute",(function(){e.callPlayer("mute")})),m(h(e),"unmute",(function(){e.callPlayer("unmute")})),e}return t=s,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;t?(0,i.getSDK)(y,"FB",g).then((function(e){return e.XFBML.parse()})):(0,i.getSDK)(y,"FB",g).then((function(e){e.init({appId:n.props.config.appId,xfbml:!0,version:n.props.config.version}),e.Event.subscribe("xfbml.render",(function(e){n.props.onLoaded()})),e.Event.subscribe("xfbml.ready",(function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("finishedBuffering",n.props.onBufferEnd),n.player.subscribe("error",n.props.onError),n.props.muted?n.callPlayer("mute"):n.callPlayer("unmute"),n.props.onReady(),document.getElementById(n.playerID).querySelector("iframe").style.visibility="visible")}))}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.config.attributes;return o.default.createElement("div",u({style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},e))}}],n&&l(t.prototype,n),r&&l(t,r),s}(o.Component);t.default=_,m(_,"displayName","Facebook"),m(_,"canPlay",a.canPlay.facebook),m(_,"loopOnEnded",!0)},14926:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return u=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},u.apply(this,arguments)}function c(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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 y="undefined"!==typeof navigator,g=y&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,b=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||g)&&!window.MSStream,_=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,w=/www\.dropbox\.com\/.+/,x=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,k=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)}(p,e);var t,n,r,s=d(p);function p(){var e;c(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=s.call.apply(s,[this].concat(n))),"onReady",(function(){var t;return(t=e.props).onReady.apply(t,arguments)})),m(h(e),"onPlay",(function(){var t;return(t=e.props).onPlay.apply(t,arguments)})),m(h(e),"onBuffer",(function(){var t;return(t=e.props).onBuffer.apply(t,arguments)})),m(h(e),"onBufferEnd",(function(){var t;return(t=e.props).onBufferEnd.apply(t,arguments)})),m(h(e),"onPause",(function(){var t;return(t=e.props).onPause.apply(t,arguments)})),m(h(e),"onEnded",(function(){var t;return(t=e.props).onEnded.apply(t,arguments)})),m(h(e),"onError",(function(){var t;return(t=e.props).onError.apply(t,arguments)})),m(h(e),"onPlayBackRateChange",(function(t){return e.props.onPlaybackRateChange(t.target.playbackRate)})),m(h(e),"onEnablePIP",(function(){var t;return(t=e.props).onEnablePIP.apply(t,arguments)})),m(h(e),"onDisablePIP",(function(t){var n=e.props,r=n.onDisablePIP,o=n.playing;r(t),o&&e.play()})),m(h(e),"onPresentationModeChange",(function(t){if(e.player&&(0,i.supportsWebKitPresentationMode)(e.player)){var n=e.player.webkitPresentationMode;"picture-in-picture"===n?e.onEnablePIP(t):"inline"===n&&e.onDisablePIP(t)}})),m(h(e),"onSeek",(function(t){e.props.onSeek(t.target.currentTime)})),m(h(e),"mute",(function(){e.player.muted=!0}
163)),m(h(e),"unmute",(function(){e.player.muted=!1})),m(h(e),"renderSourceElement",(function(e,t){return"string"===typeof e?o.default.createElement("source",{key:t,src:e}):o.default.createElement("source",u({key:t},e))})),m(h(e),"renderTrack",(function(e,t){return o.default.createElement("track",u({key:t},e))})),m(h(e),"ref",(function(t){e.player&&(e.prevPlayer=e.player),e.player=t})),e}return t=p,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);var e=this.getSource(this.props.url);e&&(this.player.src=e),(b||this.props.config.forceDisableHls)&&this.player.load()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,i.isMediaStream)(this.props.url)||this.props.url instanceof Array||(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(e){var t=this.props,n=t.url,r=t.playsinline;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(n)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(a.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}},{key:"shouldUseHLS",value:function(e){return!!(_&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!b&&!this.props.config.forceDisableHls&&(a.HLS_EXTENSIONS.test(e)||x.test(e))}},{key:"shouldUseDASH",value:function(e){return a.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(e){return a.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}},{key:"load",value:function(e){var t=this,n=this.props.config,r=n.hlsVersion,o=n.hlsOptions,a=n.dashVersion,s=n.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",r),"Hls").then((function(n){if(t.hls=new n(o),t.hls.on(n.Events.MANIFEST_PARSED,(function(){t.props.onReady()})),t.hls.on(n.Events.ERROR,(function(e,r){t.props.onError(e,r,t.hls,n)})),x.test(e)){var r=e.match(x)[1];t.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",r))}else t.hls.loadSource(e);t.hls.attachMedia(t.player),t.props.onLoaded()})),this.shouldUseDASH(e)&&(0,i.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",a),"dashjs").then((function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.on("error",t.props.onError),parseInt(a)<3?t.dash.getDebug().set
163LogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),t.props.onLoaded()})),this.shouldUseFLV(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",s),"flvjs").then((function(n){t.flv=n.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.on(n.Events.ERROR,(function(e,r){t.props.onError(e,r,t.flv,n)})),t.flv.load(),t.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,i.isMediaStream)(e))try{this.player.srcObject=e}catch(u){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.player.currentTime=e,t||this.pause()}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,i.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,i.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,i.isMediaStream)(e)||t||n||r))return w.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,i=e.controls,a=e.muted,s=e.config,c=e.width,l=e.height,f=this.shouldUseAudio(this.props)?"audio":"video",d={width:"auto"===c?c:"100%",height:"auto"===l?l:"100%"};return o.default.createElement(f,u({ref:this.ref,src:this.getSource(t),style:d,preload:"auto",autoPlay:n||void 0,controls:i,muted:a,loop:r},s.attributes),t instanceof Array&&t.map(this.renderSourceElement),s.tracks.map(this.renderTrack))}}],n&&l(t.prototype,n),r&&l(t,r),p}(o.Component);t.default=k,m(k,"displayName","FilePlayer"),m(k,"canPlay",a.canPlay.file)},73911:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
163function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(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}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&&l(e,t)}(s,e);var t,n,r,a=f(s);function s(){var e;u(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(p(e=a.call.apply(a,[this].concat(n))),"callPlayer",i.callPlayer),v(p(e),"duration",null),v(p(e),"currentTime",null),v(p(e),"secondsLoaded",null),v(p(e),"mute",(function(){e.callPlayer("mute")})),v(p(e),"unmute",(function(){e.callPlayer("unmute")})),v(p(e),"ref",(function(t){e.iframe=t})),e}return t=s,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,i.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.on("ready",(function(){setTimeout((function(){t.player.isReady=!0,t.player.setLoop(t.props.loop),t.props.muted&&t.player.mute(),t.addListeners(t.player,t.props),t.props.onReady()}),500)})))}),this.props.onError)}},{key:"addListeners",value:function(e,t){var n=this;e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",(function(e){var t=e.duration,r=e.seconds;n.duration=t,n.currentTime=r}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){return o.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}],n&&c(t.prototype,n),r&&c(t,r),s}(o.Component);t.default=m,v(m,"displayName","Kaltura"),v(m,"canPlay",a.canPlay.kaltura)},50143:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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){y(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 l(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)}}
163function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=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)}(u,e);var t,n,r,s=p(u);function u(){var e;l(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(v(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),y(v(e),"duration",null),y(v(e),"currentTime",null),y(v(e),"secondsLoaded",null),y(v(e),"mute",(function(){})),y(v(e),"unmute",(function(){})),y(v(e),"ref",(function(t){e.iframe=t})),e}return t=u,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,i.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then((function(e){t.player=e.PlayerWidget(t.iframe),t.player.ready.then((function(){t.player.events.play.on(t.props.onPlay),t.player.events.pause.on(t.props.onPause),t.player.events.ended.on(t.props.onEnded),t.player.events.error.on(t.props.error),t.player.events.progress.on((function(e,n){t.currentTime=e,t.duration=n})),t.props.onReady()}))}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.config,r=t.match(a.MATCH_URL_MIXCLOUD)[1],s=(0,i.queryString)(c(c({},n.options),{},{feed:"/".concat(r,"/")}));return o.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(s),frameBorder:"0",allow:"autoplay"})}}],n&&f(t.prototype,n),r&&f(t,r),u}(o.Component);t.default=g,y(g,"displayName","Mixcloud"),y(g,"canPlay",a.canPlay.mixcloud),y(g,"loopOnEnded",!0)},72648:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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]:{};
163t%2?u(Object(n),!0).forEach((function(t){y(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 l(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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=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)}(s,e);var t,n,r,a=p(s);function s(){var e;l(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(v(e=a.call.apply(a,[this].concat(n))),"callPlayer",i.callPlayer),y(v(e),"duration",null),y(v(e),"currentTime",null),y(v(e),"fractionLoaded",null),y(v(e),"mute",(function(){e.setVolume(0)})),y(v(e),"unmute",(function(){null!==e.props.volume&&e.setVolume(e.props.volume)})),y(v(e),"ref",(function(t){e.iframe=t})),e}return t=s,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;(0,i.getSDK)("https://w.soundcloud.com/player/api.js","SC").then((function(r){if(n.iframe){var o=r.Widget.Events,i=o.PLAY,a=o.PLAY_PROGRESS,s=o.PAUSE,u=o.FINISH,l=o.ERROR;t||(n.player=r.Widget(n.iframe),n.player.bind(i,n.props.onPlay),n.player.bind(s,(function(){n.duration-n.currentTime<.05||n.props.onPause()})),n.player.bind(a,(function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress})),n.player.bind(u,(function(){return n.props.onEnded()})),n.player.bind(l,(function(e){return n.props.onError(e)}))),n.player.load(e,c(c({},n.props.config.options),{},{callback:function(){n.player.getDuration((function(e){n.duration=e/1e3,n.props.onReady()}))}}))}}))}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seekTo",1e3*e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return o.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:e,frameBorder:0,allow:"autoplay"})}}],n&&f(t.prototype,n),r&&f(t,r),s}(o.Component);t.default=g,y(g,"displayName","SoundCloud"),y(g,"canPlay",a.canPlay.soundcloud),y(g,"loopOnEnded",!0)},50993:function(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)}
163Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(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}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&&l(e,t)}(d,e);var t,n,r,s=f(d);function d(){var e;u(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(p(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),v(p(e),"duration",null),v(p(e),"currentTime",null),v(p(e),"secondsLoaded",null),v(p(e),"mute",(function(){e.callPlayer("mute")})),v(p(e),"unmute",(function(){e.callPlayer("unmute")})),v(p(e),"ref",(function(t){e.iframe=t})),e}return t=d,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,i.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then((function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",(function(e){var n=e.duration,r=e.seconds;t.duration=n,t.currentTime=r})),t.player.on("buffered",(function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)})),t.props.muted&&t.player.mute())}),this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.url.match(a.MATCH_URL_STREAMABLE)[1];return o.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(e),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}],n&&c(t.prototype,n),r&&c(t,r),d}(o.Component);t.default=m,v(m,"displayName","Streamable"),v(m,"canPlay",a.canPlay.streamable)},29482:function(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)}
163Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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,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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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 y="twitch-player-",g=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)}(p,e);var t,n,r,s=d(p);function p(){var e;c(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),m(h(e),"playerID",e.props.config.playerId||"".concat(y).concat((0,i.randomString)())),m(h(e),"mute",(function(){e.callPlayer("setMuted",!0)})),m(h(e),"unmute",(function(){e.callPlayer("setMuted",!1)})),e}return t=p,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this,r=this.props,o=r.playsinline,s=r.onError,c=r.config,l=r.controls,f=a.MATCH_URL_TWITCH_CHANNEL.test(e),d=f?e.match(a.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(a.MATCH_URL_TWITCH_VIDEO)[1];t?f?this.player.setChannel(d):this.player.setVideo("v"+d):(0,i.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then((function(t){n.player=new t.Player(n.playerID,function(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){m(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}({video:f?"":d,channel:f?d:"",height:"100%",width:"100%",playsinline:o,autoplay:n.props.playing,muted:n.props.muted,controls:!!f||l,time:(0,i.parseStartTime)(e)},c.options));var r=t.Player,a=r.READY,s=r.PLAYING,p=r.PAUSE,h=r.ENDED,v=r.ONLINE,y=r.OFFLINE,g=r.SEEK;n.player.addEventListener(a,n.props.onReady),n.player.addEventListener(s,n.props.onPlay),n.player.addEventListener(p,n.props.onPause),n.player.addEventListener(h,n.props.onEnded),n.player.addEventListener(g,n.props.onSeek),n.player.addEventListener(v,n.props.onLoaded),n.player.addEventListener(y,n.props.onLoaded)}),s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return o.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}],n&&l(t.prototype,n),r&&l(t,r),p}(o.Component);t.default=g,m(g,"displayName","Twitch"),m(g,"canPlay",a.canPlay.twitch),m(g,"loopOnEnded",!0)},36596:function(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)}
163Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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,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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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 y=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)}(p,e);var t,n,r,s=d(p);function p(){var e;c(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),m(h(e),"mute",(function(){e.setVolume(0)})),m(h(e),"unmute",(function(){null!==e.props.volume&&e.setVolume(e.props.volume)})),m(h(e),"ref",(function(t){e.container=t})),e}return t=p,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.playing,o=n.config,s=n.onError,c=n.onDuration,l=e&&e.match(a.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,i.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then((function(e){t.container&&(e.api.addReadyListener((function(e,n){t.player||(t.player=n,t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seek",t.props.onSeek),t.player.on("playerComplete",t.props.onEnded))}),l),e.api.renderPlayer(function(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){m(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}({uuid:l,container:t.container,autoplay:r?1:0},o.options)),e.api.getPlayerMetadata(l).then((function(e){t.duration=e.length_in_seconds,c(e.length_in_seconds)})))}),s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackSpeed",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}}
163,{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return o.default.createElement("div",{style:e},o.default.createElement("div",{ref:this.ref}))}}],n&&l(t.prototype,n),r&&l(t,r),p}(o.Component);t.default=y,m(y,"displayName","Vidyard"),m(y,"canPlay",a.canPlay.vidyard)},80868:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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,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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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 y=function(e){return e.replace("/manage/videos","")},g=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)}(s,e);var t,n,r,a=d(s);function s(){var e;c(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=a.call.apply(a,[this].concat(n))),"callPlayer",i.callPlayer),m(h(e),"duration",null),m(h(e),"currentTime",null),m(h(e),"secondsLoaded",null),m(h(e),"mute",(function(){e.setMuted(!0)})),m(h(e),"unmute",(function(){e.setMuted(!1)})),m(h(e),"ref",(function(t){e.container=t})),e}return t=s,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;this.duration=null,(0,i.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then((function(n){if(t.container){var r=t.props.config,o=r.playerOptions,i=r.title;t.player=new n.Player(t.container,function(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){m(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}({url:y(e),autoplay:t.props.playing,muted:t.props.muted,loop:t.props.loop,playsinline:t.props.playsinline,controls:t.props.controls},o)),t.player.ready().then((function(){var e=t.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",i&&(e.title=i)})).catch(t.props.onError),t.player.on("loaded",(function(){t.props.onReady(),t.refreshDuration()})),t.player.on("play",(function(){t.props.onPlay(),t.refreshDuration()})),t.player.on("pause",t.props.onPause),t.player.on("seeked",(function(e){return t.props.onSeek(e.seconds)})),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",(function(e){var n=e.seconds;t.currentTime=n})),t.player.on("progress",(function(e){var n=e.seconds;t.secondsLoaded=n})),t.player.on("bufferstart",t.props.onBuffer),t.player.on("bufferend",t.props.onBufferEnd),t.player.on("playbackratechange",(function(e){return t.props.onPlaybackRateChange(e.playbackRate)}))}}),this.props.onError)}},{key:"refreshDuration",value:function(){var e=this;this.player.getDuration().then((function(t){e.duration=t}))}},{key:"play",value:function(){var e=this.callPlayer("play");e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setMuted",value:function(e){this.callPlayer("setMuted",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}}
163,{key:"render",value:function(){var e={width:"100%",height:"100%",overflow:"hidden",display:this.props.display};return o.default.createElement("div",{key:this.props.url,ref:this.ref,style:e})}}],n&&l(t.prototype,n),r&&l(t,r),s}(o.Component);t.default=g,m(g,"displayName","Vimeo"),m(g,"canPlay",a.canPlay.vimeo),m(g,"forceLoad",!0)},8018:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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){y(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 l(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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g="wistia-player-",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&&d(e,t)}(u,e);var t,n,r,s=p(u);function u(){var e;l(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(v(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),y(v(e),"playerID",e.props.config.playerId||"".concat(g).concat((0,i.randomString)())),y(v(e),"onPlay",(function(){var t;return(t=e.props).onPlay.apply(t,arguments)})),y(v(e),"onPause",(function(){var t;return(t=e.props).onPause.apply(t,arguments)})),y(v(e),"onSeek",(function(){var t;return(t=e.props).onSeek.apply(t,arguments)})),y(v(e),"onEnded",(function(){var t;return(t=e.props).onEnded.apply(t,arguments)})),y(v(e),"onPlaybackRateChange",(function(){var t;return(t=e.props).onPlaybackRateChange.apply(t,arguments)})),y(v(e),"mute",(function(){e.callPlayer("mute")})),y(v(e),"unmute",(function(){e.callPlayer("unmute")}
163)),e}return t=u,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.playing,o=n.muted,a=n.controls,s=n.onReady,u=n.config,l=n.onError;(0,i.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then((function(e){u.customControls&&u.customControls.forEach((function(t){return e.defineControl(t)})),window._wq=window._wq||[],window._wq.push({id:t.playerID,options:c({autoPlay:r,silentAutoPlay:"allow",muted:o,controlsVisibleOnLoad:a,fullscreenButton:a,playbar:a,playbackRateControl:a,qualityControl:a,volumeControl:a,settingsControl:a,smallPlayButton:a},u.options),onReady:function(e){t.player=e,t.unbind(),t.player.bind("play",t.onPlay),t.player.bind("pause",t.onPause),t.player.bind("seek",t.onSeek),t.player.bind("end",t.onEnded),t.player.bind("playbackratechange",t.onPlaybackRateChange),s()}})}),l)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("time",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.url,t=e&&e.match(a.MATCH_URL_WISTIA)[1],n="wistia_embed wistia_async_".concat(t);return o.default.createElement("div",{id:this.playerID,key:t,className:n,style:{width:"100%",height:"100%"}})}}],n&&f(t.prototype,n),r&&f(t,r),u}(o.Component);t.default=b,y(b,"displayName","Wistia"),y(b,"canPlay",a.canPlay.wistia),y(b,"loopOnEnded",!0)},60356:function(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){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(38045),a=n(71776);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}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){b(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 l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;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(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}
163(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 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 d(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)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?y(e):t}function y(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)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="YT",w=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,x=/user\/([a-zA-Z0-9_-]+)\/?/,k=/youtube-nocookie\.com/,S=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&&h(e,t)}(u,e);var t,n,r,s=v(u);function u(){var e;d(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(y(e=s.call.apply(s,[this].concat(n))),"callPlayer",i.callPlayer),b(y(e),"parsePlaylist",(function(t){return t instanceof Array?{listType:"playlist",playlist:t.map(e.getID).join(",")}:w.test(t)?{listType:"playlist",list:l(t.match(w),2)[1].replace(/^UC/,"UU")}:x.test(t)?{listType:"user_uploads",list:l(t.match(x),2)[1]}:{}})),b(y(e),"onStateChange",(function(t){var n=t.data,r=e.props,o=r.onPlay,i=r.onPause,a=r.onBuffer,s=r.onBufferEnd,u=r.onEnded,c=r.onReady,l=r.loop,f=r.config,d=f.playerVars,p=f.onUnstarted,h=window.YT.PlayerState,v=h.UNSTARTED,m=h.PLAYING,y=h.PAUSED,g=h.BUFFERING,b=h.ENDED,_=h.CUED;if(n===v&&p(),n===m&&(o(),s()),n===y&&i(),n===g&&a(),n===b){var w=!!e.callPlayer("getPlaylist");l&&!w&&(d.start?e.seekTo(d.start):e.play()),u()}n===_&&c()})),b(y(e),"mute",(function(){e.callPlayer("mute")})),b(y(e),"unmute",(function(){e.callPlayer("unMute")})),b(y(e),"ref",(function(t){e.container=t})),e}return t=u,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(e){return!e||e instanceof Array||w.test(e)?null:e.match(a.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(e,t){var n=this,r=this.props,o=r.playing,a=r.muted,s=r.playsinline,u=r.controls,l=r.loop,f=r.config,d=r.onError,p=f.playerVars,h=f.embedOptions,v=this.getID(e);if(t)return w.test(e)||x.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:v,startSeconds:(0,i.parseStartTime)(e)||p.start,endSeconds:(0,i.parseEndTime)(e)||p.end});(0,i.getSDK)("https://www.youtube.com/iframe_api",_,"onYouTubeIframeAPIReady",(function(e){return e.loaded})).then((function(t){n.container&&(n.player=new t.Player(n.container,c({width:"100%",height:"100%",videoId:v,playerVars:c(c({autoplay:o?1:0,mute:a?1:0,controls:u?1:0,start:(0,i.parseStartTime)(e),end:(0,i.parseEndTime)(e),origin:window.location.origin,playsinline:s?1:0},n.parsePlaylist(e)),p),events:{onReady:function(){l&&n.player.setLoop(!0),n.props.onReady()},onPlaybackRateChange:function(e){return n.props.onPlaybackRateChange(e.data)},onPlaybackQualityChange:function(e){return n.props.onPlaybackQualityChange(e)},onStateChange:n.onStateChange,onError:function(e){return d(e.data)}},host:k.test(e)?"https://www.youtube-nocookie.com":void 0},h)))}),d),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}}
163,{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return o.default.createElement("div",{style:e},o.default.createElement("div",{ref:this.ref}))}}],n&&p(t.prototype,n),r&&p(t,r),u}(o.Component);t.default=S,b(S,"displayName","YouTube"),b(S,"canPlay",a.canPlay.youtube)},86497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(67294),o=n(38045),i=n(71776);function a(e){return a="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},a(e)}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}var c=[{key:"youtube",name:"YouTube",canPlay:i.canPlay.youtube,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(60356))}))}))},{key:"soundcloud",name:"SoundCloud",canPlay:i.canPlay.soundcloud,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(72648))}))}))},{key:"vimeo",name:"Vimeo",canPlay:i.canPlay.vimeo,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(80868))}))}))},{key:"facebook",name:"Facebook",canPlay:i.canPlay.facebook,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(31972))}))}))},{key:"streamable",name:"Streamable",canPlay:i.canPlay.streamable,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(50993))}))}))},{key:"wistia",name:"Wistia",canPlay:i.canPlay.wistia,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(8018))}))}))},{key:"twitch",name:"Twitch",canPlay:i.canPlay.twitch,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(29482))}))}))},{key:"dailymotion",name:"DailyMotion",canPlay:i.canPlay.dailymotion,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(36807))}))}))},{key:"mixcloud",name:"Mixcloud",canPlay:i.canPlay.mixcloud,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(50143))}))}))},{key:"vidyard",name:"Vidyard",canPlay:i.canPlay.vidyard,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(36596))}))}))},{key:"kaltura",name:"Kaltura",canPlay:i.canPlay.kaltura,lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(73911))}))}))},{key:"file",name:"FilePlayer",canPlay:i.canPlay.file,canEnablePIP:function(e){return i.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,o.supportsWebKitPresentationMode)())&&!i.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,r.lazy)((function(){return Promise.resolve().then((function(){return u(n(14926))}))}))}];t.default=c},85741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.propTypes=void 0;var r,o=(r=n(45697))&&r.__esModule?r:{default:r};var i=o.default.string,a=o.default.bool,s=o.default.number,u=o.default.array,c=o.default.oneOfType,l=o.default.shape,f=o.default.object,d=o.default.func,p=o.default.node,h={url:c([i,u,f]),playing:a,loop:a,controls:a,volume:s,muted:a,playbackRate:s,width:c([i,s]),height:c([i,s]),style:f,progressInterval:s,playsinline:a,pip:a,stopOnUnmount:a,light:c([a,i,f]),playIcon:p,previewTabIndex:s,fallback:p,oEmbedUrl:i,wrapper:c([i,d,l({render:d.isRequired})]),config:l({soundcloud:l({options:f}),youtube:l({playerVars:f,embedOptions:f,onUnstarted:d}),facebook:l({appId:i,version:i,playerId:i,attributes:f}),dailymotion:l({params:f}),vimeo:l({playerOptions:f,title:i}),file:l({attributes:f,tracks:u,forceVideo:a,forceAudio:a,forceHLS:a,forceSafariHLS:a,forceDisableHls:a,forceDASH:a,forceFLV:a,hlsOptions:f,hlsVersion:i,dashVersion:i,flvVersion:i}),wistia:l({options:f,playerId:i,customControls:u}),mixcloud:l({options:f}),twitch:l({options:f,playerId:i}
163),vidyard:l({options:f})}),onReady:d,onStart:d,onPlay:d,onPause:d,onBuffer:d,onBufferEnd:d,onEnded:d,onError:d,onDuration:d,onSeek:d,onPlaybackRateChange:d,onPlaybackQualityChange:d,onProgress:d,onClickPreview:d,onEnablePIP:d,onDisablePIP:d};t.propTypes=h;var v=function(){},m={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:v},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:v,onStart:v,onPlay:v,onPause:v,onBuffer:v,onBufferEnd:v,onEnded:v,onError:v,onDuration:v,onSeek:v,onPlaybackRateChange:v,onPlaybackQualityChange:v,onProgress:v,onClickPreview:v,onEnablePIP:v,onDisablePIP:v};t.defaultProps=m},38045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return d(e,u)},t.parseEndTime=function(e){return d(e,c)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.default,a=p(t);if(a&&o(a))return Promise.resolve(a);return new Promise((function(r,o){if(h[e])h[e].push({resolve:r,reject:o});else{h[e]=[{resolve:r,reject:o}];var a=function(t){h[e].forEach((function(e){return e.resolve(t)}))};if(n){var s=window[n];window[n]=function(){s&&s(),a(p(t))}}i(e,(function(r){r?(h[e].forEach((function(e){return e.reject(r)})),h[e]=null):n||a(p(t))}))}}))},t.getConfig=function(e,t){return(0,o.default)(t.config,e.config)},t.omit=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=(t=[]).concat.apply(t,r),a={},s=Object.keys(e),u=0,c=s;u<c.length;u++){var l=c[u];-1===i.indexOf(l)&&(a[l]=e[l])}return a},t.callPlayer=function(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c \u2013 ");return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(t=this.player)[e].apply(t,o)},t.isMediaStream=function(e){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&e instanceof window.MediaStream},t.isBlobUrl=function(e){return/^blob:/.test(e)},t.supportsWebKitPresentationMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t};var r=i(n(49090)),o=i(n(9996));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;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(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}
163(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 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 u=/[?&#](?:start|t)=([0-9hms]+)/,c=/[?&#]end=([0-9hms]+)/,l=/(\d+)(h|m|s)/g,f=/^\d+$/;function d(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(l))return function(e){var t=0,n=l.exec(e);for(;null!==n;){var r=a(n,3),o=r[1],i=r[2];"h"===i&&(t+=60*parseInt(o,10)*60),"m"===i&&(t+=60*parseInt(o,10)),"s"===i&&(t+=parseInt(o,10)),n=l.exec(e)}return t}(r);if(f.test(r))return parseInt(r)}}}function p(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}var h={}},73727:function(e,t,n){"use strict";n.d(t,{VK:function(){return l}});var r=n(16550),o=n(75068),i=n(67294),a=n(99318),s=n(87462),u=n(63366),c=n(38776),l=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).history=(0,a.lX)(t.props),t}return(0,o.Z)(t,e),t.prototype.render=function(){return i.createElement(r.F0,{history:this.history,children:this.props.children})},t}(i.Component);i.Component;var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.ob)(e,null,null,t):e},p=function(e){return e},h=i.forwardRef;"undefined"===typeof h&&(h=p);var v=h((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,u.Z)(e,["innerRef","navigate","onClick"]),c=a.target,l=(0,s.Z)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=p!==h&&t||n,i.createElement("a",l)}));var m=h((function(e,t){var n=e.component,o=void 0===n?v:n,l=e.replace,m=e.to,y=e.innerRef,g=(0,u.Z)(e,["component","replace","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=d(f(m,e.location),e.location),u=r?n.createHref(r):"",v=(0,s.Z)({},g,{href:u,navigate:function(){var t=f(m,e.location),r=(0,a.Ep)(e.location)===(0,a.Ep)(d(t));(l||r?n.replace:n.push)(t)}});return p!==h?v.ref=t||y:v.innerRef=y,i.createElement(o,v)}))})),y=function(e){return e},g=i.forwardRef;"undefined"===typeof g&&(g=y);g((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,l=void 0===a?"active":a,p=e.activeStyle,h=e.className,v=e.exact,b=e.isActive,_=e.location,w=e.sensitive,x=e.strict,k=e.style,S=e.to,E=e.innerRef,O=(0,u.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=_||e.location,a=d(f(S,n),n),u=a.pathname,P=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=P?(0,r.LX)(n.pathname,{path:P,exact:v,sensitive:w,strict:x}):null,C=!!(b?b(T,n):T),A="function"===typeof h?h(C):h,j="function"===typeof k?k(C):k;C&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,l),j=(0,s.Z)({},j,p));var R=(0,s.Z)({"aria-current":C&&o||null,className:A,style:j,to:a},O);return y!==g?R.ref=t||E:R.innerRef=E,i.createElement(m,R)}))}))},16550:function(e,t,n){"use strict";n.d(t,{F0:function(){return _},LX:function(){return E},NL:function(){return x},TH:function(){return R},s6:function(){return b}});var r=n(75068),o=n(67294),i=n(45697),a=n.n(i),s=n(99318),u=n(38776),c=n(87462),l=n(14779),f=n.n(l),d=(n(50663),n(63366)),p=(n(8679),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};function v(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var m=o.createContext||function(e,t){var n,i,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",u=function(e){function n(){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).emitter=v(t.props.value),t}(0,r.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);u.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{Provider:u,Consumer:c}},y=function(e){var t=m();return t.displayName=e,t},g=y("Router-History"),b=y("Router"),_=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}
163))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);function x(e){var t=e.message,n=e.when,r=void 0===n||n;return o.createElement(b.Consumer,null,(function(e){if(e||(0,u.Z)(!1),!r||e.staticContext)return null;var n=e.history.block;return o.createElement(w,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var k={},S=0;function E(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return S<1e4&&(r[e]=i,S++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],d=u.slice(1),p=e===l;return i&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}o.Component;function O(e){return"/"===e.charAt(0)?e:"/"+e}function P(e,t){if(!e)return t;var n=O(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function T(e){return"string"===typeof e?e:(0,s.Ep)(e)}function C(e){return function(){(0,u.Z)(!1)}}function A(){}o.Component;o.Component;var j=o.useContext;function R(){return j(b).location}},30086:function(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,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case v:case u:return e;default:return t}}case o:return t}}}function x(e){return w(e)===f}},50663:function(e,t,n){"use strict";n(30086)},8662:function(e,t,n){"use strict";n.d(t,{ZP:function(){return m}});var r=n(63366),o=n(75068),i=n(67294),a=n(73935),s=!1,u=n(220),c="unmounted",l="exited",f="entering",d="entered",p="exiting",h=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=l,r.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?c:l,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:l}: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!==f&&n!==d&&(t=f):n!==f&&n!==d||(t=p)}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,a
163ppear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){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===l&&this.setState({status:c})},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],u=o[1],c=this.getTimeouts(),l=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:d},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,u),this.safeSetState({status:f},(function(){t.props.onEntering(i,u),t.onTransitionEnd(l,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(i,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:l},(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===c)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(u.Z.Provider,{value:null},"function"===typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function v(){}h.contextType=u.Z,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},h.UNMOUNTED=c,h.EXITED=l,h.ENTERING=f,h.ENTERED=d,h.EXITING=p;var m=h},220:function(e,t,n){"use strict";var r=n(67294);t.Z=r.createContext(null)},26488:function(e,t,n){var r,o=n(56524),i=n(86913),a=n(22087),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){function n(e,i,u){if(r++>100)throw r=0,new Error("Call stack overflow for "+u);if(""===e)throw new Error(i+"(): '"+u+"' must contain a non-whitespace string");e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=s.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var u=o("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+e+"' must contain a non-whitespace string");var c=n(u.body,"",t);i+=u.pre+c,a=u.post}return i+a}(e,u);var c=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e);if(c.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var l=c[0]||"";"%"===l&&(e=e.replace(/\b[0-9\.]+%/g,(function(e){return.01*parseFloat(e.slice(0,-1))})));var f,d=e.replace(new RegExp(l,"gi"),"");try{f=a.eval(d)}catch(p){return i+"("+e+")"}return"%"===l&&(f*=100),(i.length||"%"===l)&&(f=Math.round(f*t)/t),f+=l}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},56524:function(e){function t(e,t,o){e instanceof RegExp&&(e=n(e,o)),t instanceof RegExp&&(t=n(t,o));var i=r(e,t,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,o,i,a,s,u=n.indexOf(e),c=n.indexOf(t,u+1),l=u;if(u>=0&&c>0){for(r=[],i=n.length;l>=0&&!s;)l==u?(r.push(l),u=n.indexOf(e,l+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())<i&&(i=o,a=c),c=n.indexOf(t,l+1)),l=u<c&&u>=0?u:c;r.length&&(s=[i,a])}return s}
163e.exports=t,t.range=r},86913:function(e,t,n){var r=n(5623);function o(e,t,n){var i=e;return function(e,t){var n=[],o="string"===typeof t?new RegExp("\\b("+t+")\\("):t;do{var i=o.exec(e);if(!i)return n;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=i[1],s=i.index,u=r("(",")",e.substring(s));if(!u||u.start!==i[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:u,functionIdentifier:a}),e=u.post}while(o.test(e));return n}(e,t).reduce((function(e,r){return e.replace(r.functionIdentifier+"("+r.matches.body+")",function(e,t,n,r,i){return n(o(e,i,n),t,r)}(r.matches.body,r.functionIdentifier,n,i,t))}),e)}e.exports=o},67771:function(e,t,n){"use strict";var r=n(40210),o=n(12296),i=n(31044)(),a=n(27296),s=r("%TypeError%"),u=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},96774:function(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),u=0;u<i.length;u++){var c=i[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(o=n?n.call(r,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}},50066:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:function(){return Ze},StyleSheetConsumer:function(){return oe},StyleSheetContext:function(){return re},StyleSheetManager:function(){return le},ThemeConsumer:function(){return Re},ThemeContext:function(){return je},ThemeProvider:function(){return Me},__PRIVATE__:function(){return Ue},createGlobalStyle:function(){return Be},css:function(){return _e},default:function(){return We},isStyledComponent:function(){return _},keyframes:function(){return Fe},useTheme:function(){return Ve},version:function(){return x},withTheme:function(){return ze}});var r=n(59864),o=n(67294),i=n(96774),a=n.n(i);var s=function(e){function t(e,r,u,c,d){for(var p,h,v,m,_,x=0,k=0,S=0,E=0,O=0,R=0,D=v=p=0,L=0,N=0,B=0,F=0,Z=u.length,z=Z-1,V="",U="",W="",H="";L<Z;){if(h=u.charCodeAt(L),L===z&&0!==k+E+S+x&&(0!==k&&(h=47===k?10:47),E=S=x=0,Z++,z++),0===k+E+S+x){if(L===z&&(0<N&&(V=V.replace(f,"")),0<V.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:V+=u.charAt(L)}h=59}switch(h){case 123:for(p=(V=V.trim()).charCodeAt(0),v=1,F=++L;L<Z;){switch(h=u.charCodeAt(L)){case 123:v++;break;case 125:v--;break;case 47:switch(h=u.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<z;++D)switch(u.charCodeAt(D)){case 47:if(42===h&&42===u.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===h){L=D+1;break e}}L=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<z&&u.charCodeAt(L)!==h;);}if(0===v)break;L++}if(v=u.substring(F,L),0===p&&(p=(V=V.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<N&&(V=V.replace(f,"")),h=V.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=j}if(F=(v=t(r,N,v,h,d+1)).length,0<M&&(_=s(3,v,N=n(j,V,B),r,T,P,F,h,d,c),V=N.join(""),void 0!==_&&0===(F=(v=_.trim()).length)&&(h=0,v="")),0<F)switch(h){case 115:V=V.replace(w,a);case 100:case 109:case 45:v=V+"{"+v+"}";break;case 107:v=(V=V.replace(y,"$1 $2"))+"{"+v+"}",v=1===A||2===A&&i("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=V+v,112===c&&(U+=v,v="")}else v=""}else v=t(r,n(r,V,B),v,c,d+1);W+=v,v=B=N=D=p=0,V="",h=u.charCodeAt(++L);break;case 125:case 59:if(1<(F=(V=(0<N?V.replace(f,""):V).trim()).length))switch(0===D&&(p=V.charCodeAt(0),45===p||96<p&&123>p)&&(F=(V=V.replace(" ",":")).length),0<M&&void 0!==(_=s(1,V,r,e,T,P,U.length,c,d,c))&&0===(F=(V=_.trim()).length)&&(V="\0\0"),p=V.charCodeAt(0),h=V.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){H+=V+u.charAt(L);break}
vendor: 4,117 bytes, line 163
163default:58!==V.charCodeAt(F-1)&&(U+=o(V,p,h,V.charCodeAt(2)))}B=N=D=p=0,V="",h=u.charCodeAt(++L)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==c&&0<V.length&&(N=1,V+="\0"),0<M*I&&s(0,V,r,e,T,P,U.length,c,d,c),P=1,T++;break;case 59:case 125:if(0===k+E+S+x){P++;break}default:switch(P++,m=u.charAt(L),h){case 9:case 32:if(0===E+x+k)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+k+x&&(N=B=1,m="\f"+m);break;case 108:if(0===E+k+x+C&&0<D)switch(L-D){case 2:112===O&&58===u.charCodeAt(L-3)&&(C=O);case 8:111===R&&(C=R)}break;case 58:0===E+k+x&&(D=L);break;case 44:0===k+S+E+x&&(N=1,m+="\r");break;case 34:case 39:0===k&&(E=E===h?0:0===E?h:E);break;case 91:0===E+k+S&&x++;break;case 93:0===E+k+S&&x--;break;case 41:0===E+k+x&&S--;break;case 40:if(0===E+k+x){if(0===p)if(2*O+3*R===533);else p=1;S++}break;case 64:0===k+S+E+x+D+v&&(v=1);break;case 42:case 47:if(!(0<E+x+S))switch(k){case 0:switch(2*h+3*u.charCodeAt(L+1)){case 235:k=47;break;case 220:F=L,k=42}break;case 42:47===h&&42===O&&F+2!==L&&(33===u.charCodeAt(F+2)&&(U+=u.substring(F,L+1)),m="",k=0)}}0===k&&(V+=m)}R=O,O=h,L++}if(0<(F=U.length)){if(N=r,0<M&&(void 0!==(_=s(2,U,N,e,T,P,F,c,d,c))&&0===(U=_).length))return H+U+W;if(U=N.join(",")+"{"+U+"}",0!==A*C){switch(2!==A||i(U,2)||(C=0),C){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(g,"::-webkit-input-$1")+U.replace(g,"::-moz-$1")+U.replace(g,":-ms-input-$1")+U}C=0}}return H+U+W}function n(e,t,n){var o=t.trim().split(v);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[u++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===A||2===A&&i(u,1)?"-webkit-"+u+u:u}if(0===A||2===A&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(_,"tb");break;case 232:u=a.replace(_,"tb-rl");break;case 220:u=a.replace(_,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";
vendor: 5,383 bytes, line 163
163case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(S,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,u,l){for(var f,d=0,p=t;d<M;++d)switch(f=R[d].call(c,e,p,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!==typeof e?A=1:(A=2,D=e):A=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=s(-1,n,r,r,T,P,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(j,r,n,0,0);return 0<M&&(void 0!==(o=s(-2,i,r,r,T,P,i.length,0,0,0))&&(i=o)),"",C=0,P=T=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,v=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,k=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,P=1,T=1,C=0,A=1,j=[],R=[],M=0,D=null,I=0;return c.use=function e(t){switch(t){case void 0:case null:M=R.length=0;break;default:if("function"===typeof t)R[M++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},c.set=u,void 0!==e&&u(e),c},u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c=n(71068),l=n(8679),f=n.n(l),d=n(83454);function p(){return(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}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},m=Object.freeze([]),y=Object.freeze({});function g(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var w="undefined"!=typeof d&&void 0!==d.env&&(d.env.REACT_APP_SC_ATTR||d.env.SC_ATTR)||"data-styled",x="5.3.11",k="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof d&&void 0!==d.env&&(void 0!==d.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==d.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==d.env.REACT_APP_SC_DISABLE_SPEEDY&&d.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==d.env.SC_DISABLE_SPEEDY&&""!==d.env.SC_DISABLE_SPEEDY&&("false"!==d.env.SC_DISABLE_SPEEDY&&d.env.SC_DISABLE_SPEEDY))),E={};function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),T=new Map,C=new Map,A=1,j=function(e){if(T.has(e))return T.get(e);for(;C.has(A);)A++;var t=A++;
vendor: 4,674 bytes, line 163
163return T.set(e,t),C.set(t,e),t},R=function(e){return C.get(e)},M=function(e,t){t>=A&&(A=t+1),T.set(e,t),C.set(t,e)},D="style["+w+'][data-styled-version="5.3.11"]',I=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},N=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(I);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(M(c,u),L(e,c,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},B=function(){return n.nc},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.3.11");var a=B();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Z=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}O(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=k,W={isServer:!k,useCSSOMInjection:!S},H=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=p({},W,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(w)&&(N(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return j(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new V(o):r?new Z(o):new z(o),new P(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(j(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(j(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(j(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=R(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var u=w+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=$(t%52)+n;return($(t%52)+n).replace(q,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return Y(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(g(n)&&!_(n))return!1}return!0}var Q=K("5.3.11"),J=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&X(e),this.componentId=t,this.baseHash=Y(Q,t),this.baseStyle=n,H.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n
vendor: 10,480 bytes, line 163
163)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),a=G(Y(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=Y(this.baseHash,n.hash),l="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var p=ge(d,e,t,n),h=Array.isArray(p)?p.join(""):p;c=Y(c,h+f),l+=h}}if(l){var v=G(c>>>0);if(!t.hasNameForId(r,v)){var m=n(l,"."+v,void 0,r);t.insertRules(r,v,m)}o.push(v)}}return o.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,o,i=void 0===e?y:e,a=i.options,u=void 0===a?y:a,c=i.plugins,l=void 0===c?m:c,f=new s(u),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,c,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,i){return 0===r&&-1!==te.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,s){void 0===s&&(s="&");var u=e.replace(ee,""),c=i&&a?a+" "+i+" { "+u+" }":u;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,c)}return f.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||O(15),Y(e,t.name)}),5381).toString():"",v}var re=o.createContext(),oe=re.Consumer,ie=o.createContext(),ae=(ie.Consumer,new H),se=ne();function ue(){return(0,o.useContext)(re)||ae}function ce(){return(0,o.useContext)(ie)||se}function le(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=ue(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,o.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(re.Provider,{value:s},o.createElement(ie.Provider,{value:u},e.children))}var fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return O(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),de=/([A-Z])/,pe=/([A-Z])/g,he=/^ms-/,ve=function(e){return"-"+e.toLowerCase()};function me(e){return de.test(e)?e.replace(pe,ve).replace(he,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ge(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ye(e)?"":_(e)?"."+e.styledComponentId:g(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof fe?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ye(t[a])&&(Array.isArray(t[a])&&t[a].isCss||g(t[a])?i.push(me(a)+":",t[a],";"):v(t[a])?i.push.apply(i,e(t[a],a)):i.push(me(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in u||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var be=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function _e(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 g(e)||v(e)?be(ge(h(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:be(ge(h(e,n)))}new Set;var we=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Se(e){return e.replace(xe,"-").replace(ke,"")}var Ee=function(e){return G(K(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,n){var r=e[n];Pe(t)&&Pe(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Pe(a))for(var s in a)Te(s)&&Ce(e,a[s],s)}return e}var je=o.createContext(),Re=je.Consumer;function Me(e){var t=(0,o.useContext)(je),n=(0,o.useMemo)((function(){return function(e,t){return e?g(e)?e(t):Array.isArray(e)||"object"!=typeof e?O(8):t?p({},t,{},e):e:O(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(je.Provider,{value:n},e.children):null}var De={};function Ie(e,t,n){var r=_(e),i=!Oe(e),a=t.attrs,s=void 0===a?m:a,u=t.componentId,l=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Se(e);De[n]=(De[n]||0)+1;var r=n+"-"+Ee("5.3.11"+n+De[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,d=t.displayName,h=void 0===d?function(e){return Oe(e)?"styled."+e:"Styled("+b(e)+")"}(e):d,v=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||l,w=r&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var k,S=new J(n,v,r?e.componentStyle:void 0),E=S.isStatic&&0===s.length,O=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,l=e.shouldForwardProp,f=e.styledComponentId,d=e.target,h=function(e,t,n){void 0===e&&(e=y);var r=p({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in g(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(we(t,(0,o.useContext)(je),s)||y,t,i),v=h[0],m=h[1],b=function(e,t,n,r){var o=ue(),i=ce();return t?e.generateAndInjectStyles(y,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,v),_=n,w=m.$as||t.$as||m.as||t.as||d,x=Oe(w),k=m!==t?p({},t,{},m):t,S={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?S.as=k[E]:(l?l(E,c.Z,w):!x||(0,c.Z)(E))&&(S[E]=k[E]));return t.style&&m.style!==t.style&&(S.style=p({},t.style,{},m.style)),S.className=Array.prototype.concat(u,f,b!==f?b:null,t.className,m.className).filter(Boolean).join(" "),S.ref=_,(0,o.createElement)(w,S)}(k,e,t,E)};return O.displayName=h,(k=o.forwardRef(O)).attrs=w,k.componentStyle=S,k.displayName=h,k.shouldForwardProp=x,k.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,k.styledComponentId=v,k.target=r?e.target:e,k.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),i=r&&r+"-"+(Oe(e)?e:Se(b(e)));return Ie(e,p({},o,{attrs:w,componentId:i}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),i&&f()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Le=function(e){return function e(t,n,o){if(void 0===o&&(o=y),!(0,r.isValidElementType)(n))return O(1,String(n));var i=function(){return t(n,o,_e.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,p({},o,{},r))},i.attrs=function(r){return e(t,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Ie,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)}));var Ne=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),H.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Be(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 i=_e.apply(void 0,[e].concat(n)),a="sc-global-"+Ee(JSON.stringify(i)),s=new Ne(i,a);function u(e){var t=ue(),n=ce(),r=(0,o.useContext)(je),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&c(i,e,t,r,n),(0,o.useLayoutEffect)((function(){if(!t.server)return c(i,e,t,r,n),function(){return s.removeStyles(i,t)}}),[i,e,t,r,n]),null}function c(e,t,n,r,o){if(s.isStatic)s.renderStyles(e,E,n,o);else{var i=p({},t,{theme:we(t,r,u.defaultProps)});s.renderStyles(e,i,n,o)}}return o.memo(u)}function Fe(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=_e.apply(void 0,[e].concat(n)).join(""),i=Ee(o);return new fe(i,o)}var Ze=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=B();
163return"<style "+[n&&'nonce="'+n+'"',w+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return O(2);var n=((t={})[w]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=B();return r&&(n.nonce=r),[o.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?O(2):o.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return O(3)},e}(),ze=function(e){var t=o.forwardRef((function(t,n){var r=(0,o.useContext)(je),i=e.defaultProps,a=we(t,r,i);return o.createElement(e,p({},t,{theme:a,ref:n}))}));return f()(t,e),t.displayName="WithTheme("+b(e)+")",t},Ve=function(){return(0,o.useContext)(je)},Ue={StyleSheet:H,masterSheet:ae},We=Le},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)}
163)),t&&t.focus()}}},63651:function(e,t,n){"use strict";var r=n(17422);e.exports=function(e,t,n,o){var i,a=new Error("Canceled");return new r((function(s,u,c){var l;e((function(e){return c()?r.reject(a):(l=t(e),n(l).then((function(e){if(c())throw a;return i=e()})))})).then((function(e){if(c())throw e.disconnect(),a;s(o(l,e))})).catch((function(e){u(e)}))}),(function(){i&&i.cancel()}))}},21060:function(e,t,n){"use strict";var r=n(39778).MediaStreamTrack,o=n(67476),i=o.guessBrowser,a=o.guessBrowserVersion,s=o.isCodecSupported,u=n(63651),c=n(53111),l=n(81299),f=n(99849),d=n(58363),p=n(20186),h=p.LocalAudioTrack,v=p.LocalDataTrack,m=p.LocalVideoTrack,y=n(27453),g=n(77081),b=n(89528),_=n(96971),w=_.asLocalTrack,x=_.buildLogLevels,k=_.filterObject,S=_.isNonArrayObject,E=n(62097),O=E.DEFAULT_ENVIRONMENT,P=E.DEFAULT_LOG_LEVEL,T=E.DEFAULT_LOGGER_NAME,C=E.DEFAULT_REALM,A=E.DEFAULT_REGION,j=E.WS_SERVER,R=E.SDK_NAME,M=E.SDK_VERSION,D=E.typeErrors,I=n(17422),L=n(13451),N=n(36372),B=n(324).kG,F="safari"===i()&&a(),Z=0,z=!1,V=!1;if(F){var U=F.major,W=F.minor;V=U<12||12===U&&W<1}var H=new Set([{didWarn:!1,shouldDelete:!0,name:"abortOnIceServersTimeout"},{didWarn:!1,shouldDelete:!0,name:"dscpTagging",newName:"enableDscp"},{didWarn:!1,shouldDelete:!0,name:"iceServersTimeout"},{didWarn:!1,shouldDelete:!1,name:"eventListener",newName:"Video.Logger"},{didWarn:!1,shouldDelete:!1,name:"logLevel",newName:"Video.Logger"}]),q=new Set([{didWarn:!1,shouldDelete:!1,name:"maxTracks",newName:"bandwidthProfile.video.clientTrackSwitchOffControl"},{didWarn:!1,shouldDelete:!1,name:"renderDimensions",newName:"bandwidthProfile.video.contentPreferencesMode"}]);function $(e,t,n){n.forEach((function(n){var r=n.didWarn,o=n.name,i=n.newName,a=n.shouldDelete;o in e&&"undefined"!==typeof e[o]&&(i&&a&&(e[i]=e[o]),a&&delete e[o],r||["error","off"].includes(t.level)||(t.warn('The ConnectOptions "'+o+'" is '+(i?'deprecated and scheduled for removal. Please use "'+i+'" instead.':"no longer applicable and will be ignored.")),n.didWarn=!0))}))}function G(e,t,n,r,o,i){var a=e.createLocalParticipantSignaling(n,r);return t.debug("Creating a new LocalParticipant:",a),new o.LocalParticipant(a,i,o)}function Y(e,t,n){var r=new g(t,n,e),o=e.log;return o.debug("Creating a new Room:",r),n.on("stateChanged",(function e(t){"disconnected"===t&&(o.info("Disconnected from Room:",r.toString()),n.removeListener("stateChanged",e))})),r}function K(e,t,n,r,o,i){return t.log.debug("Creating a new RoomSignaling"),n.connect(i._signaling,e,r,o,t)}function X(e,t){var n=e.log;return e.shouldStopLocalTracks=!e.tracks,e.shouldStopLocalTracks?n.info("LocalTracks were not provided, so they will be acquired automatically before connecting to the Room. LocalTracks will be released if connecting to the Room fails or if the Room is disconnected"):(n.info("Getting LocalTracks"),n.debug("Options:",e)),e.createLocalTracks(e).then((function(r){var o=t(r);return o.catch((function(){e.shouldStopLocalTracks&&(n.info("The automatically acquired LocalTracks will now be stopped"),r.forEach((function(e){e.stop()})))})),o}))}function Q(e){var t="string"===typeof e?{codec:e}:e;switch(t.codec.toLowerCase()){case"opus":return Object.assign({dtx:!0},t);case"vp8":return Object.assign({simulcast:!1},t);default:return t}}e.exports=function(e,t){if("undefined"===typeof t&&(t={}),!S(t))return I.reject(D.INVALID_TYPE("options","object"));var n,o=t.Log||N,i=t.loggerName||T,a=t.logLevel||P,p=x(a),g="[connect #"+ ++Z+"]";try{n=new o("default",g,p,i)}catch(ee){return I.reject(ee)}$(t,n,H);var _="auto"===t.preferredVideoCodecs;if(_&&(t.preferredVideoCodecs=[{codec:"VP8",simulcast:!0,adaptiveSimulcast:!0}]),t.maxVideoBitrate&&_)return n.error('ConnectOptions "maxVideoBitrate" is not compatible with "preferredVideoCodecs=auto"'),I.reject(D.ILLEGAL_INVOKE("connect",'ConnectOptions "maxVideoBitrate" is not compatible with "preferredVideoCodecs=auto"'));var E={};"string"===typeof(t=Object.assign({automaticSubscription:!0,dominantSpeaker:!1,enableDscp:!1,environment:O,eventListener:null,insights:!0,LocalAudioTrack:h,LocalDataTrack:v,LocalParticipant:l,LocalVideoTrack:m,Log:o,MediaStreamTrack:r,loggerName:i,logLevel:a,maxAudioBitrate:null,maxVideoBitrate:null,name:null,networkMonitor:!0,networkQuality:!1,preferredAudioCodecs:[],preferredVideoCodecs:[],realm:C,region:A,signaling:b},k(t))).wsServerInsights&&(E.gateway=t.wsServerInsights);var F=new(t.insights?f:d)(e,R,M,t.environment,t.realm,E),U=j(t.environment,t.region),W=new L(F,Date.now(),n,t.eventListener);if((t=Object.assign({eventObserver:W,wsServer:U},t)).log=n,V&&!z&&"error"!==n.logLevel&&"off"!==n.logLevel&&(z=!0,n.warn(["Supp
163ort for Safari 12.0 and below is limited because it does not support VP8.","This means you may experience codec issues in Group Rooms. You may also","experience codec issues in Peer-to-Peer (P2P) Rooms containing Android- or","iOS-based Participants who do not support H.264. However, P2P Rooms","with browser-based Participants should work. For more information, please","refer to this guide: https://www.twilio.com/docs/video/javascript-v2-developing-safari-11"].join(" "))),"string"!==typeof e)return I.reject(D.INVALID_TYPE("token","string"));var J=Object.assign({},t);if(delete J.name,"tracks"in t){if(!Array.isArray(t.tracks))return I.reject(D.INVALID_TYPE("options.tracks","Array of LocalAudioTrack, LocalVideoTrack or MediaStreamTrack"));try{t.tracks=t.tracks.map((function(e){return w(e,J)}))}catch(ee){return I.reject(ee)}}var ee=B(t.bandwidthProfile);if(ee)return I.reject(ee);t.clientTrackSwitchOffControl="disabled",t.contentPreferencesMode="disabled",t.bandwidthProfile&&(t.clientTrackSwitchOffControl="auto",t.contentPreferencesMode="auto",t.bandwidthProfile.video&&($(t.bandwidthProfile.video,n,q),"maxTracks"in t.bandwidthProfile.video?t.clientTrackSwitchOffControl="disabled":"manual"===t.bandwidthProfile.video.clientTrackSwitchOffControl?t.clientTrackSwitchOffControl="manual":t.clientTrackSwitchOffControl="auto","renderDimensions"in t.bandwidthProfile.video?t.contentPreferencesMode="disabled":"manual"===t.bandwidthProfile.video.contentPreferencesMode?t.contentPreferencesMode="manual":t.contentPreferencesMode="auto"));var te=new(0,t.signaling)(t.wsServer,t);n.info("Connecting to a Room"),n.debug("Options:",t);var ne=new c({maxAudioBitrate:t.maxAudioBitrate,maxVideoBitrate:t.maxVideoBitrate},_),re={audio:t.preferredAudioCodecs.map(Q),video:t.preferredVideoCodecs.map(Q)},oe=new y(S(t.networkQuality)?t.networkQuality:{});["audio","video"].forEach((function(e){return re[e].forEach((function(t){var r=t.codec;return s(r,e).then((function(t){return!t&&n.warn("The preferred "+e+' codec "'+r+'" will be ignored as it is not supported by the browser.')}))}))}));var ie=u(X.bind(null,t),G.bind(null,te,n,ne,oe,t),K.bind(null,e,t,te,ne,re),Y.bind(null,t));return ie.then((function(e){return F.connect(e.sid,e.localParticipant.sid),n.info("Connected to Room:",e.toString()),n.info("Room name:",e.name),n.debug("Room:",e),e.once("disconnected",(function(){return F.disconnect()})),e}),(function(e){F.disconnect(),ie._isCanceled?n.info("Attempt to connect to a Room was canceled"):n.info("Error while connecting to a Room:",e)})),ie}},79218:function(e,t,n){"use strict";var r=n(62097),o=r.DEFAULT_LOG_LEVEL,i=r.DEFAULT_LOGGER_NAME;function a(e,t){t=Object.assign({loggerName:i,logLevel:o},t);var n={};n.loggerName=t.loggerName,n.logLevel=t.logLevel,delete t.loggerName,delete t.logLevel;var r=t.createLocalTracks;return delete t.createLocalTracks,n[e]=!(Object.keys(t).length>0)||t,r(n).then((function(e){return e[0]}))}e.exports={audio:function(e){return a("audio",e)},video:function(e){return a("video",e)}}},14769:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=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(s){i=[6,s],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])}}},a=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};
163Object.defineProperty(t,"__esModule",{value:!0}),t.createLocalTracks=void 0;var u=n(28151),c=n(96971).buildLogLevels,l=n(39778),f=l.getUserMedia,d=l.MediaStreamTrack,p=n(20186),h=p.LocalAudioTrack,v=p.LocalDataTrack,m=p.LocalVideoTrack,y=n(36372),g=n(62097),b=g.DEFAULT_LOG_LEVEL,_=g.DEFAULT_LOGGER_NAME,w=g.typeErrors.INVALID_VALUE,x=n(26245),k=0;t.createLocalTracks=function(e){return o(this,void 0,void 0,(function(){var t,n,l,p,g,S,E,O,P,T,C,A,j,R=this;return i(this,(function(M){switch(M.label){case 0:if(n=r({audio:t=!(e&&("audio"in e||"video"in e)),getUserMedia:f,loggerName:_,logLevel:b,LocalAudioTrack:h,LocalDataTrack:v,LocalVideoTrack:m,MediaStreamTrack:d,Log:y,video:t},e),l="[createLocalTracks #"+ ++k+"]",p=c(n.logLevel),g=new n.Log("default",l,p,n.loggerName),delete(S=Object.assign({log:g},n)).name,!1===n.audio&&!1===n.video)return g.info("Neither audio nor video requested, so returning empty LocalTracks"),[2,[]];if(n.tracks)return g.info("Adding user-provided LocalTracks"),g.debug("LocalTracks:",n.tracks),[2,n.tracks];if((E={audio:"object"===typeof n.audio&&n.audio.name?{name:n.audio.name}:{defaultDeviceCaptureMode:"auto"},video:"object"===typeof n.video&&n.video.name?{name:n.video.name}:{}}).audio.isCreatedByCreateLocalTracks=!0,E.video.isCreatedByCreateLocalTracks=!0,"object"===typeof n.audio)if("boolean"===typeof n.audio.workaroundWebKitBug1208516&&(E.audio.workaroundWebKitBug1208516=n.audio.workaroundWebKitBug1208516),"noiseCancellationOptions"in n.audio&&(O=n.audio.noiseCancellationOptions,delete n.audio.noiseCancellationOptions),"defaultDeviceCaptureMode"in n.audio){if(["auto","manual"].every((function(e){return e!==n.audio.defaultDeviceCaptureMode})))throw w("CreateLocalAudioTrackOptions.defaultDeviceCaptureMode",["auto","manual"]);E.audio.defaultDeviceCaptureMode=n.audio.defaultDeviceCaptureMode}else E.audio.defaultDeviceCaptureMode="auto";"object"===typeof n.video&&"boolean"===typeof n.video.workaroundWebKitBug1208516&&(E.video.workaroundWebKitBug1208516=n.video.workaroundWebKitBug1208516),"object"===typeof n.audio&&delete n.audio.name,"object"===typeof n.video&&delete n.video.name,P={audio:n.audio,video:n.video},T="object"===typeof n.audio&&n.audio.workaroundWebKitBug180748,M.label=1;case 1:return M.trys.push([1,4,,5]),[4,T?x(g,n.getUserMedia,P):n.getUserMedia(P)];case 2:return C=M.sent(),A=s(s([],a(C.getAudioTracks())),a(C.getVideoTracks())),g.info("Call to getUserMedia successful; got tracks:",A),[4,Promise.all(A.map((function(e){return o(R,void 0,void 0,(function(){var t,n,o;return i(this,(function(i){switch(i.label){case 0:return"audio"===e.kind&&O?[4,u.applyNoiseCancellation(e,O,g)]:[3,2];case 1:return t=i.sent(),n=t.cleanTrack,o=t.noiseCancellation,[2,new S.LocalAudioTrack(n,r(r(r({},E.audio),S),{noiseCancellation:o}))];case 2:if("audio"===e.kind)return[2,new S.LocalAudioTrack(e,r(r({},E.audio),S))];i.label=3;case 3:return[2,new S.LocalVideoTrack(e,r(r({},E.video),S))]}}))}))})))];case 3:return[2,M.sent()];case 4:throw j=M.sent(),g.warn("Call to getUserMedia failed:",j),j;case 5:return[2]}}
163))}))}},39538:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(65069),i=n(32003),a=function(e){function t(t){var n=e.call(this,t.label,t.maxPacketLifeTime,t.maxRetransmits,t.ordered)||this;return Object.defineProperties(n,{_dataChannel:{value:t}}),t.binaryType="arraybuffer",t.addEventListener("message",(function(e){n.emit("message",e.data)})),t.addEventListener("close",(function(){n.emit("close")})),n}return r(t,e),t.prototype.stop=function(){this._dataChannel.close(),e.prototype.stop.call(this)},t.prototype.toDataTransport=function(){return new i(this._dataChannel)},t}(o);e.exports=a},34716:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(65069),i=n(96971).makeUUID,a=function(e){function t(t,n,r){var o=e.call(this,i(),t,n,r)||this;return Object.defineProperties(o,{_clones:{value:new Set},_dataChannels:{value:new Set}}),o}return r(t,e),t.prototype._addClone=function(e){this._clones.add(e)},t.prototype.removeClone=function(e){this._clones.delete(e)},t.prototype.addDataChannel=function(e){return this._dataChannels.add(e),this},t.prototype.clone=function(){var e=this,n=new t(this.maxPacketLifeTime,this.maxRetransmits,this.ordered);return this._addClone(n),n.once("stopped",(function(){return e.removeClone(n)})),n},t.prototype.removeDataChannel=function(e){return this._dataChannels.delete(e),this},t.prototype.send=function(e){return this._dataChannels.forEach((function(t){try{t.send(e)}catch(n){}})),this._clones.forEach((function(t){try{t.send(e)}catch(n){}})),this},t.prototype.stop=function(){this._dataChannels.forEach((function(e){return e.close()})),this._clones.forEach((function(e){return e.stop()})),e.prototype.stop.call(this)},t}(o);e.exports=a},65069:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,o){var i=e.call(this,t,"data")||this;return Object.defineProperties(i,{maxPacketLifeTime:{enumerable:!0,value:n},maxRetransmits:{enumerable:!0,value:r},ordered:{enumerable:!0,value:o}}),i}return r(t,e),t}(n(69430));e.exports=o},32003:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t){var n=e.call(this)||this;return Object.defineProperties(n,{_dataChannel:{value:t},_messageQueue:{value:[]}}),t.addEventListener("open",(function(){n._messageQueue.splice(0).forEac
163h((function(e){return n._publish(e)}))})),t.addEventListener("message",(function(e){var t=e.data;try{var r=JSON.parse(t);n.emit("message",r)}catch(o){}})),n.publish({type:"ready"}),n}return r(t,e),t.prototype._publish=function(e){var t=JSON.stringify(e);try{this._dataChannel.send(t)}catch(n){}},t.prototype.publish=function(e){var t=this._dataChannel;return"closing"!==t.readyState&&"closed"!==t.readyState&&("connecting"===t.readyState?(this._messageQueue.push(e),!0):(this._publish(e),!0))},t}(n(17187).EventEmitter);e.exports=o},53111:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this)||this;return t=Object.assign({maxAudioBitrate:null,maxVideoBitrate:null},t),Object.defineProperties(r,{maxAudioBitrate:{value:t.maxAudioBitrate,writable:!0},maxVideoBitrate:{value:t.maxVideoBitrate,writable:!0},adaptiveSimulcast:{value:n}}),r}return r(t,e),t.prototype.toJSON=function(){return{maxAudioBitrate:this.maxAudioBitrate,maxVideoBitrate:this.maxVideoBitrate}},t.prototype.update=function(e){var t=this;e=Object.assign({maxAudioBitrate:this.maxAudioBitrate,maxVideoBitrate:this.maxVideoBitrate},e),["maxAudioBitrate","maxVideoBitrate"].reduce((function(n,r){return t[r]!==e[r]&&(t[r]=e[r],n=!0),n}),!1)&&this.emit("changed")},t}(n(17187).EventEmitter);e.exports=o},73029:function(e,t,n){"use strict";var r=n(17187).EventEmitter,o=n(96971).hidePrivateAndCertainPublicPropertiesInClass;e.exports=o(r,["domain"])},87255:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},i=n(17187).EventEmitter,a=function(){function e(){Object.defineProperties(this,{_eventEmitter:{value:new i}})}return e.prototype.dispatchEvent=function(e){return this._eventEmitter.emit(e.type,e)},e.prototype.addEventListener=function(){var e;return(e=this._eventEmitter).addListener.apply(e,o([],r(arguments)))},e.prototype.removeEventListener=function(){var e;return(e=this._eventEmitter).removeListener.apply(e,o([],r(arguments)))},e}();e.exports=a},98445:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(14769),i=n(46200),a={connect:n(21060),createLocalAudioTrack:n(79218).audio,createLocalVideoTrack:n(79218).video,isSupported:n(71345)(),version:n(1730).version,Logger:n(85021),LocalAudioTrack:n(20186).LocalAudioTrack,LocalDataTrack:n(20186).LocalDataTrack,LocalVideoTrack:n(20186).LocalVideoTrack};var s=a.isSupported,u=a.version,c=a.Logger,l=a.LocalAudioTrack,f=a.LocalVideoTrack,d=a.LocalDataTrack;e.exports={connect:function(e,t){var n=r({createLocalTracks:o.createLocalTracks},t);return a.connect(e,n)},createLocalAudioTrack:function(e){var t=r({createLocalTracks:o.createLocalTracks},e);return a.createLocalAudioTrack(t)},createLocalVideoTrack:function(e){var t=r({createLocalTracks:o.createLocalTracks},e);return a.createLocalVideoTrack(t)},createLocalTracks:o.createLocalTracks,runPreflight:i.runPreflight,isSupported:s,version:u,Logger:c,LocalAudioTrack:l,LocalVideoTrack:f,LocalDataTrack:d}},81299:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(39778).MediaStreamTrack,i=n(96971),a=i.asLocalTrack,s=i.asLocalTrackPublication,u=i.trackClass,c=n(62097),l=c.typeErrors,f=c.trackPriority,d=n(324).Wv,p=n(20186),h=p.LocalAudioTrack,v=p.LocalDataTrack,m=p.LocalVideoTrack,y=n(87959),g=n(55197),b=n(73445),_=function(e){function t(t,n,r){var i=this,a=(r=Object.assign({LocalAudioTrack:h,LocalVideoTrack:m,LocalDataTrack:v,MediaStreamTrack:o,LocalAudioTrackPublication:y,LocalVideoTrackPublication:b,LocalDataTrackPublication:g,shouldStopLocalTracks:!1,tracks:n},r)).shouldStopLocalTracks?new Set(n.filter((function(e){return"data"!==e.kind}))):new Set;return i=e.call(this,t,r)||this,Object.defineProperties(i,{_eventObserver:{value:r.eventObserver},_LocalAudioTrack:{value:r.LocalAudioTrack},_LocalDataTrack:{value:r.LocalDataTrack},_LocalVideoTrack:{value:r.LocalVideoTrack},_MediaStreamTrack:{value:r.MediaStreamTrack},_LocalAudioTrackPublication:{value:r.LocalAudioTrackPublication},_LocalDataTrackPublication:{value:r.LocalDataTrackPublication},_LocalVideoTrackPublication:{value:r.LocalVideoTrackPublication},_tracksToStop:{value:a},signalingRegion:{enumerable:!0,get:function(){return t.signalingRegion}}}),i._handleTrackSignalingEvents(),i}return r(t,e),t.prototype._addTrack=function(t,n,r){var o=e.prototype._addTrack.call(this,t,n);return o&&"disconnected"!==this.state&&this._addLocalTrack(t,r),o},t.prototype._addLocalTrack=function(e,t){var n,r=null===(n=e.noiseCancellation)||void 0===n?void 0:n.vendor;this._signaling.addTrack(e._trackSender,e.name,t,r),this._log.info("Added a new "+u(e,!0)+":",e.id),this._log.debug(u(e,!0)+":",e)},t.prototype._removeTrack=function(t,n){var r=e.prototype._removeTrack.call(this,t,n);return r&&"disconnected"!==this.state&&(this._signaling.removeTrack(t._trackSender),this._log.info("Removed a "+u(t,!0)+":",t.id),this._log.debug(u(t,!0)+":",t)),r},t.prototype._getTrackEvents=function(){return e.prototype._getTrackEvents.call(this).concat([["disabled","trackDisabled"],["enabled","trackEnabled"],["stopped","trackStopped"]])},t.prototype.toString=function(){return"[LocalParticipant #"+this._instanceId+(this.sid?": "+this.sid:"")+"]"},t.prototype._handleTrackSignalingEvents=function(){var e=this,t=this._log;if("disconnected"!==this.state){var n=function(n){var r=e._signaling.getPublication(n._trackSender);r&&(r.disable(),t.debug("Disabled the "+u(n,!0)+":",n.id))},r=function(n){var r=e._signaling.getPublication(n._trackSender);r&&(r.enable(),t.debug("Enabled the "+u(n,!0)+":",n.id))},o=function(t){var n=e._signaling.getPublication(t._trackSender);return n&&n.stop(),n},i=function(a){t.debug("Transitioned to state:",a),"disconnected"===a?(t.debug("Removing LocalTrack event listeners"),e._signaling.removeListener("stateChanged",i),e.removeListener("trackDisabled",n),e.removeListener("trackEnabled",r),e.removeListener("trackStopped",o),e._tracks.forEach((function(e){var t=o(e);t&&e._trackSender.removeClone(t._trackTransceiver)})),t.info("LocalParticipant disconnected. Stopping "+e._tracksToStop.size+" automatically-acquired LocalTracks"),e._tracksToStop.forEac
163h((function(e){e.stop()}))):"connected"===a&&(t.info("reconnected"),setTimeout((function(){return e.emit("reconnected")}),0))};this.on("trackDisabled",n),this.on("trackEnabled",r),this.on("trackStopped",o),this._signaling.on("stateChanged",i),this._tracks.forEach((function(n){e._addLocalTrack(n,f.PRIORITY_STANDARD),e._getOrCreateLocalTrackPublication(n).catch((function(e){t.warn("Failed to get or create LocalTrackPublication for "+n+":",e)}))}))}},t.prototype._getOrCreateLocalTrackPublication=function(e){var t=w(this.tracks,e);if(t)return Promise.resolve(t);var n=this._log,r=this,o=this._signaling.getPublication(e._trackSender);return o?new Promise((function(i,a){o.on("updated",(function c(){var l=o.error;if(l)return o.removeListener("updated",c),n.warn("Failed to publish the "+u(e,!0)+": "+l.message),r._removeTrack(e,e.id),setTimeout((function(){r.emit("trackPublicationFailed",l,e)})),void a(l);if(!r._tracks.has(e.id))return o.removeListener("updated",c),void a(new Error("The "+e+" was unpublished"));if(o.sid){o.removeListener("updated",c);var f={log:n,LocalAudioTrackPublication:r._LocalAudioTrackPublication,LocalDataTrackPublication:r._LocalDataTrackPublication,LocalVideoTrackPublication:r._LocalVideoTrackPublication};t=w(r.tracks,e);var d=function(e){return r.emit("trackWarning",e,t)},p=function(){return r.emit("trackWarningsCleared",t)};t||(t=s(e,o,(function(e){t.removeListener("trackWarning",d),t.removeListener("trackWarningsCleared",p),r.unpublishTrack(e.track)}),f),r._addTrackPublication(t)),t.on("warning",d),t.on("warningsCleared",p);var h=r._signaling.state;"connected"!==h&&"connecting"!==h||(e._processorEventObserver&&e._processorEventObserver.on("event",(function(e){r._eventObserver.emit("event",{name:e.name,payload:e.data,group:"video-processor",level:"info"})})),e.processedTrack&&(e._captureFrames(),e._setSenderMediaStreamTrack(!0))),"connected"===h&&setTimeout((function(){r.emit("trackPublished",t)})),i(t)}}))})):Promise.reject(new Error("Unexpected error: The "+e+" cannot be published"))},t.prototype.publishTrack=function(e,t){var n,r=w(this.tracks,e);if(r)return Promise.resolve(r);t=Object.assign({log:this._log,priority:f.PRIORITY_STANDARD,LocalAudioTrack:this._LocalAudioTrack,LocalDataTrack:this._LocalDataTrack,LocalVideoTrack:this._LocalVideoTrack,MediaStreamTrack:this._MediaStreamTrack},t);try{n=a(e,t)}catch(c){return Promise.reject(c)}var o=n.noiseCancellation,i=this._signaling.audioProcessors;o&&!i.includes(o.vendor)&&(this._log.warn(o.vendor+" is not supported in this room. disabling it permanently"),o.disablePermanently());var s=Object.values(f);if(!s.includes(t.priority))return Promise.reject(l.INVALID_VALUE("LocalTrackPublishOptions.priority",s));var u=this._addTrack(n,n.id,t.priority)||this._tracks.get(n.id);return this._getOrCreateLocalTrackPublication(u)},t.prototype.publishTracks=function(e){if(!Array.isArray(e))throw l.INVALID_TYPE("tracks","Array of LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack");return Promise.all(e.map(this.publishTrack,this))},t.prototype.setBandwidthProfile=function(){this._log.warn("setBandwidthProfile is not implemented yet and may be available in future versions of twilio-video.js")},t.prototype.setNetworkQualityConfiguration=function(e){if("object"!==typeof e||null===e)throw l.INVALID_TYPE("networkQualityConfiguration","NetworkQualityConfiguration");return["local","remote"].forEach((function(t){if(t in e&&("number"!==typeof e[t]||isNaN(e[t])))throw l.INVALID_TYPE("networkQualityConfiguration."+t,"number")})),this._signaling.setNetworkQualityConfiguration(e),this},t.prototype.setParameters=function(e){if("undefined"!==typeof e&&"object"!==typeof e)throw l.INVALID_TYPE("encodingParameters","EncodingParameters, null or undefined");if(e){if(this._signaling.getParameters().adaptiveSimulcast&&e.maxVideoBitrate)throw l.INVALID_TYPE("encodingParameters",'encodingParameters.maxVideoBitrate is not compatible with "preferredVideoCodecs=auto"');["maxAudioBitrate","maxVideoBitrate"].forEach((function(t){if("undefined"!==typeof e[t]&&"number"!==typeof e[t]&&null!==e[t])throw l.INVALID_TYPE("encodingParameters."+t,"number, null or undefined")}))}else null===e&&(e={maxAudioBitrate:null,maxVideoBitrate:null});return this._signaling.setParameters(e),this},t.prototype.unpublishTrack=function(e){d(e,{LocalAudioTrack:this._LocalAudioTrack,LocalDataTrack:this._LocalDataTrack,LocalVideoTrack:this._LocalVideoTrack,MediaStreamTrack:this._MediaStreamTrack});var t=this._tracks.get(e.id);if(!t)return null;if(this._signaling.getPublication(t._trackSender).publishFailed(new Error("The "+t+" was unpublished")),!(t=this._removeTrack(t,t.id)))return null;var n=w(this.tracks,t);return n&&this._removeTrackPublication(n),n},t.prototype.unpublishTracks=function(e){var t=this;if(!Array.isArray(e))throw l.INVALID_TYPE("tracks","Array of LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack");return e.reduce((function(e,n){var r=t.unpublishTrack(n);return r?e.concat(r):e}),[])},t}(n(48948));function w(e,t){return Array.from(e.values()).find((function(e){return e.track===t||e.track.mediaStreamTrack===t}))||null}e.exports=_},4592:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.attach=function(){return e.prototype.attach.apply(this,arguments)},t.prototype.detach=function(){return e.prototype.detach.apply(this,arguments)},t}(n(39361));e.exports=o},20186:function(e,t,n){"use strict";e.exports={LocalAudioTrack:n(71662),LocalVideoTrack:n(82987),LocalDataTrack:n(94352)}},71662:function(e,t,n){"use strict";var r=n(14526),o=n(52935);function i(e,t){var n=new o(e,t);return Object.setPrototypeOf(n,i.prototype),n}r(i,o),e.exports=i},94352:function(e,t,n){"use strict";var r=n(14526),o=n(40429);function i(e){var t=new o(e);return Object.setPrototypeOf(t,i.prototype),t}r(i,o),e.exports=i},82987:function(e,t,n){"use strict";var r=n(14526),o=n(10566);function i(e,t){var n=new o(e,t);return Object.setPrototypeOf(n,i.prototype),n}r(i,o),e.exports=i},74958:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(73029),i=n(96971),a=i.buildLogLevels,s=i.valueToJSON,u=n(62097).DEFAULT_LOG_LEVEL,c=n(36372),l=0,f=function(e){function t(t,n,r){var o;r=Object.assign({name:t,log:null,logLevel:u},r),o=e.call(this)||this;var i=String(r.name),s=a(r.logLevel),f=r.log?r.log.createLog("media",o):new c("media",o,s,r.loggerName);return Object.defineProperties(o,{_instanceId:{value:++l},_log:{value:f},kind:{enumerable:!0,value:n},name:{enumerable:!0,value:i}}),o}return r(t,e),t.prototype.toJSON=function(){return s(this)},t}(o);e.exports=f},52935:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(49943).isIOS,i=n(48685),a=n(67476).isIOSChrome,s=n(4592),u=function(e){function t(t,n){var r=this,i=(null===n||void 0===n?void 0:n.noiseCancellation)||null,a=(r=e.call(this,t,n)||this)._log,s=t.label,u=void 0===s?"":s,c=t.getSettings(),l=c.deviceId,f=void 0===l?"":l,d=c.groupId,p=void 0===d?"":d;return Object.defineProperties(r,{_currentDefaultDeviceInfo:{value:{deviceId:f,groupId:p,label:u},writable:!0},_defaultDeviceCaptureMode:{value:!o()&&r._isCreatedByCreateLocalTracks&&"object"===typeof navigator&&"object"===typeof navigator.mediaDevices&&"function"===typeof navigator.mediaDevices.addEventListener&&"function"===typeof navigator.mediaDevices.enumerateDevices?(null===n||void 0===n?void 0:n.defaultDeviceCaptureMode)||"auto":"manual"},_onDeviceChange:{value:function(){navigator.mediaDevices.enumerateDevices().then((function(e){var t=e.find((function(e){var t=e.deviceId;return"audioinput"===e.kind&&"default"!==t}));t&&["deviceId","groupId"].some((function(e){return t[e]!==r._currentDefaultDeviceInfo[e]}))&&(a.info("Default device changed, restarting the LocalAudioTrack"),a.debug('Old default device: "'+r._currentDefaultDeviceInfo.deviceId+'" => "'+r._currentDefaultDeviceInfo.label+'"'),a.debug('New default device: "'+t.deviceId+'" => "'+t.label+'"'),r._currentDefaultDeviceInfo=t,r._restartDefaultDevice().catch((function(e){return a.warn("Failed to restart: "+e.message)})))}),(function(e){a.warn("Failed to run enumerateDevices(): "+e.message)}))}},_restartOnDefaultDeviceChangeCleanup:{value:null,writable:!0},noiseCancellation:{enumerable:!0,value:i,writable:!1}}),a.debug("defaultDeviceCaptureMode:",r._defaultDeviceCaptureMode),r._maybeRestartOnDefaultDeviceChange(),r}return r(t,e),t.prototype.toString=function(){return"[LocalAudioTrack #"+this._instanceId+": "+this.id+"]"},t.prototype.attach=function(t){return(t=e.prototype.attach.call(this,t)).muted=!0,t},t.prototype._end=function(){return e.prototype._end.apply(this,arguments)},t.prototype._maybeRestartOnDefaultDeviceChange=function(){var e=this,t=this,n=t._constraints,r=t._defaultDeviceCaptureMode,o=t._log,i=(this.noiseCancellation?this.noiseCancellation.sourceTrack:this.mediaStreamTrack).getSettings().deviceId,a=function(e){return e!==i||"default"===e},s=function e(t){return void 0===t&&(t={}),"string"===typeof t?a(t):Array.isArray(t)?t.every(a):t.exact?e(t.exact):!t.ideal||e(t.ideal)}(n.deviceId);"auto"===r&&s?this._restartOnDefaultDeviceChangeCleanup||(o.info("LocalAudioTrack will be restarted if the default device changes"),navigator.mediaDevices.addEventListener("devicechange",this._onDeviceChange),this._restartOnDefaultDeviceChangeCleanup=function(){o.info("Cleaning up the listener to restart the LocalAudioTrack if the default device changes"),navigator.mediaDevices.removeEventListener("devicechange",e._onDeviceChange),e._restartOnDefaultDeviceChangeCleanup=null}):(o.info("LocalAudioTrack will NOT be restarted if the default device changes"),this._restartOnDefaultDeviceChangeCleanup&&this._restartOnDefaultDeviceChangeCleanup())},t.prototype._reacquireTrack=function(t){var n=this;return this._log.debug("_reacquireTrack: ",t),this.noiseCancellation?this.noiseCancellation.reacquireTrack((function(){return e.prototype._reacquireTrack.call(n,t)})):e.prototype._reacquireTrack.call(this,t)},t.prototype._restartDefaultDevice=function(){var e=this,t=Object.assign({},this._constraints),n=Object.assign({},t,{deviceId:this._currentDefaultDeviceInfo.deviceId});return this.restart(n).then((function(){e._constraints=t,e._maybeRestartOnDefaultDeviceChange()}))},t.prototype._setMediaStreamTrack=function(t){var n=this,r=this._log,o=this.noiseCancellation,s=e.prototype._setMediaStreamTrack.call(this,t);return a()&&o&&(r.debug("iOS Chrome detected, checking if the restarted Krisp audio is silent"),s=s.then((function(){return i(n._dummyEl)})).then((function(t){return r.debug("Krisp audio is "+(t?"silent, using source audio":"not silent")),t&&o.disablePermanently().then((function(){return e.prototype._setMediaStreamTrack.call(n,o.sourceTrack)}))}))),s},t.prototype.disable=function(){return e.prototype.disable.apply(this,arguments)},t.prototype.enable=function(){return e.prototype.enable.apply(this,arguments)},t.prototype.restart=function(){return e.prototype.restart.apply(this,arguments)},t.prototype.stop=function(){return this.noiseCancellation&&this.noiseCancellation.stop(),this._restartOnDefaultDeviceChangeCleanup&&this._restartOnDefaultDeviceChangeCleanup(),e.prototype.stop.apply(this,arguments)},t}(n(85820)(s));e.exports=u},87959:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,o){return e.call(this,t,n,r,o)||this}return r(t,e),t.prototype.toString=function(){return"[LocalAudioTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(n(6345));e.exports=o},40429:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(74958),i=n(34716),a=function(e){function t(t){var n,r=new(0,(t=Object.assign({DataTrackSender:i,maxPacketLifeTime:null,maxRetransmits:null,ordered:!0}
163,t)).DataTrackSender)(t.maxPacketLifeTime,t.maxRetransmits,t.ordered);return n=e.call(this,r.id,"data",t)||this,Object.defineProperties(n,{_trackSender:{value:r},id:{enumerable:!0,value:r.id},maxPacketLifeTime:{enumerable:!0,value:t.maxPacketLifeTime},maxRetransmits:{enumerable:!0,value:t.maxRetransmits},ordered:{enumerable:!0,value:t.ordered},reliable:{enumerable:!0,value:null===t.maxPacketLifeTime&&null===t.maxRetransmits}}),n}return r(t,e),t.prototype.send=function(e){this._trackSender.send(e)},t}(o);e.exports=a},55197:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,o){return e.call(this,t,n,r,o)||this}return r(t,e),t.prototype.toString=function(){return"[LocalDataTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(n(6345));e.exports=o},85820:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(39778).getUserMedia,i=n(49943).isIOS,a=n(96971),s=a.capitalize,u=a.defer,c=a.waitForSometime,l=a.waitForEvent,f=n(62097).typeErrors.ILLEGAL_INVOKE,d=n(48685),p=n(38815),h=n(68379),v=n(74919),m=n(26245),y=n(42259);function g(e){var t=e._log,n=e.kind,r=e._noiseCancellation,o={audio:d,video:p}[n],i=function(){return r?r.sourceTrack:e.mediaStreamTrack},a=e._dummyEl,s=i(),f=null;function m(){var n=e._workaroundWebKitBug1208516Cleanup,r=e.isStopped&&!!n,s=i().muted;return Promise.resolve().then((function(){return"visible"===document.visibilityState&&!f&&(s||r||a.play().then((function(){return o(a)})).then((function(e){return e?t.warn("Silence detected"):t.info("Non-silence detected"),e})).catch((function(e){t.warn("Failed to detect silence:",e)})).finally((function(){e.processedTrack||a.pause()})))}))}function y(){return Promise.race([l(s,"unmute"),c(50)]).then((function(){return m()})).then((function(r){return r&&!f&&(f=u(),e._restart().finally((function(){a=e._dummyEl,_(),s=i(),b(),f.resolve(),f=null})).catch((function(e){t.error("failed to restart track: ",e)}))),(f&&f.promise||Promise.resolve()).finally((function(){return v.resolveDeferred(n)}))})).catch((function(e){t.error("error in maybeRestart: "+e.message)}))}function g(){var t=e._log,n=e.kind;t.info("Muted"),t.debug("LocalMediaTrack:",e),v.startDeferred(n)}function b(){s.addEventListener("ended",y),s.addEventListener("mute",g),s.addEventListener("unmute",y)}function _(){s.removeEventListener("ended",y),s.removeEventListener("mute",g),s.removeEventListener("unmute",y)}var w=function(e){return!!e&&y()};return h.onVisibilityChange(1,w),b(),function(){h.offVisibilityChange(1,w),_()}}e.exports=function(e){return function(e){function t(t,n){var r=this,a=i()&&"object"===typeof document&&"function"===typeof document.addEventListener&&"string"===typeof document.visibilityState;n=Object.assign({getUserMedia:o,isCreatedByCreateLocalTracks:!1,workaroundWebKitBug1208516:a,gUMSilentTrackWorkaround:m},n);var s=new y(t),u=s.kind;return r=e.call(this,s,n)||this,Object.defineProperties(r,{_constraints:{value:"object"===typeof n[u]?n[u]:{},writable:!0},_getUserMedia:{value:n.getUserMedia},_gUMSilentTrackWorkaround:{value:n.gUMSilentTrackWorkaround},_eventsToReemitters:{value:new Map([["muted",function(){return r.emit("muted",r)}],["unmuted",function(){return r.emit("unmuted",r)}]])},_workaroundWebKitBug1208516:{value:n.workaroundWebKitBug1208516},_workaroundWebKitBug1208516Cleanup:{value:null,writable:!0},_didCallEnd:{value:!1,writable:!0},_isCreatedByCreateLocalTracks:{value:n.isCreatedByCreateLocalTracks},_noiseCancellation:{value:n.noiseCancellation||null},_trackSender:{value:s},id:{enumerable:!0,value:s.id},isEnabled:{enumerable:!0,get:function(){return s.enabled}},isMuted:{enumerable:!0,get:function(){return s.muted}},isStopped:{enumerable:!0,get:function(){return"ended"===s.readyState}}}),r._workaroundWebKitBug1208516&&(r._workaroundWebKitBug1208516Cleanup=g(r)),r._reemitTrackSenderEvents(),r}return r(t,e),t.prototype._end=function(){var t=this;this._didCallEnd||(e.prototype._end.call(this),this._didCallEnd=!0,this._eventsToReemitters.forEac
163h((function(e,n){return t._trackSender.removeListener(n,e)})),this.emit("stopped",this))},t.prototype._initialize=function(){this._didCallEnd&&(this._didCallEnd=!1),this._eventsToReemitters&&this._reemitTrackSenderEvents(),e.prototype._initialize.call(this)},t.prototype._reacquireTrack=function(e){var t,n=this,r=n._getUserMedia,o=n._gUMSilentTrackWorkaround,i=n._log,a=n.mediaStreamTrack.kind;i.info("Re-acquiring the MediaStreamTrack"),i.debug("Constraints:",e);var s=Object.assign({audio:!1,video:!1},((t={})[a]=e,t));return(this._workaroundWebKitBug1208516Cleanup?o(i,r,s):r(s)).then((function(e){return e.getTracks()[0]}))},t.prototype._reemitTrackSenderEvents=function(){var e=this;this._eventsToReemitters.forEach((function(t,n){return e._trackSender.on(n,t)})),this._trackSender.dequeue("muted"),this._trackSender.dequeue("unmuted")},t.prototype._restart=function(e){var t=this,n=this._log;return e=e||this._constraints,this._stop(),this._reacquireTrack(e).catch((function(t){throw n.error("Failed to re-acquire the MediaStreamTrack:",{error:t,constraints:e}),t})).then((function(r){return n.info("Re-acquired the MediaStreamTrack"),n.debug("MediaStreamTrack:",r),t._constraints=Object.assign({},e),t._setMediaStreamTrack(r)}))},t.prototype._setMediaStreamTrack=function(e){var t=this;return e.enabled=this.mediaStreamTrack.enabled,this._stop(),(this._unprocessedTrack?Promise.resolve().then((function(){t._unprocessedTrack=e})):this._trackSender.setMediaStreamTrack(e).catch((function(n){t._log.warn("setMediaStreamTrack failed:",{error:n,mediaStreamTrack:e})}))).then((function(){t._initialize(),t._getAllAttachedElements().forEach((function(e){return t._attach(e)}))}))},t.prototype._stop=function(){return this.mediaStreamTrack.stop(),this._end(),this},t.prototype.enable=function(e){return(e="boolean"!==typeof e||e)!==this.mediaStreamTrack.enabled&&(this._log.info((e?"En":"Dis")+"abling"),this.mediaStreamTrack.enabled=e,this.emit(e?"enabled":"disabled",this)),this},t.prototype.disable=function(){return this.enable(!1)},t.prototype.restart=function(e){var t=this,n=this.kind;if(!this._isCreatedByCreateLocalTracks)return Promise.reject(f("restart","can only be called on a Local"+s(n)+"Track that is created using createLocalTracks or createLocal"+s(n)+"Track."));this._workaroundWebKitBug1208516Cleanup&&(this._workaroundWebKitBug1208516Cleanup(),this._workaroundWebKitBug1208516Cleanup=null);var r=this._restart(e);return this._workaroundWebKitBug1208516&&(r=r.finally((function(){t._workaroundWebKitBug1208516Cleanup=g(t)}))),r},t.prototype.stop=function(){return this._log.info("Stopping"),this._workaroundWebKitBug1208516Cleanup&&(this._workaroundWebKitBug1208516Cleanup(),this._workaroundWebKitBug1208516Cleanup=null),this._stop()},t}(e)}},6345:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(56379),s=n(62097),u=s.typeErrors,c=s.trackPriority,l=function(e){function t(t,n,r,a){var s=e.call(this,n.name,t.sid,a)||this;return Object.defineProperties(s,{_reemitSignalingEvent:{value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.emit.apply(s,i([e&&e.length?"warning":"warningsCleared"],o(e)))}},_reemitTrackEvent:{value:function(){return s.emit(s.isTrackEnabled?"trackEnabled":"trackDisabled")}},_signaling:{value:t},_unpublish:{value:r},isTrackEnabled:{enumerable:!0,get:function(){return"data"===this.track.kind||this.track.isEnabled}},kind:{enumerable:!0,value:n.kind},priority:{enumerable:!0,get:function(){return t.updatedPriority}},track:{enumerable:!0,value:n}}),["disabled","enabled"].forEach((function(e){return n.on(e,s._reemitTrackEvent)})),["warning","warningsCleared"].forEach((function(e){return t.on(e,s._reemitSignalingEvent)})),s}return r(t,e),t.prototype.toString=function(){return"[LocalTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t.prototype.setPriority=function(e){var t=Object.values(c);if(!t.includes(e))throw u.INVALID_VALUE("priority",t);return this._signaling.setPriority(e),this},t.prototype.unpublish=function(){var e=this;return["disabled","enabled"].forEach((function(t){return e.track.removeListener(t,e._reemitTrackEvent)})),["warning","warningsCleared"].forEach((function(t){return e._signaling.removeListener(t,e._reemitSignalingEvent)})),this._unpublish(this),this},t}(a);e.exports=l},10566:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(49943).isIOS,i=n(38815),a=function(e){function t(t,n){var r=this;return n=Object.assign({workaroundSilentLocalVideo:o()&&"undefined"!==typeof document&&"function"===typeof document.createElement},n),r=e.call(this,t,n)||this,Object.defineProperties(r,{_workaroundSilentLocalVideo:{value:n.workaroundSilentLocalVideo?s:null},_workaroundSilentLocalVideoCleanup:{value:null,writable:!0}}),r._workaroundSilentLocalVideo&&(r._workaroundSilentLocalVideoCleanup=r._workaroundSilentLocalVideo(r,document)),r}return r(t,e),t.prototype.toString=function(){return"[LocalVideoTrack #"+this._instanceId+": "+this.id+"]"},t.prototype._checkIfCanCaptureFrames=function(){return e.prototype._checkIfCanCaptureFrames.call(this,this._trackSender.isPublishing)},t.prototype._end=function(){return e.prototype._end.apply(this,arguments)},t.prototype._setSenderMediaStreamTrack=function(e){var t=this,n=this.mediaStreamTrack,r=e?this.processedTrack:n;return this._trackSender.setMediaStreamTrack(r).catch((function(e){return t._log.warn("setMediaStreamTrack failed on LocalVideoTrack RTCRtpSender",{error:e,mediaStreamTrack:r})})).then((function(){t._unprocessedTrack=e?n:null}))},t.prototype.addProcessor=function(){this._log.debug("Adding VideoProcessor to the LocalVideoTrack");var t=e.prototype.addProcessor.apply(this,arguments);return this.processedTrack?(this._log.debug("Updating LocalVideoTrack's MediaStreamTrack 
163with the processed MediaStreamTrack",this.processedTrack),this._setSenderMediaStreamTrack(!0),t):this._log.warn("Unable to add a VideoProcessor to the LocalVideoTrack")},t.prototype.removeProcessor=function(){var t=this;this._log.debug("Removing VideoProcessor from the LocalVideoTrack");var n=e.prototype.removeProcessor.apply(this,arguments);return this._log.debug("Updating LocalVideoTrack's MediaStreamTrack with the original MediaStreamTrack"),this._setSenderMediaStreamTrack().then((function(){return t._updateElementsMediaStreamTrack()})),n},t.prototype.disable=function(){var t=e.prototype.disable.apply(this,arguments);return this.processedTrack&&(this.processedTrack.enabled=!1),t},t.prototype.enable=function(t){void 0===t&&(t=!0);var n=e.prototype.enable.apply(this,arguments);return this.processedTrack&&(this.processedTrack.enabled=t,t&&(this._captureFrames(),this._log.debug("Updating LocalVideoTrack's MediaStreamTrack with the processed MediaStreamTrack",this.processedTrack),this._setSenderMediaStreamTrack(!0))),n},t.prototype.restart=function(){var t=this;this._workaroundSilentLocalVideoCleanup&&(this._workaroundSilentLocalVideoCleanup(),this._workaroundSilentLocalVideoCleanup=null);var n=e.prototype.restart.apply(this,arguments);return this.processor&&n.then((function(){t._restartProcessor()})),this._workaroundSilentLocalVideo&&n.finally((function(){t._workaroundSilentLocalVideoCleanup=t._workaroundSilentLocalVideo(t,document)})),n},t.prototype.stop=function(){return this._workaroundSilentLocalVideoCleanup&&(this._workaroundSilentLocalVideoCleanup(),this._workaroundSilentLocalVideoCleanup=null),e.prototype.stop.apply(this,arguments)},t}(n(85820)(n(58222)));function s(e,t){var n=e._log,r=e._dummyEl,o=e.mediaStreamTrack;function a(){e.isEnabled&&(n.info("Unmuted, checking silence"),r.play().then((function(){return i(r,t)})).then((function(t){if(t)return n.warn("Silence detected, restarting"),e._stop(),e._restart();n.info("Non-silent frames detected, so no need to restart")})).catch((function(e){n.warn("Failed to detect silence and restart:",e)})).finally((function(){!(r=e._dummyEl)||r.paused||e.processedTrack||r.pause(),o.removeEventListener("unmute",a),(o=e.mediaStreamTrack).addEventListener("unmute",a)})))}return o.addEventListener("unmute",a),function(){o.removeEventListener("unmute",a)}}e.exports=a},73445:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,o){return e.call(this,t,n,r,o)||this}return r(t,e),t.prototype.toString=function(){return"[LocalVideoTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(n(6345));e.exports=o},39361:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(49943).isIOS,i=n(39778).MediaStream,a=n(96971),s=a.waitForEvent,u=a.waitForSometime,c=n(74919),l=function(e){function t(t,n){var r=this;n=Object.assign({playPausedElementsIfNotBackgrounded:o()&&"object"===typeof document&&"function"===typeof document.addEventListener&&"string"===typeof document.visibilityState},n),r=e.call(this,t.id,t.kind,n)||this;var a=!1;return n=Object.assign({MediaStream:i},n),Object.defineProperties(r,{_attachments:{value:new Set},_dummyEl:{value:null,writable:!0},_elShims:{value:new WeakMap},_isStarted:{get:function(){return a}
163,set:function(e){a=e}},_playPausedElementsIfNotBackgrounded:{value:n.playPausedElementsIfNotBackgrounded},_shouldShimAttachedElements:{value:n.workaroundWebKitBug212780||n.playPausedElementsIfNotBackgrounded},_unprocessedTrack:{value:null,writable:!0},_MediaStream:{value:n.MediaStream},isStarted:{enumerable:!0,get:function(){return a}},mediaStreamTrack:{enumerable:!0,get:function(){return this._unprocessedTrack||t.track}},processedTrack:{enumerable:!0,value:null,writable:!0}}),r._initialize(),r}return r(t,e),t.prototype._start=function(){this._log.debug("Started"),this._isStarted=!0,this._dummyEl&&(this._dummyEl.oncanplay=null),this.emit("started",this)},t.prototype._initialize=function(){var e=this;this._log.debug("Initializing"),this._dummyEl=this._createElement(),this.mediaStreamTrack.addEventListener("ended",(function t(){e._end(),e.mediaStreamTrack.removeEventListener("ended",t)})),this._dummyEl&&(this._dummyEl.muted=!0,this._dummyEl.oncanplay=this._start.bind(this,this._dummyEl),this._attach(this._dummyEl,this.mediaStreamTrack),this._attachments.delete(this._dummyEl))},t.prototype._end=function(){this._log.debug("Ended"),this._dummyEl&&(this._dummyEl.remove(),this._dummyEl.srcObject=null,this._dummyEl.oncanplay=null,this._dummyEl=null)},t.prototype.attach=function(e){var t=this;if("string"===typeof e?e=this._selectElement(e):e||(e=this._createElement()),this._log.debug("Attempting to attach to element:",e),e=this._attach(e),this._shouldShimAttachedElements&&!this._elShims.has(e)){var n=this._playPausedElementsIfNotBackgrounded?function(){return function(e,t){var n=e.tagName.toLowerCase();t.warn("Unintentionally paused:",e),Promise.race([s(document,"visibilitychange"),u(1e3)]).then((function(){"visible"===document.visibilityState&&c.whenResolved("audio").then((function(){return t.info("Playing unintentionally paused <"+n+"> element"),t.debug("Element:",e),e.play()})).then((function(){t.info("Successfully played unintentionally paused <"+n+"> element"),t.debug("Element:",e)})).catch((function(r){t.warn("Error while playing unintentionally paused <"+n+"> element:",{error:r,el:e})}))}))}(e,t._log)}:null;this._elShims.set(e,function(e,t){void 0===t&&(t=null);var n=e.pause,r=e.play,o=!1;e.pause=function(){return o=!0,n.call(e)},e.play=function(){return o=!1,r.call(e)};var i=t?function(){o||t()}:null;i&&e.addEventListener("pause",i);return{pausedIntentionally:function(){return o},unShim:function(){e.pause=n,e.play=r,i&&e.removeEventListener("pause",i)}}}(e,n))}return e},t.prototype._attach=function(e,t){void 0===t&&(t=this.processedTrack||this.mediaStreamTrack);var n=e.srcObject;n instanceof this._MediaStream||(n=new this._MediaStream);var r="audio"===t.kind?"getAudioTracks":"getVideoTracks";return n[r]().forEach((function(e){n.removeTrack(e)})),n.addTrack(t),e.srcObject=n,e.autoplay=!0,e.playsInline=!0,this._attachments.has(e)||this._attachments.add(e),e},t.prototype._selectElement=function(e){var t=document.querySelector(e);if(!t)throw new Error("Selector matched no element: "+e);return t},t.prototype._updateElementsMediaStreamTrack=function(){var e=this;this._log.debug("Reattaching all elements to update mediaStreamTrack"),this._getAllAttachedElements().forEach((function(t){return e._attach(t)}))},t.prototype._createElement=function(){return"undefined"!==typeof document?document.createElement(this.kind):null},t.prototype.detach=function(e){var t;return t="string"===typeof e?[this._selectElement(e)]:e?[e]:this._getAllAttachedElements(),this._log.debug("Attempting to detach from elements:",t),this._detachElements(t),e?t[0]:t},t.prototype._detachElements=function(e){return e.map(this._detachElement.bind(this))},t.prototype._detachElement=function(e){if(!this._attachments.has(e))return e;var t=e.srcObject;(t instanceof this._MediaStream&&t.removeTrack(this.processedTrack||this.mediaStreamTrack),this._attachments.delete(e),this._shouldShimAttachedElements&&this._elShims.has(e))&&(this._elShims.get(e).unShim(),this._elShims.delete(e));return e},t.prototype._getAllAttachedElements=function(){var e=[];
163return this._attachments.forEach((function(t){e.push(t)})),e},t}(n(74958));e.exports=l},28151: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{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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(s){i=[6,s],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}),t.applyNoiseCancellation=t.NoiseCancellationImpl=void 0;var i=n(44006),a=(n(36372),function(){function e(e,t){this._processor=e,this._sourceTrack=t,this._disabledPermanent=!1}return Object.defineProperty(e.prototype,"vendor",{get:function(){return this._processor.vendor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sourceTrack",{get:function(){return this._sourceTrack},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._processor.isEnabled()},enumerable:!1,configurable:!0}),e.prototype.enable=function(){if(this._disabledPermanent)throw new Error(this.vendor+" noise cancellation is disabled permanently for this track");return this._processor.enable(),Promise.resolve()},e.prototype.disable=function(){return this._processor.disable(),Promise.resolve()},e.prototype.reacquireTrack=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return o(this,(function(o){switch(o.label){case 0:return t=this._processor.isEnabled(),this._processor.disconnect(),[4,e()];case 1:return n=o.sent(),this._sourceTrack=n,[4,this._processor.connect(n)];case 2:return r=o.sent(),t?this._processor.enable():this._processor.disable(),[2,r]}}))}))},e.prototype.disablePermanently=function(){return this._disabledPermanent=!0,this.disable()},e.prototype.stop=function(){this._processor.disconnect(),this._sourceTrack.stop()},e}());t.NoiseCancellationImpl=a,t.applyNoiseCancellation=function(e,t,n){return r(this,void 0,void 0,(function(){var r,s,u,c;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i.createNoiseCancellationAudioProcessor(t,n)];case 1:return r=o.sent(),s=r.connect(e),u=new a(r,e),[2,{cleanTrack:s,noiseCancellation:u}];case 2:return c=o.sent(),n.warn("Failed to create noise cancellation. Returning normal audio track: "+c),[2,{cleanTrack:e}];case 3:return[2]}}
163))}))}},38960:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t}(n(2854));e.exports=o},77480:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(4592),i=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return r(t,e),t.prototype.toString=function(){return"[RemoteAudioTrack #"+this._instanceId+": "+this.sid+"]"},t.prototype._start=function(){e.prototype._start.call(this),this._dummyEl&&(this._dummyEl.srcObject=null,this._dummyEl=null)},t.prototype.setPriority=function(t){return e.prototype.setPriority.call(this,t)},t}(n(80806)(o));e.exports=i},94685:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.toString=function(){return"[RemoteAudioTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(n(34906));e.exports=o},30005:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(74958),s=n(62097),u=s.typeErrors,c=s.trackPriority,l=function(e){function t(t,n,r){var o=e.call(this,n.id,"data",r)||this;return Object.defineProperties(o,{_isSwitchedOff:{value:!1,writable:!0},_priority:{value:null,writable:!0},isEnabled:{enumerable:!0,value:!0},isSwitchedOff:{enumerable:!0,get:function(){return this._isSwitchedOff}},maxPacketLifeTime:{enumerable:!0,value:n.maxPacketLifeTime},maxRetransmits:{enumerable:!0,value:n.maxRetransmits},ordered:{enumerable:!0,value:n.ordered},priority:{enumerable:!0,get:function(){return this._priority}},reliable:{enumerable:!0,value:null===n.maxPacketLifeTime&&null===n.maxRetransmits},sid:{enumerable:!0,value:t}}),n.on("message",(function(e){o.emit("message",e,o)})),o}return r(t,e),t.prototype.setPriority=function(e){var t=i([null],o(Object.values(c)));if(!t.includes(e))throw u.INVALID_VALUE("priority",t);return this._priority=e,this},t.prototype._setEnabled=function(){},t.prototype._setSwitchedOff=function(e){this._isSwitchedOff!==e&&(this._isSwitchedOff=e,this.emit
163(e?"switchedOff":"switchedOn",this))},t}(a);e.exports=l},22655:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.toString=function(){return"[RemoteDataTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(n(34906));e.exports=o},80806:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(62097),s=a.typeErrors,u=a.trackPriority,c=n(49943).isIOS,l=n(68379);e.exports=function(e){return function(e){function t(t,n,r,o,i,a,s){var u=this;return s=Object.assign({workaroundWebKitBug212780:c()&&"object"===typeof document&&"function"===typeof document.addEventListener&&"string"===typeof document.visibilityState},s),u=e.call(this,n,s)||this,Object.defineProperties(u,{_isEnabled:{value:r,writable:!0},_isSwitchedOff:{value:o,writable:!0},_priority:{value:null,writable:!0},_setPriority:{value:i},_setRenderHint:{value:function(e){u._log.debug("updating render hint:",e),a(e)}},isEnabled:{enumerable:!0,get:function(){return this._isEnabled}},isSwitchedOff:{enumerable:!0,get:function(){return this._isSwitchedOff}},priority:{enumerable:!0,get:function(){return this._priority}},sid:{enumerable:!0,value:t},_workaroundWebKitBug212780:{value:s.workaroundWebKitBug212780},_workaroundWebKitBug212780Cleanup:{value:null,writable:!0}}),u}return r(t,e),t.prototype.setPriority=function(e){var t=i([null],o(Object.values(u)));if(!t.includes(e))throw s.INVALID_VALUE("priority",t);return this._priority!==e&&(this._priority=e,this._setPriority(e)),this},t.prototype._setEnabled=function(e){this._isEnabled!==e&&(this._isEnabled=e,this.emit(this._isEnabled?"enabled":"disabled",this))},t.prototype._setSwitchedOff=function(e){this._isSwitchedOff!==e&&(this._isSwitchedOff=e,this.emit(e?"switchedOff":"switchedOn",this))},t.prototype.attach=function(t){var n=e.prototype.attach.call(this,t);return!0!==this.mediaStreamTrack.enabled&&(this.mediaStreamTrack.enabled=!0,this.processedTrack&&(this.processedTrack.enabled=!0),this.processor&&this._captureFrames()),this._workaroundWebKitBug212780&&(this._workaroundWebKitBug212780Cleanup=this._workaroundWebKitBug212780Cleanup||function(e){var t=e._log,n=e.kind;function r(r){r&&e._attachments.forEach((function(r){var o=e._elShims.get(r);r.paused&&o&&!o.pausedIntentionally()&&(t.info("Playing inadvertently paused <"+n+"> element"),t.debug("Element:",r),t.debug("RemoteMediaTrack:",e),r.play().then((function(){t.info("Successfully played inadvertently paused <"+n+"> element"),t.debug("Element:",r),t.debug("RemoteMediaTrack:",e)})).catch((function(o){t.warn("Error while playing inadvertently paused <"+n+"> element:",{err:o,el:r,remoteMediaTrack:e})})))}))}return l.onVisibilityChange(2,r),function(){l.offVisibilityChange(2,r)}}(this)),n},t.prototype.detach=function(t){var n=e.prototype.detach.call(this,t);return 0===this._attachments.size&&(this.mediaStreamTrack.enabled=!1,this.processedTrack&&(this.processedTrack.enabled=!1),this._workaroundWebKitBug212780Cleanup&&(this._workaroundWebKitBug212780Cleanup(),this._workaroundWebKitBug212780Cleanup=null)),n},t}(e)}},34906:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t.name,t.sid,n)||this;Object.defineProperties(r,{_signaling:{value:t},_track:{value:null,writable:!0},isSubscribed:{enumerable:!0,get:function(){return!!this._track}},isTrackEnabled:{enumerable:!0,get:function(){return t.isEnabled}},kind:{enumerable:!0,value:t.kind},publishPriority:{enumerable:!0,get:function(){return t.priority}},track:{enumerable:!0,get:function(){return this._track}}});var o=t.error,i=t.isEnabled,a=t.isSwitchedOff,s=t.priority;return t.on("updated",(function(){if(o!==t.error)return o=t.error,void r.emit("subscriptionFailed",t.error);i!==t.isEnabled&&(i=t.isEnabled,r.track&&r.track._setEnabled(t.isEnabled),r.emit(t.isEnabled?"trackEnabled":"trackDisabled")),a!==t.isSwitchedOff&&(r._log.debug(r.trackSid+": "+(a?"OFF":"ON")+" => "+(t.isSwitchedOff?"OFF":"ON")),a=t.isSwitchedOff,r.track?(r.track._setSwitchedOff(t.isSwitchedOff),r.emit(a?"trackSwitchedOff":"trackSwitchedOn",r.track)):a&&r._log.warn("Track was not subscribed when switched Off.")),s!==t.priority&&(s=t.priority,r.emit("publishPriorityChanged",s))}
163)),r}return r(t,e),t.prototype.toString=function(){return"[RemoteTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t.prototype._subscribed=function(e){!this._track&&e&&(this._track=e,this.emit("subscribed",e))},t.prototype._unsubscribe=function(){if(this._track){var e=this._track;this._track=null,this.emit("unsubscribed",e)}},t}(n(56379));e.exports=o},12099:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=n(80806),a=n(58222),s=n(68379),u=n(18537).NullObserver,c=n(75317),l=i(a),f=function(e){function t(t,n,r,o,i,a,s){var l=this;return s=Object.assign({clientTrackSwitchOffControl:"auto",contentPreferencesMode:"auto",enableDocumentVisibilityTurnOff:!0},s),s=Object.assign({IntersectionObserver:"undefined"===typeof IntersectionObserver||"auto"!==s.clientTrackSwitchOffControl?u:IntersectionObserver,ResizeObserver:"undefined"===typeof ResizeObserver||"auto"!==s.contentPreferencesMode?u:ResizeObserver},s),l=e.call(this,t,n,r,o,i,a,s)||this,Object.defineProperties(l,{_enableDocumentVisibilityTurnOff:{value:!0===s.enableDocumentVisibilityTurnOff&&"auto"===s.clientTrackSwitchOffControl},_documentVisibilityTurnOffCleanup:{value:null,writable:!0},_clientTrackSwitchOffControl:{value:s.clientTrackSwitchOffControl},_contentPreferencesMode:{value:s.contentPreferencesMode},_invisibleElements:{value:new WeakSet},_elToPipCallbacks:{value:new WeakMap},_elToPipWindows:{value:new WeakMap},_turnOffTimer:{value:new c((function(){l._setRenderHint({enabled:!1})}),50,!1)},_resizeObserver:{value:new s.ResizeObserver((function(e){e.find((function(e){return!l._invisibleElements.has(e.target)}))&&p(l)}))},_intersectionObserver:{value:new s.IntersectionObserver((function(e){var t=!1;e.forEach((function(e){!l._invisibleElements.has(e.target)!==e.isIntersecting&&(e.isIntersecting?(l._log.debug("intersectionObserver detected: Off => On"),l._invisibleElements.delete(e.target)):(l._log.debug("intersectionObserver detected: On => Off"),l._invisibleElements.add(e.target)),t=!0)})),t&&(d(l),p(l))}),{threshold:.25})}}),l}return r(t,e),t.prototype._start=function(t){var n=e.prototype._start.call(this,t);return d(this),n},t.prototype.switchOn=function(){if("manual"!==this._clientTrackSwitchOffControl)throw new Error('Invalid state. You can call switchOn only when bandwidthProfile.video.clientTrackSwitchOffControl is set to "manual"');return this._setRenderHint({enabled:!0}),this},t.prototype.switchOff=function(){if("manual"!==this._clientTrackSwitchOffControl)throw new Error('Invalid state. You can call switchOff only when bandwidthProfile.video.clientTrackSwitchOffControl is set to "manual"');return this._setRenderHint({enabled:!1}),this},t.prototype.setContentPreferences=function(e){if("manual"!==this._contentPreferencesMode)throw new Error('Invalid state. You can call switchOn only when bandwidthProfile.video.contentPreferencesMode is set to "manual"');return e.renderDimensions&&this._setRenderHint({renderDimensions:e.renderDimensions}),this},t.prototype._unObservePip=function(e){var t=this._elToPipCallbacks.get(e);t&&(e.removeEventListener("enterpictureinpicture",t.onEnterPip),e.removeEventListener("leavepictureinpicture",t.onLeavePip),this._elToPipCallbacks.delete(e))},t.prototype._observePip=function(e){var t=this;if(!this._elToPipCallbacks.get(e)){var n=function(n){return t._onEnterP
163ip(n,e)},r=function(n){return t._onLeavePip(n,e)};e.addEventListener("enterpictureinpicture",n),e.addEventListener("leavepictureinpicture",r),this._elToPipCallbacks.set(e,{onEnterPip:n,onLeavePip:r,onResizePip:function(n){return t._onResizePip(n,e)}})}},t.prototype._onEnterPip=function(e,t){this._log.debug("onEnterPip");var n=e.pictureInPictureWindow;this._elToPipWindows.set(t,n);var r=this._elToPipCallbacks.get(t).onResizePip;n.addEventListener("resize",r),d(this)},t.prototype._onLeavePip=function(e,t){this._log.debug("onLeavePip"),this._elToPipWindows.delete(t);var n=this._elToPipCallbacks.get(t).onResizePip;e.pictureInPictureWindow.removeEventListener("resize",n),d(this)},t.prototype._onResizePip=function(){p(this)},t.prototype.attach=function(t){var n=e.prototype.attach.call(this,t);return"auto"===this._clientTrackSwitchOffControl&&this._invisibleElements.add(n),this._intersectionObserver.observe(n),this._resizeObserver.observe(n),this._enableDocumentVisibilityTurnOff&&(this._documentVisibilityTurnOffCleanup=this._documentVisibilityTurnOffCleanup||function(e){function t(){d(e)}return s.onVisibilityChange(1,t),function(){s.offVisibilityChange(1,t)}}(this)),this._observePip(n),n},t.prototype.detach=function(t){var n=this,r=e.prototype.detach.call(this,t);return(Array.isArray(r)?r:[r]).forEach((function(e){n._intersectionObserver.unobserve(e),n._resizeObserver.unobserve(e),n._invisibleElements.delete(e),n._unObservePip(e)})),0===this._attachments.size&&this._documentVisibilityTurnOffCleanup&&(this._documentVisibilityTurnOffCleanup(),this._documentVisibilityTurnOffCleanup=null),d(this),p(this),r},t.prototype.addProcessor=function(){return e.prototype.addProcessor.apply(this,arguments)},t.prototype.removeProcessor=function(){return e.prototype.removeProcessor.apply(this,arguments)},t.prototype.toString=function(){return"[RemoteVideoTrack #"+this._instanceId+": "+this.sid+"]"},t.prototype.setPriority=function(t){return e.prototype.setPriority.call(this,t)},t}(l);function d(e){if("auto"===e._clientTrackSwitchOffControl){var t=e._getAllAttachedElements().filter((function(t){return!e._invisibleElements.has(t)}));!0===(e._getAllAttachedElements().filter((function(t){return e._elToPipWindows.has(t)})).length>0||"visible"===document.visibilityState&&t.length>0)?(e._turnOffTimer.clear(),e._setRenderHint({enabled:!0})):e._turnOffTimer.isSet||e._turnOffTimer.start()}}function p(e){if("auto"===e._contentPreferencesMode){var t=e._getAllAttachedElements().filter((function(t){return!e._invisibleElements.has(t)})),n=e._getAllAttachedElements().map((function(t){var n=e._elToPipWindows.get(t);return n?{clientHeight:n.height,clientWidth:n.width}:{clientHeight:0,clientWidth:0}})),r=t.concat(n);if(r.length>0){var i=o(r.sort((function(e,t){return t.clientHeight+t.clientWidth-e.clientHeight-e.clientWidth-1})),1)[0],a={height:i.clientHeight,width:i.clientWidth};e._setRenderHint({renderDimensions:a})}}}e.exports=f},26329:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.toString=function(){return"[RemoteVideoTrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(n(34906));e.exports=o},42259:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=function(e){function t(t){var n=e.call(this,t.id,t)||this;return Object.defineProperties(n,{_clones:{value:new Set},_eventsToReemitters:{value:new Map([["mute",function(){return n.queue("muted")}],["unmute",function(){return n.queue("unmuted")}]])},_senders:{value:new Set},_senderToPublisherHintCallbacks:{value:new Map},isPublishing:{enumerable:!0,get:function(){return!!this._clones.size}},muted:{enumerable:!0,get:function(){return this._track.muted}}}),n._reemitMediaStreamTrackEvents(),n}return r(t,e),t.prototype._reemitMediaStreamTrackEvents=function(e){void 0===e&&(e=this._track);var t=this._eventsToReemitters,n=this._track;(t.forEach((function(t,n){return e.addEventListener(n,t)})),n!==e)&&(t.forEach((function(e,t){return n.removeEventListener(t,e)})),n.muted!==e.muted&&t.get(e.muted?"mute":"unmute")())},t.prototype.clone=function(){var e=new t(this.track.clone());return this._clones.add(e),e},t.prototype.removeClone=function(e){this._clones.delete(e)},t.prototype.setMediaStreamTrack=function(e){var t=this,n=Array.from(this._clones),r=Array.from(this._senders);return Promise.all(n.map((function(t){return t.setMediaStreamTrack(e.clone())})).concat(r.map((function(n){return t._replaceTrack(n,e)})))).finally((function(){t._reemitMediaStreamTrackEvents(e),t._track=e}))},t.prototype.addSender=function(e,t){return this._senders.add(e),t&&this._senderToPublisherHintCallbacks.set(e,t),this},t.prototype.removeSender=function(e){return this._senders.delete(e),this._senderToPublisherHintCallbacks.delete(e),this},t.prototype.setPublisherHint=function(e){var t=o(Array.from(this._senderToPublisherHintCallbacks.values()),1)[0];return t?t(e):Promise.resolve("COULD_NOT_APPLY_HINT")},t.prototype._replaceTrack=function(e,t){var n=this;return e.replaceTrack(t).then((function(e){return n.setPublisherHint(null).cat
163ch((function(){})),n.emit("replaced"),e}))},t}(n(2854));e.exports=i},56379:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(73029),i=n(96971),a=i.buildLogLevels,s=i.valueToJSON,u=n(62097).DEFAULT_LOG_LEVEL,c=n(36372),l=0,f=function(e){function t(t,n,r){var o=e.call(this)||this;r=Object.assign({logLevel:u},r);var i=a(r.logLevel);return Object.defineProperties(o,{_instanceId:{value:l++},_log:{value:r.log?r.log.createLog("default",o):new c("default",o,i,r.loggerName)},trackName:{enumerable:!0,value:t},trackSid:{enumerable:!0,value:n}}),o}return r(t,e),t.prototype.toJSON=function(){return s(this)},t.prototype.toString=function(){return"[TrackPublication #"+this._instanceId+": "+this.trackSid+"]"},t}(o);e.exports=f},2854:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,n.kind)||this;return Object.defineProperties(r,{_track:{value:n,writable:!0},enabled:{enumerable:!0,get:function(){return this._track.enabled}},readyState:{enumerable:!0,get:function(){return this._track.readyState}},track:{enumerable:!0,get:function(){return this._track}}}),r}return r(t,e),t.prototype.stop=function(){this.track.stop(),e.prototype.stop.call(this)},t}(n(69430));e.exports=o},54028:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(17187).EventEmitter,i=n(62097).DEFAULT_VIDEO_PROCESSOR_STATS_INTERVAL_MS,a=function(e){function t(t){var n=e.call(this)||this;return Object.defineProperties(n,{_lastStatsSaveTime:{value:null,writable:!0},_lastStatsPublishTime:{value:null,writable:!0},_log:{value:t},_processorInfo:{value:null,writable:!0},_stats:{value:null,writable:!0}}),n.on("add",(function(e){n._lastStatsSaveTime=Date.now(),n._lastStatsPublishTime=Date.now(),n._processorInfo=e,n._stats=[],n._reemitEvent("add",n._getEventData())})),n.on("remove",(function(){var e=n._getEventData();n._lastStatsSaveTime=null,n._lastStatsPublishTime=null,n._processorInfo=null,n._stats=null,n._reemitEvent("remove",e)})),n.on("start",(function(){n._reemitEvent("start",n._getEventData())})),n.on("stop",(function(e){n._reemitEvent("stop",Object.assign({message:e},n._getEventData()))})),n.on("stats",(function(){return n._maybeEmitStats()})),n}return r(t,e),t.prototype._getEventData=function(){if(!this._processorInfo)return{};var e=this._processorInfo,t=e.processor,n={captureHeight:e.captureHeight,captureWidth:e.captureWidth,inputFrameRate:e.inputFrameRate,isRemoteVideoTrack:e.isRemoteVideoTrack,inputFrameBufferType:e.inputFrameBufferType,outputFrameBufferContextType:e.outputFrameBufferContextType};return n.name=t._name||"VideoProcessor",["assetsPath","blurFilterRadius","debounce","fitType","isSimdEnabled","maskBlurRadius","pipeline","version"].forEach((function(e){var r=t["_"+e];"undefined"!==typeof r&&(n[e]=r)}
163)),Object.keys(n).forEach((function(e){var t=n[e];"boolean"===typeof t&&(n[e]=t?"true":"false")})),n},t.prototype._maybeEmitStats=function(){if(this._stats&&this._processorInfo){var e=this._processorInfo.processor._benchmark;if(e){var t=Date.now();if(!(t-this._lastStatsSaveTime<1e3)){var n={outputFrameRate:e.getRate("totalProcessingDelay")};if(["captureFrameDelay","imageCompositionDelay","inputImageResizeDelay","processFrameDelay","segmentationDelay"].forEach((function(t){n[t]=e.getAverageDelay(t)})),this._lastStatsSaveTime=t,this._stats.push(n),!(t-this._lastStatsPublishTime<i)){this._lastStatsPublishTime=t;var r=this._stats.splice(0).reduce((function(e,t,r){return Object.keys(n).forEach((function(n){e[n]||(e[n]=0),e[n]=(e[n]*r+t[n])/(r+1)})),e}),{});Object.keys(r).forEach((function(e){r[e]=parseFloat(r[e].toFixed(2))})),this._reemitEvent("stats",Object.assign({},r,this._getEventData()))}}}}},t.prototype._reemitEvent=function(e,t){this._log.debug("VideoProcessor:"+e,t),this.emit("event",{name:e,data:t})},t}(o);e.exports=a},58222:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(39361),i=n(54028),a=n(62097).DEFAULT_FRAME_RATE,s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperties(r,{_captureTimeoutId:{value:null,writable:!0},_isCapturing:{value:!1,writable:!0},_inputFrame:{value:null,writable:!0},_outputFrame:{value:null,writable:!0},_processorEventObserver:{value:null,writable:!0},_processorOptions:{value:{},writable:!0},_unmuteHandler:{value:null,writable:!0},dimensions:{enumerable:!0,value:{width:null,height:null}},processor:{enumerable:!0,value:null,writable:!0}}),r._processorEventObserver=new(n.VideoProcessorEventObserver||i)(r._log),r}return r(t,e),t.prototype._checkIfCanCaptureFrames=function(e){void 0===e&&(e=!1);var t=!0,n="",r=this.mediaStreamTrack;return r.enabled||(t=!1,n="MediaStreamTrack is disabled"),"ended"===r.readyState&&(t=!1,n="MediaStreamTrack is ended"),this.processor||(t=!1,n="VideoProcessor not detected."),this._attachments.size||e||(t=!1,n="VideoTrack is not publishing and there is no attached element."),n&&this._log.debug(n),{canCaptureFrames:t,message:n}},t.prototype._captureFrames=function(){var e=this;if(this._isCapturing)this._log.debug("Ignoring captureFrames call. Capture is already in progress");else{if(!this._checkIfCanCaptureFrames().canCaptureFrames)return this._isCapturing=!1,void this._log.debug("Cannot capture frames. Ignoring captureFrames call.");this._isCapturing=!0,this._processorEventObserver.emit("start"),this._log.debug("Start capturing frames");var t,n=Date.now();this._dummyEl.play().then((function(){var r=function(n){clearTimeout(e._captureTimeoutId);var r=e.mediaStreamTrack.getSettings().frameRate,o=void 0===r?a:r,i=Math.floor(1e3/o)-t;(i<0||"number"!==typeof t)&&(i=0),e._captureTimeoutId=setTimeout(n,i)},o=function(){var i=e._checkIfCanCaptureFrames();if(!i.canCaptureFrames)return e._isCapturing=!1,e._processorEventObserver.emit("stop",i.message),void e._log.debug("Cannot capture frames. Stopping capturing frames.");n=Date.now();var a=e.mediaStreamTrack.getSettings(),s=a.width,u=void 0===s?0:s,c=a.height,l=void 0===c?0:c;e._outputFrame&&e._outputFrame.width!==u&&(e._outputFrame.width=u,e._outputFrame.height=l),e._inputFrame&&(e._inputFrame.width!==u&&(e._inputFrame.width=u,e._inputFrame.height=l),e._inputFrame.getContext("2d").drawImage(e._dummyEl,0,0,u,l));var f=null;try{var d="video"===e._processorOptions.inputFrameBufferType?e._dummyEl:e._inputFrame;f=e.processor.processFrame(d,e._outputFrame)}catch(p){e._log.debug("Exception detected after calling processFrame.",p)}(f instanceof Promise?f:Promise.resolve(f)).then((function(){e._outputFrame&&("function"===typeof e.processedTrack.requestFrame&&e.processedTrack.requestFrame(),e._processorEventObserver.emit("stats"))})).finally((function(){t=Date.now()-n,r(o)}))};r(o)})).catch((function(t){return e._log.error("Video element cannot be played",{error:t,track:e})}))}},t.prototype._initialize=function(){var n=this;e.prototype._initialize.call(this),this._dummyEl&&(this._dummyEl.onloadedmetadata=function(){u(n,n._dummyEl)&&(n.dimensions.width=n._dummyEl.videoWidth,n.dimensions.height=n._dummyEl.videoHeight)},this._dummyEl.onresize=function(){u(n,n._dummyEl)&&(n.dimensions.width=n._dummyEl.videoWidth,n.dimensions.height=n._dummyEl.videoHeight,n.isStarted&&(n._log.debug("Dimensions changed:",n.dimensions),n.emit(t.DIMENSIONS_CHANGED,n)))})},t.prototype._restartProcessor=function(){var e=this.processor;if(e){var t=Object.assign({},this._processorOptions);this.removeProcessor(e),this.addProcessor(e,t)}},t.prototype._start=function(n){return this.dimensions.width=n.videoWidth,this.dimensions.height=n.videoHeight,this._log.debug("Dimensions:",this.dimensions),this.emit
163(t.DIMENSIONS_CHANGED,this),e.prototype._start.call(this,n)},t.prototype.addProcessor=function(e,t){var n=this;if(!e||"function"!==typeof e.processFrame)throw new Error("Received an invalid VideoProcessor from addProcessor.");if(this.processor)throw new Error("A VideoProcessor has already been added.");if(!this._dummyEl)throw new Error("VideoTrack has not been initialized.");this._log.debug("Adding VideoProcessor to the VideoTrack",e),this._unmuteHandler||(this._unmuteHandler=function(){n._log.debug("mediaStreamTrack unmuted"),n.processedTrack.muted&&(n._log.debug("mediaStreamTrack is unmuted but processedTrack is muted. Restarting processor."),n._restartProcessor())},this.mediaStreamTrack.addEventListener("unmute",this._unmuteHandler)),this._processorOptions=t||{};var r=this._processorOptions,o=r.inputFrameBufferType,i=r.outputFrameBufferContextType;if("undefined"===typeof OffscreenCanvas&&"offscreencanvas"===o)throw new Error("OffscreenCanvas is not supported by this browser.");if(o&&"video"!==o&&"canvas"!==o&&"offscreencanvas"!==o)throw new Error("Invalid inputFrameBufferType of "+o);o||(o="undefined"===typeof OffscreenCanvas?"canvas":"offscreencanvas");var s=this.mediaStreamTrack.getSettings(),u=s.width,c=void 0===u?0:u,l=s.height,f=void 0===l?0:l,d=s.frameRate,p=void 0===d?a:d;if("offscreencanvas"===o&&(this._inputFrame=new OffscreenCanvas(c,f)),"canvas"===o&&(this._inputFrame=document.createElement("canvas")),this._inputFrame&&(this._inputFrame.width=c,this._inputFrame.height=f),this._outputFrame=document.createElement("canvas"),this._outputFrame.width=c,this._outputFrame.height=f,i=i||"2d",!this._outputFrame.getContext(i))throw new Error("Cannot get outputFrameBufferContextType: "+i+".");var h="undefined"!==typeof CanvasCaptureMediaStreamTrack&&CanvasCaptureMediaStreamTrack.prototype&&"function"===typeof CanvasCaptureMediaStreamTrack.prototype.requestFrame?0:void 0;return this.processedTrack=this._outputFrame.captureStream(h).getTracks()[0],this.processedTrack.enabled=this.mediaStreamTrack.enabled,this.processor=e,this._processorEventObserver.emit("add",{processor:e,captureHeight:f,captureWidth:c,inputFrameRate:p,isRemoteVideoTrack:this.toString().includes("RemoteVideoTrack"),inputFrameBufferType:o,outputFrameBufferContextType:i}),this._updateElementsMediaStreamTrack(),this._captureFrames(),this},t.prototype.attach=function(){var t=e.prototype.attach.apply(this,arguments);return this.processor&&this._captureFrames(),t},t.prototype.detach=function(){return e.prototype.detach.apply(this,arguments)},t.prototype.removeProcessor=function(e){if(!e)throw new Error("Received an invalid VideoProcessor from removeProcessor.");if(!this.processor)throw new Error("No existing VideoProcessor detected.");if(e!==this.processor)throw new Error("The provided VideoProcessor is different than the existing one.");return this._processorEventObserver.emit("remove"),this._log.debug("Removing VideoProcessor from the VideoTrack",e),clearTimeout(this._captureTimeoutId),this.mediaStreamTrack.removeEventListener("unmute",this._unmuteHandler),this._processorOptions={},this._unmuteHandler=null,this._isCapturing=!1,this.processor=null,this.processedTrack=null,this._inputFrame=null,this._outputFrame=null,this._updateElementsMediaStreamTrack(),this},t}(o);function u(e,t){return e.dimensions.width!==t.videoWidth||e.dimensions.height!==t.videoHeight}s.DIMENSIONS_CHANGED="dimensionsChanged",e.exports=s},27453:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=n(17187).EventEmitter,a=n(62097),s=a.DEFAULT_NQ_LEVEL_LOCAL,u=a.DEFAULT_NQ_LEVEL_REMOTE,c=a.MAX_NQ_LEVEL,l=n(96971).inRange,f=function(e){function t(t){var n=e.call(this)||this;return t=Object.assign({local:s,remote:u},t),Object.defineProperties(n,{local:{value:l(t.local,s,c)?t.local:s,writable:!0},remote:{value:l(t.remote,u,c)?t.remote:u,writable:!0}}),n}return r(t,e),t.prototype.update=function(e){var t=this;e=Object.assign({local:this.local,remote:this.remote}
163,e),[["local",s,3],["remote",u,3]].forEach((function(n){var r=o(n,3),i=r[0],a=r[1],s=r[2];t[i]="number"===typeof e[i]&&l(e[i],a,s)?e[i]:a}))},t}(i);e.exports=f},44006: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{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((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(s){i=[6,s],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}),t.createNoiseCancellationAudioProcessor=void 0;var i=n(53974),a=(n(36372),{krisp:{supportedVersion:"1.0.0",pluginFile:"krispsdk.mjs"},rnnoise:{supportedVersion:"0.6.0",pluginFile:"rnnoise_sdk.mjs"}}),s=new Map;t.createNoiseCancellationAudioProcessor=function(e,t){return r(this,void 0,void 0,(function(){var n,r,u,c,l,f,d,p,h;return o(this,(function(o){switch(o.label){case 0:if(n=s.get(e.vendor))return[3,6];if(!(r=a[e.vendor]))throw new Error("Unsupported NoiseCancellationOptions.vendor: "+e.vendor);u=r.supportedVersion,c=r.pluginFile,l=e.sdkAssetsPath,f=l+"/"+c,o.label=1;case 1:return o.trys.push([1,5,,6]),t.debug("loading noise cancellation sdk: ",f),[4,i(f)];case 2:return d=o.sent(),t.debug("Loaded noise cancellation sdk:",d),p=d.default,function(e){var t=e.supportedVersion,n=e.plugin,r=e.log;if(!n.getVersion||!n.isSupported)throw new Error("Plugin does not export getVersion/isSupported api. Are you using old version of the plugin ?");var o=n.getVersion();r.debug("Plugin Version = "+o);var i=t.split(".").map((function(e){return Number(e)})),a=o.split(".").map((function(e){return Number(e)}));if(3!==i.length||3!==a.length)throw new Error("Unsupported Plugin version format: "+t+", "+o);if(i[0]!==a[0])throw new Error("Major version mismatch: [Plugin version "+o+"],  [Supported Version "+t+"]");if(a[1]<i[1])throw new Error("Minor version mismatch: [Plugin version "+o+"] < [Supported Version "+t+"]");var s=new AudioContext,u=n.isSupported(s);if(s.close(),!u)throw new Error("Noise Cancellation plugin is not supported on your browser")}({supportedVersion:u,plugin:p,log:t}),p.isInitialized()?[3,4]:(t.debug("initializing noise cancellation sdk: ",l),[4,p.init({rootDir:l})]);case 3:o.sent(),t.debug("noise cancellation sdk initialized!"),o.label=4;case 4:return n={vendor:e.vendor,isInitialized:function(){return p.isInitialized()},isConnected:function(){return p.isConnected()},isEnabled:function(){return p.isEnabled()},disconnect:function(){return p.disconnect()},enable:function(){return p.enable()},disable:function(){return p.disable()},destroy:function(){return p.destroy()},setLogging:function(e){return p.setLogging(e)},connect:function(e){t.debug("connect: ",e.id),p.isConnected()&&p.disconnect();var n=p.connect(new MediaStream([e]));if(!n)throw new Error("Error connecting with noise cancellation sdk");var r=n.getAudioTracks()[0];if(!r)throw new Error("Error getting clean track from noise cancellation sdk");return p.enable(),r}}
163,s.set(e.vendor,n),[3,6];case 5:throw h=o.sent(),t.error("Error loading noise cancellation sdk:"+f,h),h;case 6:return[2,n]}}))}))}},48948:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(73029),s=n(77480),u=n(94685),c=n(30005),l=n(22655),f=n(12099),d=n(26329),p=n(96971),h=0,v=function(e){function t(t,n){var r=e.call(this)||this,o=function(e){var t=e.map((function(e){return[e.id,e]})),n=t.filter((function(e){return"audio"===e[1].kind})),r=t.filter((function(e){return"video"===e[1].kind})),o=t.filter((function(e){return"data"===e[1].kind}));return{audioTracks:n,dataTracks:o,tracks:t,videoTracks:r}}((n=Object.assign({RemoteAudioTrack:s,RemoteAudioTrackPublication:u,RemoteDataTrack:c,RemoteDataTrackPublication:l,RemoteVideoTrack:f,RemoteVideoTrackPublication:d,tracks:[]},n)).tracks),i=n.log.createLog("default",r),a=new Map(o.audioTracks),p=new Map(o.dataTracks),v=new Map(o.tracks),y=new Map(o.videoTracks);return Object.defineProperties(r,{_RemoteAudioTrack:{value:n.RemoteAudioTrack},_RemoteAudioTrackPublication:{value:n.RemoteAudioTrackPublication},_RemoteDataTrack:{value:n.RemoteDataTrack},_RemoteDataTrackPublication:{value:n.RemoteDataTrackPublication},_RemoteVideoTrack:{value:n.RemoteVideoTrack},_RemoteVideoTrackPublication:{value:n.RemoteVideoTrackPublication},_audioTracks:{value:a},_dataTracks:{value:p},_instanceId:{value:++h},_clientTrackSwitchOffControl:{value:n.clientTrackSwitchOffControl},_contentPreferencesMode:{value:n.contentPreferencesMode},_log:{value:i},_signaling:{value:t},_tracks:{value:v},_trackEventReemitters:{value:new Map},_trackPublicationEventReemitters:{value:new Map},_trackSignalingUpdatedEventCallbacks:{value:new Map},_videoTracks:{value:y},audioTracks:{enumerable:!0,value:new Map},dataTracks:{enumerable:!0,value:new Map},identity:{enumerable:!0,get:function(){return t.identity}},networkQualityLevel:{enumerable:!0,get:function(){return t.networkQualityLevel}},networkQualityStats:{enumerable:!0,get:function(){return t.networkQualityStats}},sid:{enumerable:!0,get:function(){return t.sid}},state:{enumerable:!0,get:function(){return t.state}},tracks:{enumerable:!0,value:new Map},videoTracks:{enumerable:!0,value:new Map}}),r._tracks.forEach(m.bind(null,r)),t.on("networkQualityLevelChanged",(function(){return r.emit("networkQualityLevelChanged",r.networkQualityLevel,r.networkQualityStats&&(r.networkQualityStats.audio||r.networkQualityStats.video)?r.networkQualityStats:null)})),function(e,t){var n=e._log;if("disconnected"===e.state)return;t.on("stateChanged",(function r(o){n.debug("Transitioned to state:",o),e.emit(o,e),"disconnected"===o&&(n.debug("Removing Track event reemitters"),t.removeListener("stateChanged",r),e._tracks.forEach((function(t){var n=e._trackEventReemitters.get(t.id);t&&n&&n.forEach((function(e,n){t.removeListener(n,e)}))})),t.tracks.forEach((function(t){var n=e._tracks.get(t.id),r=e._trackEventReemitters.get(t.id);n&&r&&r.forEach((function(e,t){n.removeListener(t,e)}))}
163)),e._trackEventReemitters.clear(),e.tracks.forEach((function(t){e._trackPublicationEventReemitters.get(t.trackSid).forEach((function(e,n){t.removeListener(n,e)}))})),e._trackPublicationEventReemitters.clear())}))}(r,t),i.info("Created a new Participant"+(r.identity?": "+r.identity:"")),r}return r(t,e),t.prototype._getTrackEvents=function(){return[["dimensionsChanged","trackDimensionsChanged"],["message","trackMessage"],["started","trackStarted"]]},t.prototype._getTrackPublicationEvents=function(){return[]},t.prototype.toString=function(){return"[Participant #"+this._instanceId+": "+this.sid+"]"},t.prototype._addTrack=function(e,t){var n=this._log;return this._tracks.has(t)?null:(this._tracks.set(t,e),{audio:this._audioTracks,video:this._videoTracks,data:this._dataTracks}[e.kind].set(t,e),m(this,e,t),n.info("Added a new "+p.trackClass(e)+":",t),n.debug(p.trackClass(e)+":",e),e)},t.prototype._addTrackPublication=function(e){var t=this._log;return this.tracks.has(e.trackSid)?null:(this.tracks.set(e.trackSid,e),{audio:this.audioTracks,data:this.dataTracks,video:this.videoTracks}[e.kind].set(e.trackSid,e),function(e,t){var n=new Map;if("disconnected"===e.state)return;e._getTrackPublicationEvents().forEach((function(r){var a=o(r,2),s=a[0],u=a[1];n.set(s,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.emit.apply(e,i(i([u],o(n)),[t]))})),t.on(s,n.get(s))})),e._trackPublicationEventReemitters.set(t.trackSid,n)}(this,e),t.info("Added a new "+p.trackPublicationClass(e)+":",e.trackSid),t.debug(p.trackPublicationClass(e)+":",e),e)},t.prototype._handleTrackSignalingEvents=function(){var e=this,t=e._log,n=e._clientTrackSwitchOffControl,r=e._contentPreferencesMode,i=this;if("disconnected"!==this.state){var a=this._RemoteAudioTrack,s=this._RemoteAudioTrackPublication,u=this._RemoteVideoTrack,c=this._RemoteVideoTrackPublication,l=this._RemoteDataTrack,f=this._RemoteDataTrackPublication,d=this._signaling;d.on("trackAdded",p),d.on("trackRemoved",h),d.tracks.forEach(p),d.on("stateChanged",(function e(n){"disconnected"===n?(t.debug("Removing event listeners"),d.removeListener("stateChanged",e),d.removeListener("trackAdded",p),d.removeListener("trackRemoved",h)):"connected"===n&&(t.info("reconnected"),setTimeout((function(){return i.emit("reconnected")}),0))}))}function p(e){var n=new(0,{audio:s,data:f,video:c}[e.kind])(e,{log:t});i._addTrackPublication(n);var r=e.isSubscribed;r&&v(e),i._trackSignalingUpdatedEventCallbacks.set(e.sid,(function(){if(r!==e.isSubscribed){if(r=e.isSubscribed)return void v(e);!function(e){var t=o(Array.from(i._tracks.entries()).find((function(t){return o(t,2)[1].sid===e.sid})),2),n=t[0],r=t[1],a=i.tracks.get(e.sid);r&&i._removeTrack(r,a,n)}(e)}})),e.on("updated",i._trackSignalingUpdatedEventCallbacks.get(e.sid))}function h(e){e.isSubscribed&&e.setTrackTransceiver(null);var t=i._trackSignalingUpdatedEventCallbacks.get(e.sid);t&&(e.removeListener("updated",t),i._trackSignalingUpdatedEventCallbacks.delete(e.sid));var n=i.tracks.get(e.sid);n&&i._removeTrackPublication(n)}function v(e){var o=e.isEnabled,s=e.name,c=e.kind,f=e.sid,p=e.trackTransceiver,h=e.isSwitchedOff,v={audio:a,video:u,data:l}[c],m=i.tracks.get(f);if(v&&c===p.kind){var y={log:t,name:s,clientTrackSwitchOffControl:n,contentPreferencesMode:r},g="data"===c?new v(f,p,y):new v(f,p,o,h,(function(e){return d.updateSubscriberTrackPriority(f,e)}),(function(t){e.isSubscribed&&d.updateTrackRenderHint(f,t)}),y);i._addTrack(g,m,p.id)}}},t.prototype._removeTrack=function(e,t){if(!this._tracks.has(t))return null;this._tracks.delete(t),{audio:this._audioTracks,video:this._videoTracks,data:this._dataTracks}[e.kind].delete(t),(this._trackEventReemitters.get(t)||new Map).forEach((function(t,n){e.removeListener(n,t)}));var n=this._log;return n.info("Removed a "+p.trackClass(e)+":",t),n.debug(p.trackClass(e)+":",e),e},t.prototype._removeTrackPublication=function(e){if(!(e=this.tracks.get(e.trackSid)))return null;this.tracks.delete(e.trackSid),{audio:this.audioTracks,data:this.dataTracks,video:this.videoTracks}[e.kind].delete(e.trackSid),(this._trackPublicationEventReemitters.get(e.trackSid)||new Map).forEac
163h((function(t,n){e.removeListener(n,t)}));var t=this._log;return t.info("Removed a "+p.trackPublicationClass(e)+":",e.trackSid),t.debug(p.trackPublicationClass(e)+":",e),e},t.prototype.toJSON=function(){return p.valueToJSON(this)},t}(a);function m(e,t,n){var r=new Map;"disconnected"!==e.state&&(e._getTrackEvents().forEach((function(n){var a=n[0],s=n[1];r.set(a,(function(){var t=[s].concat([].slice.call(arguments));return e.emit.apply(e,i([],o(t)))})),t.on(a,r.get(a))})),e._trackEventReemitters.set(n,r))}e.exports=v},29706:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=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(s){i=[6,s],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])}}},o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function i(e,t,n,r){var o=[];return e.forEach((function(e){0!==r.length&&!r.includes(e.type)||0!==n.length&&!n.includes(e.kind)||"number"!==typeof e[t]||o.push(e[t])})),o}function a(e){return[{key:"transportId",type:"string"},{key:"candidateType",type:"string"},{key:"port",altKeys:["portNumber"],type:"number"},{key:"address",altKeys:["ip","ipAddress"],type:"string"},{key:"priority",type:"number"},{key:"protocol",altKeys:["transport"],type:"string"},{key:"url",type:"string"},{key:"relayProtocol",type:"string"}].reduce((function(t,n){var r=[n.key];n.altKeys&&(r=r.concat(n.altKeys));var o=r.find((function(t){return t in e}));return o&&typeof e[o]===n.type&&(t[n.key]=e[o]),t}),{})}Object.defineProperty(t,"__esModule",{value:!0}),t.getCombinedConnectionStats=void 0,t.getCombinedConnectionStats=function(e){var t=e.publisher,s=e.subscriber;return n(this,void 0,void 0,(function(){var e,n,u,c,l,f,d,p,h,v,m,y,g,b,_;return r(this,(function(r){switch(r.label){case 0:return[4,Promise.all([t,s].map((function(e){return e.getStats()})))];case 1:return e=o.apply(void 0,[r.sent(),2]),n=e[0],u=e[1],c=i(u,"timestamp",["audio"],["inbound-rtp"]),l=c.length>0?c[0]:0,f=i(u,"jitter",["audio"],["inbound-rtp"]).reduce((function(e,t){return Math.max(e,t)}),0),d=i(u,"packetsReceived",["audio","video"],["inbound-rtp"]).reduce((function(e,t){return e+t}),0),p=i(u,"packetsLost",["audio","video"],["inbound-rtp"]).reduce((function(e,t){return e+t}),0),h=i(n,"roundTripTime",["audio","video"],["remote-inbound-rtp"]).reduce((function(e,t){return Math.max(e,t)}),0),v=i(u,"currentRoundTripTime",[],["candidate-pair"]).reduce((function(e,t){return Math.max(e,t)}),0),m=1e3*(v||h),y=i(n,"bytesSent",[],["candidate-pair"]).reduce((function(e,t){return e+t}),0),g=i(u,"bytesReceived",[],["candidate-pair"]).reduce((function(e,t){return e+t}),0),b=function(e){var t=null,n=[];e.forEach((function(e){"transport"===e.type&&e.selectedCandidatePairId?t=e.selectedCandidatePairId:"candidate-pair"===e.type&&n.push(e)}));var r=n.find((function(e){return e.selected||t&&e.id===t}));if(!r)return null;var o=r,i=e.get(o.localCandidateId),s=e.get(o.remoteCandidateId);if(!i||!s)return null;return{localCandidate:a(i),remoteCandidate:a(s)}}(u),_=[],u.forEach((function(e){"local-candidate"!==e.type&&"remote-candidate"!==e.type||_.push(a(e))})),[2,{timestamp:l,jitter:f,packets:d,packetsLost:p,roundTripTime:m,bytesSent:y,bytesReceived:g,selectedIceCandidatePairStats:b,iceCandidateStats:_}]}}))}))}},68780:function(e,t,n){"use strict";
163Object.defineProperty(t,"__esModule",{value:!0}),t.getTurnCredentials=void 0;var r=n(44670),o=n(62097).ICE_VERSION,i=n(78144),a=i.createTwilioError,s=i.SignalingConnectionError,u=n(17187);t.getTurnCredentials=function(e,t){return new Promise((function(n,i){var c=new u.EventEmitter,l=new r(t,{networkMonitor:null,eventObserver:c,helloBody:{edge:"roaming",preflight:!0,token:e,type:"ice",version:o}}),f=!1;l.once("close",(function(){f||(f=!0,i(new s))})),l.on("message",(function(e){var t=e.code,r=e.message,o=e.ice_servers,s=e.type;"iced"!==s&&"error"!==s||f||(f=!0,"iced"===s?n(o):i(a(t,r)),l.close())}))}))}},12017:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.makeStat=void 0,t.makeStat=function(e){return e&&e.length?{min:Math.min.apply(Math,r([],n(e))),max:Math.max.apply(Math,r([],n(e))),average:e.reduce((function(e,t){return e+t}),0)/e.length}:null}},87745:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mosToScore=t.calculateMOS=void 0;var n=94.768;t.calculateMOS=function(e,t,r){var o=e+2*t+10,i=0;switch(!0){case o<160:i=n-o/40;break;case o<1e3:i=n-(o-120)/10}if(!0===r<=i/2.5)i=Math.max(i-2.5*r,6.52);else i=0;return 1+.035*i+7e-6*i*(i-60)*(100-i)},t.mosToScore=function(e){return e?e>4.2?5:e>4?4:e>3.6?3:e>3?2:1:0}},46200:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},a=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(s){i=[6,s],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}),t.runPreflight=t.PreflightTest=void 0;var s=n(62097),u=n(8646),c=n(87745),l=n(29706),f=n(68780),d=n(12017),p=n(19977),h=n(84441),v=n(96971),m=n(62097).WS_SERVER,y=n(36372),g=n(73029),b=n(99576),_=n(13451),w=n(99849),x=n(97480),k=x.createSID,S=x.sessionSID,E=n(78144),O=E.SignalingConnectionTimeoutError,P=E.MediaConnectionError,T="mediaAcquired",C="connected",A="mediaSubscribed",j="mediaStarted",R="dtlsConnected",M="peerConnectionConnected",D="iceConnected";function I(e){return null!==e&&"undefined"!==typeof e}var L=0,N=function(e){function t(t,n){var r=e.call(this)||this;r._testTiming=new u.Timer,r._dtlsTiming=new u.Timer,r._iceTiming=new u.Timer,r._peerConnectionTiming=new u.Timer,r._mediaTiming=new u.Timer,r._connectTiming=new u.Timer,r._sentBytesMovingAverage=new b,r._packetLossMovingAverage=new b,r._progressEvents=[],r._receivedBytesMovingAverage=new b;var o=n,i=o.environment,a=void 0===i?"prod":i,c=o.region,l=void 0===c?"gll":c,f=o.duration,d=void 0===f?1e4:f,p=o.wsServer||m(
163a,l);return r._log=new y("default",r,s.DEFAULT_LOG_LEVEL,s.DEFAULT_LOGGER_NAME),r._testDuration=d,r._instanceId=L++,r._testTiming.start(),r._runPreflightTest(t,a,p),r}return r(t,e),t.prototype.toString=function(){return"[Preflight #"+this._instanceId+"]"},t.prototype.stop=function(){this._stopped=!0},t.prototype._generatePreflightReport=function(e){return this._testTiming.stop(),{testTiming:this._testTiming.getTimeMeasurement(),networkTiming:{dtls:this._dtlsTiming.getTimeMeasurement(),ice:this._iceTiming.getTimeMeasurement(),peerConnection:this._peerConnectionTiming.getTimeMeasurement(),connect:this._connectTiming.getTimeMeasurement(),media:this._mediaTiming.getTimeMeasurement()},stats:{jitter:d.makeStat(null===e||void 0===e?void 0:e.jitter),rtt:d.makeStat(null===e||void 0===e?void 0:e.rtt),packetLoss:d.makeStat(null===e||void 0===e?void 0:e.packetLoss)},selectedIceCandidatePairStats:e?e.selectedIceCandidatePairStats:null,iceCandidateStats:e?e.iceCandidateStats:[],progressEvents:this._progressEvents,mos:d.makeStat(null===e||void 0===e?void 0:e.mos)}},t.prototype._executePreflightStep=function(e,t,n){return i(this,void 0,void 0,(function(){var r,o,i,s;return a(this,(function(a){switch(a.label){case 0:if(this._log.debug("Executing step: ",e),r=this._testDuration+1e4,this._stopped)throw new Error("stopped");o=Promise.resolve().then(t),i=null,s=new Promise((function(t,o){i=setTimeout((function(){o(n||new Error(e+" timeout."))}),r)})),a.label=1;case 1:return a.trys.push([1,,3,4]),[4,Promise.race([s,o])];case 2:return[2,a.sent()];case 3:return null!==i&&clearTimeout(i),[7];case 4:return[2]}}
163))}))},t.prototype._collectNetworkTimings=function(e){var t=this;return new Promise((function(n){var r;e.addEventListener("iceconnectionstatechange",(function(){"checking"===e.iceConnectionState&&t._iceTiming.start(),"connected"===e.iceConnectionState&&(t._iceTiming.stop(),t._updateProgress(D),(!r||r&&"connected"===r.state)&&n())})),e.addEventListener("connectionstatechange",(function(){"connecting"===e.connectionState&&t._peerConnectionTiming.start(),"connected"===e.connectionState&&(t._peerConnectionTiming.stop(),t._updateProgress(M))}));var o=e.getSenders().map((function(e){return e.transport})).find(I);"undefined"!==typeof o&&(r=o).addEventListener("statechange",(function(){"connecting"===r.state&&t._dtlsTiming.start(),"connected"===r.state&&(t._dtlsTiming.stop(),t._updateProgress(R),"connected"===e.iceConnectionState&&n())}))}))},t.prototype._setupInsights=function(e){var t=e.token,n=e.environment,r=void 0===n?s.DEFAULT_ENVIRONMENT:n,o=e.realm,i=void 0===o?s.DEFAULT_REALM:o,a=new w(t,s.SDK_NAME,s.SDK_VERSION,r,i,{});a.connect("PREFLIGHT_ROOM_SID","PREFLIGHT_PARTICIPANT");var u=new _(a,Date.now(),this._log),c=void 0;return{reportToInsights:function(e){var t,n,r=e.report,o=r.stats.jitter||c,i=r.stats.rtt||c,s=r.stats.packetLoss||c,l=r.mos||c,f=new Map;
163r.iceCandidateStats.forEach((function(e){if(e.candidateType&&e.protocol){var t=f.get(e.candidateType)||[];t.indexOf(e.protocol)<0&&t.push(e.protocol),f.set(e.candidateType,t)}}));var d=JSON.stringify(Object.fromEntries(f)),p={name:"report",group:"preflight",level:r.error?"error":"info",payload:{sessionSID:S,preflightSID:k("PF"),progressEvents:JSON.stringify(r.progressEvents),testTiming:r.testTiming,dtlsTiming:r.networkTiming.dtls,iceTiming:r.networkTiming.ice,peerConnectionTiming:r.networkTiming.peerConnection,connectTiming:r.networkTiming.connect,mediaTiming:r.networkTiming.media,selectedLocalCandidate:null===(t=r.selectedIceCandidatePairStats)||void 0===t?void 0:t.localCandidate,selectedRemoteCandidate:null===(n=r.selectedIceCandidatePairStats)||void 0===n?void 0:n.remoteCandidate,iceCandidateStats:d,jitterStats:o,rttStats:i,packetLossStats:s,mosStats:l,error:r.error}};u.emit("event",p),setTimeout((function(){return a.disconnect()}),2e3)}}},t.prototype._runPreflightTest=function(e,t,n){return i(this,void 0,void 0,(function(){var r,s,u,c,l,d,v,m,y,g,b,_,w=this;return a(this,(function(x){switch(x.label){case 0:r=[],s=[],u=this._setupInsights({token:e,environment:t}).reportToInsights,x.label=1;case 1:return x.trys.push([1,8,9,10]),c=[],[4,this._executePreflightStep("Acquire media",(function(){return[p.syntheticAudio(),h.syntheticVideo({width:640,height:480})]}))];case 2:return r=x.sent(),this._updateProgress(T),this.emit("debug",{localTracks:r}),this._connectTiming.start(),[4,this._executePreflightStep("Get turn credentials",(function(){return f.getTurnCredentials(e,n)}),new O)];case 3:return l=x.sent(),this._connectTiming.stop(),this._updateProgress(C),d=new RTCPeerConnection({iceServers:l,iceTransportPolicy:"relay",bundlePolicy:"max-bundle"}),v=new RTCPeerConnection({iceServers:l,bundlePolicy:"max-bundle"}),s.push(d),s.push(v),this._mediaTiming.start(),[4,this._executePreflightStep("Setup Peer Connections",(function(){return i(w,void 0,void 0,(function(){var e,t,n,o;return a(this,(function(i){switch(i.label){case 0:return d.addEventListener("icecandidate",(function(e){return e.candidate&&v.addIceCandidate(e.candidate)})),v.addEventListener("icecandidate",(function(e){return e.candidate&&d.addIceCandidate(e.candidate)})),r.forEach((function(e){return d.addTrack(e)})),e=new Promise((function(e){var t=[];v.addEventListener("track",(function(n){t.push(n.track),t.length===r.length&&e(t)}))})),[4,d.createOffer()];case 1:return t=i.sent(),n=t,[4,d.setLocalDescription(n)];case 2:return i.sent(),[4,v.setRemoteDescription(n)];case 3:return i.sent(),[4,v.createAnswer()];case 4:return o=i.sent(),[4,v.setLocalDescription(o)];case 5:return i.sent(),[4,d.setRemoteDescription(o)];case 6:return i.sent(),[4,this._collectNetworkTimings(d)];case 7:return i.sent(),[2,e]}}))}))}),new P)];case 4:return m=x.sent(),this.emit("debug",{remoteTracks:m}),m.forEach((function(e){e.addEventListener("ended",(function(){return w._log.warn(e.kind+":ended")})),e.addEventListener("mute",(function(){return w._log.warn(e.kind+":muted")})),e.addEventListener("unmute",(function(){return w._log.warn(e.kind+":unmuted")}))})),this._updateProgress(A),[4,this._executePreflightStep("Wait for tracks to start",(function(){return new Promise((function(e){var t=document.createElement("video");t.autoplay=!0,t.playsInline=!0,t.muted=!0,t.srcObject=new MediaStream(m),c.push(t),w.emit("debugElement",t),t.oncanplay=e}))}),new P)];case 5:return x.sent(),this._mediaTiming.stop(),this._updateProgress(j),[4,this._executePreflightStep("Collect stats for duration",(function(){return w._collectRTCStatsForDuration(w._testDuration,{mos:[],jitter:[],rtt:[],outgoingBitrate:[],incomingBitrate:[],packetLoss:[],selectedIceCandidatePairStats:null,iceCandidateStats:[]},d,v)}))];case 6:return y=x.sent(),[4,this._executePreflightStep("Generate report",(function(){return w._generatePreflightReport(y)}))];case 7:return g=x.sent(),u({report:g}),this.emit("completed",g),[3,10];case 8:return b=x.sent(),_=this._generatePreflightReport(),u({report:o(o({},_),{error:null===b||void 0===b?void 0:b.toString()})}
163),this.emit("failed",b,_),[3,10];case 9:return s.forEach((function(e){return e.close()})),r.forEach((function(e){return e.stop()})),[7];case 10:return[2]}}))}))},t.prototype._collectRTCStats=function(e,t,n){return i(this,void 0,void 0,(function(){var r,o,i,s,u,f,d,p,h,v,m,y,g,b;return a(this,(function(a){switch(a.label){case 0:return[4,l.getCombinedConnectionStats({publisher:t,subscriber:n})];case 1:return r=a.sent(),o=r.timestamp,i=r.bytesSent,s=r.bytesReceived,u=r.packets,f=r.packetsLost,d=r.roundTripTime,p=r.jitter,h=r.selectedIceCandidatePairStats,v=r.iceCandidateStats,m=e.jitter.length>0,e.jitter.push(p),e.rtt.push(d),this._sentBytesMovingAverage.putSample(i,o),this._receivedBytesMovingAverage.putSample(s,o),this._packetLossMovingAverage.putSample(f,u),m&&(e.outgoingBitrate.push(1e3*this._sentBytesMovingAverage.get()*8),e.incomingBitrate.push(1e3*this._receivedBytesMovingAverage.get()*8),y=this._packetLossMovingAverage.get(),g=Math.min(100,100*y),e.packetLoss.push(g),b=c.calculateMOS(d,p,y),e.mos.push(b)),e.selectedIceCandidatePairStats||(e.selectedIceCandidatePairStats=h),0===e.iceCandidateStats.length&&(e.iceCandidateStats=v),[2]}}))}))},t.prototype._collectRTCStatsForDuration=function(e,t,n,r){return i(this,void 0,void 0,(function(){var o,i,s;return a(this,(function(a){switch(a.label){case 0:return o=Date.now(),i=Math.min(1e3,e),[4,v.waitForSometime(i)];case 1:return a.sent(),[4,this._collectRTCStats(t,n,r)];case 2:return a.sent(),(s=e-(Date.now()-o))>0?[4,this._collectRTCStatsForDuration(s,t,n,r)]:[3,4];case 3:t=a.sent(),a.label=4;case 4:return[2,t]}}))}))},t.prototype._updateProgress=function(e){var t=Date.now()-this._testTiming.getTimeMeasurement().start;this._progressEvents.push({duration:t,name:e}),this.emit("progress",e)},t}(g);t.PreflightTest=N,t.runPreflight=function(e,t){return void 0===t&&(t={}),new N(e,t)}},19977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntheticAudio=void 0,t.syntheticAudio=function(){var e=n(23585),t={},r=e.getOrCreate(t),o=r.createOscillator(),i=o.connect(r.createMediaStreamDestination());o.start();var a=i.stream.getAudioTracks()[0],s=a.stop;return a.stop=function(){s.call(a),e.release(t)},a}},84441:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntheticVideo=void 0,t.syntheticVideo=function(e){var t=void 0===e?{}:e,n=t.width,r=void 0===n?640:n,o=t.height,i=void 0===o?480:o,a=Object.assign(document.createElement("canvas"),{width:r,height:i}),s=a.getContext("2d");s.fillStyle="green",s.fillRect(0,0,a.width,a.height);var u=!1;requestAnimationFrame((function e(){if(!u){var t=Math.round(255*Math.random()),n=Math.round(255*Math.random()),o=Math.round(255*Math.random()),a=Math.round(255*Math.random());s.fillStyle="rgba("+t+", "+n+", "+o+", "+a+")",s.fillRect(Math.random()*r,Math.random()*i,50,50),requestAnimationFrame(e)}}));var c=a.captureStream(30).getTracks()[0],l=c.stop;return c.stop=function(){u=!0,l.call(c)},c}},8646:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var n=function(){function e(){this._end=void 0,this.start()}return e.prototype.start=function(){return this._start=Date.now(),this},e.prototype.stop=function(){return this._end=Date.now(),this},e.prototype.getTimeMeasurement=function(){return{start:this._start,end:this._end,duration:void 0===this._end?void 0:this._end-this._start}},e}();t.Timer=n},23172:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=function(e){function t(){var t=e.call(this)||this;return Object.defineProperties(t,{_queuedEvents:{value:new Map}}),t}return r(t,e),t.prototype.dequeue=function(e){var t=this,n=!0;
163if(!e)return this._queuedEvents.forEach((function(e,t){n=this.dequeue(t)&&n}),this),n;var r=this._queuedEvents.get(e)||[];return this._queuedEvents.delete(e),r.reduce((function(n,r){return t.emit.apply(t,i([],o([e].concat(r))))&&n}),n)},t.prototype.queue=function(){var e=[].slice.call(arguments);if(this.emit.apply(this,i([],o(e))))return!0;var t=e[0];return this._queuedEvents.has(t)||this._queuedEvents.set(t,[]),this._queuedEvents.get(t).push(e.slice(1)),!1},t}(n(17187).EventEmitter);e.exports=a},58690:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._handleTrackSignalingEvents(),r.once("disconnected",r._unsubscribeTracks.bind(r)),r}return r(t,e),t.prototype.toString=function(){return"[RemoteParticipant #"+this._instanceId+(this.sid?": "+this.sid:"")+"]"},t.prototype._addTrack=function(t,n,r){return e.prototype._addTrack.call(this,t,r)?(n._subscribed(t),this.emit("trackSubscribed",t,n),t):null},t.prototype._addTrackPublication=function(t){var n=e.prototype._addTrackPublication.call(this,t);return n?(this.emit("trackPublished",n),n):null},t.prototype._getTrackPublicationEvents=function(){return i(i([],o(e.prototype._getTrackPublicationEvents.call(this))),[["subscriptionFailed","trackSubscriptionFailed"],["trackDisabled","trackDisabled"],["trackEnabled","trackEnabled"],["publishPriorityChanged","trackPublishPriorityChanged"],["trackSwitchedOff","trackSwitchedOff"],["trackSwitchedOn","trackSwitchedOn"]])},t.prototype._unsubscribeTracks=function(){var e=this;this.tracks.forEach((function(t){if(t.isSubscribed){var n=t.track;t._unsubscribe(),e.emit("trackUnsubscribed",n,t)}}))},t.prototype._removeTrack=function(t,n,r){var o=this._tracks.get(r);return o?(e.prototype._removeTrack.call(this,o,r),n._unsubscribe(),this.emit("trackUnsubscribed",o,n),o):null},t.prototype._removeTrackPublication=function(t){this._signaling.clearTrackHint(t.trackSid);var n=e.prototype._removeTrackPublication.call(this,t);return n?(this.emit("trackUnpublished",n),n):null},t}(n(48948));e.exports=a},77081:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(73029),s=n(58690),u=n(2340),c=n(96971),l=c.flatMap,f=c.valueToJSON,d=0,p=function(e){function t(t,n,r){var a,s,u=e.call(this)||this,c=r.log.createLog("default",u),l=new Map;return Object.defineProperties(u,{_log:{value:c},_clientTrackSwitchOffControl:{value:r.clientTrackSwitchOffControl||"disabled"}
163,_contentPreferencesMode:{value:r.contentPreferencesMode||"disabled"},_instanceId:{value:++d},_options:{value:r},_participants:{value:l},_signaling:{value:n},dominantSpeaker:{enumerable:!0,get:function(){return this.participants.get(n.dominantSpeakerSid)||null}},isRecording:{enumerable:!0,get:function(){return n.recording.isEnabled||!1}},localParticipant:{enumerable:!0,value:t},name:{enumerable:!0,value:n.name},participants:{enumerable:!0,value:l},sid:{enumerable:!0,value:n.sid},state:{enumerable:!0,get:function(){return n.state}},mediaRegion:{enumerable:!0,value:n.mediaRegion}}),function(e,t){var n=["trackWarning","trackWarningsCleared"].map((function(n){return{eventName:n,handler:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return e.emit.apply(e,i([n],o(i(i([],o(r)),[t]))))}}}));n.forEach((function(e){var n=e.eventName,r=e.handler;return t.on(n,r)})),e.once("disconnected",(function(){return n.forEach((function(e){var n=e.eventName,r=e.handler;return t.removeListener(n,r)}))}))}(u,t),a=u,(s=n.recording).on("updated",(function(){var e=s.isEnabled;a._log.info("Recording "+(e?"started":"stopped")),a.emit("recording"+(e?"Started":"Stopped"))})),function(e,t){var n=e._log;n.debug("Creating a new RemoteParticipant for each ParticipantSignaling in the RoomSignaling"),t.participants.forEac
163h(v.bind(null,e)),n.debug("Setting up RemoteParticipant creation for all subsequent ParticipantSignalings that connect to the RoomSignaling"),t.on("participantConnected",v.bind(null,e)),t.on("dominantSpeakerChanged",(function(){return e.emit("dominantSpeakerChanged",e.dominantSpeaker)})),t.on("stateChanged",(function r(o,i){switch(n.info("Transitioned to state:",o),o){case"disconnected":e.participants.forEach((function(e){e._unsubscribeTracks()})),e.emit(o,e,i),e.localParticipant.tracks.forEach((function(e){e.unpublish()})),t.removeListener("stateChanged",r);break;case"reconnecting":setTimeout((function(){return e.emit("reconnecting",i)}),0);break;default:setTimeout((function(){return e.emit("reconnected")}),0)}}))}(u,n),function(e){var t=e.localParticipant._signaling.audioProcessors;e.localParticipant.audioTracks.forEach((function(n){var r=n.track.noiseCancellation;r&&!t.includes(r.vendor)&&(e._log.warn(r.vendor+" is not supported in this room. disabling it permanently"),r.disablePermanently())}))}(u),c.info("Created a new Room:",u.name),c.debug("Initial RemoteParticipants:",Array.from(u._participants.values())),u}return r(t,e),t.prototype.toString=function(){return"[Room #"+this._instanceId+": "+this.sid+"]"},t.prototype.disconnect=function(){return this._log.info("Disconnecting"),this._signaling.disconnect(),this},t.prototype.getStats=function(){var e=this;return this._signaling.getStats().then((function(t){return Array.from(t).map((function(t){var n=o(t,2),r=n[0],i=n[1];return new u(r,Object.assign({},i,{localAudioTrackStats:h(e,i.localAudioTrackStats),localVideoTrackStats:h(e,i.localVideoTrackStats)}))}))}))},t.prototype.refreshInactiveMedia=function(){var e=this.localParticipant.tracks,t=Array.from(e.values()).filter((function(e){return"data"!==e.track.kind})).map((function(e){return e.track})),n=l(this.participants,(function(e){return Array.from(e.tracks.values())})).filter((function(e){var t=e.track;return t&&"data"!==t.kind})).map((function(e){return e.track})),r=t.concat(n),o=new Event("unmute");t.forEach((function(e){var t=e.isMuted,n=e.mediaStreamTrack;t&&n.dispatchEvent(o)}));var i=new Event("pause");return r.forEach((function(e){var t=e._attachments,n=e._elShims;return t.forEach((function(e){var t=n.get(e);e.paused&&t&&!t.pausedIntentionally()&&e.dispatchEvent(i)}))})),this},t.prototype.toJSON=function(){return f(this)},t}(a);function h(e,t){var n=e.localParticipant._signaling;return t.reduce((function(e,t){var r=n.tracks.get(t.trackId),o=n.getSender(r);return o?[Object.assign({},t,{trackId:o.id})].concat(e):e}),[])}function v(e,t){var n=e._log,r=e._clientTrackSwitchOffControl,a=e._contentPreferencesMode,u=new s(t,{log:n,clientTrackSwitchOffControl:r,contentPreferencesMode:a});n.info("A new RemoteParticipant connected:",u),e._participants.set(u.sid,u),e.emit("participantConnected",u);var c=[["reconnected","participantReconnected"],["reconnecting","participantReconnecting"],"trackDimensionsChanged","trackDisabled","trackEnabled","trackMessage","trackPublished","trackPublishPriorityChanged","trackStarted","trackSubscribed","trackSubscriptionFailed","trackSwitchedOff","trackSwitchedOn","trackUnpublished","trackUnsubscribed"].map((function(t){var n=o(Array.isArray(t)?t:[t,t],2),r=n[0],a=n[1];function s(){var t=[].slice.call(arguments);t.unshift(a),t.push(u),e.emit.apply(e,i([],o(t)))}return u.on(r,s),[r,s]}));u.once("disconnected",(function(){var t=e.dominantSpeaker;n.info("RemoteParticipant disconnected:",u),e._participants.delete(u.sid),c.forEach((function(e){u.removeListener(e[0],e[1])})),e.emit("participantDisconnected",u),u===t&&e.emit("dominantSpeakerChanged",e.dominantSpeaker)}))}
163e.exports=p},95743:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(27207),i=n(23178),a=n(13122),s={closed:["opening"],opening:["closed","open"],open:["closed","closing"],closing:["closed","open"]},u=function(e){function t(){return e.call(this,"closed",s)||this}return r(t,e),t.prototype._close=function(e){return this.transition("closing",e),this.transition("closed",e),Promise.resolve(this)},t.prototype._connect=function(e,t,n,r,o){e.connect("PA00000000000000000000000000000000","test");var a=Promise.resolve(new i(e,"RM00000000000000000000000000000000",o));return a.cancel=function(){},a},t.prototype._open=function(e){return this.transition("opening",e),this.transition("open",e),Promise.resolve(this)},t.prototype.close=function(){var e=this;return this.bracket("close",(function(t){switch(e.state){case"closed":return e;case"open":return e._close(t);default:throw new Error('Unexpected Signaling state "'+e.state+'"')}}))},t.prototype.connect=function(e,t,n,r,o){var i=this;return this.bracket("connect",(function a(s){switch(i.state){case"closed":return i._open(s).then(a.bind(null,s));case"open":return i.releaseLockCompletely(s),i._connect(e,t,n,r,o);default:throw new Error('Unexpected Signaling state "'+i.state+'"')}}))},t.prototype.createLocalParticipantSignaling=function(){return new o},t.prototype.open=function(){var e=this;return this.bracket("open",(function(t){switch(e.state){case"closed":return e._open(t);case"open":return e;default:throw new Error('Unexpected Signaling state "'+e.state+'"')}}))},t}(a);e.exports=u},8881:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){var t=e.call(this)||this;return Object.defineProperties(t,{_publicationsToTrackSenders:{value:new Map},_trackSendersToPublications:{value:new Map}}),t}return r(t,e),t.prototype.addTrack=function(t,n,r,o){void 0===o&&(o=null);var i=this._createLocalTrackPublicationSignaling(t,n,r,o);return this._trackSendersToPublications.set(t,i),this._publicationsToTrackSenders.set(i,t),e.prototype.addTrack.call(this,i),this},t.prototype.getPublication=function(e){return this._trackSendersToPublications.get(e)||null},t.prototype.getSender=function(e){return this._publicationsToTrackSenders.get(e)||null},t.prototype.removeTrack=function(t){var n=this._trackSendersToPublications.get(t);return n?(this._trackSendersToPublications.delete(t),this._publicationsToTrackSenders.delete(n),e.prototype.removeTrack.call(this,n)&&n.stop(),n):null},t}(n(27207));e.exports=o},70617:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r){var o=this,i="data"===(t=t.clone()).kind||t.track.enabled;return(o=e.call(this,n,t.kind,i,r)||this).setTrackTransceiver(t),Object.defineProperties(o,{_updatedPriority:{value:r,writable:!0},id:{enumerable:!0,value:t.id}}),o}return r(t,e),Object.defineProperty(t.prototype,"updatedPriority",{get:function(){return this._updatedPriority}
163,enumerable:!1,configurable:!0}),t.prototype.enable=function(t){return t="boolean"!==typeof t||t,this.trackTransceiver.track.enabled=t,e.prototype.enable.call(this,t)},t.prototype.publishFailed=function(e){return function(e,t){if(null!==e._sid||e._error)return!1;return e._error=t,!0}(this,e)&&this.emit("updated"),this},t.prototype.setPriority=function(e){return this._updatedPriority!==e&&(this._updatedPriority=e,this.emit("updated")),this},t.prototype.setSid=function(t){return this._error?this:e.prototype.setSid.call(this,t)},t.prototype.stop=function(){this.trackTransceiver.stop()},t}(n(38239));e.exports=o},27207:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(13122),i=n(7837),a={connecting:["connected"],connected:["disconnected","reconnecting"],reconnecting:["connected","disconnected"],disconnected:[]},s=function(e){function t(){var t=e.call(this,"connecting",a)||this;return Object.defineProperties(t,{_identity:{writable:!0,value:null},_networkQualityLevel:{value:null,writable:!0},_networkQualityStats:{value:null,writable:!0},_sid:{writable:!0,value:null},identity:{enumerable:!0,get:function(){return this._identity}},sid:{enumerable:!0,get:function(){return this._sid}},tracks:{enumerable:!0,value:new Map}}),t}return r(t,e),Object.defineProperty(t.prototype,"networkQualityLevel",{get:function(){return this._networkQualityLevel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"networkQualityStats",{get:function(){return this._networkQualityStats},enumerable:!1,configurable:!0}),t.prototype.addTrack=function(e){return this.tracks.set(e.id||e.sid,e),this.emit("trackAdded",e),this},t.prototype.disconnect=function(){return"disconnected"!==this.state&&(this.preempt("disconnected"),!0)},t.prototype.removeTrack=function(e){var t=this.tracks.get(e.id||e.sid);return this.tracks.delete(e.id||e.sid),t&&this.emit("trackRemoved",e),t||null},t.prototype.setNetworkQualityLevel=function(e,t){this._networkQualityLevel!==e&&(this._networkQualityLevel=e,this._networkQualityStats=t&&(t.audio||t.video)?new i(t):null,this.emit("networkQualityLevelChanged"))},t.prototype.connect=function(e,t){return("connecting"===this.state||"reconnecting"===this.state)&&(this._sid||(this._sid=e),this._identity||(this._identity=t),this.preempt("connected"),!0)},t.prototype.reconnecting=function(){return("connecting"===this.state||"connected"===this.state)&&(this.preempt("reconnecting"),!0)},t}(o);e.exports=s},631:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){var t=e.call(this)||this;return Object.defineProperties(t,{_isEnabled:{value:null,writable:!0},isEnabled:{enumerable:!0,get:function(){return this._isEnabled}}}),t}return r(t,e),t.prototype.disable=function(){return this.enable(!1)},t.prototype.enable=function(e){return e="boolean"!==typeof e||e,this.isEnabled!==e&&(this._isEnabled=e,this.emit("updated")),this},t}(n(17187).EventEmitter);e.exports=o},18090:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this)||this;return r.connect(t,n),r}return r(t,e),t}(n(27207));e.exports=o},75055:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return Object.defineProperties(s,{_isSwitchedOff:{value:a,writable:!0}}),s.setSid(t),s}return r(t,e),Object.defineProperty(t.prototype,"isSubscribed",{get:function(){return!!this.trackTransceiver}
163,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSwitchedOff",{get:function(){return this._isSwitchedOff},enumerable:!1,configurable:!0}),t.prototype.subscribeFailed=function(e){return this.error||(this._error=e,this.emit("updated")),this},t.prototype.setPriority=function(e){return this._priority!==e&&(this._priority=e,this.emit("updated")),this},t.prototype.setSwitchedOff=function(e){return this._isSwitchedOff!==e&&(this._isSwitchedOff=e,this.emit("updated")),this},t}(n(38239));e.exports=o},23178:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(631),i=n(13122),a=n(75317),s=n(96971).buildLogLevels,u=n(62097).DEFAULT_LOG_LEVEL,c=n(36372),l=n(78144),f=l.MediaConnectionError,d=l.MediaDTLSTransportFailedError,p=l.SignalingConnectionDisconnectedError,h=0,v={connected:["reconnecting","disconnected"],reconnecting:["connected","disconnected"],disconnected:[]},m=function(e){function t(t,n,r,i){var l=this;i=Object.assign({logLevel:u,RecordingSignaling:o,Timeout:a},i);var f=s(i.logLevel);l=e.call(this,"connected",v)||this;var p=i.RecordingSignaling,m=new i.Timeout((function(){l._disconnect(l._reconnectingError)}),i.sessionTimeout,!1);return Object.defineProperties(l,{_instanceId:{value:h++},_log:{value:i.log?i.log.createLog("default",l):new c("default",l,f,i.loggerName)},_mediaConnectionIsReconnecting:{writable:!0,value:!1},_options:{value:i},_reconnectingError:{value:null,writable:!0},_sessionTimeout:{value:m},dominantSpeakerSid:{enumerable:!0,value:null,writable:!0},localParticipant:{enumerable:!0,value:t},name:{enumerable:!0,value:r},participants:{enumerable:!0,value:new Map},recording:{enumerable:!0,value:new p},sid:{enumerable:!0,value:n}}),l.on("connectionStateChanged",(function(){"failed"!==l.connectionState||["disconnected","failed"].includes(l.iceConnectionState)||l._disconnect(new d)})),l.on("iceConnectionStateChanged",(function(){return y(l)})),l.on("signalingConnectionStateChanged",(function(){return y(l)})),setTimeout((function(){return y(l)})),l}return r(t,e),t.prototype._disconnect=function(e){return"disconnected"!==this.state&&(this.preempt("disconnected",null,[e]),!0)},t.prototype.toString=function(){return"[RoomSignaling #"+this._instanceId+": "+(this.localParticipant?this.localParticipant.sid:"null")+"]"},t.prototype.connectParticipant=function(e){var t=this;return"disconnected"!==e.state&&(!this.participants.has(e.sid)&&(this.participants.set(e.sid,e),e.on("stateChanged",(function n(r){"disconnected"===r&&(e.removeListener("stateChanged",n),t.participants.delete(e.sid),t.emit("participantDisconnected",e))})),this.emit("participantConnected",e),!0))},t.prototype.disconnect=function(){return this._disconnect()},t.prototype.setDominantSpeaker=function(e){this.dominantSpeakerSid=e,this.emit("dominantSpeakerChanged")},t}(i);function y(e){var t;"disconnected"!==e.state&&"disconnected"!==e.signalingConnectionState?("reconnecting"===e.signalingConnectionState?t=e.signalingConnectionState:"failed"===e.iceConnectionState?(e._mediaConnectionIsReconnecting=!0,t="reconnecting"):"new"===e.iceConnectionState||"checking"===e.iceConnectionState?t=e._mediaConnectionIsReconnecting?"reconnecting":"connected":(e._mediaConnectionIsReconnecting=!1,e._reconnectingError=null,e._sessionTimeout.clear(),t="connected"),t!==e.state&&("reconnecting"===t?(e._reconnectingError="reconnecting"===e.signalingConnectionState?new p:new f,e._sessionTimeout.start(),e.preempt(t,null,[e._reconnectingError])):e.preempt(t))):e._sessionTimeout.clear()}e.exports=m},38239:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r,o){var i=e.call(this)||this,a=null;return Object.defineProperties(i,{_error:{value:null,writable:!0},_isEnabled:{value:r,writable:!0},_priority:{value:o,writable:!0},_trackTransceiver:{value:null,writable:!0},_sid:{get:function(){return a}
163,set:function(e){null===a&&(a=e)}},kind:{enumerable:!0,value:n},name:{enumerable:!0,value:t}}),i}return r(t,e),Object.defineProperty(t.prototype,"error",{get:function(){return this._error},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this._isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"priority",{get:function(){return this._priority},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sid",{get:function(){return this._sid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trackTransceiver",{get:function(){return this._trackTransceiver},enumerable:!1,configurable:!0}),t.prototype.disable=function(){return this.enable(!1)},t.prototype.enable=function(e){return e="boolean"!==typeof e||e,this.isEnabled!==e&&(this._isEnabled=e,this.emit("updated")),this},t.prototype.setTrackTransceiver=function(e){return e=e||null,this.trackTransceiver!==e&&(this._trackTransceiver=e,this.emit("updated")),this},t.prototype.setSid=function(e){return null===this.sid&&(this._sid=e,this.emit("updated")),this},t}(n(17187).EventEmitter);e.exports=o},44904:function(e,t,n){"use strict";var r=n(17422),o=n(26503),i=n(14803),a=n(61722),s=n(78144),u=s.SignalingConnectionDisconnectedError,c=s.SignalingIncomingMessageInvalidError,l=n(96971),f=l.flatMap,d=l.createRoomConnectEventPayload;e.exports=function(e,t,n,s,l,p){p=Object.assign({PeerConnectionManager:o,RoomV2:i,Transport:a},p);var h=l.video[0]&&!0===l.video[0].adaptiveSimulcast,v=p.PeerConnectionManager,m=p.RoomV2,y=p.Transport,g=p.iceServers,b=p.log,_=new v(s,l,p),w=f(n.tracks,(function(e){return[e.trackTransceiver]}));_.setTrackSenders(w);var x,k=new Error("Canceled"),S=new r((function(r,o,i){var a=p.automaticSubscription,s=p.bandwidthProfile,l=p.dominantSpeaker,f=p.environment,v=p.eventObserver,w=p.loggerName,S=p.logLevel,E=p.name,O=p.networkMonitor,P=p.networkQuality,T=p.notifyWarnings,C=p.realm,A=p.sdpSemantics,j=!!s,R=!!s,M=!!s&&("disabled"!==p.clientTrackSwitchOffControl||"disabled"!==p.contentPreferencesMode),D=Object.assign({adaptiveSimulcast:h,automaticSubscription:a,dominantSpeaker:l,environment:f,eventObserver:v,loggerName:w,logLevel:S,networkMonitor:O,networkQuality:P,notifyWarnings:T,iceServers:g,onIced:function(e){return i()?(o(k),Promise.reject(k)):(b.debug("Got ICE servers:",e),p.iceServers=e,_.setConfiguration(p),_.createAndOffer().then((function(){if(i())throw o(k),k;b.debug("createAndOffer() succeeded."),_.dequeue("description")})).catch((function(e){throw b.error("createAndOffer() failed:",e),o(e),e})))},realm:C,renderHints:M,sdpSemantics:A,trackPriority:j,trackSwitchOff:R},s?{bandwidthProfile:s}:{});x=new y(E,e,n,_,t,D);var I=d(p);v.emit("event",I),x.once("connected",(function(e){(b.debug("Transport connected:",e),i())?o(k):e.participant?r(new m(n,e,x,_,p)):o(new c)})),x.once("stateChanged",(function(e,t){"disconnected"===e?(x=null,o(t||new u)):b.debug("Transport state changed:",e)}))}),(function(){x&&(x.disconnect(),x=null)}));return S.catch((function(){x&&(x.disconnect(),x=null),_.close()})),S}},58869:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,"active_speaker",n)||this;return Object.defineProperties(r,{_loudestParticipantSid:{value:null,writable:!0}}),r.on("ready",(function(e){e.on("message",(function(e){if("active_speaker"===e.type)r._setLoudestParticipantSid(e.participant)}))})),r}return r(t,e),Object.defineProperty(t.prototype,"loudestParticipantSid",{get:function(){return this._loudestParticipantSid},enumerable:!1,configurable:!0}),t.prototype._setLoudestParticipantSid=function(e){this.loudestParticipantSid!==e&&(this._loudestParticipantSid=e,this.emit
163("updated"))},t}(n(61014));e.exports=o},75177:function(e,t,n){"use strict";var r=n(95115),o=function(){function e(){Object.defineProperties(this,{_filter:{value:new r({getKey:function(e){return e.ufrag},isLessThanOrEqualTo:function(e,t){return e.revision<=t.revision}})},_ufrag:{writable:!0,value:null},ufrag:{enumerable:!0,get:function(){return this._ufrag}}})}return e.prototype.setUfrag=function(e){this._ufrag=e;var t=this._filter.toMap().get(e);return t?t.candidates:[]},e.prototype.update=function(e){e.candidates=e.candidates||[];var t=this._filter.toMap().get(e.ufrag),n=t?t.candidates:[];return this._filter.update(e)&&this._ufrag===e.ufrag?e.candidates.slice(n.length):[]},e}();e.exports=o},68581:function(e,t,n){"use strict";var r=n(62097),o=r.ICE_ACTIVITY_CHECK_PERIOD_MS,i=r.ICE_INACTIVITY_THRESHOLD_MS,a=function(){function e(e,t){t=Object.assign({activityCheckPeriodMs:o,inactivityThresholdMs:i},t),Object.defineProperties(this,{_activityCheckPeriodMs:{value:t.activityCheckPeriodMs},_inactivityThresholdMs:{value:t.inactivityThresholdMs},_lastActivity:{value:null,writable:!0},_peerConnection:{value:e},_timer:{value:null,writable:!0},_onIceConnectionStateChanged:{value:null,writable:!0}})}return e.prototype._getActivePairStat=function(e){return Array.from(e.values()).find((function(e){return"candidate-pair"===e.type&&e.nominated}))||{bytesReceived:0,timestamp:Math.round((new Date).getTime())}},e.prototype._getIceConnectionStats=function(){var e=this;return this._peerConnection.getStats().then((function(t){return e._getActivePairStat(t)})).catch((function(){return null}))},e.prototype._scheduleInactivityCallback=function(e){var t=this;e&&null===this._onIceConnectionStateChanged?(this._onIceConnectionStateChanged=function(){"disconnected"===t._peerConnection.iceConnectionState&&e()},this._peerConnection.addEventListener("iceconnectionstatechange",this._onIceConnectionStateChanged)):!e&&this._onIceConnectionStateChanged&&(this._peerConnection.removeEventListener("iceconnectionstatechange",this._onIceConnectionStateChanged),this._onIceConnectionStateChanged=null)},e.prototype.start=function(e){var t=this;this.stop(),this._timer=setInterval((function(){t._getIceConnectionStats().then((function(n){n&&(t._lastActivity&&t._lastActivity.bytesReceived===n.bytesReceived||(t._lastActivity=n,t._scheduleInactivityCallback(null)),n.timestamp-t._lastActivity.timestamp>=t._inactivityThresholdMs&&("disconnected"===t._peerConnection.iceConnectionState?e():null===t._onIceConnectionStateChanged&&t._scheduleInactivityCallback(e)))}))}),this._activityCheckPeriodMs)},e.prototype.stop=function(){this._scheduleInactivityCallback(null),null!==this._timer&&(clearInterval(this._timer),this._timer=null,this._lastActivity=null)},e}();e.exports=a},89528:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(44904),i=n(60671),a=function(e){function t(t,n){var r;return n=Object.assign({createCancelableRoomSignalingPromise:o},n),r=e.call(this)||this,Object.defineProperties(r,{_createCancelableRoomSignalingPromise:{value:n.createCancelableRoomSignalingPromise},_options:{value:n},_wsServer:{value:t}}),r}return r(t,e),t.prototype._connect=function(e,t,n,r,o){return o=Object.assign({},this._options,o),this._createCancelableRoomSignalingPromise.bind(null,t,this._wsServer,e,n,r,o)},t.prototype.createLocalParticipantSignaling=function(e,t){return new i(e,t)},t}(n(95743));e.exports=a},60671:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(8881),i=n(58876),a=n(62097).DEFAULT_LOG_LEVEL,s=n(36372),u=n(96971),c=u.buildLogLevels,l=u.isDeepEqual,f=function(e){function t(t,n,r){var o;r=Object.assign({logLevel:a,LocalTrackPublicationV2:i},r),o=e.call(this)||this;var u=c(r.logLevel);return Object.defineProperties(o,{_bandwidthProfile:{value:null,writable:!0},_bandwidthProfileRevision:{value:0,writable:!0},_encodingParameters:{value:t},_removeListeners:{value:new Map},_LocalTrackPublicationV2:{value:r.LocalTrackPublicationV2},_log:{value:r.log?r.log.createLog("default",o):new s("default",o,u,r.loggerName)}
163,_publishedRevision:{writable:!0,value:0},_revision:{writable:!0,value:1},_signalingRegion:{value:null,writable:!0},audioProcessors:{value:[],writable:!0},bandwidthProfile:{enumerable:!0,get:function(){return this._bandwidthProfile}},bandwidthProfileRevision:{enumerable:!0,get:function(){return this._bandwidthProfileRevision}},networkQualityConfiguration:{enumerable:!0,value:n},revision:{enumerable:!0,get:function(){return this._revision}},signalingRegion:{enumerable:!0,get:function(){return this._signalingRegion}}}),o}return r(t,e),t.prototype.toString=function(){return"[LocalParticipantSignaling: "+this.sid+"]"},t.prototype.setSignalingRegion=function(e){this._signalingRegion||(this._signalingRegion=e)},t.prototype.setBandwidthProfile=function(e){l(this._bandwidthProfile,e)||(this._bandwidthProfile=JSON.parse(JSON.stringify(e)),this._bandwidthProfileRevision++,this.didUpdate())},t.prototype.setAudioProcessors=function(e){this.audioProcessors=e},t.prototype.getParameters=function(){return this._encodingParameters},t.prototype.setParameters=function(e){return this._encodingParameters.update(e),this},t.prototype.update=function(e){return this._publishedRevision>=e.revision||(this._publishedRevision=e.revision,e.tracks.forEach((function(e){var t=this.tracks.get(e.id);t&&t.update(e)}),this)),this},t.prototype.updateMediaStates=function(e){return e&&e.tracks?(Array.from(this.tracks.values()).forEach((function(t){var n=e.tracks[t.sid];n&&t.updateMediaStates(n)})),this):this},t.prototype._createLocalTrackPublicationSignaling=function(e,t,n,r){return new this._LocalTrackPublicationV2(e,t,n,r,{log:this._log})},t.prototype.addTrack=function(t,n,r,o){var i=this;e.prototype.addTrack.call(this,t,n,r,o);var a=this.getPublication(t),s=a.isEnabled,u=a.updatedPriority,c=function(){s===a.isEnabled&&u===a.updatedPriority||(i.didUpdate(),s=a.isEnabled,u=a.updatedPriority)};return a.on("updated",c),this._removeListener(a),this._removeListeners.set(a,(function(){return a.removeListener("updated",c)})),this.didUpdate(),this},t.prototype._removeListener=function(e){var t=this._removeListeners.get(e);t&&t()},t.prototype.getState=function(){return{revision:this.revision,tracks:Array.from(this.tracks.values()).map((function(e){return e.getState()}))}},t.prototype.didUpdate=function(){this._revision++,this.emit("updated")},t.prototype.removeTrack=function(t){var n=e.prototype.removeTrack.call(this,t);return n&&(t.removeClone(n.trackTransceiver),this._removeListener(n),this.didUpdate()),n},t.prototype.setNetworkQualityConfiguration=function(e){this.networkQualityConfiguration.update(e)},t.prototype.setPublisherHint=function(e,t){var n=Array.from(this.tracks.values()).find((function(t){return t.sid===e}));return n?n.trackTransceiver.setPublisherHint(t):(this._log.warn("track:"+e+" not found"),Promise.resolve("UNKNOWN_TRACK"))},t}(o);e.exports=f},58876:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}
163(),o=n(70617),i=n(22665),a=n(78144).createTwilioError,s=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return Object.defineProperties(a,{_log:{value:i.log.createLog("default",a)},_mediaStates:{value:{recordings:null},writable:!0},_noiseCancellationVendor:{value:o}}),a}return r(t,e),t.prototype.getState=function(){var e={enabled:this.isEnabled,id:this.id,kind:this.kind,name:this.name,priority:this.updatedPriority};return this._noiseCancellationVendor&&(e.audio_processor=this._noiseCancellationVendor),e},t.prototype.toString=function(){return"[LocalTrackPublicationV2: "+this.sid+"]"},t.prototype.update=function(e){switch(e.state){case"ready":this.setSid(e.sid);break;case"failed":var t=e.error;this.publishFailed(a(t.code,t.message))}return this},t.prototype.updateMediaStates=function(e){if(!e||!e.recordings||this._mediaStates.recordings===e.recordings)return this;switch(this._mediaStates.recordings=e.recordings,this._mediaStates.recordings){case"OK":this._log.info("Warnings have cleared."),this.emit("warningsCleared");break;case"NO_MEDIA":this._log.warn("Recording media lost."),this.emit("warning",i.recordingMediaLost);break;default:this._log.warn("Unknown media state detected: "+this._mediaStates.recordings)}return this},t}(o);e.exports=s},61014:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(17187),i=0,a=function(e){function t(t,n,r){var o=e.call(this)||this;return Object.defineProperties(o,{_instanceId:{value:i++},channel:{value:n},_log:{value:r.log.createLog("default",o)},_getReceiver:{value:t},_receiverPromise:{value:null,writable:!0},_transport:{value:null,writable:!0}}),o}return r(t,e),Object.defineProperty(t.prototype,"isSetup",{get:function(){return!!this._receiverPromise},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[MediaSignaling #"+this._instanceId+":"+this.channel+"]"},t.prototype.setup=function(e){var t=this;this._teardown(),this._log.info("setting up msp transport for id:",e);var n=this._getReceiver(e).then((function(e){if("data"!==e.kind&&t._log.error("Expected a DataTrackReceiver"),t._receiverPromise===n){try{t._transport=e.toDataTransport(),t.emit("ready",t._transport)}catch(r){t._log.error("Failed to toDataTransport: "+r.message)}e.once("close",(function(){return t._teardown()}))}}));this._receiverPromise=n},t.prototype._teardown=function(){this._transport&&(this._log.info("Tearing down"),this._transport=null,this._receiverPromise=null,this.emit("teardown"))},t}(o);e.exports=a},16202:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=n(17187),a=n(97396),s=function(e){function t(t,n){var r=e.call(this)||this;return Object.defineProperties(r,{_factories:{value:new WeakMap},_manager:{value:t},_signaling:{value:n}}),n.on("updated",(function(){return r.emit("updated")})),r}return r(t,e),Object.defineProperty(t.prototype,"level",{get:function(){return this._signaling.level}
163,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"levels",{get:function(){return this._signaling.levels},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"remoteLevels",{get:function(){return this._signaling.remoteLevels},enumerable:!1,configurable:!0}),t.prototype.start=function(){var e=this;this.stop();var t=setTimeout((function(){e._timeout===t&&function(e){var t=(e._manager._peerConnections?Array.from(e._manager._peerConnections.values()):[]).map((function(e){return e._peerConnection})).filter((function(e){return"closed"!==e.signalingState})).map((function(t){if(e._factories.has(t))return e._factories.get(t);var n=new a(t);return e._factories.set(t,n),n})).map((function(e){return e.next().catch((function(){return null}))}));return Promise.all(t).then((function(e){return e.filter((function(e){return e})).map((function(e){return e.summarize()}))}))}(e).then((function(n){if(e._timeout===t){if(n.length){var r=o(n,1)[0];e._signaling.put(r)}e.start()}}))}),200);this._timeout=t},t.prototype.stop=function(){clearTimeout(this._timeout),this._timeout=null},t}(i);e.exports=s},80597:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(61014),i=n(7206),a=n(75317),s=function(e){function t(t,n,r){var o=e.call(this,t,"network_quality",r)||this;return Object.defineProperties(o,{_level:{value:null,writable:!0},_levels:{value:null,writable:!0},_remoteLevels:{value:new Map,writable:!0},_networkQualityInputs:{value:new i},_resendTimer:{value:new a((function(){o._resendTimer.setDelay(1.5*o._resendTimer.delay),o._sendNetworkQualityInputs()}),5e3,!1)},_networkQualityReportLevels:{get:function(){return{reportLevel:n.local,remoteReportLevel:n.remote}}}}),o.on("ready",(function(e){e.on("message",(function(e){if(o._log.debug("Incoming: ",e),"network_quality"===e.type)o._handleNetworkQualityMessage(e)}))})),o._sendNetworkQualityInputs(),o}return r(t,e),Object.defineProperty(t.prototype,"level",{get:function(){return this._level},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"levels",{get:function(){return this._levels},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"remoteLevels",{get:function(){return this._remoteLevels},enumerable:!1,configurable:!0}),t.prototype._handleNetworkQualityMessage=function(e){var t=this,n=!1,r=null,o=e?e.local:null;"number"===typeof o?(r=o,this._levels=null):"object"===typeof o&&o&&(this._levels=o,r="number"===typeof o.level?o.level:Math.min(o.audio.send,o.audio.recv,o.video.send,o.video.recv)),null!==r&&this.level!==r&&(this._level=r,n=!0),this._remoteLevels=e&&e.remotes?e.remotes.reduce((function(e,r){return(t._remoteLevels.get(r.sid)||{}).level!==r.level&&(n=!0),e.set(r.sid,r)}),new Map):this._remoteLevels,n&&this.emit("updated"),this._resendTimer.setDelay(5e3),this._resendTimer.isSet&&setTimeout((function(){return t._sendNetworkQualityInputs()}),1e3)},t.prototype._sendNetworkQualityInputs=function(){var e=this;return this._resendTimer.clear(),this._networkQualityInputs.take().then((function(t){e._transport&&e._transport.publish(function(e,t){return Object.assign({type:"network_quality"},e,t)}(t,e._networkQualityReportLevels))})).finally((function(){e._resendTimer.start()}))},t.prototype.put=function(e){this._networkQualityInputs.put(e)},t}(o);e.exports=s},5773:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(51822),s=n(39778),u=s.RTCIceCandidate,c=s.RTCPeerConnection,l=s.RTCSessionDescription,f=s.getStats,d=n(67476),p=n(62097),h=p.DEFAULT_ICE_GATHERING_TIMEOUT_MS,v=p.DEFAULT_LOG_LEVEL,m=p.DEFAULT_SESSION_TIMEOUT_SEC,y=p.iceRe
163startBackoffConfig,g=n(51062),b=g.addOrRewriteNewTrackIds,_=g.addOrRewriteTrackIds,w=g.createCodecMapForMediaSection,x=g.disableRtx,k=g.enableDtxForOpus,S=g.filterLocalCodecs,E=g.getMediaSections,O=g.removeSSRCAttributes,P=g.revertSimulcast,T=g.setCodecPreferences,C=g.setSimulcast,A=n(75317),j=n(78144),R=j.MediaClientLocalDescFailedError,M=j.MediaClientRemoteDescFailedError,D=n(96971),I=D.buildLogLevels,L=D.getPlatform,N=D.isChromeScreenShareTrack,B=D.oncePerTick,F=D.defer,Z=n(75177),z=n(68581),V=n(39538),U=n(38960),W=n(13122),H=n(36372),q=n(65179),$=n(14799),G=d.guessBrowser(),Y=L(),K=/android/.test(Y),X="chrome"===G,Q="firefox"===G,J="safari"===G,ee=0,te={open:["closed","updating"],updating:["closed","open"],closed:[]},ne=function(e){function t(t,n,r,o){var i=e.call(this,"open",te)||this,s=ae(o=Object.assign({enableDscp:!1,dummyAudioMediaStreamTrack:null,isChromeScreenShareTrack:N,iceServers:[],logLevel:v,offerOptions:{},revertSimulcast:P,sessionTimeout:1e3*m,setCodecPreferences:T,setSimulcast:C,Backoff:a,IceConnectionMonitor:z,RTCIceCandidate:u,RTCPeerConnection:c,RTCSessionDescription:l,Timeout:A},o)),f=I(o.logLevel),d=o.RTCPeerConnection;!0===o.enableDscp&&(o.chromeSpecificConstraints=o.chromeSpecificConstraints||{},o.chromeSpecificConstraints.optional=o.chromeSpecificConstraints.optional||[],o.chromeSpecificConstraints.optional.push({googDscp:!0}));var p=o.log?o.log.createLog("webrtc",i):new H("webrtc",i,f,o.loggerName),g=new d(s,o.chromeSpecificConstraints);o.dummyAudioMediaStreamTrack&&g.addTrack(o.dummyAudioMediaStreamTrack),Object.defineProperties(i,{_appliedTrackIdsToAttributes:{value:new Map,writable:!0},_dataChannels:{value:new Map},_dataTrackReceivers:{value:new Set},_descriptionRevision:{writable:!0,value:0},_didGenerateLocalCandidates:{writable:!0,value:!1},_enableDscp:{value:o.enableDscp},_encodingParameters:{value:n},_isChromeScreenShareTrack:{value:o.isChromeScreenShareTrack},_iceGatheringFailed:{value:!1,writable:!0},_iceGatheringTimeout:{value:new o.Timeout((function(){return i._handleIceGatheringTimeout()}),h,!1)},_iceRestartBackoff:{value:new o.Backoff(y)},_instanceId:{value:++ee},_isIceConnectionInactive:{writable:!0,value:!1},_isIceLite:{writable:!0,value:!1},_isIceRestartBackoffInProgress:{writable:!0,value:!1},_isRestartingIce:{writable:!0,value:!1},_lastIceConnectionState:{writable:!0,value:null},_lastStableDescriptionRevision:{writable:!0,value:0},_localCandidates:{writable:!0,value:[]},_localCodecs:{value:new Set},_localCandidatesRevision:{writable:!0,value:1},_localDescriptionWithoutSimulcast:{writable:!0,value:null},_localDescription:{writable:!0,value:null},_localUfrag:{writable:!0,value:null},_log:{value:p},_eventObserver:{value:o.eventObserver},_remoteCodecMaps:{value:new Map},_rtpSenders:{value:new Map},_rtpNewSenders:{value:new Set},_iceConnectionMonitor:{value:new o.IceConnectionMonitor(g)},_mediaTrackReceivers:{value:new Set},_needsAnswer:{writable:!0,value:!1},_negotiationRole:{writable:!0,value:null},_offerOptions:{writable:!0,value:o.offerOptions},_onEncodingParametersChanged:{value:B((function(){i._needsAnswer||ce(i)}))},_peerConnection:{value:g},_preferredAudioCodecs:{value:r.audio},_preferredVideoCodecs:{value:r.video},_shouldApplyDtx:{value:r.audio.every((function(e){return"opus"!==e.codec}))||r.audio.some((function(e){var t=e.codec,n=e.dtx;return"opus"===t&&n}))},_queuedDescription:{writable:!0,value:null},_iceReconnectTimeout:{value:new o.Timeout((function(){p.debug("ICE reconnect timed out"),i.close()}),o.sessionTimeout,!1)},_recycledTransceivers:{value:{audio:[],video:[]}},_replaceTrackPromises:{value:new Map},_remoteCandidates:{writable:!0,value:new Z},_setCodecPreferences:{value:Q&&K&&r.video[0]&&"h264"!==r.video[0].codec.toLowerCase()?function(e){return e}:o.setCodecPreferences},_setSimulcast:{value:o.setSimulcast},_revertSimulcast:{value:o.revertSimulcast},_RTCIceCandidate:{value:o.RTCIceCandidate},_RTCPeerConnection:{value:o.RTCPeerConnection},_RTCSessionDescription:{value:o.RTCSessionDescription},_shouldOffer:{writable:!0,value:!1},_shouldRestartIce:{writable:!0,value:!1},_trackIdsToAttributes:{value:new Map,writable:!0},_trackMatcher:{writable:!0,value:null},_mediaTrackSenderToPublisherHints:{value:new Map},id:{enumerable:!0,value:t}}),n.on("changed",i._onEncodingParametersChanged),g.addEventListener("connectionstatechange",i._handleConnectionStateChange.bind(i)),g.addEventListener("datachannel",i._handleDataChannelEvent.bind(i)),g.addEventListener("icecandidate",i._handleIceCandidateEvent.bind(i)),g.addEventListener("iceconnectionstatechange",i._handleIceConnectionStateChange.bind(i)),g.addEventListener("icegatheringstatechange",i._handleIceGatheringStateChange.bind(i)),g.addEventListener("signalingstatechange",i._handleSignalingStateChange.bind(i)),g.addEventListener("track",i._handleTrackEvent.bind(i));var b=i;return i.on("stateChanged",(function e(t){"closed"===t&&(b.removeListener("stateChanged",e),b._dataChannels.forEac
163h((function(e,t){b.removeDataTrackSender(t)})))})),i}return r(t,e),t.prototype.toString=function(){return"[PeerConnectionV2 #"+this._instanceId+": "+this.id+"]"},t.prototype.setEffectiveAdaptiveSimulcast=function(e){this._log.debug("Setting setEffectiveAdaptiveSimulcast: ",e),this._preferredVideoCodecs.forEach((function(t){"adaptiveSimulcast"in t&&(t.adaptiveSimulcast=e)}))},Object.defineProperty(t.prototype,"_shouldApplySimulcast",{get:function(){return!(!X&&!J)&&this._preferredVideoCodecs.some((function(e){return"vp8"===e.codec.toLowerCase()&&e.simulcast&&!1!==e.adaptiveSimulcast}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connectionState",{get:function(){return"failed"===this.iceConnectionState?"failed":this._peerConnection.connectionState||this.iceConnectionState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iceConnectionState",{get:function(){return this._isIceConnectionInactive&&"disconnected"===this._peerConnection.iceConnectionState||this._iceGatheringFailed?"failed":this._peerConnection.iceConnectionState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isApplicationSectionNegotiated",{get:function(){return"closed"===this._peerConnection.signalingState||!!this._peerConnection.localDescription&&E(this._peerConnection.localDescription.sdp,"application").length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isAdaptiveSimulcastEnabled",{get:function(){var e=this._preferredVideoCodecs.find((function(e){return"adaptiveSimulcast"in e}));return e&&!0===e.adaptiveSimulcast},enumerable:!1,configurable:!0}),t.prototype._maybeUpdateEncodings=function(e,t,n){if(void 0===n&&(n=!1),"video"!==e.kind||"ended"===e.readyState)return!1;var r=e.getSettings(),o=r.height,i=r.width;if("number"!==typeof o||"number"!==typeof i)return!1;var a=d.guessBrowser();return!!("safari"===a||"chrome"===a&&this._isAdaptiveSimulcastEnabled)&&(this._updateEncodings(e,t,n),!0)},t.prototype._updateEncodings=function(e,t,n){if(this._isChromeScreenShareTrack(e)){var r=[{scaleResolutionDownBy:1},{scaleResolutionDownBy:1}];t.forEach((function(e,t){var o=r[t];o?(e.scaleResolutionDownBy=o.scaleResolutionDownBy,n&&delete e.active):(e.active=!1,delete e.scaleResolutionDownBy)}))}else{var o=e.getSettings(),i=o.width*o.height,a=[{pixels:518400,maxActiveLayers:3},{pixels:129600,maxActiveLayers:2},{pixels:0,maxActiveLayers:1}].find((function(e){return i>=e.pixels})),s=Math.min(t.length,a.maxActiveLayers);t.forEach((function(e,t){t<s?(e.scaleResolutionDownBy=1<<s-t-1,n&&(e.active=!0)):(e.active=!1,delete e.scaleResolutionDownBy)}))}this._log.debug("_updateEncodings:",t.map((function(e,t){return"["+t+": "+e.active+", "+(e.scaleResolutionDownBy||0)+"]"})).join(", "))},t.prototype._addIceCandidate=function(e){var t=this;return Promise.resolve().then((function(){return e=new t._RTCIceCandidate(e),t._peerConnection.addIceCandidate(e)})).catch((function(n){t._log.warn("Failed to add RTCIceCandidate "+(e?'"'+e.candidate+'"':"null")+": "+n.message)}))},t.prototype._addIceCandidates=function(e){return Promise.all(e.map(this._addIceCandidate,this)).then((function(){}))},t.prototype._addOrUpdateTransceiver=function(e){var t=this,n=function(e,t){var n={audio:e._preferredAudioCodecs.map((function(e){return e.codec.toLowerCase()})),video:e._preferredVideoCodecs.map((function(e){return e.codec.toLowerCase()}))}[t],r=e._recycledTransceivers[t],o=n.find((function(t){return e._localCodecs.has(t)}));if(!o)return r.shift();var i=r.find((function(t){var n=e._remoteCodecMaps.get(t.mid);return n&&n.has(o)}));i&&r.splice(r.indexOf(i),1);return i}(this,e.kind);if(n&&n.sender){var r=n.sender.track?n.sender.track.id:null;return r&&this._log.warn("Reusing transceiver: "+n.mid+"] "+r+" => "+e.id),this._replaceTrackPromises.set(n,n.sender.replaceTrack(e).then((function(){n.direction="sendrecv"}),(function(){})).finally((function(){t._replaceTrackPromises.delete(n)}))),n}return this._peerConnection.addTransceiver(e)},t.prototype._checkIceBox=function(e){var t=ie(e);if(!t)return Promise.resolve();var n=this._remoteCandidates.setUfrag(t);return this._addIceCandidates(n)},t.prototype._answer=function(e){var t=this;return Promise.resolve().then((function(){return t._negotiationRole||(t._negotiationRole="answerer"),t._setRemoteDescription(e)})).catch((function(){throw new M})).then((function(){return t._peerConnection.createAnswer()})).then((function(n){n=Q?new t._RTCSessionDescription({sdp:x(n.sdp),type:n.type}):$(n);var r=O(n.sdp,["mslabel","label"]);if(t._shouldApplySimulcast){var o=r;
163r=t._setSimulcast(o,t._trackIdsToAttributes),r=t._revertSimulcast(r,o,e.sdp)}return r=r.replace(/42e015/g,"42e01f"),t._setLocalDescription({type:n.type,sdp:r})})).then((function(){return t._checkIceBox(e)})).then((function(){return t._queuedDescription&&t._updateDescription(t._queuedDescription)})).then((function(){return t._queuedDescription=null,t._maybeReoffer(t._peerConnection.localDescription)})).catch((function(e){var n=e instanceof M?e:new R;throw t._publishMediaWarning({message:"Failed to _answer",code:n.code,error:e}),n}))},t.prototype._close=function(){return this._iceConnectionMonitor.stop(),"closed"!==this._peerConnection.signalingState&&(this._peerConnection.close(),this.preempt("closed"),this._encodingParameters.removeListener("changed",this._onEncodingParametersChanged),!0)},t.prototype._handleConnectionStateChange=function(){this.emit("connectionStateChanged")},t.prototype._handleDataChannelEvent=function(e){var t=this,n=e.channel,r=new V(n);this._dataTrackReceivers.add(r),n.addEventListener("close",(function(){t._dataTrackReceivers.delete(r)})),this.emit("trackAdded",r)},t.prototype._handleGlare=function(e){var t=this;return this._log.debug("Glare detected; rolling back"),this._isRestartingIce&&(this._log.debug("An ICE restart was in progress; we'll need to restart ICE again after rolling back"),this._isRestartingIce=!1,this._shouldRestartIce=!0),Promise.resolve().then((function(){return t._trackIdsToAttributes=new Map(t._appliedTrackIdsToAttributes),t._setLocalDescription({type:"rollback"})})).then((function(){return t._needsAnswer=!1,t._answer(e)})).then((function(e){return e?Promise.resolve():t._offer()}))},t.prototype._publishMediaWarning=function(e){var t=e.message,n=e.code,r=e.error,o=e.sdp;this._eventObserver.emit("event",{level:"warning",name:"error",group:"media",payload:{message:t,code:n,context:JSON.stringify({error:r.message,sdp:o})}})},t.prototype._handleIceCandidateEvent=function(e){e.candidate&&(this._log.debug("Clearing ICE gathering timeout"),this._didGenerateLocalCandidates=!0,this._iceGatheringTimeout.clear(),this._localCandidates.push(e.candidate));var t={ice:{candidates:this._isIceLite?[]:this._localCandidates.slice(),ufrag:this._localUfrag},id:this.id};e.candidate||(t.ice.complete=!0),this._isIceLite&&e.candidate||(t.ice.revision=this._localCandidatesRevision++,this.emit("candidates",t))},t.prototype._handleIceConnectionStateChange=function(){var e=this,t=this._peerConnection.iceConnectionState,n=["connected","completed"].includes(t),r=this._log;r.debug('ICE connection state is "'+t+'"'),n&&(this._iceReconnectTimeout.clear(),this._iceRestartBackoff.reset()),"failed"===this._lastIceConnectionState||"failed"!==t||this._shouldRestartIce||this._isRestartingIce?["disconnected","failed"].includes(this._lastIceConnectionState)&&n&&r.debug("ICE reconnected"):(r.warn("ICE failed"),this._initiateIceRestartBackoff()),"connected"===t?(this._isIceConnectionInactive=!1,this._iceConnectionMonitor.start((function(){e._iceConnectionMonitor.stop(),e._shouldRestartIce||e._isRestartingIce||(r.warn("ICE Connection Monitor detected inactivity"),e._isIceConnectionInactive=!0,e._initiateIceRestartBackoff(),e.emit("iceConnectionStateChanged"),e.emit("connectionStateChanged"))}))):["disconnected","completed"].includes(t)||(this._iceConnectionMonitor.stop(),this._isIceConnectionInactive=!1),this._lastIceConnectionState=t,this.emit("iceConnectionStateChanged")},t.prototype._handleIceGatheringTimeout=function(){this._log.warn("ICE failed to gather any local candidates"),this._iceGatheringFailed=!0,this._initiateIceRestartBackoff(),this.emit("iceConnectionStateChanged"),this.emit("connectionStateChanged")},t.prototype._handleIceGatheringStateChange=function(){var e=this._peerConnection.iceGatheringState,t=this._log;t.debug('ICE gathering state is "'+e+'"');var n=this._iceGatheringTimeout,r=n.delay,o=n.isSet;"gathering"!==e||this._didGenerateLocalCandidates||o||(t.debug("Starting ICE gathering timeout: "+r),this._iceGatheringFailed=!1,this._iceGatheringTimeout.start())},t.prototype._handleSignalingStateChange=function(){"stable"===this._peerConnection.signalingState&&(this._appliedTrackIdsToAttributes=new Map(this._trackIdsToAttributes))},t.prototype._handleTrackEvent=function(e){var t=this,n=this._peerConnection.remoteDescription?this._peerConnection.remoteDescription.sdp:null;this._trackMatcher=this._trackMatcher||new q,this._trackMatcher.update(n);var r=e.track,o=this._trackMatcher.match(e)||r.id,i=new U(o,r);
163this._mediaTrackReceivers.forEach((function(e){e.track.id===i.track.id&&t._mediaTrackReceivers.delete(e)})),this._mediaTrackReceivers.add(i),r.addEventListener("ended",(function(){return t._mediaTrackReceivers.delete(i)})),this.emit("trackAdded",i)},t.prototype._initiateIceRestart=function(){if("closed"!==this._peerConnection.signalingState){var e=this._log;e.warn("Attempting to restart ICE"),this._didGenerateLocalCandidates=!1,this._isIceRestartBackoffInProgress=!1,this._shouldRestartIce=!0;var t=this._iceReconnectTimeout,n=t.delay;t.isSet||(e.debug("Starting ICE reconnect timeout: "+n),this._iceReconnectTimeout.start()),this.offer().catch((function(t){e.error("offer failed in _initiateIceRestart with: "+t.message)}))}},t.prototype._initiateIceRestartBackoff=function(){var e=this;"closed"===this._peerConnection.signalingState||this._isIceRestartBackoffInProgress||(this._log.warn("An ICE restart has been scheduled"),this._isIceRestartBackoffInProgress=!0,this._iceRestartBackoff.backoff((function(){return e._initiateIceRestart()})))},t.prototype._maybeReoffer=function(e){var t=this._shouldOffer;if(e&&e.sdp){var n=this._peerConnection.getSenders().filter((function(e){return e.track}));t=["audio","video"].reduce((function(t,r){var o=E(e.sdp,r,"(sendrecv|sendonly)"),i=n.filter(se.bind(null,r));return t||o.length<i.length}),t);var r=this._dataChannels.size>0,o=E(e.sdp,"application").length>0;t=t||r&&!o}return(t?this._offer():Promise.resolve()).then((function(){return t}))},t.prototype._offer=function(){var e=this,t=Object.assign({},this._offerOptions);return this._needsAnswer=!0,this._shouldRestartIce&&(this._shouldRestartIce=!1,this._isRestartingIce=!0,t.iceRestart=!0),Promise.all(this._replaceTrackPromises.values()).then((function(){return e._peerConnection.createOffer(t)})).catch((function(t){var n=new R;throw e._publishMediaWarning({message:"Failed to create offer",code:n.code,error:t}),n})).then((function(t){t=Q?new e._RTCSessionDescription({sdp:x(t.sdp),type:t.type}):$(t);var n=O(t.sdp,["mslabel","label"]);n=e._peerConnection.remoteDescription?S(n,e._peerConnection.remoteDescription.sdp):n;var r=e._setCodecPreferences(n,e._preferredAudioCodecs,e._preferredVideoCodecs);return e._shouldOffer=!1,e._negotiationRole||(e._negotiationRole="offerer"),e._shouldApplySimulcast&&(e._localDescriptionWithoutSimulcast={type:"offer",sdp:r},r=e._setSimulcast(r,e._trackIdsToAttributes)),e._setLocalDescription({type:"offer",sdp:r})}))},t.prototype._getMediaTrackSenderId=function(e){var t=Array.from(this._rtpSenders.keys()).find((function(t){return t.track.id===e}));return t?t.id:e},t.prototype._addOrRewriteLocalTrackIds=function(e){var t=this,n=this._peerConnection.getTransceivers().filter((function(e){var t=e.sender;return!e.stopped&&t&&t.track})),r=n.filter((function(e){return e.mid})),o=new Map(r.map((function(e){var n=e.mid,r=e.sender;return[n,t._getMediaTrackSenderId(r.track.id)]}))),i=_(e.sdp,o),a=n.filter((function(e){return!e.mid})),s=new Map(["audio","video"].map((function(e){return[e,a.filter((function(t){return t.sender.track.kind===e})).map((function(e){var n=e.sender;return t._getMediaTrackSenderId(n.track.id)}))]}))),u=b(i,o,s);return new this._RTCSessionDescription({sdp:u,type:e.type})},t.prototype._rollbackAndApplyOffer=function(e){var t=this;return this._setLocalDescription({type:"rollback"}).then((function(){return t._setLocalDescription(e)}))},t.prototype._setLocalDescription=function(e){var t=this;return"rollback"!==e.type&&this._shouldApplyDtx&&(e=new this._RTCSessionDescription({sdp:k(e.sdp),type:e.type})),this._peerConnection.setLocalDescription(e).catch((function(n){t._log.warn('Calling setLocalDescription with an RTCSessionDescription of type "'+e.type+'" failed with the error "'+n.message+'".',n);var r=new R,o={message:'Calling setLocalDescription with an RTCSessionDescription of type "'+e.type+'" failed',code:r.code,error:n};throw e.sdp&&(t._log.warn("The SDP was "+e.sdp),o.sdp=e.sdp),t._publishMediaWarning(o),r})).then((function(){"rollback"!==e.type&&(t._localDescription=t._addOrRewriteLocalTrackIds(e),t._shouldApplyDtx&&(t._localDescription=new t._RTCSessionDescription({sdp:k(t._localDescription.sdp,[]),type:t._localDescription.type})),t._localCandidates=[],"offer"===e.type?t._descriptionRevision++:"answer"===e.type&&(t._lastStableDescriptionRevision=t._descriptionRevision,ue(t)),t._localUfrag=ie(e),t.emit("description",t.getState()))}
163))},t.prototype._setRemoteDescription=function(e){var t=this;return e.sdp&&(e.sdp=this._setCodecPreferences(e.sdp,this._preferredAudioCodecs,this._preferredVideoCodecs),this._shouldApplyDtx?e.sdp=k(e.sdp):e.sdp=k(e.sdp,[]),Q&&(e.sdp=e.sdp.replace(/a=msid:[^ ]+ /g,"a=msid:- ")),this._peerConnection.remoteDescription||(this._isIceLite=/a=ice-lite/.test(e.sdp))),e=new this._RTCSessionDescription(e),Promise.resolve().then((function(){if("answer"===e.type&&t._localDescriptionWithoutSimulcast){var n=t._preferredVideoCodecs.find((function(e){return"adaptiveSimulcast"in e})),r=!!n&&!1===n.adaptiveSimulcast,o=t._revertSimulcast(t._localDescription.sdp,t._localDescriptionWithoutSimulcast.sdp,e.sdp,r);if(t._localDescriptionWithoutSimulcast=null,o!==t._localDescription.sdp)return t._rollbackAndApplyOffer({type:t._localDescription.type,sdp:o})}})).then((function(){return t._peerConnection.setRemoteDescription(e)})).then((function(){"answer"===e.type&&(t._isRestartingIce&&(t._log.debug("An ICE restart was in-progress and is now completed"),t._isRestartingIce=!1),ue(t))}),(function(n){throw t._log.warn('Calling setRemoteDescription with an RTCSessionDescription of type "'+e.type+'" failed with the error "'+n.message+'".',n),e.sdp&&t._log.warn("The SDP was "+e.sdp),n}))},t.prototype._updateDescription=function(e){var t=this;switch(e.type){case"answer":case"pranswer":if(e.revision!==this._descriptionRevision||"have-local-offer"!==this._peerConnection.signalingState)return Promise.resolve();this._descriptionRevision=e.revision;break;case"close":return this._close();case"create-offer":return e.revision<=this._lastStableDescriptionRevision?Promise.resolve():this._needsAnswer?(this._queuedDescription=e,Promise.resolve()):(this._descriptionRevision=e.revision,this._offer());case"offer":return e.revision<=this._lastStableDescriptionRevision||"closed"===this._peerConnection.signalingState?Promise.resolve():"have-local-offer"===this._peerConnection.signalingState?this._needsAnswer&&0===this._lastStableDescriptionRevision?(this._queuedDescription=e,Promise.resolve()):(this._descriptionRevision=e.revision,this._handleGlare(e)):(this._descriptionRevision=e.revision,this._answer(e).then((function(){})))}var n=e.revision;return Promise.resolve().then((function(){return t._setRemoteDescription(e)})).catch((function(n){var r=new M;throw t._publishMediaWarning({message:'Calling setRemoteDescription with an RTCSessionDescription of type "'+e.type+'" failed',code:r.code,error:n,sdp:e.sdp}),r})).then((function(){return t._lastStableDescriptionRevision=n,t._needsAnswer=!1,t._checkIceBox(e)})).then((function(){return t._queuedDescription&&t._updateDescription(t._queuedDescription)})).then((function(){return t._queuedDescription=null,t._maybeReoffer(t._peerConnection.localDescription).then((function(){}))}))},t.prototype._updateIce=function(e){var t=this._remoteCandidates.update(e);return this._addIceCandidates(t)},t.prototype.addDataTrackSender=function(e){if(!this._dataChannels.has(e))try{var t={ordered:e.ordered};null!==e.maxPacketLifeTime&&(t.maxPacketLifeTime=e.maxPacketLifeTime),null!==e.maxRetransmits&&(t.maxRetransmits=e.maxRetransmits);var n=this._peerConnection.createDataChannel(e.id,t);e.addDataChannel(n),this._dataChannels.set(e,n)}catch(r){this._log.warn('Error creating an RTCDataChannel for DataTrack "'+e.id+'": '+r.message)}},t.prototype._handleQueuedPublisherHints=function(){var e=this;"stable"===this._peerConnection.signalingState&&this._mediaTrackSenderToPublisherHints.forEach((function(t,n){var r=t.deferred,o=t.encodings;e._mediaTrackSenderToPublisherHints.delete(n),e._setPublisherHint(n,o).then((function(e){return r.resolve(e)})).catch((function(e){return r.reject(e)}))}))},t.prototype._setPublisherHint=function(e,t){var n=this;if(Q)return Promise.resolve("COULD_NOT_APPLY_HINT");this._mediaTrackSenderToPublisherHints.has(e)&&(this._mediaTrackSenderToPublisherHints.get(e).deferred.resolve("REQUEST_SKIPPED"),this._mediaTrackSenderToPublisherHints.delete(e));var r=this._rtpSenders.get(e);if(!r)return this._log.warn("Could not apply publisher hint because RTCRtpSender was not found"),Promise.resolve("UNKNOWN_TRACK");if("closed"===this._peerConnection.signalingState)return this._log.warn('Could not apply publisher hint because signalingState was "closed"'),Promise.resolve("COULD_NOT_APPLY_HINT");if("stable"!==this._peerConnection.signalingState){this._log.debug("Queuing up publisher hint because signalingState:",this._peerConnection.signalingState);var o=F();return this._mediaTrackSenderToPublisherHints.set(e,{deferred:o,encodings:t}),o.promise}var i=r.getParameters();return null!==t&&t.forEach((function(e){var t=e.enabled,r=e.layer_index;i.encodings.length>r?(n._log.debug("layer:"+r+", active:"+i.encodings[r].active+" => "+t),i.encodings[r].active=t):n._log.warn("invalid layer:"+r+", active:"+t)}
163)),this._maybeUpdateEncodings(r.track,i.encodings,null===t),r.setParameters(i).then((function(){return"OK"})).catch((function(e){return n._log.error("Failed to apply publisher hints:",e),"COULD_NOT_APPLY_HINT"}))},t.prototype.addMediaTrackSender=function(e){var t=this;if("closed"!==this._peerConnection.signalingState&&!this._rtpSenders.has(e)){var n=this._addOrUpdateTransceiver(e.track).sender;e.addSender(n,(function(n){return t._setPublisherHint(e,n)})),this._rtpNewSenders.add(n),this._rtpSenders.set(e,n)}},t.prototype.close=function(){this._close()&&(this._descriptionRevision++,this._localDescription={type:"close"},this.emit("description",this.getState()))},t.prototype.getTrackReceivers=function(){return Array.from(this._dataTrackReceivers).concat(Array.from(this._mediaTrackReceivers))},t.prototype.getState=function(){if(!this._localDescription)return null;var e="answer"===this._localDescription.type?this._lastStableDescriptionRevision:this._descriptionRevision,t={type:this._localDescription.type,revision:e};return this._localDescription.sdp&&(t.sdp=this._localDescription.sdp),{description:t,id:this.id}},t.prototype.offer=function(){var e=this;return this._needsAnswer||this._isRestartingIce?(this._shouldOffer=!0,Promise.resolve()):this.bracket("offering",(function(t){return e.transition("updating",t),(e._needsAnswer||e._isRestartingIce?Promise.resolve():e._offer()).then((function(){e.tryTransition("open",t)}),(function(n){throw e.tryTransition("open",t),n}))}))},t.prototype.removeDataTrackSender=function(e){var t=this._dataChannels.get(e);t&&(e.removeDataChannel(t),this._dataChannels.delete(e),t.close())},t.prototype.removeMediaTrackSender=function(e){var t=this._rtpSenders.get(e);if(t){if("closed"!==this._peerConnection.signalingState&&this._peerConnection.removeTrack(t),e.removeSender(t),this._mediaTrackSenderToPublisherHints.has(e))this._mediaTrackSenderToPublisherHints.get(e).deferred.resolve("UNKNOWN_TRACK"),this._mediaTrackSenderToPublisherHints.delete(e);
163this._rtpNewSenders.delete(t),this._rtpSenders.delete(e)}},t.prototype.setConfiguration=function(e){"function"===typeof this._peerConnection.setConfiguration&&this._peerConnection.setConfiguration(ae(e))},t.prototype.setIceReconnectTimeout=function(e){return this._iceReconnectTimeout.setDelay(e),this._log.debug("Updated ICE reconnection timeout period:",this._iceReconnectTimeout.delay),this},t.prototype.update=function(e){var t=this;return this.bracket("updating",(function(n){if("closed"===t.state)return Promise.resolve();t.transition("updating",n);var r=[];return e.ice&&r.push(t._updateIce(e.ice)),e.description&&r.push(t._updateDescription(e.description)),Promise.all(r).then((function(){t.tryTransition("open",n)}),(function(e){throw t.tryTransition("open",n),e}))}))},t.prototype.getStats=function(){var e=this;return f(this._peerConnection).then((function(t){return function(e,t){return Object.assign(t,{remoteAudioTrackStats:t.remoteAudioTrackStats.map((function(t){return oe(e,t)})),remoteVideoTrackStats:t.remoteVideoTrackStats.map((function(t){return oe(e,t)})),localAudioTrackStats:t.localAudioTrackStats.map((function(t){return re(e,t)})),localVideoTrackStats:t.localVideoTrackStats.map((function(t){return re(e,t)}))})}(e,t)}))},t}(W);function re(e,t){var n=e._getMediaTrackSenderId(t.trackId);return Object.assign(t,{trackId:n})}function oe(e,t){var n=i([],o(e._mediaTrackReceivers)).find((function(e){return e.track.id===t.trackId})),r=n?n.id:null;return Object.assign(t,{trackId:r})}function ie(e){if(e.sdp){var t=e.sdp.match(/^a=ice-ufrag:([a-zA-Z0-9+/]+)/m);if(t)return t[1]}return null}function ae(e){return Object.assign({bundlePolicy:"max-bundle",rtcpMuxPolicy:"require"},e)}function se(e,t){var n=t.track;return n&&n.kind===e&&"ended"!==n.readyState}function ue(e){!function(e){e._recycledTransceivers.audio=[],e._recycledTransceivers.video=[],e._peerConnection.getTransceivers().forEach((function(t){if(function(e,t){return!e.stopped&&!t._replaceTrackPromises.has(e)&&["inactive","recvonly"].includes(e.direction)}(t,e)){var n=t.receiver.track;e._recycledTransceivers[n.kind].push(t)}}))}(e),function(e){var t=e._peerConnection.localDescription;t&&t.sdp&&E(t.sdp).forEach((function(t){w(t).forEach((function(t,n){return e._localCodecs.add(n)}))}))}(e),function(e){var t=e._peerConnection.remoteDescription;t&&t.sdp&&E(t.sdp).forEach((function(t){var n=t.match(/^a=mid:(.+)$/m);if(n&&n[1]){var r=n[1],o=w(t);e._remoteCodecMaps.set(r,o)}}))}(e),ce(e).then((function(){e._handleQueuedPublisherHints()}))}function ce(e){var t=e._encodingParameters,n=t.maxAudioBitrate,r=t.maxVideoBitrate,o=new Map([["audio",n],["video",r]]),i=[];return e._peerConnection.getSenders().filter((function(e){return e.track})).forEach((function(t){var n=o.get(t.track.kind),r=t.getParameters();null===n||0===n?function(e){Array.isArray(e.encodings)&&e.encodings.forEac
163h((function(e){return delete e.maxBitrate}))}(r):e._isChromeScreenShareTrack(t.track)?e._log.warn("Not setting maxBitrate for "+t.track.kind+" Track "+t.track.id+" because it appears to be screen share track: "+t.track.label):function(e,t){Q?e.encodings=[{maxBitrate:t}]:e.encodings.forEach((function(e){e.maxBitrate=t}))}(r,n),!Q&&r.encodings.length>0&&("audio"===t.track.kind?r.encodings[0].priority="high":e._isChromeScreenShareTrack(t.track)&&(r.encodings[0].priority="medium"),e._enableDscp&&(r.encodings[0].networkPriority="high"));var a=e._rtpNewSenders.has(t);e._maybeUpdateEncodings(t.track,r.encodings,a),e._rtpNewSenders.delete(t);var s=t.setParameters(r).catch((function(n){e._log.warn("Error while setting encodings parameters for "+t.track.kind+" Track "+t.track.id+": "+(n.message||n.name))}));i.push(s)})),Promise.all(i)}e.exports=ne},26503:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(67476).guessBrowser,s=n(5773),u=n(42259),c=n(23172),l=n(96971),f=n(78144).MediaConnectionError,d="firefox"===a(),p=function(e){function t(t,r,o){var i=e.call(this)||this,a=(o=Object.assign({audioContextFactory:d?n(23585):null,PeerConnectionV2:s},o)).audioContextFactory?o.audioContextFactory.getOrCreate(i):null,c=a?{offerToReceiveVideo:!0}:{offerToReceiveAudio:!0,offerToReceiveVideo:!0};return Object.defineProperties(i,{_audioContextFactory:{value:o.audioContextFactory},_closedPeerConnectionIds:{value:new Set},_configuration:{writable:!0,value:null},_configurationDeferred:{writable:!0,value:l.defer()},_connectionState:{value:"new",writable:!0},_dummyAudioTrackSender:{value:a?new u(h(a)):null},_encodingParameters:{value:t},_iceConnectionState:{writable:!0,value:"new"},_dataTrackSenders:{writable:!0,value:new Set},_lastConnectionState:{value:"new",writable:!0},_lastIceConnectionState:{writable:!0,value:"new"},_mediaTrackSenders:{writable:!0,value:new Set},_offerOptions:{value:c},_peerConnections:{value:new Map},_preferredCodecs:{value:r},_sessionTimeout:{value:null,writable:!0},_PeerConnectionV2:{value:o.PeerConnectionV2}}),i}return r(t,e),t.prototype.setEffectiveAdaptiveSimulcast=function(e){this._peerConnections.forEach((function(t){return t.setEffectiveAdaptiveSimulcast(e)})),this._preferredCodecs.video.forEach((function(t){"adaptiveSimulcast"in t&&(t.adaptiveSimulcast=e)}))},Object.defineProperty(t.prototype,"connectionState",{get:function(){return this._connectionState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iceConnectionState",{get:function(){return this._iceConnectionState},enumerable:!1,configurable:!0}),t.prototype._closeAbsentPeerConnections=function(e){var t=new Set(e.map((function(e){return e.id})));return this._peerConnections.forEach((function(e){t.has(e.id)||e._close()})),this},t.prototype._getConfiguration=function(){return this._configurationDeferred.promise},t.prototype._getOrCreate=function(e,t){var n=this,r=this,o=this._peerConnections.get(e);if(!o){var i=this._PeerConnectionV2,a=Object.assign({dummyAudioMediaStreamTrack:this._dummyAudioTrackSender?this._dummyAudioTrackSender.track:null,offerOptions:this._offerOptions},this._sessionTimeout?{sessionTimeout:this._sessionTimeout}:{},t);try{o=new i(e,this._encodingParameters,this._preferredCodecs,a)}catch(s){throw new f}this._peerConnections.set(o.id,o),o.on("candidates",this.queue.bind(this,"candidates")),o.on("description",this.queue.bind(this,"description")),o.on("trackAdded",this.queue.bind(this,"trackAdded")),o.on("stateChanged",(function e(t){"closed"===t&&(o.removeListener("stateChanged",e),r._dataTrackSenders.forEac
163h((function(e){return o.removeDataTrackSender(e)})),r._mediaTrackSenders.forEach((function(e){return o.removeMediaTrackSender(e)})),r._peerConnections.delete(o.id),r._closedPeerConnectionIds.add(o.id),w(r),_(r))})),o.on("connectionStateChanged",(function(){return w(n)})),o.on("iceConnectionStateChanged",(function(){return _(n)})),this._dataTrackSenders.forEach(o.addDataTrackSender,o),this._mediaTrackSenders.forEach(o.addMediaTrackSender,o),_(this)}return o},t.prototype.close=function(){return this._peerConnections.forEach((function(e){e.close()})),this._dummyAudioTrackSender&&this._dummyAudioTrackSender.stop(),this._audioContextFactory&&this._audioContextFactory.release(this),_(this),this},t.prototype.createAndOffer=function(){var e=this;return this._getConfiguration().then((function(t){var n;do{n=l.makeUUID()}while(e._peerConnections.has(n));return e._getOrCreate(n,t)})).then((function(e){return e.offer()})).then((function(){return e}))},t.prototype.getTrackReceivers=function(){return l.flatMap(this._peerConnections,(function(e){return e.getTrackReceivers()}))},t.prototype.getStates=function(){var e=[];return this._peerConnections.forEach((function(t){var n=t.getState();n&&e.push(n)})),e},t.prototype.setConfiguration=function(e){return this._configuration&&(this._configurationDeferred=l.defer(),this._peerConnections.forEach((function(t){t.setConfiguration(e)}))),this._configuration=e,this._configurationDeferred.resolve(e),this},t.prototype.setIceReconnectTimeout=function(e){return null===this._sessionTimeout&&(this._peerConnections.forEach((function(t){t.setIceReconnectTimeout(e)})),this._sessionTimeout=e),this},t.prototype.setTrackSenders=function(e){var t=new Set(e.filter((function(e){return"data"===e.kind}))),n=new Set(e.filter((function(e){return e&&("audio"===e.kind||"video"===e.kind)}))),r=function(e,t,n){return{data:v(e,t),media:m(e,n)}}(this,t,n);return this._dataTrackSenders=t,this._mediaTrackSenders=n,function(e,t){(t.data.add.size||t.data.remove.size||t.media.add.size||t.media.remove.size)&&e._peerConnections.forEach((function(e){t.data.remove.forEach(e.removeDataTrackSender,e),t.media.remove.forEach(e.removeMediaTrackSender,e),t.data.add.forEach(e.addDataTrackSender,e),t.media.add.forEach(e.addMediaTrackSender,e),(t.media.add.size||t.media.remove.size||t.data.add.size&&!e.isApplicationSectionNegotiated)&&e.offer()}))}(this,r),this},t.prototype.update=function(e,t){var n=this;return void 0===t&&(t=!1),t&&this._closeAbsentPeerConnections(e),this._getConfiguration().then((function(t){return Promise.all(e.map((function(e){return n._closedPeerConnectionIds.has(e.id)?null:n._getOrCreate(e.id,t).update(e)})))})).then((function(){return n}))},t.prototype.getStats=function(){var e=Array.from(this._peerConnections.values());return Promise.all(e.map((function(e){return e.getStats().then((function(t){return[e.id,t]}))}))).then((function(e){return new Map(e)}))},t}(c);function h(e){return e.createMediaStreamDestination().stream.getAudioTracks()[0]}function v(e,t){return{add:l.difference(t,e._dataTrackSenders),remove:l.difference(e._dataTrackSenders,t)}}function m(e,t){return{add:l.difference(t,e._mediaTrackSenders),remove:l.difference(e._mediaTrackSenders,t)}}var y,g={new:0,checking:1,connecting:2,connected:3,completed:4,disconnected:-1,failed:-2,closed:-3};function b(e){return e.length?(y=y||Object.keys(g).reduce((function(e,t){var n;return Object.assign(e,((n={})[g[t]]=t,n))}),{}),e.reduce((function(e,t){return y[Math.max(g[e],g[t])]}))):"new"}function _(e){e._lastIceConnectionState=e.iceConnectionState,e._iceConnectionState=b(i([],o(e._peerConnections.values())).map((function(e){return e.iceConnectionState}))),e.iceConnectionState!==e._lastIceConnectionState&&e.emit("iceConnectionStateChanged")}function w(e){e._lastConnectionState=e.connectionState,e._connectionState=b(i([],o(e._peerConnections.values())).map((function(e){return e.connectionState}))),e.connectionState!==e._lastConnectionState&&e.emit("connectionStateChanged")}e.exports=p},7059:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(61014),i=1,a=function(e){function t(t,n){var r=e.call(this,t,"publisher_hints",n)||this;return r.on("ready",(function(e){r._log.debug("publisher_hints transport ready:",e),e.on("message",(function(e){if(r._log.debug("Incoming: ",e),"publisher_hints"===e.type)e.publisher&&e.publisher.hints&&e.publisher.id&&r._processPublisherHints(e.publisher.hints,e.publisher.id);else r._log.warn("Unknown message type: ",e.type)}))})),r}return r(t,e),t.prototype.sendTrackReplaced=function(e){var t=e.trackSid;if(this._transport){var n={type:"client_reset",track:t,id:i++};this._log.debug("Outgoing: ",n),this._transport.publish(n)}},t.prototype.sendHintResponse=function(e){var t=e.id,n=e.hints;if(this._transport){var r={type:"publisher_hints",id:t,hints:n};this._log.debug("Outgoing: ",r),this._transport.publish(r)}}
163,t.prototype._processPublisherHints=function(e,t){try{this.emit("updated",e,t)}catch(n){this._log.error("error processing hints:",n)}},t}(o);e.exports=a},68022:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(){var t=e.call(this)||this;return Object.defineProperties(t,{_revision:{value:1,writable:!0}}),t}return r(t,e),t.prototype.update=function(e){return e.revision<this._revision?this:(this._revision=e.revision,this.enable(e.is_recording))},t}(n(631));e.exports=o},64273:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(18090),i=n(75858),a=function(e){function t(t,n,r,o,a,s){var u=e.call(this,t.sid,t.identity)||this;return s=Object.assign({RemoteTrackPublicationV2:i},s),Object.defineProperties(u,{_revision:{writable:!0,value:null},_RemoteTrackPublicationV2:{value:s.RemoteTrackPublicationV2},_getInitialTrackSwitchOffState:{value:n},updateSubscriberTrackPriority:{value:function(e,t){return r(e,t)}},updateTrackRenderHint:{value:function(e,t){return o(e,t)}},clearTrackHint:{value:function(e){return a(e)}},revision:{enumerable:!0,get:function(){return this._revision}}}),u.update(t)}return r(t,e),t.prototype._getOrCreateTrack=function(e){var t=this._RemoteTrackPublicationV2,n=this.tracks.get(e.sid);n||(n=new t(e,this._getInitialTrackSwitchOffState(e.sid)),this.addTrack(n));return n},t.prototype.update=function(e){var t=this;if(null!==this.revision&&e.revision<=this.revision)return this;this._revision=e.revision;var n=new Set;switch(e.tracks.forEach((function(e){var r=t._getOrCreateTrack(e);r.update(e),n.add(r)})),this.tracks.forEach((function(e){n.has(e)||t.removeTrack(e)})),e.state){case"disconnected":this.disconnect();break;case"reconnecting":this.reconnecting();break;case"connected":this.connect(this.sid,this.identity)}return this},t}(o);e.exports=a},75858:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){return e.call(this,t.sid,t.name,t.kind,t.enabled,t.priority,n)||this}return r(t,e),t.prototype.update=function(e){return this.enable(e.enabled),this.setPriority(e.priority),this},t}(n(75055));e.exports=o},86714:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(61014),i=n(75317),a=n(96971).isDeepEqual,s=1,u=function(e){function t(t,n){var r=e.call(this,t,"render_hints",n)||this;return Object.defineProperties(r,{_trackSidsToRenderHints:{value:new Map},_responseTimer:{value:new i((function(){r._sendAllHints(),r._responseTimer.setDelay(2*r._responseTimer.delay)}),2e3,!1)}}),r.on("ready",(function(e){e.on("message",(function(e){if(r._log.debug("Incoming: ",e),"render_hints"===e.type)r._processHintResults(e&&e.subscriber&&e.subscriber.hints||[]);else r._log.warn("Unknown message type: ",e.type)})),r._sendAllHints()})),r}return r(t,e),t.prototype._sendAllHints=function(){var e=this;
163Array.from(this._trackSidsToRenderHints.keys()).forEach((function(t){var n=e._trackSidsToRenderHints.get(t);n.renderDimensions&&(n.isDimensionDirty=!0),"enabled"in n&&(n.isEnabledDirty=!0)})),this._sendHints()},t.prototype._processHintResults=function(e){var t=this;this._responseTimer.clear(),this._responseTimer.setDelay(2e3),e.forEach((function(e){"OK"!==e.result&&t._log.debug("Server error processing hint:",e)})),this._sendHints()},t.prototype._sendHints=function(){var e=this;if(this._transport&&!this._responseTimer.isSet){var t=[];if(Array.from(this._trackSidsToRenderHints.keys()).forEach((function(n){var r=e._trackSidsToRenderHints.get(n);if(r.isEnabledDirty||r.isDimensionDirty){var o={track:n};r.isEnabledDirty&&(o.enabled=r.enabled,r.isEnabledDirty=!1),r.isDimensionDirty&&(o.render_dimensions=r.renderDimensions,r.isDimensionDirty=!1),t.push(o)}})),t.length>0){var n={type:"render_hints",subscriber:{id:s++,hints:t}};this._log.debug("Outgoing: ",n),this._transport.publish(n),this._responseTimer.start()}}},t.prototype.setTrackHint=function(e,t){var n=this._trackSidsToRenderHints.get(e)||{isEnabledDirty:!1,isDimensionDirty:!1};"enabled"in t&&n.enabled!==t.enabled&&(n.enabled=!!t.enabled,n.isEnabledDirty=!0),t.renderDimensions&&!a(t.renderDimensions,n.renderDimensions)&&(n.renderDimensions=t.renderDimensions,n.isDimensionDirty=!0),this._trackSidsToRenderHints.set(e,n),this._sendHints()},t.prototype.clearTrackHint=function(e){this._trackSidsToRenderHints.delete(e)},t}(o);e.exports=u},14803:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=n(58869),a=n(16202),s=n(80597),u=n(68022),c=n(23178),l=n(64273),f=n(2340),d=n(90799),p=n(88054),h=n(86714),v=n(7059),m=n(96971),y=m.constants.DEFAULT_SESSION_TIMEOUT_SEC,g=m.createBandwidthProfilePayload,b=m.defer,_=m.difference,w=m.filterObject,x=m.flatMap,k=m.oncePerTick,S=n(99576),E=n(78144).createTwil
163ioError,O=function(e){function t(t,n,r,o,c){var m=this;n.options=Object.assign({session_timeout:y},n.options),c=Object.assign({DominantSpeakerSignaling:i,NetworkQualityMonitor:a,NetworkQualitySignaling:s,RecordingSignaling:u,RemoteParticipantV2:l,TrackPrioritySignaling:d,TrackSwitchOffSignaling:p,bandwidthProfile:null,sessionTimeout:1e3*n.options.session_timeout,statsPublishIntervalMs:1e4},c),t.setBandwidthProfile(c.bandwidthProfile);var g=n.options,b=g.signaling_region,S=g.audio_processors,E=void 0===S?[]:S;t.setSignalingRegion(b),E.includes("krisp")&&E.push("rnnoise"),t.setAudioProcessors(E),o.setIceReconnectTimeout(c.sessionTimeout);var O=function(e){return m._getTrackReceiver(e)},P=(m=e.call(this,t,n.sid,n.name,c)||this)._log;return Object.defineProperties(m,{_disconnectedParticipantRevisions:{value:new Map},_NetworkQualityMonitor:{value:c.NetworkQualityMonitor},_lastBandwidthProfileRevision:{value:t.bandwidthProfileRevision,writable:!0},_mediaStatesWarningsRevision:{value:0,writable:!0},_networkQualityMonitor:{value:null,writable:!0},_networkQualityConfiguration:{value:t.networkQualityConfiguration},_peerConnectionManager:{value:o},_published:{value:new Map},_publishedRevision:{value:0,writable:!0},_RemoteParticipantV2:{value:c.RemoteParticipantV2},_subscribed:{value:new Map},_subscribedRevision:{value:0,writable:!0},_subscriptionFailures:{value:new Map},_dominantSpeakerSignaling:{value:new c.DominantSpeakerSignaling(O,{log:P})},_networkQualitySignaling:{value:new c.NetworkQualitySignaling(O,t.networkQualityConfiguration,{log:P})},_renderHintsSignaling:{value:new h(O,{log:P})},_publisherHintsSignaling:{value:new v(O,{log:P})},_trackPrioritySignaling:{value:new c.TrackPrioritySignaling(O,{log:P})},_trackSwitchOffSignaling:{value:new c.TrackSwitchOffSignaling(O,{log:P})},_pendingSwitchOffStates:{value:new Map},_transport:{value:r},_trackReceiverDeferreds:{value:new Map},mediaRegion:{enumerable:!0,value:n.options.media_region||null}}),m._initTrackSwitchOffSignaling(),m._initDominantSpeakerSignaling(),m._initNetworkQualityMonitorSignaling(),m._initPublisherHintSignaling(),function(e,t){var n=k((function(){e._publishNewLocalParticipantState()})),r=k((function(){var n=x(t.tracks,(function(e){return e.trackTransceiver}));e._peerConnectionManager.setTrackSenders(n)}));t.on("trackAdded",r),t.on("trackRemoved",r),t.on("updated",n),e.on("stateChanged",(function o(i){"disconnected"===i&&(t.removeListener("trackAdded",r),t.removeListener("trackRemoved",r),t.removeListener("updated",n),e.removeListener("stateChanged",o),t.disconnect())})),e.on("signalingConnectionStateChanged",(function(){var t=e.localParticipant,n=e.signalingConnectionState,r=t.identity,o=t.sid;switch(n){case"connected":t.connect(o,r);break;case"reconnecting":t.reconnecting()}}))}(m,t),function(e,t){t.on("description",(function(t){e._publishPeerConnectionState(t)})),t.dequeue("description"),t.on("candidates",(function(t){e._publishPeerConnectionState(t)})),t.dequeue("candidates"),t.on("trackAdded",e._addTrackReceiver.bind(e)),t.dequeue("trackAdded"),t.getTrackReceivers().forEach(e._addTrackReceiver,e),t.on("connectionStateChanged",(function(){e.emit("connectionStateChanged")})),t.on("iceConnectionStateChanged",(function(){e.emit("iceConnectionStateChanged"),"failed"===e.iceConnectionState&&(null!==e.localParticipant.networkQualityLevel&&e.localParticipant.setNetworkQualityLevel(0),e.participants.forEac
163h((function(e){null!==e.networkQualityLevel&&e.setNetworkQualityLevel(0)})))}))}(m,o),function(e,t){t.on("message",e._update.bind(e)),t.on("stateChanged",(function n(r,o){"disconnected"===r&&("disconnected"!==e.state&&e._disconnect(o),t.removeListener("stateChanged",n)),e.emit("signalingConnectionStateChanged")}))}(m,r),function(e,t,n){var r=new Map,o=!1,i=setInterval((function(){e.getStats().then((function(e){o=!o,e.forEach((function(e,n){var i=new f(n,e,!0);t.publishEvent("quality","stats-report","info",{audioTrackStats:i.remoteAudioTrackStats.map((function(t,n){return j(t,e.remoteAudioTrackStats[n],r)})),localAudioTrackStats:i.localAudioTrackStats.map((function(t,n){return A(t,e.localAudioTrackStats[n],r)})),localVideoTrackStats:i.localVideoTrackStats.map((function(t,n){return A(t,e.localVideoTrackStats[n],r)})),peerConnectionId:i.peerConnectionId,videoTrackStats:i.remoteVideoTrackStats.map((function(t,n){return j(t,e.remoteVideoTrackStats[n],r)}))});var a=x(["localAudioTrackStats","localVideoTrackStats","remoteAudioTrackStats","remoteVideoTrackStats"],(function(e){return i[e].map((function(e){var t=e.ssrc;return e.trackSid+"+"+t}))}));if(_(Array.from(r.keys()),a).forEach((function(e){return r.delete(e)})),o){var s=function(e,t){return(e=Object.assign({availableIncomingBitrate:0,availableOutgoingBitrate:0,bytesReceived:0,bytesSent:0,consentRequestsSent:0,currentRoundTripTime:0,lastPacketReceivedTimestamp:0,lastPacketSentTimestamp:0,nominated:!1,peerConnectionId:t,priority:0,readable:!1,requestsReceived:0,requestsSent:0,responsesReceived:0,responsesSent:0,retransmissionsReceived:0,retransmissionsSent:0,state:"failed",totalRoundTripTime:0,transportId:"",writable:!1},w(e||{},null))).localCandidate=Object.assign({candidateType:"host",deleted:!1,ip:"",port:0,priority:0,protocol:"udp",url:""},w(e.localCandidate||{},null)),e.remoteCandidate=Object.assign({candidateType:"host",ip:"",port:0,priority:0,protocol:"udp",url:""},w(e.remoteCandidate||{},null)),e}(e.activeIceCandidatePair,i.peerConnectionId);t.publishEvent("quality","active-ice-candidate-pair","info",s)}}))}),(function(){}))}),n);e.on("stateChanged",(function t(n){"disconnected"===n&&(clearInterval(i),e.removeListener("stateChanged",t))}))}(m,r,c.statsPublishIntervalMs),m._update(n),m._peerConnectionManager.setEffectiveAdaptiveSimulcast(m._publisherHintsSignaling.isSetup),m}return r(t,e),Object.defineProperty(t.prototype,"connectionState",{get:function(){return this._peerConnectionManager.connectionState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signalingConnectionState",{get:function(){return"syncing"===this._transport.state?"reconnecting":this._transport.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iceConnectionState",{get:function(){return this._peerConnectionManager.iceConnectionState},enumerable:!1,configurable:!0}),t.prototype._deleteTrackReceiverDeferred=function(e){return this._trackReceiverDeferreds.delete(e)},t.prototype._getOrCreateTrackReceiverDeferred=function(e){var t=this._trackReceiverDeferreds.get(e)||b(),n=this._peerConnectionManager.getTrackReceivers().find((function(t){return t.id===e&&"ended"!==t.readyState}));return n?t.resolve(n):this._trackReceiverDeferreds.set(e,t),t},t.prototype._addTrackReceiver=function(e){return this._getOrCreateTrackReceiverDeferred(e.id).resolve(e),this},t.prototype._disconnect=function(t){var n=e.prototype._disconnect.call(this,t);return n&&(this._teardownNetworkQualityMonitor(),this._transport.disconnect(),this._peerConnectionManager.close()),this.localParticipant.tracks.forEach((function(e){e.publishFailed(t||new Error("LocalParticipant disconnected"))})),n},t.prototype._getTrackReceiver=function(e){var t=this;return this._getOrCreateTrackReceiverDeferred(e).promise.then((function(n){return t._deleteTrackReceiverDeferred(e),n}))},t.prototype._getInitialTrackSwitchOffState=function(e){var t=this._pendingSwitchOffStates.get(e)||!1;return this._pendingSwitchOffStates.delete(e),t&&this._log.warn("["+e+"] was initially switched off! "),t},t.prototype._getTrackSidsToTrackSignalings=function(){var e=x(this.participants,(function(e){return Array.from(e.tracks)}));return new Map(e)},t.prototype._getOrCreateRemoteParticipant=function(e){var t=this,n=this._RemoteParticipantV2,r=this.participants.get(e.sid),o=this;return r||((r=new n(e,(function(e){return t._getInitialTrackSwitchOffState(e)}),(function(e,n){return t._trackPrioritySignaling.sendTrackPriorityUpdate(e,"subscribe",n)}),(function(e,n){return t._renderHintsSignaling.setTrackHint(e,n)}),(function(e){return t._renderHintsSignaling.clearTrackHint(e)}))).on("stateChanged",(function e(t){"disconnected"===t&&(r.removeListener("stateChanged",e),o.participants.delete(r.sid),o._disconnectedParticipantRevisions.set(r.sid,r.revision))})),this.connectParticipant(r)),r},t.prototype._getState=function(){return{participant:this.localParticipant.getState()}},t.prototype._maybeAddBandwidthProfile=function(e){var t=this.localParticipant,n=t.bandwidthProfile,r=t.bandwidthProfileRevision;return n&&this._lastBandwidthProfileRevision<r?(this._lastBandwidthProfileRevision=r,Object.assign({bandwidth_profile:g(n)},e)):e}
163,t.prototype._publishNewLocalParticipantState=function(){this._transport.publish(this._maybeAddBandwidthProfile(this._getState()))},t.prototype._publishPeerConnectionState=function(e){this._transport.publish(Object.assign({peer_connections:[e]},this._getState()))},t.prototype._update=function(e){var t=this;if(e.subscribed&&e.subscribed.revision>this._subscribedRevision){this._subscribedRevision=e.subscribed.revision,e.subscribed.tracks.forEach((function(e){e.id?(t._subscriptionFailures.delete(e.sid),t._subscribed.set(e.sid,e.id)):e.error&&!t._subscriptionFailures.has(e.sid)&&t._subscriptionFailures.set(e.sid,e.error)}));var n=new Set(e.subscribed.tracks.filter((function(e){return!!e.id})).map((function(e){return e.sid})));this._subscribed.forEach((function(e,r){n.has(r)||t._subscribed.delete(r)}))}var r=new Set;return(e.participants||[]).forEach((function(e){if(e.sid!==t.localParticipant.sid){var n=t._disconnectedParticipantRevisions.get(e.sid);if(!(n&&e.revision<=n)){n&&t._disconnectedParticipantRevisions.delete(e.sid);var o=t._getOrCreateRemoteParticipant(e);o.update(e),r.add(o)}}}
163)),"synced"===e.type&&this.participants.forEach((function(e){r.has(e)||e.disconnect()})),function(e){var t=e._getTrackSidsToTrackSignalings();e._subscriptionFailures.forEach((function(n,r){var o=t.get(r);o&&(e._subscriptionFailures.delete(r),o.subscribeFailed(E(n.code,n.message)))})),t.forEach((function(t){var n=e._subscribed.get(t.sid);(!n||t.isSubscribed&&t.trackTransceiver.id!==n)&&t.setTrackTransceiver(null),n&&e._getTrackReceiver(n).then((function(e){return t.setTrackTransceiver(e)}))}))}(this),e.peer_connections&&this._peerConnectionManager.update(e.peer_connections,"synced"===e.type),e.recording&&this.recording.update(e.recording),e.published&&e.published.revision>this._publishedRevision&&(this._publishedRevision=e.published.revision,e.published.tracks.forEach((function(e){e.sid&&t._published.set(e.id,e.sid)})),this.localParticipant.update(e.published)),e.participant&&this.localParticipant.connect(e.participant.sid,e.participant.identity),[this._dominantSpeakerSignaling,this._networkQualitySignaling,this._trackPrioritySignaling,this._trackSwitchOffSignaling,this._renderHintsSignaling,this._publisherHintsSignaling].forEach((function(t){var n=t.channel;!t.isSetup&&e.media_signaling&&e.media_signaling[n]&&e.media_signaling[n].transport&&"data-channel"===e.media_signaling[n].transport.type&&t.setup(e.media_signaling[n].transport.label)})),"warning"===e.type&&e.states&&e.states.revision>this._mediaStatesWarningsRevision&&(this._mediaStatesWarningsRevision=e.states.revision,this.localParticipant.updateMediaStates(e.states)),this},t.prototype._initPublisherHintSignaling=function(){var e=this;this._publisherHintsSignaling.on("updated",(function(t,n){Promise.all(t.map((function(t){return e.localParticipant.setPublisherHint(t.track,t.encodings).then((function(e){return{track:t.track,result:e}}))}))).then((function(t){e._publisherHintsSignaling.sendHintResponse({id:n,hints:t})}))}));var t=function(t){"video"===t.kind&&t.trackTransceiver.on("replaced",(function(){e._publisherHintsSignaling.sendTrackReplaced({trackSid:t.sid})}))};Array.from(this.localParticipant.tracks.values()).forEach((function(e){return t(e)})),this.localParticipant.on("trackAdded",(function(e){return t(e)}))},t.prototype._initTrackSwitchOffSignaling=function(){var e=this;this._trackSwitchOffSignaling.on("updated",(function(t,n){try{e._log.debug("received trackSwitch: ",{tracksOn:n,tracksOff:t});var r=new Map;n.forEach((function(e){return r.set(e,!0)})),t.forEach((function(t){r.get(t)&&e._log.warn(t+" is DUPLICATED in both tracksOff and tracksOn list"),r.set(t,!1)}
163)),e.participants.forEach((function(e){e.tracks.forEach((function(e){var t=r.get(e.sid);"undefined"!==typeof t&&(e.setSwitchedOff(!t),r.delete(e.sid))}))})),r.forEach((function(t,n){return e._pendingSwitchOffStates.set(n,!t)}))}catch(o){e._log.error("error processing track switch off:",o)}}))},t.prototype._initDominantSpeakerSignaling=function(){var e=this;this._dominantSpeakerSignaling.on("updated",(function(){return e.setDominantSpeaker(e._dominantSpeakerSignaling.loudestParticipantSid)}))},t.prototype._initNetworkQualityMonitorSignaling=function(){var e=this;this._networkQualitySignaling.on("ready",(function(){var t=new e._NetworkQualityMonitor(e._peerConnectionManager,e._networkQualitySignaling);e._networkQualityMonitor=t,t.on("updated",(function(){"failed"!==e.iceConnectionState&&(e.localParticipant.setNetworkQualityLevel(t.level,t.levels),e.participants.forEach((function(e){var n=t.remoteLevels.get(e.sid);n&&e.setNetworkQualityLevel(n.level,n)})))})),t.start()})),this._networkQualitySignaling.on("teardown",(function(){return e._teardownNetworkQualityMonitor()}))},t.prototype._teardownNetworkQualityMonitor=function(){this._networkQualityMonitor&&(this._networkQualityMonitor.stop(),this._networkQualityMonitor=null)},t.prototype.getStats=function(){var e=this;return this._peerConnectionManager.getStats().then((function(t){return new Map(Array.from(t).map((function(t){var n=o(t,2),r=n[0],i=n[1];return[r,Object.assign({},i,{localAudioTrackStats:T(e,i.localAudioTrackStats),localVideoTrackStats:T(e,i.localVideoTrackStats),remoteAudioTrackStats:C(e,i.remoteAudioTrackStats),remoteVideoTrackStats:C(e,i.remoteVideoTrackStats)})]})))}))},t}(c);function P(e,t){return t.reduce((function(t,n){var r=e.get(n.trackId);return r?[Object.assign({},n,{trackSid:r})].concat(t):t}),[])}function T(e,t){return P(e._published,t)}function C(e,t){var n=new Map(Array.from(e._subscribed.entries()).map((function(e){var t=o(e,2),n=t[0];return[t[1],n]})));return P(n,t)}function A(e,t,n){var r=t.framesEncoded,o=t.packetsSent,i=t.totalEncodeTime,a=t.totalPacketSendDelay,s=Object.assign({},e),u=e.trackSid+"+"+e.ssrc,c=n.get(u)||new Map;if("number"===typeof i&&"number"===typeof r){var l=c.get("avgEncodeDelay")||new S;l.putSample(1e3*i,r),s.avgEncodeDelay=Math.round(l.get()),c.set("avgEncodeDelay",l)}if("number"===typeof a&&"number"===typeof o){var f=c.get("avgPacketSendDelay")||new S;f.putSample(1e3*a,o),s.avgPacketSendDelay=Math.round(f.get()),c.set("avgPacketSendDelay",f)}return n.set(u,c),s}function j(e,t,n){var r=t.estimatedPlayoutTimestamp,o=t.framesDecoded,i=t.jitterBufferDelay,a=t.jitterBufferEmittedCount,s=t.totalDecodeTime,u=Object.assign({},e),c=e.trackSid+"+"+e.ssrc,l=n.get(c)||new Map;if("number"===typeof r&&(u.estimatedPlayoutTimestamp=r),"number"===typeof o&&"number"===typeof s){var f=l.get("avgDecodeDelay")||new S;f.putSample(1e3*s,o),u.avgDecodeDelay=Math.round(f.get()),l.set("avgDecodeDelay",f)}if("number"===typeof i&&"number"===typeof a){var d=l.get("avgJitterBufferDelay")||new S;d.putSample(1e3*i,a),u.avgJitterBufferDelay=Math.round(d.get()),l.set("avgJitterBufferDelay",d)}return n.set(c,l),u}e.exports=O},90799:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,"track_priority",n)||this;return Object.defineProperties(r,{_enqueuedPriorityUpdates:{value:new Map}}),r.on("ready",(function(e){Array.from(r._enqueuedPriorityUpdates.keys()).forEach((function(t){e.publish({type:"track_priority",track:t,subscribe:r._enqueuedPriorityUpdates.get(t)})}))})),r}return r(t,e),t.prototype.sendTrackPriorityUpdate=function(e,t,n){if("subscribe"!==t)throw new Error("only subscribe priorities are supported, found: "+t);this._enqueuedPriorityUpdates.set(e,n),this._transport&&this._transport.publish({type:"track_priority",track:e,subscribe:n})},t}(n(61014));e.exports=o},88054:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,"track_switch_off",n)||this;return r.on("ready",(function(e){e.on("message",(function(e){if("track_switch_off"===e.type)r._setTrackSwitchOffUpdates(e.off||[],e.on||[])}))})),r}return r(t,e),t.prototype._setTrackSwitchOffUpdates=function(e,t){this.emit
163("updated",e,t)},t}(n(61014));e.exports=o},61722:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(13122),i=n(44670),a=n(51822),s=n(62097).reconnectBackoffConfig,u=n(75317),c=n(62097),l=c.SDK_NAME,f=c.SDK_VERSION,d=c.SDP_FORMAT,p=n(96971),h=p.createBandwidthProfilePayload,v=p.createMediaSignalingPayload,m=p.createMediaWarningsPayload,y=p.createSubscribePayload,g=p.getUserAgent,b=p.isNonArrayObject,_=n(78144),w=_.createTwilioError,x=_.RoomCompletedError,k=_.SignalingConnectionError,S=_.SignalingServerBusyError,E={connecting:["connected","disconnected"],connected:["disconnected","syncing"],syncing:["connected","disconnected"],disconnected:[]},O=function(e){function t(t,n,r,o,u,c){var l;return c=Object.assign({Backoff:a,TwilioConnection:i,iceServers:null,trackPriority:!0,trackSwitchOff:!0,renderHints:!0,userAgent:g()},c),l=e.call(this,"connecting",E)||this,Object.defineProperties(l,{_accessToken:{value:n},_automaticSubscription:{value:c.automaticSubscription},_bandwidthProfile:{value:c.bandwidthProfile},_dominantSpeaker:{value:c.dominantSpeaker},_adaptiveSimulcast:{value:c.adaptiveSimulcast},_eventObserver:{value:c.eventObserver,writable:!1},_renderHints:{value:c.renderHints},_iceServersStatus:{value:Array.isArray(c.iceServers)?"overrode":"acquire"},_localParticipant:{value:r},_name:{value:t},_networkQuality:{value:b(c.networkQuality)||c.networkQuality},_notifyWarnings:{value:c.notifyWarnings},_options:{value:c},_peerConnectionManager:{value:o},_sessionTimer:{value:null,writable:!0},_sessionTimeoutMS:{value:0,writable:!0},_reconnectBackoff:{value:new c.Backoff(s)},_session:{value:null,writable:!0},_trackPriority:{value:c.trackPriority},_trackSwitchOff:{value:c.trackSwitchOff},_twilioConnection:{value:null,writable:!0},_updatesReceived:{value:[]},_updatesToSend:{value:[]},_userAgent:{value:c.userAgent},_wsServer:{value:u}}),function(e){function t(){if("disconnected"!==e.state){e._twilioConnection&&e._twilioConnection.removeListener("message",r);var t=e._iceServersStatus,o=e._options,i=e._wsServer,a=e.state,s=o.TwilioConnection,u=new s(i,Object.assign({helloBody:"connecting"===a&&"acquire"===t?e._createIceMessage():e._createConnectOrSyncOrDisconnectMessage()},o));u.once("close",(function(e){e===s.CloseReason.LOCAL?n():n(new Error(e))})),u.on("message",r),e._twilioConnection=u}}
163function n(n){if("disconnected"!==e.state)if(n){var r=e._getReconnectTimer();if(r)"connected"===e.state&&e.preempt("syncing"),r.then(t);else{var o=n.message===i.CloseReason.BUSY?new S:new k;e.disconnect(o)}}else e.disconnect()}function r(t){if("disconnected"!==e.state)if("error"!==t.type)switch(e.state){case"connected":switch(t.type){case"connected":case"synced":case"update":case"warning":return void e.emit("message",t);case"disconnected":return void e.disconnect("completed"===t.status?new x:null);default:return}case"connecting":switch(t.type){case"iced":return void e._options.onIced(t.ice_servers).then((function(){e._sendConnectOrSyncOrDisconnectMessage()}));case"connected":return e._setSession(t.session,t.options.session_timeout),e.emit("connected",t),void e.preempt("connected");case"synced":case"update":return void e._updatesReceived.push(t);case"disconnected":return void e.disconnect("completed"===t.status?new x:null);default:return}case"syncing":switch(t.type){case"connected":case"update":return void e._updatesReceived.push(t);case"synced":return e._clearReconnectTimer(),e.emit("message",t),void e.preempt("connected");case"disconnected":return void e.disconnect("completed"===t.status?new x:null);default:return}default:return}else e.disconnect(w(t.code,t.message))}e.on("stateChanged",(function t(n){switch(n){case"connected":var o=e._updatesToSend.splice(0);return o.length&&e.publish(function(e){return e.reduce((function(e,t){return(!e.participant&&t.participant||e.participant&&t.participant&&t.participant.revision>e.participant.revision)&&(e.participant=t.participant),!e.peer_connections&&t.peer_connections?e.peer_connections=P(t.peer_connections):e.peer_connections&&t.peer_connections&&(e.peer_connections=P(e.peer_connections.concat(t.peer_connections))),e}),{})}(o)),void e._updatesReceived.splice(0).forEach((function(t){return e.emit("message",t)}));case"disconnected":return e._twilioConnection.removeListener("message",r),void e.removeListener("stateChanged",t);default:return}}));var o=e._options,a=e._iceServersStatus,s=o.iceServers,u=o.onIced;"overrode"===a?u(s).then(t):t()}(l),l}return r(t,e),t.prototype._createConnectOrSyncOrDisconnectMessage=function(){if("connected"===this.state)return null;if("disconnected"===this.state)return{session:this._session,type:"disconnect",version:2};var e={connecting:"connect",syncing:"sync"}[this.state],t={name:this._name,participant:this._localParticipant.getState(),peer_connections:this._peerConnectionManager.getStates(),type:e,version:2};return"connect"===t.type?(t.ice_servers=this._iceServersStatus,t.publisher={name:l,sdk_version:f,user_agent:this._userAgent},this._bandwidthProfile&&(t.bandwidth_profile=h(this._bandwidthProfile)),this._notifyWarnings&&(t.participant.media_warnings=m(this._notifyWarnings)),t.media_signaling=v(this._dominantSpeaker,this._networkQuality,this._trackPriority,this._trackSwitchOff,this._adaptiveSimulcast,this._renderHints),t.subscribe=y(this._automaticSubscription),t.format=d,t.token=this._accessToken):"sync"===t.type?(t.session=this._session,t.token=this._accessToken):"update"===t.type&&(t.session=this._session),t},t.prototype._createIceMessage=function(){return{edge:"roaming",token:this._accessToken,type:"ice",version:1}},t.prototype._sendConnectOrSyncOrDisconnectMessage=function(){var e=this._createConnectOrSyncOrDisconnectMessage();e&&this._twilioConnection.sendMessage(e)},t.prototype.disconnect=function(e){return"disconnected"!==this.state&&(this.preempt("disconnected",null,[e]),this._sendConnectOrSyncOrDisconnectMessage(),this._twilioConnection.close(),!0)},t.prototype.publish=function(e){switch(this.state){case"connected":return this._twilioConnection.sendMessage(Object.assign({session:this._session,type:"update",version:2},e)),!0;case"connecting":case"syncing":return this._updatesToSend.push(e),!0;default:return!1}},t.prototype.publishEvent=function(e,t,n,r){this._eventObserver.emit("event",{group:e,name:t,level:n,payload:r})},t.prototype.sync=function(){return"connected"===this.state&&(this.preempt("syncing"),this._sendConnectOrSyncOrDisconnectMessage(),!0)},t.prototype._setSession=function(e,t){this._session=e,this._sessionTimeoutMS=1e3*t},t.prototype._getReconnectTimer=function(){var e=this;return 0===this._sessionTimeoutMS?null:(this._sessionTimer||(this._sessionTimer=new u((function(){e._sessionTimer&&(e._sessionTimeoutMS=0)}),this._sessionTimeoutMS)),new Promise((function(t){e._reconnectBackoff.backoff(t)})))},t.prototype._clearReconnectTimer=function(){this._reconnectBackoff.reset(),this._sessionTimer&&(this._sessionTimer.clear(),this._sessionTimer=null)},t}(o);function P(e){return Array.from(e.reduce((function(e,t){var n=e.get(t.id)||t;return(!n.description&&t.description||n.description&&t.description&&t.description.revision>n.description.revision)&&(n.description=t.description),(!n.ice&&t.ice||n.ice&&t.ice&&t.ice.revision>n.ice.revision)&&(n.ice=t.ice),e.set(n.id,n),e}),new Map).values())}
163e.exports=O},13122:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(17187).EventEmitter,s=n(96971),u=function(e){function t(t,n){var r,o=e.call(this)||this,i=null,a=t;return n=function(e){var t=new Map;for(var n in e)t.set(n,new Set(e[n]));return t}(n),Object.defineProperties(o,{_lock:{get:function(){return i},set:function(e){i=e}},_reachableStates:{value:(r=n,Array.from(r.keys()).reduce((function(e,t){return e.set(t,l(r,t))}),new Map))},_state:{get:function(){return a}
163,set:function(e){a=e}},_states:{value:n},_whenDeferreds:{value:new Set},isLocked:{enumerable:!0,get:function(){return null!==i}},state:{enumerable:!0,get:function(){return a}}}),o.on("stateChanged",(function(e){o._whenDeferreds.forEach((function(t){t.when(e,t.resolve,t.reject)}))})),o}return r(t,e),t.prototype._whenPromise=function(e){var t=this;if("function"!==typeof e)return Promise.reject(new Error("when() executor must be a function"));var n=s.defer();return n.when=e,this._whenDeferreds.add(n),n.promise.then((function(e){return t._whenDeferreds.delete(n),e}),(function(e){throw t._whenDeferreds.delete(n),e}))},t.prototype.bracket=function(e,t){var n,r=this;function o(e){if(r.hasLock(n)&&r.releaseLockCompletely(n),e)throw e}return this.takeLock(e).then((function(e){return t(n=e)})).then((function(e){return o(),e}),o)},t.prototype.hasLock=function(e){return this._lock===e},t.prototype.preempt=function(e,t,n){if(!c(this._states,this.state,e))throw new Error('Cannot transition from "'+this.state+'" to "'+e+'"');var r;this.isLocked&&(r=this._lock,this._lock=null);var o=null;t&&(o=this.takeLockSync(t));var i=o?null:this.takeLockSync("preemption");return this.transition(e,o||i,n),r&&r.resolve(),i&&this.releaseLock(i),o},t.prototype.releaseLock=function(e){if(!this.isLocked)throw new Error("Could not release the lock for "+e.name+" because the StateMachine is not locked");if(!this.hasLock(e))throw new Error("Could not release the lock for "+e.name+" because "+this._lock.name+" has the lock");0===e.depth?(this._lock=null,e.resolve()):e.depth--},t.prototype.releaseLockCompletely=function(e){if(!this.isLocked)throw new Error("Could not release the lock for "+e.name+" because the StateMachine is not locked");if(!this.hasLock(e))throw new Error("Could not release the lock for "+e.name+" because "+this._lock.name+" has the lock");e.depth=0,this._lock=null,e.resolve()},t.prototype.takeLock=function(e){var t=this;if("object"===typeof e){var n=e;return new Promise((function(e){e(t.takeLockSync(n))}))}var r=e;if(this.isLocked){var o=this.takeLock.bind(this,r);return this._lock.promise.then(o)}return Promise.resolve(this.takeLockSync(r))},t.prototype.takeLockSync=function(e){var t="string"===typeof e?null:e,n=t?t.name:e;if(t&&!this.hasLock(t)||!t&&this.isLocked)throw new Error("Could not take the lock for "+n+" because the lock for "+this._lock.name+" was not released");if(t)return t.depth++,t;var r=function(e){var t=s.defer();return t.name=e,t.depth=0,t}(n);return this._lock=r,r},t.prototype.transition=function(e,t,n){if(n=n||[],this.isLocked){if(!t)throw new Error("You must provide the key in order to transition");if(!this.hasLock(t))throw new Error("Could not transition using the key for "+t.name+" because "+this._lock.name+" has the lock")}else if(t)throw new Error("Key provided for "+t.name+", but the StateMachine was not locked (possibly due to preemption)");if(!c(this._states,this.state,e))throw new Error('Cannot transition from "'+this.state+'" to "'+e+'"');this._state=e,this.emit.apply(this,i([],o(["stateChanged",e].concat(n))))},t.prototype.tryTransition=function(e,t,n){try{this.transition(e,t,n)}catch(r){return!1}return!0},t.prototype.when=function(e){var t=this;return this.state===e?Promise.resolve(this):c(this._reachableStates,this.state,e)?this._whenPromise((function(n,r,o){n===e?r(t):c(t._reachableStates,n,e)||o(f(n,e))})):Promise.reject(f(this.state,e))},t}(a);function c(e,t,n){return e.get(t).has(n)}function l(e,t,n){return n=n||new Set,e.get(t).forEach((function(t){n.has(t)||(n.add(t),l(e,t,n).forEach(n.add,n))})),n}function f(e,t){return new Error('"'+t+'" cannot be reached from "'+e+'"')}e.exports=u},39462:function(e){"use strict";e.exports=function(e){return(e=e.filter((function(e){return"number"===typeof e}))).length<1?void 0:e.reduce((function(e,t){return t+e}))/e.length}},56054:function(e){"use strict";var t=function(){function e(e,t,n,r){Object.defineProperties(this,{availableSend:{enumerable:!0,value:n},recv:{enumerable:!0,value:t},rtt:{enumerable:!0,value:r},send:{enumerable:!0,value:e}})}return e.of=function(t,n){var r=(n.timestamp-t.timestamp)/1e3,o=n.bytesSent-t.bytesSent,i=n.bytesReceived-t.bytesReceived;return new e(r>0?o/r*8:0,r>0?i/r*8:0,n.availableOutgoingBitrate,n.currentRoundTripTime)},e}();e.exports=t},81409:function(e,t,n){"use strict";var r=n(56054),o=function(){function e(){Object.defineProperties(this,{lastReport:{enumerable:!0,value:new r(0,0),writable:!0},lastStats:{enumerable:!0,value:null,writable:!0}})}return e.prototype.next=function(e){var t=this.lastStats;if(this.lastStats=e,t){var n=t.id===e.id?r.of(t,e):new r(0,0);this.lastReport=n}return this.lastReport},e}();e.exports=o},40741:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return Object.defineProperties(o,{audioLevel:{value:"number"===typeof n.audioInput
163Level?n.audioInputLevel:null,enumerable:!0},jitter:{value:"number"===typeof n.jitter?n.jitter:null,enumerable:!0}}),o}return r(t,e),t}(n(36643));e.exports=o},36643:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return Object.defineProperties(o,{bytesSent:{value:"number"===typeof n.bytesSent?n.bytesSent:r?0:null,enumerable:!0},packetsSent:{value:"number"===typeof n.packetsSent?n.packetsSent:r?0:null,enumerable:!0},roundTripTime:{value:"number"===typeof n.roundTripTime?n.roundTripTime:r?0:null,enumerable:!0}}),o}return r(t,e),t}(n(86498));e.exports=o},16872:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this,i=null;"number"===typeof n.frameWidthInput&&"number"===typeof n.frameHeightInput&&(i={},Object.defineProperties(i,{width:{value:n.frameWidthInput,enumerable:!0},height:{value:n.frameHeightInput,enumerable:!0}}));var a=null;return"number"===typeof n.frameWidthSent&&"number"===typeof n.frameHeightSent&&(a={},Object.defineProperties(a,{width:{value:n.frameWidthSent,enumerable:!0},height:{value:n.frameHeightSent,enumerable:!0}})),Object.defineProperties(o,{captureDimensions:{value:i,enumerable:!0},dimensions:{value:a,enumerable:!0},captureFrameRate:{value:"number"===typeof n.frameRateInput?n.frameRateInput:null,enumerable:!0},frameRate:{value:"number"===typeof n.frameRateSent?n.frameRateSent:null,enumerable:!0}}),o}return r(t,e),t}(n(36643));e.exports=o},89521:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t}(n(18310));e.exports=o},6095:function(e){"use strict";var t=function(e){var t=e.actual,n=void 0===t?null:t,r=e.available,o=void 0===r?null:r,i=e.level,a=void 0===i?null:i;Object.defineProperties(this,{actual:{value:n,enumerable:!0},available:{value:o,enumerable:!0},level:{value:a,enumerable:!0}})};e.exports=t},19249:function(e){"use strict";var t=function(e){var t=e.fractionLost,n=void 0===t?null:t,r=e.level,o=void 0===r?null:r;Object.defineProperties(this,{fractionLost:{value:n,enumerable:!0},level:{value:o,enumerable:!0}})};e.exports=t},57689:function(e){"use strict";var t=function(e){var t=e.jitter,n=void 0===t?null:t,r=e.rtt,o=void 0===r?null:r,i=e.level,a=void 0===i?null:i;Object.defineProperties(this,{jitter:{value:n,enumerable:!0},rtt:{value:o,enumerable:!0},level:{value:a,enumerable:!0}})};e.exports=t},18310:function(e,t,n){"use strict";var r=n(62870),o=n(35047),i=function(e){var t=e.send,n=e.recv,i=e.sendStats,a=void 0===i?null:i,s=e.recvStats,u=void 0===s?null:s;Object.defineProperties(this,{send:{value:t,enumerable:!0},recv:{value:n,enumerable:!0},sendStats:{value:a?new r(a):null,enumerable:!0},recvStats:{value:u?new o(u):null,enumerable:!0}})};e.exports=i},35047:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t}(n(69302));e.exports=o},69302:function(e,t,n){"use strict";var r=n(6095),o=n(19249),i=n(57689),a=function(e){var t=e.bandwidth,n=void 0===t?null:t,a=e.fractionLost,s=void 0===a?null:a,u=e.latency,c=void 0===u?null:u;Object.defineProperties(this,{bandwidth:{value:n?new r(n):null,enumerable:!0},fractionLost:{value:s?new o(s):null,enumerable:!0},latency:{value:c?new i(c):null,enumerable:!0}})};e.exports=a},62870:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t}(n(69302));e.exports=o},7837:function(e,t,n){"use strict";var r=n(89521),o=n(62893),i=function(e){var t=e.level,n=e.audio,i=e.video;Object.defineProperties(this,{level:{value:t,enumerable:!0},audio:{value:n?new r(n):null,enumerable:!0},video:{value:i?new o(i):null,enumerable:!0}})};e.exports=i},62893:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t}(n(18310));e.exports=o},87559:function(e,t,n){"use strict";var r=n(334),o=n(11414),i=function(){function e(e,t,n){Object.defineProperties(this,{ice:{enumerable:!0,value:e},audio:{enumerable:!0,value:t},video:{enumerable:!0,value:n}})}return e.prototype.summarize=function(){var e=this.audio.send.concat(this.video.send),t=o.summarize(e),n=this.audio.recv.concat(this.video.recv),i=r.summarize(n);return{ice:this.ice,send:t,recv:i,audio:{send:o.summarize(this.audio.send),recv:r.summarize(this.audio.recv)},video:{send:o.summarize(this.video.send),recv:r.summarize(this.video.recv)}}},e}();e.exports=i},97396:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},i=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
163if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=n(67476).guessBrowser,s=n(81409),u=n(87559),c=n(88454),l=n(59164),f=function(){function e(e){Object.defineProperties(this,{pc:{enumerable:!0,value:e},ice:{enumerable:!0,value:new s},audio:{enumerable:!0,value:{send:new Map,recv:new Map}},video:{enumerable:!0,value:{send:new Map,recv:new Map}},lastReport:{enumerable:!0,value:null,writable:!0}})}return e.prototype.next=function(){var e,t=this,n="firefox"===a()?function(e){var t=e.pc.getTransceivers().filter((function(e){return e.currentDirection&&e.currentDirection.match(/send/)&&e.sender.track})).map((function(e){return e.sender})),n=e.pc.getTransceivers().filter((function(e){return e.currentDirection&&e.currentDirection.match(/recv/)})).map((function(e){return e.receiver}));return Promise.all([d(t),d(n),e.pc.getStats()]).then((function(t){var n=r(t,3),o=n[0],i=n[1],a=n[2],s=h(e),u=g(e);o.forEach((function(t,n){return _(e,t,u,n)})),x(s,u);var c=v(e),l=b(e);i.forEach((function(t,n){return w(e,t,l,n)})),x(c,l),k(e.ice,a)}))}(this):(e=this).pc.getStats().then((function(t){var n=h(e),r=g(e);_(e,t,r),x(n,r);var o=v(e),i=b(e);w(e,t,i),x(o,i),k(e.ice,t)}));return n.then((function(){var e=o([],r(t.audio.send.values())),n=o([],r(t.video.send.values())),i=o([],r(t.audio.recv.values())),a=o([],r(t.video.recv.values())),s=new u(t.ice.lastReport,{send:e.map((function(e){return e.lastReport})).filter((function(e){return e})),recv:i.map((function(e){return e.lastReport})).filter((function(e){return e}))},{send:n.map((function(e){return e.lastReport})).filter((function(e){return e})),recv:a.map((function(e){return e.lastReport})).filter((function(e){return e}))});return t.lastReport=s,s}))},e}();function d(e){return Promise.all(e.map((function(e){var t=e.track.id;return e.getStats().then((function(e){var n,r;try{for(var o=i(e.values()),a=o.next();!a.done;a=o.next()){var s=a.value;"inbound-rtp"===s.type&&(s.id=t+"-"+s.id)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[t,e]}))}))).then((function(e){return new Map(e)}))}function p(e,t,n,r,o){var i=t[r.mediaType];if(!o){var a=n.get(r.trackId);a&&(o=a.trackIdentifier)}if(i&&o){if(i.has(r.id))return i.get(r.id);var s=new e(o,r);i.set(r.id,s)}return null}function h(e){return{audio:e.audio.send,video:e.video.send}}function v(e){return{audio:e.audio.recv,video:e.video.recv}}function m(e,t,n,r){return p(l,h(e),t,n,r)}function y(e,t,n,r){return p(c,v(e),t,n,r)}function g(e){return{audio:new Set(e.audio.send.keys()),video:new Set(e.video.send.keys())}}function b(e){return{audio:new Set(e.audio.recv.keys()),video:new Set(e.video.recv.keys())}}function _(e,t,n,r){var o,s;try{for(var u=i(t.values()),c=u.next();!c.done;c=u.next()){var l=c.value;if("outbound-rtp"===l.type&&!l.isRemote){if("firefox"!==a()&&!l.trackId)continue;var f=n[l.mediaType];f&&f.delete(l.id);var d=m(e,t,l,r);if(d){var p=t.get(l.remoteId);d.next(r||d.trackId,l,p)}}}}catch(h){o={error:h}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}}function w(e,t,n,r){var o,a;try{for(var s=i(t.values()),u=s.next();!u.done;u=s.next()){var c=u.value;if("inbound-rtp"===c.type&&!c.isRemote){var l=n[c.mediaType];l&&l.delete(c.id);var f=y(e,t,c,r);f&&f.next(r||f.trackId,c)}}}catch(d){o={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}function x(e,t){var n=function(n){var r=e[n];t[n].forEach((function(e){return r.delete(e)}))};for(var r in t)n(r)}function k(e,t){var n,r,o,a,s;try{for(var u=i(t.values()),c=u.next();!c.done;c=u.next()){"transport"===(d=c.value).type&&(s=t.get(d.selectedCandidatePairId))}}catch(p){n={error:p}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(s)e.next(s);else try{for(var l=i(t.values()),f=l.next();!f.done;f=l.next()){var d;"candidate-pair"!==(d=f.value).type||!d.nominated||"selected"in d&&!d.selected||e.next(d)}}catch(h){o={error:h}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}
163e.exports=f},334:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(39462),i=n(18044),a=n(95811),s=function(e){function t(t,n,r,o,i,a,s){var u=e.call(this,t,n,r)||this,c=i>0?o/i:0;return Object.defineProperties(u,{deltaPacketsLost:{enumerable:!0,value:o},deltaPacketsReceived:{enumerable:!0,value:i},fractionLost:{enumerable:!0,value:a},jitter:{enumerable:!0,value:s},phonyFractionLost:{enumerable:!0,value:c}}),u}return r(t,e),t.of=function(e,n,r){if(n.id!==r.id)throw new Error("RTCStats IDs must match");var o=(r.timestamp-n.timestamp)/1e3,i=r.bytesReceived-n.bytesReceived,a=o>0?i/o*8:0,s=Math.max(r.packetsLost-n.packetsLost,0),u=r.packetsReceived-n.packetsReceived,c=r.fractionLost,l=r.jitter;return new t(n.id,e,a,s,u,c,l)},t.summarize=function(e){var t=e.map((function(e){return e.summarize()}));return{bitrate:a(t.map((function(e){return e.bitrate}))),fractionLost:o(t.map((function(e){return e.fractionLost}))),jitter:o(t.map((function(e){return e.jitter})))}},t.prototype.summarize=function(){return{bitrate:this.bitrate,fractionLost:"number"===typeof this.fractionLost?this.fractionLost:this.phonyFractionLost,jitter:this.jitter}},t}(i);e.exports=s},88454:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(334),i=function(e){function t(t,n){var r=e.call(this,n.id,t,n)||this;return Object.defineProperties(r,{lastReport:{enumerable:!0,value:null,writable:!0}}),r}return r(t,e),t.prototype.next=function(e,t){var n=this.lastStats;this.lastStats=t,this.trackId=e;var r=o.of(e,n,t);return this.lastReport=r,r},t}(n(86035));e.exports=i},18633:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperties(r,{audioLevel:{value:"number"===typeof n.audioOutputLevel?n.audioOutputLevel:null,enumerable:!0},jitter:{value:"number"===typeof n.jitter?n.jitter:null,enumerable:!0}}),r}return r(t,e),t}(n(34861));e.exports=o},34861:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return Object.defineProperties(r,{bytesReceived:{value:"number"===typeof n.bytesReceived?n.bytesReceived:null,enumerable:!0},packetsReceived:{value:"number"===typeof n.packetsReceived?n.packetsReceived:null,enumerable:!0}}),r}return r(t,e),t}(n(86498));e.exports=o},31675:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this,t,n)||this,o=null;return"number"===typeof n.frameWidthReceived&&"number"===typeof n.frameHeightReceived&&(o={},Object.defineProperties(o,{width:{value:n.frameWidthReceived,enumerable:!0},height:{value:n.frameHeightReceived,enumerable:!0}})),Object.defineProperties(r,{dimensions:{value:o,enumerable:!0},frameRate:{value:"number"===typeof n.frameRateReceived?n.frameRateReceived:null,enumerable:!0}}),r}return r(t,e),t}(n(34861));e.exports=o},18044:function(e){"use strict";var t=function(e,t,n){Object.defineProperties(this,{id:{enumerable:!0,value:e},trackId:{enumerable:!0,value:t},bitrate:{enumerable:!0,value:n}})};e.exports=t},86035:function(e){"use strict";var t=function(e,t,n){Object.defineProperties(this,{id:{enumerable:!0,value:e,writable:!0},trackId:{enumerable:!0,value:t,writable:!0},lastStats:{enumerable:!0,value:n,writable:!0}})};e.exports=t},11414:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(39462),i=n(18044),a=n(95811),s=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return Object.defineProperties(i,{rtt:{enumerable:!0,value:o}}),i}return r(t,e),t.of=function(e,n,r,o){if(n.id!==r.id)throw new Error("RTCStats IDs must match");var i=(r.timestamp-n.timestamp)/1e3,a=r.bytesSent-n.bytesSent,s=i>0?a/i*8:0,u=o&&"number"===typeof o.roundTripTime?o.roundTripTime/1e3:void 0;return new t(n.id,e,s,u)},t.summarize=function(e){return{bitrate:a(e.map((function(e){return e.bitrate}
163))),rtt:o(e.map((function(e){return e.rtt})))}},t}(i);e.exports=s},59164:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(86035),i=n(11414),a=function(e){function t(t,n){var r=e.call(this,n.id,t,n)||this;return Object.defineProperties(r,{lastReport:{enumerable:!0,value:null,writable:!0}}),r}return r(t,e),t.prototype.next=function(e,t,n){var r=this.lastStats;this.lastStats=t,this.trackId=e;var o=i.of(e,r,t,n);return this.lastReport=o,o},t}(o);e.exports=a},2340:function(e,t,n){"use strict";var r=n(40741),o=n(16872),i=n(18633),a=n(31675),s=function(e,t,n){if("string"!==typeof e)throw new Error("RTCPeerConnection id must be a string");Object.defineProperties(this,{peerConnectionId:{value:e,enumerable:!0},localAudioTrackStats:{value:t.localAudioTrackStats.map((function(e){return new r(e.trackId,e,n)})),enumerable:!0},localVideoTrackStats:{value:t.localVideoTrackStats.map((function(e){return new o(e.trackId,e,n)})),enumerable:!0},remoteAudioTrackStats:{value:t.remoteAudioTrackStats.map((function(e){return new i(e.trackId,e)})),enumerable:!0},remoteVideoTrackStats:{value:t.remoteVideoTrackStats.map((function(e){return new a(e.trackId,e)})),enumerable:!0}})};e.exports=s},95811:function(e){"use strict";e.exports=function(e){return e.reduce((function(e,t){return"number"===typeof t?t+e:e}),0)}},86498:function(e){"use strict";var t=function(e,t){if("string"!==typeof e)throw new Error("Track id must be a string");Object.defineProperties(this,{trackId:{value:e,enumerable:!0},trackSid:{value:t.trackSid,enumerable:!0},timestamp:{value:t.timestamp,enumerable:!0},ssrc:{value:t.ssrc,enumerable:!0},packetsLost:{value:"number"===typeof t.packetsLost?t.packetsLost:null,enumerable:!0},codec:{value:"string"===typeof t.codecName?t.codecName:null,enumerable:!0}})};e.exports=t},69430:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(e){function t(t,n){var r=e.call(this)||this;return Object.defineProperties(r,{id:{enumerable:!0,value:t},kind:{enumerable:!0,value:n}}),r}return r(t,e),t.prototype.stop=function(){this.emit("stopped")},t}(n(23172));e.exports=o},44670:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(13122),s=n(96971),u=s.buildLogLevels,c=s.makeUUID,l=n(36372),f=n(5481),d=n(75317),p=0,h={closed:[],connecting:["closed","open","waiting"],early:["closed","connecting"],open:["closed"],waiting:["closed","connecting","early","open"]}
163,v={closed:"close",open:"open",waiting:"waiting"},m=3e3,y=3001,g=3002,b=3003,_=3005,w=3006,x=globalThis,k=x.WebSocket?x.WebSocket:n(39990),S={BUSY:"busy",FAILED:"failed",LOCAL:"local",REMOTE:"remote",TIMEOUT:"timeout"},E=new Map([[m,S.TIMEOUT],[y,S.TIMEOUT],[g,S.FAILED],[b,S.FAILED],[3004,S.TIMEOUT],[w,S.BUSY],[3007,S.TIMEOUT]]),O=function(e){function t(t,n){var r=e.call(this,"early",h)||this;n=Object.assign({helloBody:null,maxConsecutiveFailedHellos:3,maxConsecutiveMissedHeartbeats:3,requestedHeartbeatTimeout:5e3,openTimeout:15e3,welcomeTimeout:5e3,Log:l,WebSocket:k},n);var a=u(n.logLevel),s=new n.Log("default",r,a,n.loggerName),c=n.networkMonitor?new f((function(){var e=c.type,t="Network changed"+(e?" to "+e:"");s.debug(t),r._close({code:3004,reason:t})})):null;Object.defineProperties(r,{_busyWaitTimeout:{value:null,writable:!0},_consecutiveHeartbeatsMissed:{value:0,writable:!0},_cookie:{value:null,writable:!0},_eventObserver:{value:n.eventObserver},_heartbeatTimeout:{value:null,writable:!0},_hellosLeft:{value:n.maxConsecutiveFailedHellos,writable:!0},_instanceId:{value:++p},_log:{value:s},_messageQueue:{value:[]},_networkMonitor:{value:c},_options:{value:n},_openTimeout:{value:null,writable:!0},_sendHeartbeatTimeout:{value:null,writable:!0},_serverUrl:{value:t},_welcomeTimeout:{value:null,writable:!0},_ws:{value:null,writable:!0}});var d={connecting:"info",early:"info",open:"info",waiting:"warning",closed:"info"};return r.on("stateChanged",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e in v&&r.emit.apply(r,i([v[e]],o(t)));var a={name:e,group:"signaling",level:d[r.state]};if("closed"===e){var s=o(t,1),u=s[0];a.payload={reason:u},a.level=u===S.LOCAL?"info":"error"}r._eventObserver.emit("event",a)})),r._eventObserver.emit("event",{name:r.state,group:"signaling",level:d[r.state]}),r._connect(),r}return r(t,e),t.prototype.toString=function(){return"[TwilioConnection #"+this._instanceId+": "+this._ws.url+"]"},t.prototype._close=function(e){var t=e.code,n=e.reason;if("closed"!==this.state){this._openTimeout&&this._openTimeout.clear(),this._welcomeTimeout&&this._welcomeTimeout.clear(),this._heartbeatTimeout&&this._heartbeatTimeout.clear(),this._sendHeartbeatTimeout&&this._sendHeartbeatTimeout.clear(),this._networkMonitor&&this._networkMonitor.stop(),this._busyWaitTimeout&&t!==_&&this._busyWaitTimeout.clear(),this._messageQueue.splice(0);var r=this._log;1e3===t?(r.debug("Closed"),this.transition("closed",null,[S.LOCAL])):(r.warn("Closed: "+t+" - "+n),t!==_&&this.transition("closed",null,[E.get(t)||S.REMOTE]));var o=this._ws.readyState,i=this._options.WebSocket;o!==i.CLOSING&&o!==i.CLOSED&&this._ws.close(t,n)}},t.prototype._connect=function(){var e=this,t=this._log;if("waiting"===this.state)this.transition("early");else if("early"!==this.state)return void t.warn('Unexpected state "'+this.state+'" for connecting to the TCMP server.');this._ws=new this._options.WebSocket(this._serverUrl);var n=this._ws;t.debug("Created a new WebSocket:",n),n.addEventListener("close",(function(t){return e._close(t)}));var r=this._options.openTimeout;this._openTimeout=new d((function(){var t="Failed to open in "+r+" ms";e._close({code:3007,reason:t})}),r),n.addEventListener("open",(function(){t.debug("WebSocket opened:",n),e._openTimeout.clear(),e._startHandshake(),e._networkMonitor&&e._networkMonitor.start()})),n.addEventListener("message",(function(n){t.debug("Incoming: "+n.data);try{n=JSON.parse(n.data)}catch(r){return void e.emit("error",r)}switch(n.type){case"bad":e._handleBad(n);break;case"busy":e._handleBusy(n);break;case"bye":break;case"msg":e._handleMessage(n);case"heartbeat":e._handleHeartbeat();break;case"welcome":e._handleWelcome(n);break;default:e._log.debug("Unknown message type: "+n.type),e.emit("error",new Error("Unknown message type: "+n.type))}}))},t.prototype._handleBad=function(e){var t=e.reason,n=this._log;if(["connecting","open"].includes(this.state)){if("connecting"===this.state)return n.warn("Closing: 3002 - "+t),void this._close({code:g,reason:t});n.debug("Error: "+t),this.emit("error",new Error(t))}else n.warn('Unexpected state "'+this.state+'" for handling a "bad" message from the TCMP server.')},t.prototype._handleBusy=function(e){var t=this,n=e.cookie,r=e.keepAlive,o=e.retryAfter,i=this._log;if(["connecting","waiting"].includes(this.state)){this._busyWaitTimeout&&this._busyWaitTimeout.clear(),this._welcomeTimeout&&this._welcomeTimeout.clear();var a=o<0?'Received terminal "busy" message':'Received "busy" message, retrying after '+o+" ms";if(o<0)return i.warn("Closing: 3006 - "+a),void this._close({code:w,reason:a});var s=this._options.maxConsecutiveFailedHellos;this._hellosLeft=s,this._cookie=n||null,r?(i.warn(a),this._busyWaitTimeout=new d((function(){return t._startHandshake()}),o)):(i.warn("Closing: 3005 - "+a),this._close({code:_,reason:a}),this._busyWaitTimeout=new d((function(){return t._connect()}),o)),this.transition("waiting",null,[r,o])}else i.warn('Unexpected state "'+this.state+'" for handling a "busy" message from the TCMP server.')},t.prototype._handleHeartbeat=function(){"open"===this.state?this._heartbeatTimeout.reset():this._log.warn('Unexpected state "'+this.state+'" for handling a "heartbeat" message from the TCMP server.')},t.prototype._handleHeartbeatTimeout=function(){if("open"===this.state){var e=this._log,t=this._options.maxConsecutiveMissedHeartbeats;e.debug("Consecutive heartbeats missed: "+t);var n="Missed "+t+' "heartbeat" messages';e.warn("Closing: 3001 - "+n),this._close({code:y,reason:n})}},t.prototype._handleMessage=function(e){var t=e.body;
163"open"===this.state?this.emit("message",t):this._log.warn('Unexpected state "'+this.state+'" for handling a "msg" message from the TCMP server.')},t.prototype._handleWelcome=function(e){var t=this,n=e.negotiatedTimeout,r=this._log;if(["connecting","waiting"].includes(this.state)){"waiting"===this.state&&(r.debug('Received "welcome" message, no need to retry connection.'),this._busyWaitTimeout.clear());var o=n*this._options.maxConsecutiveMissedHeartbeats,i=n-200;this._welcomeTimeout.clear(),this._heartbeatTimeout=new d((function(){return t._handleHeartbeatTimeout()}),o),this._messageQueue.splice(0).forEach((function(e){return t._send(e)})),this._sendHeartbeatTimeout=new d((function(){return t._sendHeartbeat()}),i),this.transition("open")}else r.warn('Unexpected state "'+this.state+'" for handling a "welcome" message from the TCMP server.')},t.prototype._handleWelcomeTimeout=function(){if("connecting"===this.state){var e=this._log;if(this._hellosLeft<=0){var t="All handshake attempts failed";return e.warn("Closing: 3000 - "+t),void this._close({code:m,reason:t})}var n=this._options.maxConsecutiveFailedHellos;e.warn("Handshake attempt "+(n-this._hellosLeft)+" failed"),this._startHandshake()}},t.prototype._send=function(e){if(this._ws.readyState===this._options.WebSocket.OPEN){var t=JSON.stringify(e);this._log.debug("Outgoing: "+t);try{this._ws.send(t),this._sendHeartbeatTimeout&&this._sendHeartbeatTimeout.reset()}catch(r){var n="Failed to send message";this._log.warn("Closing: 3003 - "+n),this._close({code:b,reason:n})}}},t.prototype._sendHeartbeat=function(){"closed"!==this.state&&this._send({type:"heartbeat"})},t.prototype._sendHello=function(){var e=this._options,t=e.helloBody,n=e.requestedHeartbeatTimeout,r={id:c(),timeout:n,type:"hello",version:2};this._cookie&&(r.cookie=this._cookie),t&&(r.body=t),this._send(r)},t.prototype._sendOrEnqueue=function(e){var t=this;if("closed"!==this.state){var n="open"===this.state?function(e){return t._send(e)}:function(e){return t._messageQueue.push(e)};n(e)}},t.prototype._startHandshake=function(){var e=this;if(["early","waiting"].includes(this.state)&&this.transition("connecting"),"connecting"===this.state){this._hellosLeft--,this._sendHello();var t=this._options.welcomeTimeout;this._welcomeTimeout=new d((function(){return e._handleWelcomeTimeout()}),t)}},t.prototype.close=function(){"closed"!==this.state&&(this._sendOrEnqueue({type:"bye"}),this._close({code:1e3,reason:"Normal"}))},t.prototype.sendMessage=function(e){this._sendOrEnqueue({body:e,type:"msg"})},t}(a);O.CloseReason=S,e.exports=O},7206:function(e,t,n){"use strict";var r=n(96971).defer,o=function(){function e(){Object.defineProperties(this,{_deferreds:{value:[]},_hasValue:{value:!1,writable:!0},_value:{value:null,writable:!0}})}return e.prototype.put=function(e){this._hasValue=!0,this._value=e;var t=this._deferreds.shift();return t&&t.resolve(e),this},e.prototype.take=function(){var e=this;if(this._hasValue&&!this._deferreds.length)return this._hasValue=!1,Promise.resolve(this._value);var t=r();return this._deferreds.push(t),t.promise.then((function(t){return e._hasValue=!1,t}))},e}();e.exports=o},51822:function(e){var t=function(){function e(e){Object.defineProperties(this,{_min:{value:e.min||100},_max:{value:e.max||1e4},_jitter:{value:e.jitter>0&&e.jitter<=1?e.jitter:0},_factor:{value:e.factor||2},_attempts:{value:0,writable:!0},_duration:{enumerable:!1,get:function(){var e=this._min*Math.pow(this._factor,this._attempts);if(this._jitter){var t=Math.random(),n=Math.floor(t*this._jitter*e);e=0===(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this._max)}},_timeoutID:{value:null,writable:!0}})}return e.prototype.backoff=function(e){var t=this,n=this._duration;this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null),this._timeoutID=setTimeout((function(){t._attempts++,e()}),n)},e.prototype.reset=function(){this._attempts=0,this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)},e}();e.exports=t},49943:function(e){"use strict";var t=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function n(){return!!(navigator&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2)}function r(){return n()&&window.screen.width>=744&&(/Macintosh/i.test(navigator.userAgent)||/iPad/.test(navigator.userAgent)||/iPad/.test(navigator.platform))}function o(){return n()&&window.screen.width<=476&&(/Macintosh/i.test(navigator.userAgent)||/iPhone/.test(navigator.userAgent)||/iPhone/.test(navigator.platform))}e.exports={isAndroid:function(){return/Android/.test(navigator.userAgent)},isIOS:function(){return r()||o()},isIpad:r,isIphone:o,isMobile:function(){return/Mobi/.test(navigator.userAgent)},isNonChromiumEdge:function(e){return"chrome"===e&&/Edge/.test(navigator.userAgent)&&("undefined"===typeof chrome||"undefined"===typeof chrome.runtime)},mobileWebKitBrowser:function(e){return"safari"!==e?null:"brave"in navigator?"brave":["edge","edg"].find((function(e){return navigator.userAgent.toLowerCase().includes(e)}))||null},rebrandedChromeBrowser:function(e){if("chrome"!==e)return null;if("brave"in navigator)return"brave";var n=function(e){for(var t=[],n=[],r=0;r<e.length;r++)if("("===e[r])t.push(r);else if(")"===e[r]&&t.length>0){var o=t.pop();0===t.length&&n.push(e.substring(o,r+1))}return n}(navigator.userAgent).reduce((function(e,t){return e.replace(t,"")}),navigator.userAgent).match(/[^\s]+/g)||[];return t(n.map((function(e){return e.split("/")[0].toLowerCase()}))).slice(2).find((function(e){return!["chrome","mobile","safari"].includes(e)}))||null}}},17422:function(e){"use strict";var t=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},r=function(){function e(e,t){var n=this;Object.defineProperties(this,{_isCancelable:{writable:!0,value:!0},_isCanceled:{writable:!0,value:!1},_onCancel:{value:t}}),Object.defineProperty(this,"_promise",{value:new Promise((function(t,r){e((function(e){n._isCancelable=!1,t(e)}),(function(e){n._isCancelable=!1,r(e)}),(function(){return n._isCanceled}))}))})}
163return e.reject=function(t){return new e((function(e,n){n(t)}),(function(){}))},e.resolve=function(t){return new e((function(e){e(t)}),(function(){}))},e.prototype.cancel=function(){return this._isCancelable&&(this._isCanceled=!0,this._onCancel()),this},e.prototype.catch=function(){var r=[].slice.call(arguments),o=this._promise;return new e((function(e,i){o.catch.apply(o,n([],t(r))).then(e,i)}),this._onCancel)},e.prototype.then=function(){var r=[].slice.call(arguments),o=this._promise;return new e((function(e,i){o.then.apply(o,n([],t(r))).then(e,i)}),this._onCancel)},e.prototype.finally=function(){var r=[].slice.call(arguments),o=this._promise;return new e((function(e,i){o.finally.apply(o,n([],t(r))).then(e,i)}),this._onCancel)},e}();e.exports=r},62097:function(e,t,n){"use strict";var r=n(1730);e.exports.SDK_NAME=r.name+".js",e.exports.SDK_VERSION=r.version,e.exports.SDP_FORMAT="unified",e.exports.hardwareDevicePublisheriPad={hwDeviceManufacturer:"Apple",hwDeviceModel:"iPad",hwDeviceType:"tablet",platformName:"iOS"},e.exports.hardwareDevicePublisheriPhone={hwDeviceManufacturer:"Apple",hwDeviceModel:"iPhone",hwDeviceType:"mobile",platformName:"iOS"},e.exports.DEFAULT_ENVIRONMENT="prod",e.exports.DEFAULT_REALM="us1",e.exports.DEFAULT_REGION="gll",e.exports.DEFAULT_LOG_LEVEL="warn",e.exports.DEFAULT_LOGGER_NAME="twilio-video",e.exports.WS_SERVER=function(e,t){return t="gll"===t?"global":encodeURIComponent(t),"prod"===e?"wss://"+t+".vss.twilio.com/signaling":"wss://"+t+".vss."+e+".twilio.com/signaling"},e.exports.PUBLISH_MAX_ATTEMPTS=5,e.exports.PUBLISH_BACKOFF_JITTER=10,e.exports.PUBLISH_BACKOFF_MS=20,e.exports.typeErrors={ILLEGAL_INVOKE:function(e,t){return new TypeError("Illegal call to "+e+": "+t)},INVALID_TYPE:function(e,t){return new TypeError(e+" must be "+((["a","e","i","o","u"].includes(t.toLowerCase()[0])?"an":"a")+" ")+t)},INVALID_VALUE:function(e,t){return new RangeError(e+" must be one of "+t.join(", "))},REQUIRED_ARGUMENT:function(e){return new TypeError(e+" must be specified")}},e.exports.DEFAULT_FRAME_RATE=24,e.exports.DEFAULT_VIDEO_PROCESSOR_STATS_INTERVAL_MS=1e4,e.exports.DEFAULT_ICE_GATHERING_TIMEOUT_MS=15e3,e.exports.DEFAULT_SESSION_TIMEOUT_SEC=30,e.exports.DEFAULT_NQ_LEVEL_LOCAL=1,e.exports.DEFAULT_NQ_LEVEL_REMOTE=0,e.exports.MAX_NQ_LEVEL=3,e.exports.ICE_ACTIVITY_CHECK_PERIOD_MS=1e3,e.exports.ICE_INACTIVITY_THRESHOLD_MS=3e3,e.exports.iceRestartBackoffConfig={factor:1.1,min:1,max:1e3*e.exports.DEFAULT_SESSION_TIMEOUT_SEC,jitter:1},e.exports.reconnectBackoffConfig={factor:1.5,min:80,jitter:1},e.exports.subscriptionMode={MODE_COLLABORATION:"collaboration",MODE_GRID:"grid",MODE_PRESENTATION:"presentation"},e.exports.trackSwitchOffMode={MODE_DISABLED:"disabled",MODE_DETECTED:"detected",MODE_PREDICTED:"predicted"},e.exports.trackPriority={PRIORITY_HIGH:"high",PRIORITY_LOW:"low",PRIORITY_STANDARD:"standard"},e.exports.clientTrackSwitchOffControl={MODE_AUTO:"auto",MODE_MANUAL:"manual"},e.exports.videoContentPreferencesMode={MODE_AUTO:"auto",MODE_MANUAL:"manual"}},48685:function(e,t,n){"use strict";var r=n(40905);e.exports=function(e){var t=n(23585),o={},i=t.getOrCreate(o),a=3;return function t(){return a--,r(i,e.srcObject,250).then((function(e){return!!e&&(!(a>0)||t())})).catch((function(){return!0}))}().finally((function(){t.release(o)}))}},38815:function(e){"use strict";var t=null;e.exports=function(e){return t=t||document.createElement("canvas"),new Promise((function(n){var r=3;setTimeout((function o(){return r--,function(e){try{var n=t.getContext("2d");n.drawImage(e,0,0,50,50);var r=n.getImageData(0,0,50,50).data.filter((function(e,t){return(t+1)%4}));return 0===Math.max.apply(Math,r)}catch(o){return console.log("Error checking silence: ",o),!1}}(e)?r>0?setTimeout(o,250):n(!0):n(!1)}),250)}))}},68379:function(e){"use strict";var t=function(){function e(e){var t=this;void 0===e&&(e=1),Object.defineProperties(this,{_listeners:{value:[]},_onVisibilityChange:{value:function(){t._emitVisible("visible"===document.visibilityState)}}});for(var n=0;n<e;n++)this._listeners.push([])}return e.prototype.clear=function(){for(var e=this._listeners.length,t=0;t<e;t++)this._listeners[t]=[]},e.prototype._listenerCount=function(){return this._listeners.reduce((function(e,t){return e+t.length}),0)},e.prototype._emitVisible=function(e){for(var t=this,n=Promise.resolve(),r=function(r){n=n.then((function(){return t._emitVisiblePhase(r,e)}))},o=1;o<=this._listeners.length;o++)r(o);return n},e.prototype._emitVisiblePhase=function(e,t){var n=this._listeners[e-1];return Promise.all(n.map((function(e){var n=e(t);return n instanceof Promise?n:Promise.resolve(n)})))},e.prototype._start=function(){document.addEventListener("visibilitychange",this._onVisibilityChange)},e.prototype._stop=function(){document.removeEventListener("visibilitychange",this._onVisibilityChange)},e.prototype.onVisibilityChange=function(e,t){if("number"!==typeof e||e<=0||e>this._listeners.length)throw new Error("invalid phase: ",e);return this._listeners[e-1].push(t),1===this._listenerCount()&&this._start(),this},e.prototype.offVisibilityChange=function(e,t){if("number"!==typeof e||e<=0||e>this._listeners.length)throw new Error("invalid phase: ",e);var n=this._listeners[e-1],r=n.indexOf(t);return-1!==r&&(n.splice(r,1),0===this._listenerCount()&&this._stop()),this},e}();e.exports=new t(2)},53974:function(e){"use strict";e.exports=function(e){var t=e.location,n=e.URL;return[t,n].some((function(e){return!e}))?function(e){return Promise.reject(new Error("Failed to import: "+e+": dynamicImport is not supported"))}:(e.__twilioVideoImportedModules={},function(r){return r in e.__twilioVideoImportedModules?Promise.resolve(e.__twilioVideoImportedModules[r]):new Function("scope","return import('"+new n(r,t)+"').then(m => scope.__twilioVideoImportedModules['"+r+"'] = m);")(e)})}(globalThis)},13451:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(17187).EventEmitter,i=["signaling","room","media","quality","video-processor","preflight"],a=["debug","error","info","warning"],s=function(e){function t(t,n,r,o){void 0===o&&(o=null);var s=e.call(this)||this;return s.on("event",(function(e){var s=e.name,u=e.group,c=e.level,l=e.payload;if("string"!==typeof s)throw r.error("Unexpected name: ",s),new Error("Unexpected name: ",s);if(!i.includes(u))throw r.error("Unexpected group: ",u),new Error("Unexpected group: ",u);if(!a.includes(c))throw r.error("Unexpected level: ",c),new Error("Unexpected level: ",c);var f=Date.now(),d=f-n,p=Object.assign({elapsedTime:d,level:c},l||{});t.publish(u,s,p);var h=Object.assign({elapsedTime:d,group:u,level:c,name:s,timestamp:f},l?{payload:l}:{});r[{debug:"debug",error:"error",info:"info",warning:"warn"}[c]]("event",h),o&&"signaling"===u&&o.emit("event",h)})),s}return r(t,e),t}(o);e.exports=s},95115:function(e){"use strict";var t=function(){function e(e){e=Object.assign({getKey:function(e){return e},getValue:function(e){return e},isLessThanOrEqualTo:function(e,t){return e<=t}},e),Object.defineProperties(this,{_getKey:{value:e.getKey},_getValue:{value:e.getValue},_isLessThanOrEqualTo:{value:e.isLessThanOrEqualTo},_map:{value:new Map}})}return e.prototype.toMap=function(){return new Map(this._map)},e.prototype.updateAndFilter=function(e){return e.filter(this.update,this)},e.prototype.update=function(e){var t=this._getKey(e),n=this._getValue(e);return(!this._map.has(t)||!this._isLessThanOrEqualTo(n,this._map.get(t)))&&(this._map.set(t,n),!0)},e}();e.exports=t},96971:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(62097),s=a.typeErrors,u=a.trackPriority,c=n(67476),l=n(97480).sessionSID,f=n(22665);function d(){return"undefined"!==typeof navigator&&navigator.userAgent?navigator.userAgent:"Unknown"}function p(e,t,n,r){if(!(r in t)&&!r.match(/^on[a-z]+$/)){var a;try{a=typeof e[r]}catch(s){}"function"===a&&(t[r]=function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return(e=this[n])[r].apply(e,i([],o(t)))})}}function h(e){return"object"===typeof e&&!Array.isArray(e)}function v(e){Object.getOwnPropertyNames(e).forEach((function(t){t.startsWith("_")&&m(e,t)}))}function m(e,t){var n=Object.getOwnPropertyDescriptor(e,t);n.enumerable=!1,Object.defineProperty(e,t,n)}function y(e,t){void 0===t&&(t=[]),t.forEach((function(t){e.hasOwnProperty(t)&&m(e,t)}))}function g(e){return e.map(b)}function b(e){return Array.isArray(e)?g(e):e instanceof Set?g(i([],o(e))):e instanceof Map?i([],o(e.entries())).reduce((function(e,t){var n,r=o(t,2),i=r[0],a=r[1];return Object.assign(((n={})[i]=b(a),n),e)}),{}):e&&"object"===typeof e?(t=e,Object.entries(t).reduce((function(e,t){var n,r=o(t,2),i=r[0],a=r[1];return Object.assign(((n={})[i]=b(a),n),e)}),{})):e;var t}function _(e){return k(e,[{prop:"dominantSpeakerPriority",type:"string",payloadProp:"active_speaker_priority"},{prop:"maxSubscriptionBitrate",type:"number",payloadProp:"max_subscription_bandwidth"},{prop:"maxTracks",type:"number",payloadProp:"max_tracks"},{prop:"mode",type:"string"},{prop:"renderDimensions",type:"object",payloadProp:"render_dimensions",transform:x},{prop:"trackSwitchOffMode",type:"string",payloadProp:"track_switch_off"}
163])}function w(e){return k(e,[{prop:"height",type:"number"},{prop:"width",type:"number"}])}function x(e){return k(e,[{prop:u.PRIORITY_HIGH,type:"object",transform:w},{prop:u.PRIORITY_LOW,type:"object",transform:w},{prop:u.PRIORITY_STANDARD,type:"object",transform:w}])}function k(e,t){return t.reduce((function(t,n){var r,o=n.prop,i=n.type,a=n.payloadProp,s=void 0===a?o:a,u=n.transform,c=void 0===u?function(e){return e}:u;return typeof e[o]===i?Object.assign(((r={})[s]=c(e[o]),r),t):t}),{})}t.constants=a,t.createBandwidthProfilePayload=function(e){return k(e,[{prop:"video",type:"object",transform:_}])},t.createMediaSignalingPayload=function(e,t,n,r,o,i){var a={transports:[{type:"data-channel"}]};return Object.assign(e?{active_speaker:a}:{},t?{network_quality:a}:{},i?{render_hints:a}:{},o?{publisher_hints:a}:{},n?{track_priority:a}:{},r?{track_switch_off:a}:{})},t.createMediaWarningsPayload=function(e){var t,n=((t={})[f.recordingMediaLost]="recordings",t);return e.map((function(e){return n[e]})).filter((function(e){return!!e}))},t.createRoomConnectEventPayload=function(e){function t(e){return e?"true":"false"}var n={sessionSID:l,iceServers:(e.iceServers||[]).length,audioTracks:(e.tracks||[]).filter((function(e){return"audio"===e.kind})).length,videoTracks:(e.tracks||[]).filter((function(e){return"video"===e.kind})).length,dataTracks:(e.tracks||[]).filter((function(e){return"data"===e.kind})).length};if([["audio"],["automaticSubscription"],["enableDscp"],["eventListener"],["preflight"],["video"],["dominantSpeaker","enableDominantSpeaker"]].forEach((function(r){var i=o(r,2),a=i[0],s=i[1];n[s=s||a]=t(!!e[a])})),[["maxVideoBitrate"],["maxAudioBitrate"]].forEach((function(t){var r=o(t,2),i=r[0],a=r[1];a=a||i,"number"===typeof e[i]?n[a]=e[i]:isNaN(Number(e[i]))||(n[a]=Number(e[i]))})),[["iceTransportPolicy"],["region"],["name","roomName"]].forEach((function(t){var r=o(t,2),i=r[0],a=r[1];a=a||i,"string"===typeof e[i]?n[a]=e[i]:"number"===typeof e[i]&&"name"===i&&(n[a]=e[i].toString())})),["preferredAudioCodecs","preferredVideoCodecs"].forEach((function(t){t in e&&(n[t]=JSON.stringify(e[t]))})),"networkQuality"in e&&(n.networkQualityConfiguration={},h(e.networkQuality)?["local","remote"].forEach((function(t){"number"===typeof e.networkQuality[t]&&(n.networkQualityConfiguration[t]=e.networkQuality[t])})):(n.networkQualityConfiguration.remote=0,n.networkQualityConfiguration.local=e.networkQuality?1:0)),e.bandwidthProfile&&e.bandwidthProfile.video){var r=e.bandwidthProfile.video||{};n.bandwidthProfileOptions={},["mode","maxTracks","trackSwitchOffMode","dominantSpeakerPriority","maxSubscriptionBitrate","renderDimensions","contentPreferencesMode","clientTrackSwitchOffControl"].forEach((function(e){"number"===typeof r[e]||"string"===typeof r[e]?n.bandwidthProfileOptions[e]=r[e]:"boolean"===typeof r[e]?n.bandwidthProfileOptions[e]=t(r[e]):"object"===typeof r[e]&&(n.bandwidthProfileOptions[e]=JSON.stringify(r[e]))}))}return{group:"room",name:"connect",level:"info",payload:n}},t.createSubscribePayload=function(e){return{rules:[{type:e?"include":"exclude",all:!0}],revision:1}},t.asLocalTrack=function(e,t){if(e instanceof t.LocalAudioTrack||e instanceof t.LocalVideoTrack||e instanceof t.LocalDataTrack)return e;if(e instanceof t.MediaStreamTrack)return"audio"===e.kind?new t.LocalAudioTrack(e,t):new t.LocalVideoTrack(e,t);throw s.INVALID_TYPE("track","LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack")},t.asLocalTrackPublication=function(e,t,n,r){return new(0,{audio:r.LocalAudioTrackPublication,video:r.LocalVideoTrackPublication,data:r.LocalDataTrackPublication}[e.kind])(t,e,n,r)},t.capitalize=function(e){return e[0].toUpperCase()+e.slice(1)},t.deprecateEvents=function(e,t,n,r){var o=new Set;t.on("newListener",(function i(a){n.has(a)&&!o.has(a)&&(r.deprecated(e+"#"+a+" has been deprecated and scheduled for removal in [email protected]."+(n.get(a)?" Use "+e+"#"+n.get(a)+" instead.":"")),o.add(a)),o.size>=n.size&&t.removeListener("newListener",i)}))},t.difference=function(e,t){e=Array.isArray(e)?new Set(e):new Set(e.values()),t=Array.isArray(t)?new Set(t):new Set(t.values());var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n},t.filterObject=function(e,t){return Object.keys(e).reduce((function(n,r){return e[r]!==t&&(n[r]=e[r]),n}),{})},t.flatMap=function(e,t){var n=e instanceof Map||e instanceof Set?Array.from(e.values()):e;return t=t||function(e){return e},n.reduce((function(e,n){var r=t(n);return e.concat(r)}),[])},t.getPlatform=function(){var e=d(),t=o(e.match(/\(([^)]+)\)/)||[],2)[1];return o((void 0===t?"unknown":t).split(";").map((function(e){return e.trim()})),1)[0].toLowerCase()},t.getUserAgent=d,t.hidePrivateProperties=v,t.hidePrivateAndCertainPublicPropertiesInClass=function(e,t){return function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=e.apply(this,i([],o(n)))||this;return v(a),y(a,t),a}return r(n,e),n}(e)},t.isDeepEqual=function e(t,n){if(t===n)return!0;
163if(typeof t!==typeof n)return!1;if(null===t)return null===n;if(null===n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t){var r=Object.keys(t).sort(),o=Object.keys(n).sort();return!Array.isArray(n)&&e(r,o)&&r.every((function(r){return e(t[r],n[r])}))}return!1},t.isNonArrayObject=h,t.inRange=function(e,t,n){return t<=e&&e<=n},t.makeUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.oncePerTick=function(e){var t=null;function n(){t=null,e()}return function(){t&&clearTimeout(t),t=setTimeout(n)}},t.promiseFromEvents=function(e,t,n,r){return new Promise((function(a,s){function u(){var e=[].slice.call(arguments);r&&t.removeListener(r,c),a.apply(void 0,i([],o(e)))}function c(){var e=[].slice.call(arguments);t.removeListener(n,u),s.apply(void 0,i([],o(e)))}t.once(n,u),r&&t.once(r,c),e()}))},t.getOrNull=function(e,t){return t.split(".").reduce((function(e,t){return e?e[t]:null}),e)},t.defer=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},t.delegateMethods=function(e,t,n){for(var r in e)p(e,t,n,r)},t.proxyProperties=function(e,t,n){Object.getOwnPropertyNames(e).forEach((function(e){!function(e,t,n,r){if(r in t)return;if(r.match(/^on[a-z]+$/))return Object.defineProperty(t,r,{value:null,writable:!0}),void n.addEventListener(r.slice(2),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.dispatchEvent.apply(t,i([],o(e)))}));Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[r]}})}(0,t,n,e)}))},t.legacyPromise=function(e,t,n){return t?e.then((function(e){t(e)}),(function(e){n(e)})):e},t.buildLogLevels=function(e){return"string"===typeof e?{default:e,media:e,signaling:e,webrtc:e}:e},t.trackClass=function(e,t){return(t=t?"Local":"")+(e.kind||"").replace(/\w{1}/,(function(e){return e.toUpperCase()}))+"Track"},t.trackPublicationClass=function(e,t){return(t=t?"Local":"")+(e.kind||"").replace(/\w{1}/,(function(e){return e.toUpperCase()}))+"TrackPublication"},t.valueToJSON=b,t.withJitter=function(e,t){var n=Math.random();return e-t+Math.floor(2*t*n+.5)},t.isChromeScreenShareTrack=function(e){return"chrome"===c.guessBrowser()&&"video"===e.kind&&"displaySurface"in e.getSettings()},t.waitForSometime=function(e){return void 0===e&&(e=10),new Promise((function(t){return setTimeout(t,e)}))},t.waitForEvent=function(e,t){return new Promise((function(n){e.addEventListener(t,(function r(o){e.removeEventListener(t,r),n(o)}))}))}},99849:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},i=n(17187).EventEmitter,a=n(96971).getUserAgent,s=globalThis,u=s.WebSocket?s.WebSocket:n(39990),c=n(62097),l=c.hardwareDevicePublisheriPad,f=c.hardwareDevicePublisheriPhone,d=n(96971),p=n(49943),h=function(e){function t(t,n,r,o,i,s){var c=e.call(this)||this;return s=Object.assign({gateway:m(o,i)+"/v1/VideoEvents",maxReconnectAttempts:5,reconnectIntervalMs:50,userAgent:a(),WebSocket:u},s),Object.defineProperties(c,{_connectTimestamp:{value:0,writable:!0},_eventQueue:{value:[]},_readyToConnect:{value:d.defer()},_reconnectAttemptsLeft:{value:s.maxReconnectAttempts,writable:!0},_ws:{value:null,writable:!0},_WebSocket:{value:s.WebSocket}}),c._readyToConnect.promise.then((function(e){var o=e.roomSid,i=e.participantSid,a=c;c.on("disconnected",(function e(u){if(a._session=null,u&&a._reconnectAttemptsLeft>0)return a.emit("reconnecting"),void function(e,t,n,r,o,i,a){var s=Date.now()-e._connectTimestamp,u=a.reconnectIntervalMs-s;if(u>0)return void setTimeout((function(){v(e,t,n,r,o,i,a)}),u);v(e,t,n,r,o,i,a)}(a,t,n,r,o,i,s);a.removeListener("disconnected",e)})),v(c,t,n,r,o,i,s)})).catch((function(){})),c}return r(t,e),t.prototype.connect=function(e,t){this._readyToConnect.resolve({roomSid:e,participantSid:t})},t.prototype._publish=function(e){e.session=this._session,this._ws.send(JSON.stringify(e))},t.prototype.disconnect=function(){if(null===this._ws||this._ws.readyState===this._WebSocket.CLOSING||this._ws.readyState===this._WebSocket.CLOSED)return!1;try{this._ws.close()}catch(e){}
163return this.emit("disconnected"),!0},t.prototype.publish=function(e,t,n){return(null===this._ws||this._ws.readyState!==this._WebSocket.CLOSING&&this._ws.readyState!==this._WebSocket.CLOSED)&&(("string"===typeof this._session?this._publish.bind(this):this._eventQueue.push.bind(this._eventQueue))({group:e,name:t,payload:n,timestamp:Date.now(),type:"event",version:1}),!0)},t}(i);function v(e,t,n,r,i,a,s){e._connectTimestamp=Date.now(),e._reconnectAttemptsLeft--,e._ws=new s.WebSocket(s.gateway);var u=e._ws;u.addEventListener("close",(function(t){1e3!==t.code?e.emit("disconnected",new Error("WebSocket Error "+t.code+": "+t.reason)):e.emit("disconnected")})),u.addEventListener("message",(function(t){!function(e,t,n){switch(t.type){case"connected":e._session=t.session,e._reconnectAttemptsLeft=n.maxReconnectAttempts,e._eventQueue.splice(0).forEach(e._publish,e),e.emit("connected");break;case"error":e._ws.close(),e.emit("disconnected",new Error(t.message))}}(e,JSON.parse(t.data),s)})),u.addEventListener("open",(function(){var e={type:"connect",token:t,version:1};e.publisher={name:n,sdkVersion:r,userAgent:s.userAgent,participantSid:a,roomSid:i},p.isIpad()?e.publisher=o(o({},e.publisher),l):p.isIphone()&&(e.publisher=o(o({},e.publisher),f)),u.send(JSON.stringify(e))}))}function m(e,t){return"prod"===e?"wss://sdkgw."+t+".twilio.com":"wss://sdkgw."+e+"-"+t+".twilio.com"}e.exports=h},58363:function(e){"use strict";var t=function(){function e(){Object.defineProperties(this,{_connected:{writable:!0,value:!0}})}return e.prototype.connect=function(){},e.prototype.disconnect=function(){return!!this._connected&&(this._connected=!1,!0)},e.prototype.publish=function(){return this._connected},e}();e.exports=t},74919:function(e,t,n){"use strict";var r=n(96971).defer,o=function(){function e(){Object.defineProperties(this,{_audio:{value:r(),writable:!0},_video:{value:r(),writable:!0}}),this._audio.resolve(),this._video.resolve()}return e.prototype.resolveDeferred=function(e){"audio"===e?this._audio.resolve():this._video.resolve()},e.prototype.startDeferred=function(e){"audio"===e?this._audio=r():this._video=r()},e.prototype.whenResolved=function(e){return"audio"===e?this._audio.promise:this._video.promise},e}();e.exports=new o},36372:function(e,t,n){"use strict";var r,o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(85021).getLogger,s=n(62097),u=s.DEFAULT_LOG_LEVEL,c=s.DEFAULT_LOGGER_NAME,l=n(62097).typeErrors;var f=function(){function e(t,n,r,o,i){if("string"!==typeof t)throw l.INVALID_TYPE("moduleName","string");if(!n)throw l.REQUIRED_ARGUMENT("component");"object"!==typeof r&&(r={}),i=i||a,m(r),Object.defineProperties(this,{_component:{value:n},_logLevels:{value:r},_warnings:{value:new Set},_loggerName:{get:function(){var e=o&&"string"===typeof o?o:c;return this._logLevelsEqual||(e=e+"-"+t),e}},_logger:{get:function(){var e=i(this._loggerName),n=this._logLevels[t]||u;return n="off"===n?"silent":n,e.setDefaultLevel(n),e}},_logLevelsEqual:{get:function(){return 1===new Set(Object.values(this._logLevels)).size}},logLevel:{get:function(){return e.getLevelByName(r[t]||u)}},name:{get:n.toString.bind(n)}})}return e.getLevelByName=function(t){return isNaN(t)?(v(t=t.toUpperCase()),e[t]):parseInt(t,10)},e.prototype.createLog=function(t,n){var r=this._loggerName;return this._logLevelsEqual||(r=r.substring(0,r.lastIndexOf("-"))),new e(t,n,this._logLevels,r)},e.prototype.setLevels=function(e){return m(e),Object.assign(this._logLevels,e),this},e.prototype.log=function(t,n){var r=e._levels[t];if(!r)throw l.INVALID_VALUE("logLevel",p);r=r.toLowerCase();var a=[(new Date).toISOString(),r,this.name];return(this._logger[r]||function(){}).apply(void 0,i([],o(a.concat(n)))),this},e.prototype.debug=function(){return this.log(e.DEBUG,[].slice.call(arguments))},e.prototype.deprecated=function(e){var t=function(e){if((r=r||new Map).has(e))return r.get(e);var t=new Set;return r.set(e,t),t}(this._component.constructor);return t.has(e)?this:(t.add(e),this.warn(e))},e.prototype.info=function(){return this.log(e.INFO,[].slice.call(arguments))},e.prototype.warn=function(){return this.log(e.WARN,[].slice.call(arguments))},e.prototype.warnOnce=function(e){return this._warnings.has(e)?this:(this._warnings.add(e),this.warn(e))},e.prototype.error=function(){return this.log(e.ERROR,[].slice.call(arguments))},e.prototype.throw=function(t,n){throw t.clone&&(t=t.clone(n)),this.log(e.ERROR,t),t},e}();Object.defineProperties(f,{DEBUG:{value:0},INFO:{value:1},WARN:{value:2},ERROR:{value:3},OFF:{value:4},_levels:{value:["DEBUG","INFO","WARN","ERROR","OFF"]}});var d={},p=[],h=f._levels.map((function(e,t){return d[e]=!0,p.push(t),e}));function v(e){if(!(e in d))throw l.INVALID_VALUE("level",h)}function m(e){Object.keys(e).forEach((function(t){v(e[t].toUpperCase())}))}
163e.exports=f},99576:function(e){"use strict";var t=function(){function e(){Object.defineProperties(this,{_samples:{value:[{denominator:0,numerator:0},{denominator:0,numerator:0}]}})}return e.prototype.get=function(){var e=this._samples,t=e[1].denominator-e[0].denominator||1/0;return(e[1].numerator-e[0].numerator)/t},e.prototype.putSample=function(e,t){var n=this._samples;n.shift(),n.push({denominator:t,numerator:e})},e}();e.exports=t},5481:function(e){"use strict";var t=function(){function e(e,t){var n=this,r=(t=Object.assign({navigator:navigator,window:window},t)).navigator,o=r.connection||{type:null},i=o.type,a=o.type?{_events:{value:["change","typechange"]},_listener:{value:function(){var t=i!==n.type&&n.isOnline;i=n.type,t&&e()}},_target:{value:o}}:{_events:{value:["online"]},_listener:{value:e},_target:{value:t.window}},s=a._events,u=a._listener,c=a._target;Object.defineProperties(this,{isOnline:{enumerable:!0,get:function(){return"boolean"!==typeof r.onLine||r.onLine}},type:{enumerable:!0,get:function(){return o.type||null}},_listener:u,_events:s,_target:c})}return e.prototype.start=function(){var e=this;this._events.forEach((function(t){e._target.addEventListener(t,e._listener)}))},e.prototype.stop=function(){var e=this;this._events.forEach((function(t){e._target.removeEventListener(t,e._listener)}))},e}();e.exports=t},18537:function(e){"use strict";var t=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),n=function(){function e(e){Object.defineProperties(this,{_callback:{value:e}})}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.makeVisible=function(e){var t=this._makeFakeEntry(e,!0);this._callback([t])},e.prototype.makeInvisible=function(e){var t=this._makeFakeEntry(e,!1);this._callback([t])},e.prototype._makeFakeEntry=function(e,t){return{target:e,isIntersecting:t}},e}(),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n}(n),o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.resize=function(e){var t=this._makeFakeEntry(e,!0);this._callback([t])},n}(n);e.exports={NullIntersectionObserver:r,NullResizeObserver:o,NullObserver:n}},51062:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=n(96971),i=o.difference,a=o.flatMap,s=n(75524),u={0:"PCMU",8:"PCMA"};function c(e){return Array.from(f(e)).reduce((function(e,t){var n=t[0],r=t[1],o=e.get(r)||[];return e.set(r,o.concat(n))}),new Map)}function l(e){return h(e).reduce((function(e,t){var n=p(t);return n?e.set(n,t):e}),new Map)}function f(e){return v(e).reduce((function(t,n){var r=new RegExp("a=rtpmap:"+n+" ([^/]+)"),o=e.match(r),i=o?o[1].toLowerCase():u[n]?u[n].toLowerCase():"";return t.set(n,i)}),new Map)}function d(e,t){var n=new RegExp("^a=fmtp:"+e+" (.+)$","m"),o=t.match(n);return o&&o[1].split(";").reduce((function(e,t){var n=r(t.split("="),2),o=n[0],i=n[1];return e[o]=isNaN(i)?i:parseInt(i,10),e}),{})}function p(e){var t=e.match(/^a=mid:(.+)$/m);return t&&t[1]}function h(e,t,n){return e.replace(/\r\n\r\n$/,"\r\n").split("\r\nm=").slice(1).map((function(e){return"m="+e})).filter((function(e){var r=new RegExp("m="+(t||".*"),"gm"),o=new RegExp("a="+(n||".*"),"gm");return r.test(e)&&o.test(e)}))}function v(e){var t=e.split("\r\n")[0].match(/([0-9]+)/g);return t?t.slice(1).map((function(e){return parseInt(e,10)})):[]}function m(e,t){var n=t.split("\r\n"),r=n[0],o=n.slice(1);return[r=r.replace(/([0-9]+\s?)+$/,e.join(" "))].concat(o).join("\r\n")}function y(e,t,n){if(!/^m=(audio|video)/.test(e))return e;var o=p(e),i=o&&t.get(o);if(!i)return e;var s=f(i),u=c(e),l=a(Array.from(s),(function(t){var o=r(t,2),a=o[0],s=o[1];return"rtx"===s||n.includes(s)?[]:function(e,t,n,r,o){var i=n.get(e)||[];if(i.length<=1)return i;var a=d(t,o);if(!a)return i;var s=i.find((function(e){var t=d(e,r);return t&&Object.keys(a).every((function(e){return a[e]===t[e]}))}));return"number"===typeof s?[s]:i}(s,a,u,e,i)})),h=u.get("rtx")||[];l=l.concat(h.filter((function(t){var n=d(t,e);return n&&l.includes(n.apt)})));var y=e.split("\r\n").filter((function(e){var t=e.match(/^a=(rtpmap|fmtp|rtcp-fb):(.+
163) .+$/),n=t&&t[2];return!t||n&&l.includes(parseInt(n,10))}));return m(v(e).filter((function(e){return l.includes(e)})),y.join("\r\n"))}function g(e,t){var n=h(e);return[e.split("\r\nm=")[0]].concat(n.map((function(e){if(!/^m=(audio|video)/.test(e))return e;var n=p(e);if(!n)return e;var o=t.get(n);if(!o)return e;var i=(e.match(/^a=msid:(.+)$/m)||[])[1];if(!i)return e;var a=r(i.split(" "),2),s=a[0],u=a[1],c=new RegExp("msid:"+s+(u?" "+u:"")+"$","gm");return e.replace(c,"msid:"+s+" "+o)}))).join("\r\n")}function b(e,t){var n=Object.entries(t).map((function(e){var t=r(e,2);return t[0]+"="+t[1]})).join(";");return"a=fmtp:"+e+" "+n}t.addOrRewriteNewTrackIds=function(e,t,n){var o=Array.from(n).reduce((function(n,o){var i=r(o,2),a=i[0],s=i[1];return h(e,a,"send(only|recv)").map(p).filter((function(e){return!t.has(e)})).forEach((function(e,t){return n.set(e,s[t])})),n}),new Map);return g(e,o)},t.addOrRewriteTrackIds=g,t.createCodecMapForMediaSection=c,t.createPtToCodecName=f,t.disableRtx=function(e){var t=h(e);return[e.split("\r\nm=")[0]].concat(t.map((function(e){if(!/^m=video/.test(e))return e;var t=c(e).get("rtx");if(!t)return e;var n=new Set(v(e));t.forEach((function(e){return n.delete(e)}));var r=e.match(/a=ssrc-group:FID [0-9]+ ([0-9]+)/),o=r&&r[1],i=[/^a=fmtp:.+ apt=.+$/,/^a=rtpmap:.+ rtx\/.+$/,/^a=ssrc-group:.+$/].concat(o?[new RegExp("^a=ssrc:"+o+" .+$")]:[]);return e=e.split("\r\n").filter((function(e){return i.every((function(t){return!t.test(e)}))})).join("\r\n"),m(Array.from(n),e)}))).join("\r\n")},t.enableDtxForOpus=function(e,t){var n=h(e),r=e.split("\r\nm=")[0];return t=t||n.filter((function(e){return/^m=audio/.test(e)})).map(p),[r].concat(n.map((function(e){if(!/^m=audio/.test(e))return e;var n=c(e).get("opus");if(!n)return e;var r=d(n,e);if(!r)return e;var o=b(n,r),i=new RegExp(o),a=p(e);t.includes(a)?r.usedtx=1:delete r.usedtx;var s=b(n,r);return e.replace(i,s)}))).join("\r\n")},t.filterLocalCodecs=function(e,t){var n=h(e),r=e.split("\r\nm=")[0],o=l(t);return[r].concat(n.map((function(e){return y(e,o,[])}))).join("\r\n")},t.getMediaSections=h,t.removeSSRCAttributes=function(e,t){return e.split("\r\n").filter((function(e){return!t.find((function(t){return new RegExp("a=ssrc:.*"+t+":","g").test(e)}))})).join("\r\n")},t.revertSimulcast=function(e,t,n,r){void 0===r&&(r=!1);var o=l(n),i=l(t),a=h(e);return[e.split("\r\nm=")[0]].concat(a.map((function(e){if(e=e.replace(/\r\n$/,""),!/^m=video/.test(e))return e;var t=e.match(/^a=mid:(.+)$/m),n=t&&t[1];if(!n)return e;var a=o.get(n),s=f(a),u=v(a),c=u.length&&"vp8"===s.get(u[0]);return r||!c?i.get(n).replace(/\r\n$/,""):e}))).concat("").join("\r\n")},t.setCodecPreferences=function(e,t,n){var r=h(e);return[e.split("\r\nm=")[0]].concat(r.map((function(e){if(!/^m=(audio|video)/.test(e))return e;var r=e.match(/^m=(audio|video)/)[1],o=c(e),s=function(e,t){t=t.map((function(e){return e.codec.toLowerCase()}));var n=a(t,(function(t){return e.get(t)||[]})),r=i(Array.from(e.keys()),t),o=a(r,(function(t){return e.get(t)}));return n.concat(o)}(o,"audio"===r?t:n),u=m(s,e),l=o.get("pcma")||[],f=o.get("pcmu")||[];return("audio"===r?new Set(l.concat(f)):new Set).has(s[0])?u.replace(/\r\nb=(AS|TIAS):([0-9]+)/g,""):u}))).join("\r\n")},t.setSimulcast=function(e,t){var n=h(e);return[e.split("\r\nm=")[0]].concat(n.map((function(e){if(e=e.replace(/\r\n$/,""),!/^m=video/.test(e))return e;var n=c(e),r=v(e),o=new Set(n.get("vp8")||[]);return r.some((function(e){return o.has(e)}))?s(e,t):e}))).concat("").join("\r\n")}},14799:function(e,t,n){"use strict";var r=n(39778).RTCSessionDescription,o=n(51062),i=o.createPtToCodecName,a=o.getMediaSections;function s(e){var t=i(e);e=function(e,t){return Array.from(t.keys()).reduce((function(e,n){var r=new RegExp("^a=rtpmap:"+n+" rtx.+$","gm");return(e.match(r)||[]).slice("rtx"===t.get(n)?1:0).reduce((function(e,t){var r=new RegExp("\r\n"+t),o=new RegExp("\r\na=fmtp:"+n+" apt=[0-9]+");return e.replace(r,"").replace(o,"")}),e)}),e)}(e,t);var n=function(e){var t=new Map;return e.forEach((function(e,n){var r=t.get(e)||new Set;return t.set(e,r.add(n))})),t}(t),r=n.get("rtx")||new Set,o=new Set,a=function(e,t,n,r){return Array.from(n).reduce((function(n,o){var i=new RegExp("a=fmtp:"+o+" apt=(\\d+)"),a=e.match(i);if(!a)return r.add(o),n;var s=Number.parseInt(a[1]);return t.has(s)?"rtx"===t.get(s)?(r.add(o),n):n.set(o,s):(r.add(o),n)}),new Map)}(e,t,r,o),s=function(e,t){var n=Array.from(e).reduce((function(e,t){var n=t[0],r=t[1],o=e.get(r)||new Set;return e.set(r,o.add(n))}),new Map);return Array.from(n).reduce((function(e,n){var r=n[0],o=Array.from(n[1]);return o.length>
1631?(o.forEach((function(e){t.add(e)})),e):e.set(r,o[0])}),new Map)}(a,o),c=Array.from(o);return["h264","vp8","vp9"].reduce((function(e,t){var r=n.get(t)||new Set;return Array.from(r).reduce((function(e,t){return s.has(t)?e:e.add(t)}),e)}),new Set).forEach((function(t){if(c.length){var n=c.shift();e=function(e,t,n){return e.endsWith("\r\n")?e+"a=fmtp:"+t+" apt="+n+"\r\n":e+"\r\na=fmtp:"+t+" apt="+n}(e=u(e,n),n,t)}})),c.forEach((function(t){e=function(e,t){var n=new RegExp("a=rtpmap:"+t+".*\r\n","gm");return e.replace(n,"")}(e=u(e,t),t)})),e}function u(e,t){var n=new RegExp("a=fmtp:"+t+".*\r\n","gm");return e.replace(n,"")}e.exports=function(e){var t={type:e.type};return"rollback"!==e.type&&(t.sdp=function(e){var t=a(e);return[e.split("\r\nm=")[0]].concat(t.map(s)).join("\r\n")}(e.sdp)),new r(t)}},75524:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=n(96971),i=o.difference,a=o.flatMap;function s(){return String(Math.floor(4294967295*Math.random()))}var u=function(){function e(e,t,n){Object.defineProperties(this,{cName:{enumerable:!0,value:n},isSimulcastEnabled:{enumerable:!0,value:!1,writable:!0},primarySSRCs:{enumerable:!0,value:new Set},rtxPairs:{enumerable:!0,value:new Map},streamId:{enumerable:!0,value:t},trackId:{enumerable:!0,value:e}})}return e.prototype.addSimulcastSSRCs=function(){if(!this.isSimulcastEnabled){var e=[s(),s()];e.forEach((function(e){this.primarySSRCs.add(e)}),this),this.rtxPairs.size&&e.forEach((function(e){this.rtxPairs.set(s(),e)}),this)}},e.prototype.addSSRC=function(e,t,n){t?this.rtxPairs.set(e,t):this.primarySSRCs.add(e),this.isSimulcastEnabled=this.isSimulcastEnabled||n},e.prototype.toSdpLines=function(e){var t=this,n=e?[]:Array.from(this.rtxPairs.entries()).map((function(e){return e.reverse()})),r=Array.from(this.primarySSRCs.values()),o=n.length?a(n):r,i=a(o,(function(e){return["a=ssrc:"+e+" cname:"+t.cName,"a=ssrc:"+e+" msid:"+t.streamId+" "+t.trackId]})),s=n.map((function(e){return"a=ssrc-group:FID "+e.join(" ")})),u=["a=ssrc-group:SIM "+r.join(" ")];return s.concat(i).concat(u)},e}();function c(e,t){return(e.match(new RegExp(t,"gm"))||[]).map((function(e){return(e.match(new RegExp(t))||[]).slice(1)}))}function l(e){var t=function(e){return new Set(a(c(e,"^a=ssrc-group:SIM ([0-9]+) ([0-9]+) ([0-9]+)$")))}(e),n=function(e){return new Map(c(e,"^a=ssrc-group:FID ([0-9]+) ([0-9]+)$").map((function(e){return e.reverse()})))}(e),o=function(e){var t=r(a(c(e,"^a=msid:(.+) (.+)$")),2),n=t[0],o=t[1];return a(c(e,"^a=ssrc:(.+) cname:.+$")).map((function(e){return[e,n,o]}))}(e);return o.reduce((function(r,o){var i=o[0],a=o[1],s=o[2],c=r.get(s)||new u(s,a,function(e,t,n){var r="a=ssrc:"+t+" "+n+":(.+)";return e.match(new RegExp(r))[1]}(e,i,"cname")),l=n.get(i)||null;return c.addSSRC(i,l,t.has(i)),r.set(s,c)}),new Map)}e.exports=function(e,t){var n=l(e),r=Array.from(n.keys()),o=Array.from(t.keys()),s=i(r,o),u=i(o,r);a(s,(function(e){return n.get(e)})).forEach((function(e){e.addSimulcastSSRCs(),t.set(e.trackId,e)})),o=Array.from(t.keys());var c=i(o,u),f=a(c,(function(e){return t.get(e)})),d=!e.match(/a=rtpmap:[0-9]+ rtx/),p=a(f,(function(e){return e.toSdpLines(d)})),h=a(new Set(e.split("\r\n").concat(p))),v="a=x-google-flag:conference";return e.match(v)||h.push(v),h.join("\r\n")}},65179:function(e,t,n){"use strict";var r=n(51062).getMediaSections,o=function(){function e(){Object.defineProperties(this,{_midsToTrackIds:{value:new Map,writable:!0}})}return e.prototype.match=function(e){return this._midsToTrackIds.get(e.transceiver.mid)||null},e.prototype.update=function(e){var t=r(e,"(audio|video)");this._midsToTrackIds=t.reduce((function(e,t){var n=t.match(/^a=mid:(.+)$/m)||[],r=t.match(/^a=msid:.+ (.+)$/m)||[],o=n[1],i=r[1];return o&&i?e.set(o,i):e}),this._midsToTrackIds)},e}();e.exports=o},97480:function(e,t){var n="1234567890abcdef";function r(e){for(var t="",r=0;r<32;r++)t+=n.charAt(Math.floor(Math.random()*n.length));return""+e+t}t.sessionSID=r("SS"),t.createSID=r},71345:function(e,t,n){"use strict";
163var r=n(67476),o=r.guessBrowser,i=r.support,a=n(72728).getSdpFormat,s=n(49943),u=s.isAndroid,c=s.isMobile,l=s.isNonChromiumEdge,f=s.rebrandedChromeBrowser,d=s.mobileWebKitBrowser,p=["crios","edg","edge","electron","headlesschrome"],h=["chrome","firefox"],v=["chrome","safari"],m=[];e.exports=function(){var e=o();if(!e)return!1;var t=f(e),n=d(e),r=u()?h:v;return!!e&&i()&&"unified"===a()&&(!t||p.includes(t))&&!l(e)&&(!n||m.includes(n))&&(!c()||r.includes(e))}},75317:function(e){"use strict";var t=function(){function e(e,t,n){void 0===n&&(n=!0),Object.defineProperties(this,{_delay:{value:t,writable:!0},_fn:{value:e},_timeout:{value:null,writable:!0}}),n&&this.start()}return Object.defineProperty(e.prototype,"delay",{get:function(){return this._delay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSet",{get:function(){return!!this._timeout},enumerable:!1,configurable:!0}),e.prototype.setDelay=function(e){this._delay=e},e.prototype.start=function(){var e=this;this.isSet||(this._timeout=setTimeout((function(){var t=e._fn;e.clear(),t()}),this._delay))},e.prototype.clear=function(){clearTimeout(this._timeout),this._timeout=null},e.prototype.reset=function(){this.clear(),this.start()},e}();e.exports=t},78144:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n(36196),i={};t.createTwilioError=function(e,t){return t="string"===typeof t&&t?t:"Unknown error",i[e="number"===typeof e?e:0]?new i[e]:new o(e,t)};var a=function(e){function t(){var n=e.call(this,20101,"Invalid Access Token")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenInvalidError=a,Object.defineProperty(i,20101,{value:a});var s=function(e){function t(){var n=e.call(this,20102,"Invalid Access Token header")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenHeaderInvalidError=s,Object.defineProperty(i,20102,{value:s});var u=function(e){function t(){var n=e.call(this,20103,"Invalid Access Token issuer/subject")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenIssuerInvalidError=u,Object.defineProperty(i,20103,{value:u});var c=function(e){function t(){var n=e.call(this,20104,"Access Token expired or expiration date invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenExpiredError=c,Object.defineProperty(i,20104,{value:c});var l=function(e){function t(){var n=e.call(this,20105,"Access Token not yet valid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenNotYetValidError=l,Object.defineProperty(i,20105,{value:l});var f=function(e){function t(){var n=e.call(this,20106,"Invalid Access Token grants")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenGrantsInvalidError=f,Object.defineProperty(i,20106,{value:f});var d=function(e){function t(){var n=e.call(this,20107,"Invalid Access Token signature")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.AccessTokenSignatureInvalidError=d,Object.defineProperty(i,20107,{value:d});var p=function(e){function t(){var n=e.call(this,53e3,"Signaling connection error")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.SignalingConnectionError=p,Object.defineProperty(i,53e3,{value:p});var h=function(e){function t(){var n=e.call(this,53001,"Signaling connection disconnected")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.SignalingConnectionDisconnectedError=h,Object.defineProperty(i,53001,{value:h});var v=function(e){function t(){var n=e.call(this,53002,"Signaling connection timed out")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.SignalingConnectionTimeoutError=v,Object.defineProperty(i,53002,{value:v});var m=function(e){function t(){var n=e.call(this,53003,"Client received an invali
163d signaling message")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.SignalingIncomingMessageInvalidError=m,Object.defineProperty(i,53003,{value:m});var y=function(e){function t(){var n=e.call(this,53004,"Client sent an invalid signaling message")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.SignalingOutgoingMessageInvalidError=y,Object.defineProperty(i,53004,{value:y});var g=function(e){function t(){var n=e.call(this,53006,"Video server is busy")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.SignalingServerBusyError=g,Object.defineProperty(i,53006,{value:g});var b=function(e){function t(){var n=e.call(this,53100,"Room name is invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomNameInvalidError=b,Object.defineProperty(i,53100,{value:b});var _=function(e){function t(){var n=e.call(this,53101,"Room name is too long")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomNameTooLongError=_,Object.defineProperty(i,53101,{value:_});var w=function(e){function t(){var n=e.call(this,53102,"Room name contains invalid characters")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomNameCharsInvalidError=w,Object.defineProperty(i,53102,{value:w});var x=function(e){function t(){var n=e.call(this,53103,"Unable to create Room")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomCreateFailedError=x,Object.defineProperty(i,53103,{value:x});var k=function(e){function t(){var n=e.call(this,53104,"Unable to connect to Room")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomConnectFailedError=k,Object.defineProperty(i,53104,{value:k});var S=function(e){function t(){var n=e.call(this,53105,"Room contains too many Participants")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomMaxParticipantsExceededError=S,Object.defineProperty(i,53105,{value:S});var E=function(e){function t(){var n=e.call(this,53106,"Room not found")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomNotFoundError=E,Object.defineProperty(i,53106,{value:E});var O=function(e){function t(){var n=e.call(this,53107,"MaxParticipants is out of range")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomMaxParticipantsOutOfRangeError=O,Object.defineProperty(i,53107,{value:O});var P=function(e){function t(){var n=e.call(this,53108,"RoomType is not valid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomTypeInvalidError=P,Object.defineProperty(i,53108,{value:P});var T=function(e){function t(){var n=e.call(this,53109,"Timeout is out of range")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomTimeoutOutOfRangeError=T,Object.defineProperty(i,53109,{value:T});var C=function(e){function t(){var n=e.call(this,53110,"StatusCallbackMethod is invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomStatusCallbackMethodInvalidError=C,Object.defineProperty(i,53110,{value:C});var A=function(e){function t(){var n=e.call(this,53111,"StatusCallback is invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomStatusCallbackInvalidError=A,Object.defineProperty(i,53111,{value:A});var j=function(e){function t(){var n=e.call(this,53112,"Status is invali
163d")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomStatusInvalidError=j,Object.defineProperty(i,53112,{value:j});var R=function(e){function t(){var n=e.call(this,53113,"Room exists")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomRoomExistsError=R,Object.defineProperty(i,53113,{value:R});var M=function(e){function t(){var n=e.call(this,53114,"Room creation parameter(s) incompatible with the Room type")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomInvalidParametersError=M,Object.defineProperty(i,53114,{value:M});var D=function(e){function t(){var n=e.call(this,53115,"MediaRegion is invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomMediaRegionInvalidError=D,Object.defineProperty(i,53115,{value:D});var I=function(e){function t(){var n=e.call(this,53116,"There are no media servers available in the MediaRegion")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomMediaRegionUnavailableError=I,Object.defineProperty(i,53116,{value:I});var L=function(e){function t(){var n=e.call(this,53117,"The subscription operation requested is not supported for the Room type")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomSubscriptionOperationNotSupportedError=L,Object.defineProperty(i,53117,{value:L});var N=function(e){function t(){var n=e.call(this,53118,"Room completed")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomCompletedError=N,Object.defineProperty(i,53118,{value:N});var B=function(e){function t(){var n=e.call(this,53124,"The AudioOnly flag is not supported for the Room type")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomAudioOnlyFlagNotSupportedError=B,Object.defineProperty(i,53124,{value:B});var F=function(e){function t(){var n=e.call(this,53125,"The track kind is not supported by the Room")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.RoomTrackKindNotSupportedError=F,Object.defineProperty(i,53125,{value:F});var Z=function(e){function t(){var n=e.call(this,53200,"Participant identity is invali
163d")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ParticipantIdentityInvalidError=Z,Object.defineProperty(i,53200,{value:Z});var z=function(e){function t(){var n=e.call(this,53201,"Participant identity is too long")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ParticipantIdentityTooLongError=z,Object.defineProperty(i,53201,{value:z});var V=function(e){function t(){var n=e.call(this,53202,"Participant identity contains invalid characters")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ParticipantIdentityCharsInvalidError=V,Object.defineProperty(i,53202,{value:V});var U=function(e){function t(){var n=e.call(this,53203,"The maximum number of published tracks allowed in the Room at the same time has been reached")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ParticipantMaxTracksExceededError=U,Object.defineProperty(i,53203,{value:U});var W=function(e){function t(){var n=e.call(this,53204,"Participant not found")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ParticipantNotFoundError=W,Object.defineProperty(i,53204,{value:W});var H=function(e){function t(){var n=e.call(this,53205,"Participant disconnected because of duplicate identity")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ParticipantDuplicateIdentityError=H,Object.defineProperty(i,53205,{value:H});var q=function(e){function t(){var n=e.call(this,53300,"Track is invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.TrackInvalidError=q,Object.defineProperty(i,53300,{value:q});var $=function(e){function t(){var n=e.call(this,53301,"Track name is invalid")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.TrackNameInvalidError=$,Object.defineProperty(i,53301,{value:$});var G=function(e){function t(){var n=e.call(this,53302,"Track name is too long")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.TrackNameTooLongError=G,Object.defineProperty(i,53302,{value:G});var Y=function(e){function t(){var n=e.call(this,53303,"Track name contains invalid characters")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.TrackNameCharsInvalidError=Y,Object.defineProperty(i,53303,{value:Y});var K=function(e){function t(){var n=e.call(this,53304,"Track name is duplicated")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.TrackNameIsDuplicatedError=K,Object.defineProperty(i,53304,{value:K});var X=function(e){function t(){var n=e.call(this,53305,"The server has reached capacity and cannot fulfill this request")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.TrackServerTrackCapacityReachedError=X,Object.defineProperty(i,53305,{value:X});var Q=function(e){function t(){var n=e.call(this,53400,"Client is unable to create or apply a local media description")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaClientLocalDescFailedError=Q,Object.defineProperty(i,53400,{value:Q});var J=function(e){function t(){var n=e.call(this,53401,"Server is unable to create or apply a local media description")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaServerLocalDescFailedError=J,Object.defineProperty(i,53401,{value:J});var ee=function(e){function t(){var n=e.call(this,53402,"Client is unable to apply a remote media description")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaClientRemoteDescFailedError=ee,Object.defineProperty(i,53402,{value:ee});var te=function(e){function t(){var n=e.call(this,53403,"Server is unable to apply a remote media description")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaServerRemoteDescFailedError=te,Object.defineProperty(i,53403,{value:te});var ne=function(e){function t(){var n=e.call(this,53404,"No supported codec")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaNoSupportedCodecError=ne,Object.defineProperty(i,53404,{value:ne});var re=function(e){function t(){var n=e.call(this,53405,"Media connection failed or Media activity ceased")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaConnectionError=re,Object.defineProperty(i,53405,{value:re});var oe=function(e){function t(){var n=e.call(this,53407,"Media connection failed due to DTLS handshake failure")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.MediaDTLSTransportFailedError=oe,Object.defineProperty(i,53407,{value:oe});var ie=function(e){function t(){var n=e.call(this,53500,"Unable to acquire configuration")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ConfigurationAcquireFailedError=ie,Object.defineProperty(i,53500,{value:ie});var ae=function(e){function t(){var n=e.call(this,53501,"Unable to acquire TURN credentials")||this;return Object.setPrototypeOf(n,t.prototype),n}return r(t,e),t}(o);t.ConfigurationAcquireTurnFailedError=ae,Object.defineProperty(i,53501,{value:ae})},36196:function(e){"use strict";var t=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),n=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},o=function(e){function o(t){var i=this,a=[].slice.call(arguments,1
163);i=e.apply(this,r([],n(a)))||this,Object.setPrototypeOf(i,o.prototype);var s=Error.apply(i,a);return s.name="TwilioError",Object.defineProperty(i,"code",{value:t,enumerable:!0}),Object.getOwnPropertyNames(s).forEach((function(e){Object.defineProperty(this,e,{value:s[e],enumerable:!0})}),i),i}return t(o,e),o.prototype.toString=function(){var e=this.message?": "+this.message:"";return this.name+" "+this.code+e},o}(Error);e.exports=o},22665:function(e){"use strict";e.exports={recordingMediaLost:"recording-media-lost"}},324:function(e,t,n){"use strict";var r=n(96971).isNonArrayObject,o=n(62097),i=o.typeErrors,a=o.clientTrackSwitchOffControl,s=o.videoContentPreferencesMode,u=o.subscriptionMode,c=o.trackPriority,l=o.trackSwitchOffMode;function f(e,t,n){return void 0===n&&(n=[]),"undefined"===typeof e?null:null!==e&&r(e)?n.reduce((function(n,r){var o=r.prop,a=r.type,s=r.values;if(n||!(o in e))return n;var u=e[o];return a&&typeof u!==a||"number"===a&&isNaN(u)?i.INVALID_TYPE(t+"."+o,a):Array.isArray(s)&&!s.includes(u)?i.INVALID_VALUE(t+"."+o,s):n}),null):i.INVALID_TYPE(t,"object")}t.kG=function(e){var t=f(e,"options.bandwidthProfile");return!e||t?t:(t=f(e.video,"options.bandwidthProfile.video",[{prop:"contentPreferencesMode",values:Object.values(s)},{prop:"dominantSpeakerPriority",values:Object.values(c)},{prop:"maxSubscriptionBitrate",type:"number"},{prop:"maxTracks",type:"number"},{prop:"mode",values:Object.values(u)},{prop:"clientTrackSwitchOffControl",values:Object.values(a)},{prop:"trackSwitchOffMode",values:Object.values(l)}]))||(e.video?"maxTracks"in e.video&&"clientTrackSwitchOffControl"in e.video?new TypeError("options.bandwidthProfile.video.maxTracks is deprecated. Use options.bandwidthProfile.video.clientTrackSwitchOffControl instead."):"renderDimensions"in e.video&&"contentPreferencesMode"in e.video?new TypeError("options.bandwidthProfile.video.renderDimensions is deprecated. Use options.bandwidthProfile.video.contentPreferencesMode instead."):function(e){var t="options.bandwidthProfile.video.renderDimensions",n=f(e,t);return e?n||Object.values(c).reduce((function(n,r){return n||f(e[r],t+"."+r,[{prop:"height",type:"number"},{prop:"width",type:"number"}])}),null):n}(e.video.renderDimensions):null)},t.Wv=function(e,t){if(!(e instanceof t.LocalAudioTrack||e instanceof t.LocalDataTrack||e instanceof t.LocalVideoTrack||e instanceof t.MediaStreamTrack))throw i.INVALID_TYPE("track","LocalAudioTrack, LocalVideoTrack, LocalDataTrack, or MediaStreamTrack")}},14526:function(e){e.exports=function(e,t){if(e&&t)if(e.super_=t,"function"===typeof Object.create)e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});else{var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},85021:function(e){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"===typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(r){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(e){return"debug"===e&&(e="log"),typeof console!==n&&("trace"===e&&r?a:void 0!==console[e]?i(console,e):void 0!==console.log?i(console,"log"):t)}function u(e,n){for(var r=0;r<o.length;r++){var i=o[r];this[i]=r<e?t:this.methodFactory(i,e,n)}this.log=this.debug}function c(e,t,r){return function(){typeof console!==n&&(u.call(this,t,r),this[e].apply(this,arguments))}}function l(e,t,n){return s(e)||c.apply(this,arguments)}function f(e,t,r){var i,a=this,s="loglevel";function c(){var e;if(typeof window!==n&&s){try{e=window.localStorage[s]}catch(o){}if(typeof e===n)try{var t=window.document.cookie,r=t.indexOf(encodeURIComponent(s)+"=");-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}catch(o){}return void 0===a.levels[e]&&(e=void 0),e}}"string"===typeof e?s+=":"+e:"symbol"===typeof e&&(s=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=r||l,a.getLevel=function(){return i},a.setLevel=function(t,r){if("string"===typeof t&&void 0!==a.levels[t.toUpperCase()]&&(t=a.levels[t.toUpperCase()]),!("number"===typeof t&&t>
163=0&&t<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(i=t,!1!==r&&function(e){var t=(o[e]||"silent").toUpperCase();if(typeof window!==n&&s){try{return void(window.localStorage[s]=t)}catch(r){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(r){}}}(t),u.call(a,t,e),typeof console===n&&t<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){c()||a.setLevel(e,!1)},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var f=c();null==f&&(f=null==t?"WARN":t),a.setLevel(f,!1)}var d=new f,p={};d.getLogger=function(e){if("symbol"!==typeof e&&"string"!==typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new f(e,d.getLevel(),d.methodFactory)),t};var h=typeof window!==n?window.log:void 0;d.noConflict=function(){return typeof window!==n&&window.log===d&&(window.log=h),d},d.getLoggers=function(){return p},d.default=d,e.exports=d},23585:function(e){"use strict";var t="undefined"!==typeof AudioContext?AudioContext:"undefined"!==typeof webkitAudioContext?webkitAudioContext:null,n=function(){function e(n){n=Object.assign({AudioContext:t},n),Object.defineProperties(this,{_AudioContext:{value:n.AudioContext},_audioContext:{value:null,writable:!0},_holders:{value:new Set},AudioContextFactory:{enumerable:!0,value:e}})}return e.prototype.getOrCreate=function(e){if(!this._holders.has(e)&&(this._holders.add(e),this._AudioContext&&!this._audioContext))try{this._audioContext=new this._AudioContext}catch(t){}return this._audioContext},e.prototype.release=function(e){this._holders.has(e)&&(this._holders.delete(e),!this._holders.size&&this._audioContext&&(this._audioContext.close(),this._audioContext=null))},e}();e.exports=new n},40905:function(e){"use strict";e.exports=function(e,t,n){n="number"===typeof n?n:250;var r=e.createMediaStreamSource(t),o=e.createAnalyser();o.fftSize=2048,r.connect(o);var i=new Uint8Array(o.fftSize),a=!1;return setTimeout((function(){a=!0}),n),function e(){return a?Promise.resolve(!0):(o.getByteTimeDomainData(i),i.some((function(e){return 128!==e&&0!==e}))?Promise.resolve(!1):function(e){return e="number"===typeof e?e:0,new Promise((function(t){return setTimeout(t,e)}))}().then(e))}().then((function(e){return r.disconnect(),e}),(function(e){throw r.disconnect(),e}))}},26245:function(e,t,n){"use strict";var r=n(40905);e.exports=function(e,t,o,i,a){i="number"===typeof i?i:3;var s=0,u=n(23585),c={},l=u.getOrCreate(c);return function n(){return t(o).then((function(t){return(o.audio?r(l,t,a).catch((function(t){return e.warn("Encountered an error while detecting silence",t),!0})):Promise.resolve(!1)).then((function(r){return r?i<=0?(e.warn("Got a silent audio MediaStreamTrack. Normally we would try to get a new one, but we've run out of retries; returning it anyway."),t):(e.warn("Got a silent audio MediaStreamTrack. Stopping all MediaStreamTracks and calling getUserMedia again. This is retry #"+ ++s+"."),t.getTracks().forEach((function(e){return e.stop()})),i--,n()):(e.info("Got a non-silent audio MediaStreamTrack; returning it."),t)}))}))}().then((function(e){return u.release(c),e}),(function(e){throw u.release(c),e}))}},14709:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=n(67476),i=o.flatMap,a=o.guessBrowser,s=o.guessBrowserVersion,u=n(72728).getSdpFormat,c=a(),l=s(),f="chrome"===c,d="firefox"===c,p="safari"===c,h=f?l.major:null;function v(e){var t=Array.from(e.values()).find((function(e){var t=e.nominated;return"candidate-pair"===e.type&&t}));if(!t)return null;var n=e.get(t.localCandidateId),r=e.get(t.remoteCandidateId),o=[{key:"candidateType",type:"string"},{key:"ip",type:"string"},{key:"port",type:"number"},{key:"priority",type:"number"},{key:"protocol",type:"string"},{key:"url",type:"string"}],i=o.concat([{key:"deleted",type:"boolean"},{key:"relayProtocol",type:"string"}]),a=n?i.reduce((function(e,t){var r=t.key,o=t.type;return e[r]=typeof n[r]===o?n[r]:"deleted"!==r&&null,e}),{}):null,s=r?o.reduce((function(e,t){var n=t.key,o=t.type;return e[n]=typeof r[n]===o?r[n]:null,e}),{}):null;return[{key:"availableIncomingBitrate",type:"number"},{key:"availableOutgoingBitrate",type:"number"},{key:"bytesReceived",type:"number"},{key:"bytesSent",type:"number"},{key:"consentRequestsSent",type:"number"},{key:"currentRoundTripTime",type:"number"},{key:"lastPacketReceivedTimestamp",type:"number"},{key:"lastPacketSentTimestamp",type:"number"},{key:"nominated",type:"boolean"},{key:"priority",type:"number"},{key:"readable",type:"boolean"},{key:"requestsReceived",type:"number"},{key:"requestsSent",type:"number"},{key:"responsesReceived",type:"number"},{key:"responsesSent",type:"number"},{key:"retransmissionsReceived",type:"number"},{key:"retransmissionsSent",type:"number"},{key:"state",type:"string",fixup:function(e){return"inprogress"===e?"in-
163progress":e}},{key:"totalRoundTripTime",type:"number"},{key:"transportId",type:"string"},{key:"writable",type:"boolean"}].reduce((function(e,n){var r=n.key,o=n.type,i=n.fixup;return e[r]=typeof t[r]===o?i?i(t[r]):t[r]:null,e}),{localCandidate:a,remoteCandidate:s})}function m(e){var t=Array.from(e.values()).find((function(e){var t=e.nominated;return"candidate-pair"===e.type&&t}));if(!t)return null;var n=e.get(t.localCandidateId),r=e.get(t.remoteCandidateId),o=[{key:"candidateType",type:"string"},{key:"ip",ffKeys:["address","ipAddress"],type:"string"},{key:"port",ffKeys:["portNumber"],type:"number"},{key:"priority",type:"number"},{key:"protocol",ffKeys:["transport"],type:"string"},{key:"url",type:"string"}],i=o.concat([{key:"deleted",type:"boolean"},{key:"relayProtocol",type:"string"}]),a={host:"host",peerreflexive:"prflx",relayed:"relay",serverreflexive:"srflx"},s=n?i.reduce((function(e,t){var r=t.ffKeys,o=t.key,i=t.type,s=r&&r.find((function(e){return e in n}))||o;return e[o]=typeof n[s]===i?"candidateType"===s&&a[n[s]]||n[s]:"deleted"!==s&&null,e}),{}):null,u=r?o.reduce((function(e,t){var n=t.ffKeys,o=t.key,i=t.type,s=n&&n.find((function(e){return e in r}))||o;return e[o]=typeof r[s]===i?"candidateType"===s&&a[r[s]]||r[s]:null,e}),{}):null;return[{key:"availableIncomingBitrate",type:"number"},{key:"availableOutgoingBitrate",type:"number"},{key:"bytesReceived",type:"number"},{key:"bytesSent",type:"number"},{key:"consentRequestsSent",type:"number"},{key:"currentRoundTripTime",type:"number"},{key:"lastPacketReceivedTimestamp",type:"number"},{key:"lastPacketSentTimestamp",type:"number"},{key:"nominated",type:"boolean"},{key:"priority",type:"number"},{key:"readable",type:"boolean"},{key:"requestsReceived",type:"number"},{key:"requestsSent",type:"number"},{key:"responsesReceived",type:"number"},{key:"responsesSent",type:"number"},{key:"retransmissionsReceived",type:"number"},{key:"retransmissionsSent",type:"number"},{key:"state",type:"string"},{key:"totalRoundTripTime",type:"number"},{key:"transportId",type:"string"},{key:"writable",type:"boolean"}].reduce((function(e,n){var r=n.key,o=n.type;return e[r]=typeof t[r]===o?t[r]:null,e}),{localCandidate:s,remoteCandidate:u})}function y(e,t,n){var r="local"===n?"getSenders":"getReceivers";if(e[r])return e[r]().map((function(e){return e.track})).filter((function(e){return e&&e.kind===t}));var o="audio"===t?"getAudioTracks":"getVideoTracks";return i(e["local"===n?"getLocalStreams":"getRemoteStreams"](),(function(e){return e[o]()}))}function g(e,t,n){return h&&h<67?new Promise((function(n,r){e.getStats((function(e){n([b(e,t)])}),null,r)})):e.getStats(t).then((function(e){return function(e,t){var n=t.simulateExceptionWhileStandardizingStats;if(void 0!==n&&n)throw new Error("Error while gathering stats");var r=null,o=[],i=null,a=null,s=null,u=null,c=null;
163e.forEach((function(e){switch(e.type){case"inbound-rtp":r=e;break;case"outbound-rtp":o.push(e);break;case"media-source":c=e;break;case"track":s=e;break;case"codec":u=e;break;case"remote-inbound-rtp":i=e;break;case"remote-outbound-rtp":a=e}}));var l=s?s.remoteSource:!c,f=[],d=l?a:i;return(l?[r]:o).forEach((function(e){var t={},n=[e,c,s,u,d&&d.ssrc===e.ssrc?d:null];function r(e){var t=n.find((function(t){return t&&"undefined"!==typeof t[e]}))||null;return t?t[e]:null}var o=r("ssrc");"number"===typeof o&&(t.ssrc=String(o));var i=r("timestamp");t.timestamp=Math.round(i);var a=r("mimeType");"string"===typeof a&&(a=a.split("/"),t.codecName=a[a.length-1]);var p=r("roundTripTime");"number"===typeof p&&(t.roundTripTime=Math.round(1e3*p));var h=r("jitter");"number"===typeof h&&(t.jitter=Math.round(1e3*h));var v=r("frameWidth");"number"===typeof v&&(l?t.frameWidthReceived=v:(t.frameWidthSent=v,t.frameWidthInput=s?s.frameWidth:c.width));var m=r("frameHeight");"number"===typeof m&&(l?t.frameHeightReceived=m:(t.frameHeightSent=m,t.frameHeightInput=s?s.frameHeight:c.height));var y=r("framesPerSecond");"number"===typeof y&&(t[l?"frameRateReceived":"frameRateSent"]=y);var g=r("bytesReceived");"number"===typeof g&&(t.bytesReceived=g);var b=r("bytesSent");"number"===typeof b&&(t.bytesSent=b);var _=r("packetsLost");"number"===typeof _&&(t.packetsLost=_);var w=r("packetsReceived");"number"===typeof w&&(t.packetsReceived=w);var x=r("packetsSent");"number"===typeof x&&(t.packetsSent=x);var k=r("audioLevel");"number"===typeof k&&(k=Math.round(32767*k),l?t.audioOutputLevel=k:t.audioInputLevel=k);var S=r("totalPacketSendDelay");"number"===typeof S&&(t.totalPacketSendDelay=S);var E=r("totalEncodeTime");"number"===typeof E&&(t.totalEncodeTime=E);var O=r("framesEncoded");"number"===typeof O&&(t.framesEncoded=O);var P=r("estimatedPlayoutTimestamp");"number"===typeof P&&(t.estimatedPlayoutTimestamp=P);var T=r("totalDecodeTime");"number"===typeof T&&(t.totalDecodeTime=T);var C=r("framesDecoded");"number"===typeof C&&(t.framesDecoded=C);var A=r("jitterBufferDelay");"number"===typeof A&&(t.jitterBufferDelay=A);var j=r("jitterBufferEmittedCount");"number"===typeof j&&(t.jitterBufferEmittedCount=j),f.push(t)})),f}(e,n)}))}function b(e,t){var n=e.result().find((function(e){return"ssrc"===e.type&&e.stat("googTrackId")===t.id})),r={};return n&&(r.timestamp=Math.round(Number(n.timestamp)),r=n.names().reduce((function(e,t){switch(t){case"googCodecName":e.codecName=n.stat(t);break;case"googRtt":e.roundTripTime=Number(n.stat(t));break;case"googJitterReceived":e.jitter=Number(n.stat(t));break;case"googFrameWidthInput":e.frameWidthInput=Number(n.stat(t));break;case"googFrameHeightInput":e.frameHeightInput=Number(n.stat(t));break;case"googFrameWidthSent":e.frameWidthSent=Number(n.stat(t));break;case"googFrameHeightSent":e.frameHeightSent=Number(n.stat(t));break;case"googFrameWidthReceived":e.frameWidthReceived=Number(n.stat(t));break;case"googFrameHeightReceived":e.frameHeightReceived=Number(n.stat(t));break;case"googFrameRateInput":e.frameRateInput=Number(n.stat(t));break;case"googFrameRateSent":e.frameRateSent=Number(n.stat(t));break;case"googFrameRateReceived":e.frameRateReceived=Number(n.stat(t));break;case"ssrc":e[t]=n.stat(t);break;case"bytesReceived":case"bytesSent":case"packetsLost":case"packetsReceived":case"packetsSent":case"audioInputLevel":case"audioOutputLevel":e[t]=Number(n.stat(t))}return e}),r)),r}function _(e,t){void 0===e&&(e=new Map);var n=t.isRemote,r=t.simulateExceptionWhileStandardizingStats;if(void 0!==r&&r)throw new Error("Error while gathering stats");var o=null,i=null;e.forEach((function(t){var n=t.isRemote,r=t.remoteId,a=t.type;if(!n)switch(a){case"inbound-rtp":o=t,i=e.get(r);break;case"outbound-rtp":i=t,o=e.get(r)}}));var a=n?o:i,s=n?i:o;function u(e){return a&&"undefined"!==typeof a[e]?a[e]:s&&"undefined"!==typeof s[e]?s[e]:null}var c={},l=u("timestamp");c.timestamp=Math.round(l);var f=u("ssrc");"number"===typeof f&&(c.ssrc=String(f));var d=u("bytesSent");"number"===typeof d&&(c.bytesSent=d);var p=u("packetsLost");"number"===typeof p&&(c.packetsLost=p);var h=u("packetsSent");"number"===typeof h&&(c.packetsSent=h);var v=u("roundTripTime");"number"===typeof v&&(c.roundTripTime=Math.round(1e3*v));var m=u("jitter");"number"===typeof m&&(c.jitter=Math.round(1e3*m));var y=u("framerateMean");"number"===typeof y&&(c.frameRateSent=Math.round(y));var g=u("bytesReceived");"number"===typeof g&&(c.bytesReceived=g);var b=u("packetsReceived");"number"===typeof b&&(c.packetsReceived=b);var _=u("framerateMean");"number"===typeof _&&(c.frameRateReceived=Math.round(_));var w=u("totalPacketSendDelay");"number"===typeof w&&(c.totalPacketSendDelay=w);var x=u("totalEncodeTime");"number"===typeof x&&(c.totalEncodeTime=x);var k=u("framesEncoded");"number"===typeof k&&(c.framesEncoded=k);var S=u("estimatedPlayoutTimestamp");"number"===typeof S&&(c.estimatedPlayoutTimestamp=S);var E=u("totalDecodeTime");"number"===typeof E&&(c.totalDecodeTime=E);var O=u("framesDecoded");"number"===typeof O&&(c.framesDecoded=O);var P=u("jitterBufferDelay");"number"===typeof P&&(c.jitterBufferDelay=P);var T=u("jitterBufferEmittedCount");return"number"===typeof T&&(c.jitterBufferEmittedCount=T),c}
163e.exports=function(e,t){return e&&"function"===typeof e.getStats?function(e,t){var n=y(e,"audio","local"),o=y(e,"video","local"),a=y(e,"audio"),s=y(e,"video"),c={activeIceCandidatePair:null,localAudioTrackStats:[],localVideoTrackStats:[],remoteAudioTrackStats:[],remoteVideoTrackStats:[]},l=i([[n,"localAudioTrackStats",!1],[o,"localVideoTrackStats",!1],[a,"remoteAudioTrackStats",!0],[s,"remoteVideoTrackStats",!0]],(function(n){var o=r(n,3),i=o[0],a=o[1],s=o[2];return i.map((function(n){return function(e,t,n){void 0===n&&(n={});if("undefined"!==typeof n.testForChrome||f)return g(e,t,n);if("undefined"!==typeof n.testForFirefox||d)return function(e,t,n){return e.getStats(t).then((function(e){return[_(e,n)]}))}(e,t,n);if("undefined"!==typeof n.testForSafari||p)return"undefined"!==typeof n.testForSafari||"unified"===u()?g(e,t,n):Promise.reject(new Error(["getStats() is not supported on this version of Safari","due to this bug: https://bugs.webkit.org/show_bug.cgi?id=192601"].join(" ")));return Promise.reject(new Error("RTCPeerConnection#getStats() not supported"))}(e,n,Object.assign({isRemote:s},t)).then((function(e){e.forEach((function(e){e.trackId=n.id,c[a].push(e)}))}))}))}));return Promise.all(l).then((function(){return function(e,t){void 0===t&&(t={});if("undefined"!==typeof t.testForChrome||f||"undefined"!==typeof t.testForSafari||p)return e.getStats().then(v);if("undefined"!==typeof t.testForFirefox||d)return e.getStats().then(m);return Promise.reject(new Error("RTCPeerConnection#getStats() not supported"))}(e,t)})).then((function(e){return c.activeIceCandidatePair=e,c}))}(e,t):Promise.reject(new Error("Given PeerConnection does not support getStats"))}},23163:function(e){"use strict";e.exports=function(e){return void 0===e&&(e={audio:!0,video:!0}),"object"===typeof navigator&&"object"===typeof navigator.mediaDevices&&"function"===typeof navigator.mediaDevices.getUserMedia?navigator.mediaDevices.getUserMedia(e):Promise.reject(new Error("getUserMedia is not supported"))}},39778:function(e,t,n){"use strict";var r={};Object.defineProperties(r,{getStats:{enumerable:!0,value:n(14709)},getUserMedia:{enumerable:!0,value:n(23163)},MediaStream:{enumerable:!0,value:n(73401)},MediaStreamTrack:{enumerable:!0,value:n(56299)},RTCIceCandidate:{enumerable:!0,value:n(35320)},RTCPeerConnection:{enumerable:!0,value:n(39125)},RTCSessionDescription:{enumerable:!0,value:n(1716)}}),e.exports=r},73401:function(e){"use strict";"function"===typeof MediaStream?e.exports=MediaStream:e.exports=function(){throw new Error("MediaStream is not supported")}},56299:function(e){"use strict";"function"===typeof MediaStreamTrack?e.exports=MediaStreamTrack:e.exports=function(){throw new Error("MediaStreamTrack is not supported")}},35320:function(e){"use strict";"function"===typeof RTCIceCandidate?e.exports=RTCIceCandidate:e.exports=function(){throw new Error("RTCIceCandidate is not supported")}},6737:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(39732),s=n(87255),u=n(26518),c=n(73401),l=n(75594),f=n(72728),d=f.getSdpFormat,p=f.updatePlanBTrackIdsToSSRCs,h=f.updateUnifiedPlanTrackIdsToSSRCs,v=n(67476),m=v.delegateMethods,y=v.interceptEvent,g=v.isIOSChrome,b=v.legacyPromise,_=v.proxyProperties,w="unified"===d(),x=function(e){function t(t,n){void 0===t&&(t={});var r=e.call(this)||this,a=Object.assign(t.iceTransportPolicy?{iceTransports:t.iceTransportPolicy}:{},t);y(r,"datachannel"),y(r,"signalingstatechange");var s=d(a.sdpSemantics),l=new RTCPeerConnection(a,n);return Object.defineProperties(r,{_appliedTracksToSSRCs:{value:new Map,writable:!0}
163,_localStream:{value:new c},_peerConnection:{value:l},_pendingLocalOffer:{value:null,writable:!0},_pendingRemoteOffer:{value:null,writable:!0},_rolledBackTracksToSSRCs:{value:new Map,writable:!0},_sdpFormat:{value:s},_senders:{value:new Map},_signalingStateLatch:{value:new u},_tracksToSSRCs:{value:new Map,writable:!0}}),l.addEventListener("datachannel",(function(e){P(e.channel),r.dispatchEvent(e)})),l.addEventListener("signalingstatechange",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"stable"===l.signalingState&&(r._appliedTracksToSSRCs=new Map(r._tracksToSSRCs)),r._pendingLocalOffer||r._pendingRemoteOffer||r.dispatchEvent.apply(r,i([],o(e)))})),l.ontrack=function(){},"function"!==typeof l.addTrack&&l.addStream(r._localStream),_(RTCPeerConnection.prototype,r,l),r}return r(t,e),Object.defineProperty(t.prototype,"localDescription",{get:function(){return this._pendingLocalOffer?this._pendingLocalOffer:this._peerConnection.localDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"remoteDescription",{get:function(){return this._pendingRemoteOffer?this._pendingRemoteOffer:this._peerConnection.remoteDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signalingState",{get:function(){return this._pendingLocalOffer?"have-local-offer":this._pendingRemoteOffer?"have-remote-offer":this._peerConnection.signalingState},enumerable:!1,configurable:!0}),t.prototype.addTrack=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("function"===typeof this._peerConnection.addTrack)return(t=this._peerConnection).addTrack.apply(t,i([e],o(n)));if("closed"===this._peerConnection.signalingState)throw new Error("Cannot add MediaStreamTrack ["+e.id+", \n        "+e.kind+"]: RTCPeerConnection is closed");var a=this._senders.get(e);if(a&&a.track)throw new Error("Cannot add MediaStreamTrack ['"+e.id+", \n        "+e.kind+"]: RTCPeerConnection already has it");return this._peerConnection.removeStream(this._localStream),this._localStream.addTrack(e),this._peerConnection.addStream(this._localStream),a=new l(e),this._senders.set(e,a),a},t.prototype.removeTrack=function(e){if("closed"===this._peerConnection.signalingState)throw new Error("Cannot remove MediaStreamTrack: RTCPeerConnection is closed");if("function"===typeof this._peerConnection.addTrack)try{return this._peerConnection.removeTrack(e)}catch(n){}else{var t=e.track;if(!t)return;(e=this._senders.get(t))&&e.track&&(e.track=null,this._peerConnection.removeStream(this._localStream),this._localStream.removeTrack(t),this._peerConnection.addStream(this._localStream))}},t.prototype.getSenders=function(){return"function"===typeof this._peerConnection.addTrack?this._peerConnection.getSenders():Array.from(this._senders.values())},t.prototype.addIceCandidate=function(e){for(var t,n=this,r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return t="have-remote-offer"===this.signalingState?this._signalingStateLatch.when("low").then((function(){return n._peerConnection.addIceCandidate(e)})):this._peerConnection.addIceCandidate(e),r.length>0?b.apply(void 0,i([t],o(r))):t},t.prototype.close=function(){"closed"!==this.signalingState&&(this._pendingLocalOffer=null,this._pendingRemoteOffer=null,this._peerConnection.close())},t.prototype.createAnswer=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e=this._pendingRemoteOffer?this._peerConnection.setRemoteDescription(this._pendingRemoteOffer).then((function(){return t._signalingStateLatch.lower(),t._peerConnection.createAnswer()})).then((function(e){return t._pendingRemoteOffer=null,t._rolledBackTracksToSSRCs.clear(),new a({type:"answer",sdp:T(t._sdpFormat,t._tracksToSSRCs,e.sdp)})}),(function(e){throw t._pendingRemoteOffer=null,e})):this._peerConnection.createAnswer().then((function(e){return t._rolledBackTracksToSSRCs.clear(),new a({type:"answer",sdp:T(t._sdpFormat,t._tracksToSSRCs,e.sdp)})})),n.length>1?b.apply(void 0,i([e],o(n))):e},t.prototype.createOffer=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=o(t,3),i=r[0],s=r[1],u=r[2],c=u||i||{};if(g()){if(c.offerToReceiveVideo&&!this._audioTransceiver&&(!w||!S(this,"audio"))){delete c.offerToReceiveAudio;try{this._audioTransceiver=w?this.addTransceiver("audio",{direction:"recvonly"}):this.addTransceiver("audio")}catch(f){return Promise.reject(f)}}if(c.offerToReceiveVideo&&!this._videoTransceiver&&(!w||!S(this,"video"))){delete c.offerToReceiveVideo;try{this._videoTransceiver=w?this.addTransceiver("video",{direction:"recvonly"}):this.addTransceiver("video")}catch(f){return Promise.reject(f)}}}var l=this._peerConnection.createOffer(c).then((function(t){return e._rolledBackTracksToSSRCs.clear(),new a({type:t.type,sdp:T(e._sdpFormat,e._tracksToSSRCs,t.sdp)})}));return t.length>1?b(l,i,s):l},t.prototype.createDataChannel=function(e,t){t=function(e){e=Object.assign({},e),O()&&"maxPacketLifeTime"in e&&(e.maxRetransmitTime=e.maxPacketLifeTime);return e}(t);
163var n=this._peerConnection.createDataChannel(e,t);return P(n),n},t.prototype.setLocalDescription=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o(e,3),r=n[0],i=n[1],a=n[2];this._rolledBackTracksToSSRCs.size>0&&(this._tracksToSSRCs=new Map(this._rolledBackTracksToSSRCs),this._rolledBackTracksToSSRCs.clear());var s=k(this,!0,r);return e.length>1?b(s,i,a):s},t.prototype.setRemoteDescription=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o(e,3),r=n[0],i=n[1],a=n[2];this._rolledBackTracksToSSRCs.clear();var s=k(this,!1,r);return e.length>1?b(s,i,a):s},t}(s);function k(e,t,n){var r,o,i=t?e._pendingLocalOffer:e._pendingRemoteOffer,a=t?e._pendingRemoteOffer:e._pendingLocalOffer,s=t?"have-local-offer":"have-remote-offer",u=t?"setLocalDescription":"setRemoteDescription";if(!t&&a&&"answer"===n.type)r=function(e,t){var n=e._pendingLocalOffer;return e._peerConnection.setLocalDescription(n).then((function(){return e._pendingLocalOffer=null,e.setRemoteDescription(t)})).then((function(){e._signalingStateLatch.lower()}))}(e,n);else if("offer"===n.type){if(e.signalingState!==s&&"stable"!==e.signalingState)return Promise.reject(new Error("Cannot set "+(t?"local":"remote")+" offer in state "+e.signalingState));i||"low"!==e._signalingStateLatch.state||e._signalingStateLatch.raise();var c=e.signalingState;o=E(n),t?e._pendingLocalOffer=o:e._pendingRemoteOffer=o,r=Promise.resolve(),e.signalingState!==c&&r.then((function(){return e.dispatchEvent(new Event("signalingstatechange"))}))}else"rollback"===n.type&&(e.signalingState!==s?r=Promise.reject(new Error("Cannot rollback "+(t?"local":"remote")+" description in "+e.signalingState)):(t?e._pendingLocalOffer=null:e._pendingRemoteOffer=null,e._rolledBackTracksToSSRCs=new Map(e._tracksToSSRCs),e._tracksToSSRCs=new Map(e._appliedTracksToSSRCs),(r=Promise.resolve()).then((function(){return e.dispatchEvent(new Event("signalingstatechange"))}))));return r||e._peerConnection[u](E(n))}function S(e,t){return!!e.getTransceivers().find((function(e){var n=e.receiver,r=(void 0===n?{}:n).track;return(void 0===r?{}:r).kind===t}))}function E(e){return e instanceof a&&e._description?e._description:new RTCSessionDescription(e)}function O(){return"maxRetransmitTime"in RTCDataChannel.prototype&&!("maxPacketLifeTime"in RTCDataChannel.prototype)}function P(e){return Object.defineProperty(e,"maxRetransmits",{value:65535===e.maxRetransmits?null:e.maxRetransmits}),O()&&Object.defineProperty(e,"maxPacketLifeTime",{value:65535===e.maxRetransmitTime?null:e.maxRetransmitTime}),e}function T(e,t,n){return"unified"===e?h(t,n):p(t,n)}m(RTCPeerConnection.prototype,x.prototype,"_peerConnection"),e.exports=x},76376:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(87255),s=n(99169),u=n(72728).updateUnifiedPlanTrackIdsToSSRCs,c=n(67476),l=c.delegateMethods,f=c.interceptEvent,d=c.legacyPromise,p=c.proxyProperties,h=function(e){function t(t){var n=e.call(this)||this;f(n,"signalingstatechange");var r,a=new RTCPeerConnection(t);return Object.defineProperties(n,{_initiallyNegotiatedDtlsRole:{value:null,writable:!0},_isClosed:{value:!1,writable:!0},_peerConnection:{value:a},_rollingBack:{value:!1,writable:!0},_tracksToSSRCs:{value:new Map},peerIdentity:{enumerable:!0,value:Promise.resolve({idp:"",name:""})}}),a.addEventListener("signalingstatechange",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n._rollingBack||n.signalingState===r||(r=n.signalingState,n._isClosed?setTimeout((function(){return n.dispatchEvent.apply(n,i([],o(e)))})):n.dispatchEvent.apply(n,i([],o(e))))})),p(RTCPeerConnection.prototype,n,a),n}return r(t,e),Object.defineProperty(t.prototype,"iceGatheringState",{get:function(){return this._isClosed?"complete":this._peerConnection.iceGatheringState}
163,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localDescription",{get:function(){return y(this._peerConnection.localDescription,this._initiallyNegotiatedDtlsRole)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signalingState",{get:function(){return this._isClosed?"closed":this._peerConnection.signalingState},enumerable:!1,configurable:!0}),t.prototype.createAnswer=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e=this._peerConnection.createAnswer().then((function(e){return m(t,e),y(e,t._initiallyNegotiatedDtlsRole)})),"function"===typeof n[0]?d.apply(void 0,i([e],o(n))):e},t.prototype.createOffer=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,i=o(t,3),a=i[0],c=i[1],l=i[2],f=l||a||{};if("have-local-offer"===this.signalingState||"have-remote-offer"===this.signalingState){var p="have-local-offer"===this.signalingState;r=v(this,p,(function(){return e.createOffer(f)}))}else r=this._peerConnection.createOffer(f);return r=r.then((function(t){return new s({type:t.type,sdp:u(e._tracksToSSRCs,t.sdp)})})),t.length>1?d(r,a,c):r},t.prototype.setLocalDescription=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,a=o(t),s=a[0],u=a.slice(1);return s&&"answer"===s.type&&"have-local-offer"===this.signalingState&&(r=Promise.reject(new Error("Cannot set local answer in state have-local-offer"))),r?t.length>1?d.apply(void 0,i([r],o(u))):r:(e=this._peerConnection).setLocalDescription.apply(e,i([],o(t)))},t.prototype.setRemoteDescription=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r,a=o(t),s=a[0],u=a.slice(1);return s&&"have-remote-offer"===this.signalingState&&("answer"===s.type?r=Promise.reject(new Error("Cannot set remote answer in state have-remote-offer")):"offer"===s.type&&(r=v(this,!1,(function(){return e._peerConnection.setRemoteDescription(s)})))),r||(r=this._peerConnection.setRemoteDescription(s)),r=r.then((function(){return m(e,s,!0)})),t.length>1?d.apply(void 0,i([r],o(u))):r},t.prototype.close=function(){"closed"!==this.signalingState&&(this._isClosed=!0,this._peerConnection.close())},t}(a);function v(e,t,n){var r=t?"setLocalDescription":"setRemoteDescription";return e._rollingBack=!0,e._peerConnection[r](new s({type:"rollback"})).then(n).then((function(t){return e._rollingBack=!1,t}),(function(t){throw e._rollingBack=!1,t}))}function m(e,t,n){if(!e._initiallyNegotiatedDtlsRole&&"offer"!==t.type){var r=t.sdp.match(/a=setup:([a-z]+)/);if(r){var o=r[1];e._initiallyNegotiatedDtlsRole=n?{active:"passive",passive:"active"}[o]:o}}}function y(e,t){return e&&"answer"===e.type&&t?new s({type:e.type,sdp:e.sdp.replace(/a=setup:[a-z]+/g,"a=setup:"+t)}):e}l(RTCPeerConnection.prototype,h.prototype,"_peerConnection"),e.exports=h},39125:function(e,t,n){"use strict";if("function"===typeof RTCPeerConnection)switch((0,n(67476).guessBrowser)()){case"chrome":e.exports=n(6737);break;case"firefox":e.exports=n(76376);break;case"safari":e.exports=n(73768);break;default:e.exports=RTCPeerConnection}else e.exports=function(){throw new Error("RTCPeerConnection is not supported")}},73768:function(e,t,n){"use strict";var r=this&&this.__extends||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){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},a=n(87255),s=n(26518),u=n(72728),c=u.getSdpFormat,l=u.updatePlanBTrackIdsToSSRCs,f=u.updateUnifiedPlanTrackIdsToSSRCs,d=n(67476),p=d.delegateMethods,h=d.interceptEvent,v=d.proxyProperties,m="unified"===c(),y=m?f:l,g=function(e){function t(t){var n=e.call(this)||this;h(n,"datachannel"),h(n,"iceconnectionstatechange"),h(n,"signalingstatechange"),h(n,"track");var r=new RTCPeerConnection(t);return Object.defineProperties(n,{_appliedTracksToSSRCs:{value:new Map,writable:!0},_audioTransceiver:{value:null,writable:!0},_isClosed:{value:!1,writable:!0},_peerConnection:{value:r},_pendingLocalOffer:{value:null,writable:!0},_pendingRemoteOffer:{value:null,writable:!0},_rolledBackTracksToSSRCs:{value:new Map,writable:!0},_signalingStateLatch:{value:new s},_tracksToSSRCs:{value:new Map,writable:!0},_videoTransceiver:{value:null,writable:!0}}),r.addEventListener("datachannel",(function(e){w(e.channel),n.dispatchEvent(e)})),r.addEventListener("iceconnectionstatechange",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n._isClosed||n.dispatchEvent.apply(n,i([],o(e)))})),r.addEventListener("signalingstatechange",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n._isClosed||("stable"===r.signalingState&&(n._appliedTracksToSSRCs=new Map(n._tracksToSSRCs)),n._pendingLocalOffer||n._pendingRemoteOffer||n.dispatchEvent.apply(n,i([],o(e))))})),r.addEventListener("track",(function(e){n._pendingRemoteOffer=null,n.dispatchEvent(e)})),v(RTCPeerConnection.prototype,n,r),n}return r(t,e),Object.defineProperty(t.prototype,"localDescription",{get:function(){return this._pendingLocalOffer||this._peerConnection.localDescription}
163,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iceConnectionState",{get:function(){return this._isClosed?"closed":this._peerConnection.iceConnectionState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iceGatheringState",{get:function(){return this._isClosed?"complete":this._peerConnection.iceGatheringState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"remoteDescription",{get:function(){return this._pendingRemoteOffer||this._peerConnection.remoteDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signalingState",{get:function(){return this._isClosed?"closed":this._pendingLocalOffer?"have-local-offer":this._pendingRemoteOffer?"have-remote-offer":this._peerConnection.signalingState},enumerable:!1,configurable:!0}),t.prototype.addIceCandidate=function(e){var t=this;return"have-remote-offer"===this.signalingState?this._signalingStateLatch.when("low").then((function(){return t._peerConnection.addIceCandidate(e)})):this._peerConnection.addIceCandidate(e)},t.prototype.createOffer=function(e){var t=this;if((e=Object.assign({},e)).offerToReceiveVideo&&!this._audioTransceiver&&(!m||!_(this,"audio"))){delete e.offerToReceiveAudio;try{this._audioTransceiver=m?this.addTransceiver("audio",{direction:"recvonly"}):this.addTransceiver("audio")}catch(n){return Promise.reject(n)}}if(e.offerToReceiveVideo&&!this._videoTransceiver&&(!m||!_(this,"video"))){delete e.offerToReceiveVideo;try{this._videoTransceiver=m?this.addTransceiver("video",{direction:"recvonly"}):this.addTransceiver("video")}catch(n){return Promise.reject(n)}}return this._peerConnection.createOffer(e).then((function(e){return t._rolledBackTracksToSSRCs.clear(),new RTCSessionDescription({type:e.type,sdp:y(t._tracksToSSRCs,e.sdp)})}))},t.prototype.createAnswer=function(e){var t=this;return this._pendingRemoteOffer?this._peerConnection.setRemoteDescription(this._pendingRemoteOffer).then((function(){return t._signalingStateLatch.lower(),t._peerConnection.createAnswer()})).then((function(e){return t._pendingRemoteOffer=null,t._rolledBackTracksToSSRCs.clear(),m?new RTCSessionDescription({type:e.type,sdp:y(t._tracksToSSRCs,e.sdp)}):e}),(function(e){throw t._pendingRemoteOffer=null,e})):this._peerConnection.createAnswer(e).then((function(e){return t._rolledBackTracksToSSRCs.clear(),m?new RTCSessionDescription({type:e.type,sdp:y(t._tracksToSSRCs,e.sdp)}):e}))},t.prototype.createDataChannel=function(e,t){var n=this._peerConnection.createDataChannel(e,t);return w(n),n},t.prototype.removeTrack=function(e){e.replaceTrack(null),this._peerConnection.removeTrack(e)},t.prototype.setLocalDescription=function(e){return this._rolledBackTracksToSSRCs.size>0&&(this._tracksToSSRCs=new Map(this._rolledBackTracksToSSRCs),this._rolledBackTracksToSSRCs.clear()),b(this,!0,e)},t.prototype.setRemoteDescription=function(e){return this._rolledBackTracksToSSRCs.clear(),b(this,!1,e)},t.prototype.close=function(){var e=this;this._isClosed||(this._isClosed=!0,this._peerConnection.close(),setTimeout((function(){e.dispatchEvent(new Event("iceconnectionstatechange")),e.dispatchEvent(new Event("signalingstatechange"))})))},t}(a);function b(e,t,n){var r,o=t?e._pendingLocalOffer:e._pendingRemoteOffer,i=t?e._pendingRemoteOffer:e._pendingLocalOffer,a=t?"have-local-offer":"have-remote-offer",s=t?"setLocalDescription":"setRemoteDescription";if(!t&&i&&"answer"===n.type)return function(e,t){var n=e._pendingLocalOffer;return e._peerConnection.setLocalDescription(n).then((function(){return e._pendingLocalOffer=null,e.setRemoteDescription(t)})).then((function(){return e._signalingStateLatch.lower()}))}(e,n);if("offer"===n.type){if(e.signalingState!==a&&"stable"!==e.signalingState)return Promise.reject(new Error("Cannot set "+(t?"local":"remote")+"\n        offer in state "+e.signalingState));o||"low"!==e._signalingStateLatch.state||e._signalingStateLatch.raise();var u=e.signalingState;return r=n,t?e._pendingLocalOffer=r:e._pendingRemoteOffer=r,e.signalingState!==u?Promise.resolve().then((function(){return e.dispatchEvent(new Event("signalingstatechange"))})):Promise.resolve()}return"rollback"===n.type?e.signalingState!==a?Promise.reject(new Error("Cannot rollback \n        "+(t?"local":"remote")+" description in "+e.signalingState)):(t?e._pendingLocalOffer=null:e._pendingRemoteOffer=null,e._rolledBackTracksToSSRCs=new Map(e._tracksToSSRCs),e._tracksToSSRCs=new Map(e._appliedTracksToSSRCs),Promise.resolve().then((function(){return e.dispatchEvent(new Event("signalingstatechange"))}))):e._peerConnection[s](n)}function _(e,t){return!!e.getTransceivers().find((function(e){var n=e.receiver,r=(void 0===n?{}:n).track;return(void 0===r?{}:r).kind===t}))}function w(e){return Object.defineProperties(e,{maxPacketLifeTime:{value:65535===e.maxPacketLifeTime?null:e.maxPacketLifeTime},maxRetransmits:{value:65535===e.maxRetransmits?null:e.maxRetransmits}})}p(RTCPeerConnection.prototype,g.prototype,"_peerConnection"),e.exports=g},75594:function(e){"use strict";var t=function(e){Object.defineProperties(this,{track:{enumerable:!0,value:e,writable:!0}})};e.exports=t},39732:function(e){"use strict";var t=function(){function e(e){this.descriptionInitDict=e;var t=e&&"rollback"===e.type?null:new RTCSessionDescription(e);Object.defineProperties(this,{_description:{get:function(){return t}}})}return Object.defineProperty(e.prototype,"sdp",{get:function(){return this._description?this._description.sdp:this.descriptionInitDict.sdp}
163,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._description?this._description.type:this.descriptionInitDict.type},enumerable:!1,configurable:!0}),e}();e.exports=t},99169:function(e){"use strict";e.exports=RTCSessionDescription},1716:function(e,t,n){"use strict";if("function"===typeof RTCSessionDescription)switch((0,n(67476).guessBrowser)()){case"chrome":e.exports=n(39732);break;case"firefox":e.exports=n(99169);break;default:e.exports=RTCSessionDescription}else e.exports=function(){throw new Error("RTCSessionDescription is not supported")}},67476:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function o(e,t,n,r){if(!(r in t)&&!r.match(/^on[a-z]+$/)){var o=!1;try{var i=Object.getOwnPropertyDescriptor(e,r);o=i&&!!i.get}catch(s){}if(!o){var a;try{a=typeof e[r]}catch(s){}"function"===a&&(t[r]=function(){return this[n][r].apply(this[n],arguments)})}}}function i(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:null}function a(e){return"undefined"===typeof e&&(e=i()),/Chrome|CriOS/.test(e)?"chrome":/Firefox|FxiOS/.test(e)?"firefox":/Safari|iPhone|iPad|iPod/.test(e)?"safari":null}var s=new Map;t.clearCachedSupportedCodecs=function(){s.clear()},t.defer=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},t.delegateMethods=function(e,t,n){for(var r in e)o(e,t,n,r)},t.difference=function(e,t){e=Array.isArray(e)?new Set(e):new Set(e.values()),t=Array.isArray(t)?new Set(t):new Set(t.values());var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n},t.flatMap=function(e,t){return(e instanceof Map||e instanceof Set?Array.from(e.values()):e).reduce((function(e,n){return e.concat(t(n))}),[])},t.guessBrowser=a,t.guessBrowserVersion=function(e){"undefined"===typeof e&&(e=i());var t={chrome:"Chrome|CriOS",firefox:"Firefox|FxiOS",safari:"Version"}[a(e)];if(!t)return null;var r=new RegExp("("+t+")/([^\\s]+)"),o=n(e.match(r)||[],3)[2];if(!o)return null;var s=o.split(".").map(Number);return{major:isNaN(s[0])?null:s[0],minor:isNaN(s[1])?null:s[1]}},t.isCodecSupported=function(e,t){var n=s.get(t);return n?Promise.resolve(n.has(e.toLowerCase())):function(e){if("undefined"!==typeof RTCRtpSender&&"function"===typeof RTCRtpSender.getCapabilities)return Promise.resolve(new Set(RTCRtpSender.getCapabilities(e).codecs.map((function(e){return e.mimeType.split("/")[1].toLowerCase()}))));if("undefined"===typeof RTCPeerConnection||"undefined"===typeof RTCPeerConnection.prototype||"function"!==typeof RTCPeerConnection.prototype.addTransceiver||"function"!==typeof RTCPeerConnection.prototype.close||"function"!==typeof RTCPeerConnection.prototype.createOffer)return Promise.resolve(new Set);var t=new RTCPeerConnection;return t.addTransceiver(e),t.createOffer().then((function(e){var n=e.sdp;return t.close(),new Set((n.match(/^a=rtpmap:.+$/gm)||[]).map((function(e){return e.match(/^a=rtpmap:.+ ([^/]+)/)[1].toLowerCase()})))}),(function(){return t.close(),new Set}))}(t).then((function(n){return s.set(t,n),n.has(e.toLowerCase())}))},t.isIOSChrome=function(e){return"undefined"===typeof e&&(e=i()),/Mobi/.test(e)&&"chrome"===a()&&/iPad|iPhone|iPod/.test(e)},t.interceptEvent=function(e,t){var n=null;Object.defineProperty(e,"on"+t,{get:function(){return n},set:function(e){n&&this.removeEventListener(t,n),"function"===typeof e?(n=e,this.addEventListener(t,n)):n=null}})},t.legacyPromise=function(e,t,n){return t?e.then(t,n):e},t.makeUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},t.proxyProperties=function(e,t,o){Object.getOwnPropertyNames(e).forEach((function(e){!function(e,t,o,i){if
163(i in t)return;if(i.match(/^on[a-z]+$/))return Object.defineProperty(t,i,{value:null,writable:!0}),void o.addEventListener(i.slice(2),(function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.dispatchEvent.apply(t,r([],n(e)))}));Object.defineProperty(t,i,{enumerable:!0,get:function(){return o[i]}})}(0,t,o,e)}))},t.support=function(){return"object"===typeof navigator&&"object"===typeof navigator.mediaDevices&&"function"===typeof navigator.mediaDevices.getUserMedia&&"function"===typeof RTCPeerConnection}},26518:function(e,t,n){"use strict";var r=n(67476).defer,o={high:new Set(["low"]),low:new Set(["high"])},i=function(){function e(e){void 0===e&&(e="low");var t=e;Object.defineProperties(this,{_state:{set:function(e){var n=this;if(t!==e){t=e;var r=this._whenDeferreds.get(t);r.forEach((function(e){return e.resolve(n)})),r.clear()}},get:function(){return t}},_whenDeferreds:{value:new Map([["high",new Set],["low",new Set]])}})}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.lower=function(){return this.transition("low")},e.prototype.raise=function(){return this.transition("high")},e.prototype.transition=function(e){if(!o[this.state].has(e))throw a(this.state,e);return this._state=e,this},e.prototype.when=function(e){if(this.state===e)return Promise.resolve(this);if(!o[this.state].has(e))return Promise.reject(a(this.state,e));var t=r();return this._whenDeferreds.get(e).add(t),t.promise},e}();function a(e,t){return new Error('Cannot transition from "'+e+'" to "'+t+'"')}e.exports=i},72728:function(e,t,n){"use strict";var r=n(67476),o=r.flatMap,i=r.guessBrowser,a=null;var s=null;function u(e){return e&&function(){if("boolean"===typeof a)return a;if("undefined"===typeof RTCPeerConnection)return a=!1;try{new RTCPeerConnection({sdpSemantics:"foo"}),a=!1}catch(e){a=!0}return a}()?{"plan-b":"planb","unified-plan":"unified"}[e]:function(){if(!s)if("undefined"!==typeof RTCPeerConnection&&"addTransceiver"in RTCPeerConnection.prototype){var e=new RTCPeerConnection;try{e.addTransceiver("audio"),s="unified"}catch(t){s="planb"}e.close()}else s="planb";return s}()}function c(e,t){return(t.match(new RegExp(e,"gm"))||[]).reduce((function(t,n){var r=n.match(new RegExp(e));return r?t.add(r[1]):t}),new Set)}function l(e,t){return c(e,t)}function f(e){return l("^a=ssrc:[0-9]+ +msid:.+ +(.+) *$",e)}function d(e){return l("^a=msid:.+ +(.+) *$",e)}function p(e,t){return c("^a=ssrc:([0-9]+) +msid:[^ ]+ +"+t+" *$",e)}function h(e,t,n){return void 0===t&&(t=".*"),void 0===n&&(n=".*"),e.split("\r\nm=").slice(1).map((function(e){return"m="+e})).filter((function(e){var r=new RegExp("m="+t,"gm"),o=new RegExp("a="+n,"gm");return r.test(e)&&o.test(e)}))}function v(e){return Array.from(c("^a=ssrc:([0-9]+) +.*$",e))}function m(e,t){var n=h(e),r=new RegExp("^a=msid:[^ ]+ +"+t+" *$","gm"),i=n.filter((function(e){return e.match(r)}));return new Set(o(i,v))}function y(e,t,n){return new Map(Array.from(e(n)).map((function(e){return[e,t(n,e)]})))}function g(e){return y(f,p,e)}function b(e){return y(d,m,e)}function _(e,t,n){var r=e(n),o=new Map;r.forEach((function(e,r){if(t.has(r)){var i=Array.from(t.get(r)),a=Array.from(e);i.forEach((function(e,t){var r=a[t];o.set(r,e);var i="^a=ssrc:"+r+" (.*)$",s="a=ssrc:"+e+" $1";n=n.replace(new RegExp(i,"gm"),s)}))}else t.set(r,e)}));var i="^(a=ssrc-group:[^ ]+ +)(.*)$";return(n.match(new RegExp(i,"gm"))||[]).forEach((function(e){var t=e.match(new RegExp(i));if(t){var r=t[1],a=t[2].split(" ").map((function(e){var t=o.get(e);return t||e})).join(" ");n=n.replace(t[0],r+a)}})),n}t.clearChromeCachedSdpFormat=function(){s=null},t.getSdpFormat=function(e){return{chrome:u(e),firefox:"unified",safari:"undefined"!==typeof RTCRtpTransceiver&&"currentDirection"in RTCRtpTransceiver.prototype?"unified":"planb"}[i()]||null},t.getMediaSections=h,t.getPlanBTrackIds=f,t.getUnifiedPlanTrackIds=d,t.getPlanBSSRCs=p,t.getUnifiedPlanSSRCs=m,t.updatePlanBTrackIdsToSSRCs=function(e,t){return _(g,e,t)},t.updateUnifiedPlanTrackIdsToSSRCs=function(e,t){return _(b,e,t)}},39990:function(e){e.exports=WebSocket},99413:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},73189:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},35045:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},29369:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},20384:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},55955:function(e,t,n){"use strict";
vendor: 7,592 bytes, line 163
163var r=n(82584),o=n(48662),i=n(86430),a=n(85692);function s(e){return e.call.bind(e)}var u="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(c)var v=s(Symbol.prototype.valueOf);function m(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(n){return!1}}function y(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function _(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!==typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!==typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},y.working="undefined"!==typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!==typeof Map&&(y.working?y(e):e instanceof Map)},g.working="undefined"!==typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!==typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!==typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!==typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},_.working="undefined"!==typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!==typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,k.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var E="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===l(e)}function P(e){return"undefined"!==typeof E&&("undefined"===typeof O.working&&(O.working=O(new E)),O.working?O(e):e instanceof E)}function T(e){return m(e,f)}function C(e){return m(e,d)}function A(e){return m(e,p)}function j(e){return u&&m(e,h)}function R(e){return c&&m(e,v)}t.isSharedArrayBuffer=P,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=T,t.isStringObject=C,t.isBooleanObject=A,t.isBigIntObject=j,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return T(e)||C(e)||A(e)||j(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!==typeof Uint8Array&&(x(e)||P(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},89539:function(e,t,n){var r=n(83454),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n<o;s=r[++n])y(s)||!x(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return e;if("undefined"===typeof r)return function(){return t.deprecate(e,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),o=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(r.env.NODE_DEBUG){var u=r.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),d(r,e,r.depth)}function l(e,t){var n=c.styles[t];return n?"\x1b["+c.colors[n][0]+"m"+e+"\x1b["+c.colors[n][1]+"m":e}function f(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=d(e,o,r)),o}var i=function(e,t){if(_(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return p(n)}var c,l="",f=!1,x=["{","}"];(v(n)&&(f=!0,x=["[","]"]),E(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return w(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),S(n)&&(l=" "+p(n)),0!==a.length||f&&0!=n.length?r<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=f?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)A(t,String(a))?i.push(h(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(h(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return h(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,x)):x[0]+l+x[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[
163Setter]","special")),A(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(n)?d(e,u.value,null):d(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return"  "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),_(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function y(e){return null===e}function g(e){return"number"===typeof e}function b(e){return"string"===typeof e}function _(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===O(e)}function x(e){return"object"===typeof e&&null!==e}function k(e){return x(e)&&"[object Date]"===O(e)}function S(e){return x(e)&&("[object Error]"===O(e)||e instanceof Error)}function E(e){return"function"===typeof e}function O(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(55955),t.isArray=v,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=_,t.isRegExp=w,t.types.isRegExp=w,t.isObject=x,t.isDate=k,t.types.isDate=k,t.isError=S,t.types.isNativeError=S,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(20384);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),T[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=n(35717),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var j="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!==typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(a){n(a)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var o=t.pop();if("function"!==typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(R.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},42473:function(e){"use strict";var t=function(){};e.exports=t},86430:function(e,t,n){"use strict";var r=n(94029),o=n(63083),i=n(55559),a=n(21924),s=n(27296),u=a("Object.prototype.toString"),c=n(96410)(),l="undefined"===typeof globalThis?n.g:globalThis,f=o(),d=a("String.prototype.slice"),p=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},v={__proto__:null};r(f,c&&s&&p?function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=p(t),r=s(n,Symbol.toStringTag);if(!r){var o=p(n);r=s(o,Symbol.toStringTag)}v["$"+e]=i(r.get)}}:function(e){var t=new l[e],n=t.slice||t.set;n&&(v["$"+e]=i(n))});e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!c){var t=d(u(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(v,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(o){}})),t}(e)}return s?function(e){var t=!1;return r(v,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(o){}})),t}(e):null}}
163,64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},75263:function(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={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(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},1277:function(e,t,n){"use strict";var r,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of s(t))!c.call(e,o)&&o!==n&&i(e,o,{get:()=>t[o],enumerable:!(r=a(t,o))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>g,AnimatedArray:()=>P,AnimatedObject:()=>O,AnimatedString:()=>x,AnimatedValue:()=>_,createHost:()=>B,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>h,setAnimated:()=>m}),e.exports=(r=f,l(i({},"__esModule",{value:!0}),r));var d=n(64873),p=Symbol.for("Animated:node"),h=e=>!!e&&e[p]===e,v=e=>e&&e[p],m=(e,t)=>(0,d.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),g=class{constructor(){m(this,this)}getPayload(){return this.payload||[]}},b=n(64873),_=class extends g{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return b.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},w=n(64873),x=class extends _{constructor(e){super(0),this._string=null,this._toString=(0,w.createInterpolator)({output:[e,e]})}static create(e){return new x(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(w.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,w.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(64873),S=n(64873),E={dependencies:null},O=class extends g{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,((n,r)=>{h(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){E.dependencies&&(0,S.hasFluidValue)(e)&&E.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,(e=>this.add(e)))}},P=class extends O{constructor(e){super(e)}static create(e){return new P(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(T)),!0)}};function T(e){return((0,k.isAnimatedString)(e)?x:_).create(e)}var C=n(64873);function A(e){let t=v(e);return t?t.constructor:C.is.arr(e)?P:(0,C.isAnimatedString)(e)?x:_}var j=n(64873),R=((e,t,n)=>(n=null!=e?o(u(e)):{}
163,l(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)))(n(67294)),M=n(67294),D=n(64873),I=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,M.forwardRef)(((r,o)=>{let i=(0,M.useRef)(null),a=n&&(0,M.useCallback)((e=>{i.current=function(e,t){return e&&(D.is.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),[s,u]=function(e,t){let n=new Set;return E.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new O(e),E.dependencies=null,[e,n]}(r,t),c=(0,D.useForceUpdate)(),l=()=>{let e=i.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},f=new L(l,u),d=(0,M.useRef)();(0,D.useIsomorphicLayoutEffect)((()=>(d.current=f,(0,D.each)(u,(e=>(0,D.addFluidObserver)(e,f))),()=>{d.current&&((0,D.each)(d.current.deps,(e=>(0,D.removeFluidObserver)(e,d.current))),D.raf.cancel(d.current.update))}))),(0,M.useEffect)(l,[]),(0,D.useOnce)((()=>()=>{let e=d.current;(0,D.each)(e.deps,(t=>(0,D.removeFluidObserver)(t,e)))}));let p=t.getComponentProps(s.getValue());return R.createElement(e,{...p,ref:a})}))},L=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}};var N=Symbol.for("AnimatedComponent"),B=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new O(e)),getComponentProps:r=(e=>e)}={})=>{let o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{let t=F(e)||"Anonymous";return(e=j.is.str(e)?i[e]||(i[e]=I(e,o)):e[N]||(e[N]=I(e,o))).displayName=`Animated(${t})`,e};return(0,j.eachProp)(e,((t,n)=>{j.is.arr(e)&&(n=F(t)),i[n]=i(t)})),{animated:i}},F=e=>j.is.str(e)?e:e&&j.is.str(e.displayName)?e.displayName:j.is.fun(e)&&e.name||null},32261:function(e,t,n){"use strict";var r,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of s(t))!c.call(e,o)&&o!==n&&i(e,o,{get:()=>t[o],enumerable:!(r=a(t,o))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},l(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(d,{BailSignal:()=>Y,Controller:()=>_e,FrameValue:()=>te,Globals:()=>yt.Globals,Interpolation:()=>ft,Spring:()=>ot,SpringContext:()=>je,SpringRef:()=>De,SpringValue:()=>ue,Trail:()=>at,Transition:()=>st,config:()=>L,createInterpolator:()=>bt.createInterpolator,easings:()=>bt.easings,inferTo:()=>k,interpolate:()=>mt,to:()=>vt,update:()=>gt,useChain:()=>C,useInView:()=>rt,useIsomorphicLayoutEffect:()=>bt.useIsomorphicLayoutEffect,useReducedMotion:()=>bt.useReducedMotion,useResize:()=>Je,useScroll:()=>Xe,useSpring:()=>Le,useSpringRef:()=>Fe,useSpringValue:()=>ze,useSprings:()=>Ie,useTrail:()=>Ue,useTransition:()=>$e}),e.exports=(r=d,l(i({},"__esModule",{value:!0}),r));var p=n(64873),h=n(64873);function v(e,...t){return h.is.fun(e)?e(...t):e}var m=(e,t)=>!0===e||!!(t&&e&&(h.is.fun(e)?e(t):(0,h.toArray)(e).includes(t))),y=(e,t)=>h.is.obj(e)?t&&e[t]:e,g=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,_=(e,t=b)=>{let n=w;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let r={};for(let o of n){let n=t(e[o],o);h.is.und(n)||(r[o]=n)}return r},w=["config","onProps","onStart","onChange","onPause","onResume","onRest"],x={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function k(e){let t=function(e){let t={},n=0;if((0,h.eachProp)(e,((e,r)=>{x[r]||(t[r]=e,n++)})),n)return t}(e);if(t){let n={to:t};return(0,h.eachProp)(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function S(e){return e=(0,h.getFluidValue)(e),h.is.arr(e)?e.map(S):(0,h.isAnimatedString)(e)?h.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function E(e){for(let t in e)return!0;return!1}function O(e){return h.is.fun(e)||h.is.arr(e)&&h.is.obj(e[0])}function P(e,t){e.ref?.delete(e),t?.delete(e)}function T(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function C(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)((()=>
163{if(t){let r=0;(0,p.each)(e,((e,o)=>{let i=e.current;if(i.length){let a=n*t[o];isNaN(a)?a=r:r=a,(0,p.each)(i,(e=>{(0,p.each)(e.queue,(e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)}))})),e.start()}}))}else{let t=Promise.resolve();(0,p.each)(e,(e=>{let n=e.current;if(n.length){let r=n.map((e=>{let t=e.queue;return e.queue=[],t}));t=t.then((()=>((0,p.each)(n,((e,t)=>(0,p.each)(r[t]||[],(t=>e.queue.push(t))))),Promise.all(e.start()))))}}))}}))}var A=n(64873),j=n(67294),R=n(64873),M=n(64873),D=n(10130),I=n(64873),L={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},N={...L.default,mass:1,damping:1,easing:I.easings.linear,clamp:!1};function B(e,t){if(I.is.und(t.decay)){let n=!I.is.und(t.tension)||!I.is.und(t.friction);(n||!I.is.und(t.frequency)||!I.is.und(t.damping)||!I.is.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var F=[],Z=n(64873);function z(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let u,c,l=m(n.cancel??r?.cancel,t);if(l)p();else{Z.is.und(n.pause)||(o.paused=m(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||m(e,t)),u=v(n.delay||0,t),e?(o.resumeQueue.add(d),i.pause()):(i.resume(),d())}function f(){o.resumeQueue.add(d),o.timeouts.delete(c),c.cancel(),u=c.time-Z.raf.now()}function d(){u>0&&!Z.Globals.skipAnimation?(o.delayed=!0,c=Z.raf.setTimeout(p,u),o.pauseQueue.add(f),o.timeouts.add(c)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(c),e<=(o.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},a)}catch(t){s(t)}}}))}var V=n(64873),U=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?q(e.get()):t.every((e=>e.noop))?W(e.get()):H(e.get(),t.every((e=>e.finished))),W=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),H=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),q=e=>({value:e,cancelled:!0,finished:!1});function $(e,t,n,r){let{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:u}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;let c,l,f,d=_(t,((e,t)=>"onRest"===t?void 0:e)),p=new Promise(((e,t)=>(c=e,l=t))),h=e=>{let t=o<=(n.cancelId||0)&&q(r)||o!==n.asyncId&&H(r,!1);if(t)throw e.result=t,l(e),e},v=(e,t)=>{let i=new Y,a=new K;return(async()=>{if(V.Globals.skipAnimation)throw G(n),a.result=H(r,!1),l(a),a;h(i);let s=V.is.obj(e)?{...e}:{...t,to:e};s.parentId=o,(0,V.eachProp)(d,((e,t)=>{V.is.und(s[t])&&(s[t]=e)}));let u=await r.start(s);return h(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),u})()};if(V.Globals.skipAnimation)return G(n),H(r,!1);try{let t;t=V.is.arr(e)?(async e=>{for(let t of e)await v(t)})(e):Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([t.then(c),p]),f=H(r.get(),!0,!1)}catch(m){if(m instanceof Y)f=m.result;else{if(!(m instanceof K))throw m;f=m.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return V.is.fun(a)&&V.raf.batchedUpdates((()=>{a(f,r,r.item)})),f})():u}function G(e,t){(0,V.flush)(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Y=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},K=class extends Error{constructor(){super("SkipAnimationSignal")}},X=n(64873),Q=n(10130),J=e=>e instanceof te,ee=1,te=class extends X.FluidValue{constructor(){super(...arguments),this.id=ee++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,Q.getAnimated)(this);return e&&e.getValue()}to(...e){return X.Globals.to(this,e)}interpolate(...e){return(0,X.deprecateInterpolate)(),X.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,X.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||X.frameLoop.sort(this),(0,X.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},ne=Symbol.for("SpringPhase"),re=e=>(1&e[ne])>0,oe=e=>(2&e[ne])>0,ie=e=>(4&e[ne])>0,ae=(e,t)=>t?e[ne]|=3:e[ne]&=-3,se=(e,t)=>t?e[ne]|=4:e[ne]&=-5,ue=class extends te{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=F,this.toValues=null,this.fromValues=F,this.config=new class{constructor(){this.velocity=0,Object.assign(this,N)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!M.is.und(e)||!M.is.und(t)){let n=M.is.obj(e)?{...e}:{...t,from:e};M.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(oe(this)||this._state.asyncTo)||ie(this)}get goal(){return(0,M.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return re(this)}get isAnimating(){return oe(this)}get isPaused(){return ie(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:o}=r,{config:i}=r,a=(0,D.getPayload)(r.to);!a&&(0,M.hasFluidValue)(r.to)&&(o=(0,M.toArray)((0,M.getFluidValue)(r.to))),r.values.forEac
163h(((s,u)=>{if(s.done)return;let c=s.constructor==D.AnimatedString?1:a?a[u].lastPosition:o[u],l=r.immediate,f=c;if(!l){if(f=s.lastPosition,i.tension<=0)return void(s.done=!0);let t,n=s.elapsedTime+=e,o=r.fromValues[u],a=null!=s.v0?s.v0:s.v0=M.is.arr(i.velocity)?i.velocity[u]:i.velocity,d=i.precision||(o==c?.005:Math.min(1,.001*Math.abs(c-o)));if(M.is.und(i.duration))if(i.decay){let e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*n);f=o+a/(1-e)*(1-r),l=Math.abs(s.lastPosition-f)<=d,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n,r=i.restVelocity||d/10,u=i.clamp?0:i.bounce,p=!M.is.und(u),h=o==c?s.v0>0:o<c,v=!1,m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(n=Math.abs(t)>r,n||(l=Math.abs(c-f)<=d,!l));++e){p&&(v=f==c||f>c==h,v&&(t=-t*u,f=c)),t+=(1e-6*-i.tension*(f-c)+.001*-i.friction*t)/i.mass*m,f+=t*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(i.progress||0)+n/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),f=o+i.easing(r)*(c-o),t=(f-s.lastPosition)/e,l=1==r}s.lastVelocity=t,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),l=!0)}a&&!a[u].done&&(l=!1),l?s.done=!0:t=!1,s.setValue(f,i.round)&&(n=!0)}));let s=(0,D.getAnimated)(this),u=s.getValue();if(t){let e=(0,M.getFluidValue)(r.to);u===e&&!n||i.decay?n&&i.decay&&this._onChange(u):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return M.raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(oe(this)){let{to:e,config:t}=this.animation;M.raf.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return M.is.und(e)?(n=this.queue||[],this.queue=[]):n=[M.is.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>U(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),G(this._state,e&&this._lastCallId),M.raf.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;n=M.is.obj(n)?n[t]:n,(null==n||O(n))&&(n=void 0),r=M.is.obj(r)?r[t]:r,null==r&&(r=void 0);let o={to:n,from:r};return re(this)||(e.reverse&&([n,r]=[r,n]),r=(0,M.getFluidValue)(r),M.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),o}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_(e,((e,t)=>/^on/.test(t)?y(e,n):e))),ve(this,e,"onProps"),me(this,"onProps",e,this);let o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let i=this._state;return z(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ie(this)||(se(this,!0),(0,M.flushCalls)(i.pauseQueue),me(this,"onPause",H(this,ce(this,this.animation.to)),this))},resume:()=>{ie(this)&&(se(this,!1),oe(this)&&this._resume(),(0,M.flushCalls)(i.resumeQueue),me(this,"onResume",H(this,ce(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=le(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(q(this));let r=!M.is.und(e.to),o=!M.is.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(q(this));this._lastToId=t.callId}let{key:i,defaultProps:a,animation:s}=this,{to:u,from:c}=s,{to:l=u,from:f=c}=e;o&&!r&&(!t.default||M.is.und(l))&&(l=f),t.reverse&&([l,f]=[f,l]);let d=!(0,M.isEqual)(f,c);d&&(s.from=f),f=(0,M.getFluidValue)(f);let p=!(0,M.isEqual)(l,u);p&&this._focus(l);let h=O(t.to),{config:y}=s,{decay:g,velocity:b}=y;(r||o)&&(y.velocity=0),t.config&&!h&&function(e,t,n){n&&(B(n={...n},t),t={...n,...t}),B(e,t),Object.assign(e,t);for(let a in N)null==e[a]&&(e[a]=N[a]);let{frequency:r,damping:o}=e,{mass:i}=e;I.is.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(y,v(t.config,i),t.config!==a.config?v(a.config,i):void 0);let _=(0,D.getAnimated)(this);if(!_||M.is.und(l))return n(H(this,!0));let w=M.is.und(t.reset)?o&&!t.default:!M.is.und(f)&&m(t.reset,i),x=w?f:this.get(),k=S(l),E=M.is.num(k)||M.is.arr(k)||(0,M.isAnimatedString)(k),P=!h&&(!E||m(a.immediate||t.immediate,i));if(p){let e=(0,D.getAnimatedType)(l);if(e!==_.constructor){if(!P)throw Error(`Cannot animate between ${_.constructor.name} and ${e.name}, as the "to" prop suggests`);_=this._set(k)}}let T=_.constructor,C=(0,M.hasFluidValue)(l),A=!1;if(!C){let e=w||!re(this)&&d;
163(p||e)&&(A=(0,M.isEqual)(S(x),k),C=!A),(!(0,M.isEqual)(s.immediate,P)&&!P||!(0,M.isEqual)(y.decay,g)||!(0,M.isEqual)(y.velocity,b))&&(C=!0)}if(A&&oe(this)&&(s.changed&&!w?C=!0:C||this._stop(u)),!h&&((C||(0,M.hasFluidValue)(u))&&(s.values=_.getPayload(),s.toValues=(0,M.hasFluidValue)(l)?null:T==D.AnimatedString?[1]:(0,M.toArray)(k)),s.immediate!=P&&(s.immediate=P,!P&&!w&&this._set(u)),C)){let{onRest:e}=s;(0,M.each)(he,(e=>ve(this,t,e)));let r=H(this,ce(this,u));(0,M.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&M.raf.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(x),h?n($(t.to,t,this._state,this)):C?this._start():oe(this)&&!p?this._pendingCalls.add(n):n(W(x))}_focus(e){let t=this.animation;e!==t.to&&((0,M.getFluidObservers)(this)&&this._detach(),t.to=e,(0,M.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,M.hasFluidValue)(t)&&((0,M.addFluidObserver)(t,this),J(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,M.hasFluidValue)(e)&&(0,M.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,M.getFluidValue)(e);if(!M.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,M.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&M.raf.batchedUpdates((()=>{this._onChange(n,t)}))}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,me(this,"onStart",H(this,ce(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,M.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),oe(this)||(ae(this,!0),ie(this)||this._resume())}_resume(){M.Globals.skipAnimation?this.finish():M.frameLoop.start(this)}_stop(e,t){if(oe(this)){ae(this,!1);let n=this.animation;(0,M.each)(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,M.callFluidObservers)(this,{type:"idle",parent:this});let r=t?q(this.get()):H(this.get(),ce(this,e??n.to));(0,M.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,me(this,"onRest",r,this))}}};function ce(e,t){let n=S(t),r=S(e.get());return(0,M.isEqual)(r,n)}function le(e,t=e.loop,n=e.to){let r=v(t);if(r){let o=!0!==r&&k(r),i=(o||e).reverse,a=!o||o.reset;return fe({...e,loop:t,default:!1,pause:void 0,to:!i||O(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function fe(e){let{to:t,from:n}=e=k(e),r=new Set;return M.is.obj(t)&&pe(t,r),M.is.obj(n)&&pe(n,r),e.keys=r.size?Array.from(r):null,e}function de(e){let t=fe(e);return M.is.und(t.default)&&(t.default=_(t)),t}function pe(e,t){(0,M.eachProp)(e,((e,n)=>null!=e&&t.add(n)))}var he=["onStart","onRest","onChange","onPause","onResume"];function ve(e,t,n){e.animation[n]=t[n]!==g(t,n)?y(t[n],e.key):void 0}function me(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ye=n(64873),ge=["onStart","onChange","onRest"],be=1,_e=class{constructor(e,t){this.id=be++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];ye.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(fe(e)),this}start(e){let{queue:t}=this;return e?t=(0,ye.toArray)(e).map(fe):this.queue=[],this._flush?this._flush(this,t):(Pe(this,t),we(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;(0,ye.each)((0,ye.toArray)(t),(t=>n[t].stop(!!e)))}else G(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(ye.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ye.each)((0,ye.toArray)(e),(e=>t[e].pause()))}return this}resume(e){if(ye.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ye.each)((0,ye.toArray)(e),(e=>t[e].resume()))}return this}each(e){(0,ye.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,(0,ye.flush)(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&(0,ye.flush)(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,(0,ye.flush)(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ye.raf.onFrame(this._onFrame)}};function we(e,t){return Promise.all(t.map((t=>xe(e,t)))).then((t=>U(e,t)))}async function xe(e,t,n){let{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:u}=t,c=ye.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);let l=ye.is.arr(o)||ye.is.fun(o)?o:void 0;l?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):(0,ye.each)(ge,(n=>{let r=t[n];if(ye.is.fun(r)){let o=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let f=e._state;t.pause===!f.paused?(f.paused=t.pause,(0,ye.flushCalls)(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);let d=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===g(t,"cancel");(l||p&&f.asyncId)&&d.push(z(++e._lastAsyncId,{props:t,state:f,actions:{pause:ye.noop,resume:ye.noop,start(t,n){p?(G(f,e._lastAsyncId),n(q(e))):(t.onRest=s,n($(l,t,f,e)))}}})),f.paused&&await new Promise((e=>{f.resumeQueue.add(e)}));let h=U(e,await Promise.all(d));if(a&&h.finished&&(!n||!h.noop)){let n=le(t,a,o);if(n)return Pe(e,[n]),xe(e,n,!0)}return u&&ye.raf.batchedUpdates((()=>u(h,e,e.item))),h}function ke(e,t){let n={...e.springs};return t&&(0,ye.each)((0,ye.toArray)(t),(e=>{ye.is.und(e.keys)&&(e=fe(e)),ye.is.obj(e.to)||(e={...e,to:void 0}),Oe(n,e,(e=>Ee(e)))})),Se(e,n),n}function Se(e,t){(0,ye.eachProp)(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ye.addFluidObserver)(t,e))}))}function Ee(e,t){let n=new ue;return n.key=e,t&&(0,ye.addFluidObserver)(n,t),n}function Oe(e,t,n){t.keys&&(0,ye.each)(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Pe(e,t){(0,ye.each)(t,(t=>{Oe(e.springs,t,(t=>Ee(t,e)))}))}var Te=f(n(67294)),Ce=n(67294),Ae=n(64873),je=({children:e,...t})=>{let n=(0,Ce.useContext)(Re),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=(0,Ae.useMemoOne)((()=>({pause:r,immediate:o})),[r,o]);let{Provider:i}=Re;return Te.createElement(i,{value:t},e)},Re=function(e,t){return Object.assign(e,Te.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(je,{});je.Provider=Re.Provider,je.Consumer=Re.Consumer;var Me=n(64873),De=()=>{let e=[],t=function(t){(0,Me.deprecateDirectCall)();let r=[];return(0,Me.each)(e,((e,o)=>{if(Me.is.und(t))r.push(e.start());else{let i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,Me.each)(e,(e=>e.pause(...arguments))),this},t.resume=function(){return(0,Me.each)(e,(e=>e.resume(...arguments))),this},t.set=function(t){(0,Me.each)(e,((e,n)=>{let r=Me.is.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){let n=[];return(0,Me.each)(e,((e,r)=>{if(Me.is.und(t))n.push(e.start());else{let o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return(0,Me.each)(e,(e=>e.stop(...arguments))),this},t.update=function(t){return(0,Me.each)(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};let n=function(e,t,n){return Me.is.fun(e)?e(n,t):e};return t._getProps=n,t};function Ie(e,t,n){let r=R.is.fun(t)&&t;r&&!n&&(n=[]);let o=(0,j.useMemo)((()=>r||3==arguments.length?De():void 0),[]),i=(0,j.useRef)(0),a=(0,R.useForceUpdate)(),s=(0,j.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){let n=ke(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?we(e,t):new Promise((r=>{Se(e,n),s.queue.push((()=>{r(we(e,t))})),a()}))}}
163)),[]),u=(0,j.useRef)([...s.ctrls]),c=[],l=(0,R.usePrev)(e)||0;function f(e,n){for(let o=e;o<n;o++){let e=u.current[o]||(u.current[o]=new _e(null,s.flush)),n=r?r(o,e):t[o];n&&(c[o]=de(n))}}(0,j.useMemo)((()=>{(0,R.each)(u.current.slice(e,l),(e=>{P(e,o),e.stop(!0)})),u.current.length=e,f(l,e)}),[e]),(0,j.useMemo)((()=>{f(0,Math.min(l,e))}),n);let d=u.current.map(((e,t)=>ke(e,c[t]))),p=(0,j.useContext)(je),h=(0,R.usePrev)(p),v=p!==h&&E(p);(0,R.useIsomorphicLayoutEffect)((()=>{i.current++,s.ctrls=u.current;let{queue:e}=s;e.length&&(s.queue=[],(0,R.each)(e,(e=>e()))),(0,R.each)(u.current,((e,t)=>{o?.add(e),v&&e.start({default:p});let n=c[t];n&&(T(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),(0,R.useOnce)((()=>()=>{(0,R.each)(s.ctrls,(e=>e.stop(!0)))}));let m=d.map((e=>({...e})));return o?[m,o]:m}function Le(e,t){let n=A.is.fun(e),[[r],o]=Ie(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var Ne=n(67294),Be=()=>De(),Fe=()=>(0,Ne.useState)(Be)[0],Ze=n(64873),ze=(e,t)=>{let n=(0,Ze.useConstant)((()=>new ue(e,t)));return(0,Ze.useOnce)((()=>()=>{n.stop()})),n},Ve=n(64873);function Ue(e,t,n){let r=Ve.is.fun(t)&&t;r&&!n&&(n=[]);let o,i=!0,a=Ie(e,((e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a}),n||[{}]);if((0,Ve.useIsomorphicLayoutEffect)((()=>{(0,Ve.each)(a[1].current,((e,t)=>{let n=a[1].current[t+(i?1:-1)];T(e,o),e.ref?n&&e.update({to:n.springs}):n?e.start({to:n.springs}):e.start()}))}),n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let o=Ve.is.fun(t)?t(r,n):t;if(o){let t=e.current[r+(o.reverse?1:-1)];return t&&(o.to=t.springs),o}},a}return a[0]}var We=f(n(67294)),He=n(67294),qe=n(64873);function $e(e,t,n){let r=qe.is.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:l,config:f}=r?r():t,d=(0,He.useMemo)((()=>r||3==arguments.length?De():void 0),[]),p=(0,qe.toArray)(e),h=[],m=(0,He.useRef)(null),y=o?null:m.current;(0,qe.useIsomorphicLayoutEffect)((()=>{m.current=h})),(0,qe.useOnce)((()=>((0,qe.each)(h,(e=>{d?.add(e.ctrl),e.ctrl.ref=d})),()=>{(0,qe.each)(m.current,(e=>{e.expired&&clearTimeout(e.expirationId),P(e.ctrl,d),e.ctrl.stop(!0)}))})));let g=Ye(p,r?r():t,y),b=o&&m.current||[];(0,qe.useIsomorphicLayoutEffect)((()=>(0,qe.each)(b,(({ctrl:e,item:t,key:n})=>{P(e,d),v(c,t,n)}))));let w=[];if(y&&(0,qe.each)(y,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=w[t]=g.indexOf(e.key))&&(h[t]=e)})),(0,qe.each)(p,((e,t)=>{h[t]||(h[t]={key:g[t],item:e,phase:"mount",ctrl:new _e},h[t].ctrl.item=e)})),w.length){let e=-1,{leave:n}=r?r():t;(0,qe.each)(w,((t,r)=>{let o=y[r];~t?(e=h.indexOf(o),h[e]={...o,item:p[t]}):n&&h.splice(++e,0,o)}))}qe.is.fun(i)&&h.sort(((e,t)=>i(e.item,t.item)));let x=-a,S=(0,qe.useForceUpdate)(),O=_(t),C=new Map,A=(0,He.useRef)(new Map),j=(0,He.useRef)(!1);(0,qe.each)(h,((e,n)=>{let o,i,c=e.key,d=e.phase,p=r?r():t,h=v(p.delay||0,c);if("mount"==d)o=p.enter,i="enter";else{let e=g.indexOf(c)<0;if("leave"!=d)if(e)o=p.leave,i="leave";else{if(!(o=p.update))return;i="update"}else{if(e)return;o=p.enter,i="enter"}}if(o=v(o,e.item,n),o=qe.is.obj(o)?k(o):{to:o},!o.config){let t=f||O.config;o.config=v(t,e.item,n,i)}x+=a;let b={...O,delay:h+x,ref:l,immediate:p.immediate,reset:!1,...o};if("enter"==i&&qe.is.und(b.from)){let o=r?r():t,i=qe.is.und(o.initial)||y?o.from:o.initial;b.from=v(i,e.item,n)}let{onResolve:_}=b;b.onResolve=e=>{v(_,e);let t=m.current,n=t.find((e=>e.key===c));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){let e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(S,r)))}}e&&t.some((e=>e.expired))&&(A.current.delete(n),u&&(j.current=!0),S())}};let w=ke(e.ctrl,b);"leave"===i&&u?A.current.set(e,{phase:i,springs:w,payload:b}):C.set(e,{phase:i,springs:w,payload:b})}));let R=(0,He.useContext)(je),M=(0,qe.usePrev)(R),D=R!==M&&E(R);(0,qe.useIsomorphicLayoutEffect)((()=>{D&&(0,qe.each)(h,(e=>{e.ctrl.start({default:R})}))}),[R]),(0,qe.each)(C,((e,t)=>{if(A.current.size){let e=h.findIndex((e=>e.key===t.key));h.splice(e,1)}})),(0,qe.useIsomorphicLayoutEffect)((()=>{(0,qe.each)(A.current.size?A.current:C,(({phase:e,payload:t},n)=>{let{ctrl:r}=n;
163n.phase=e,d?.add(r),D&&"enter"==e&&r.start({default:R}),t&&(T(r,t.ref),!r.ref&&!d||j.current?(r.start(t),j.current&&(j.current=!1)):r.update(t))}))}),o?void 0:n);let I=e=>We.createElement(We.Fragment,null,h.map(((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?We.createElement(o.type,{...o.props,key:qe.is.str(t.key)||qe.is.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return d?[I,d]:I}var Ge=1;function Ye(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map((e=>{let n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):Ge++}))}return qe.is.und(n)?e:qe.is.fun(n)?e.map(n):(0,qe.toArray)(n)}var Ke=n(64873),Xe=({container:e,...t}={})=>{let[n,r]=Le((()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t})),[]);return(0,Ke.useIsomorphicLayoutEffect)((()=>{let t=(0,Ke.onScroll)((({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})}),{container:e?.current||void 0});return()=>{(0,Ke.each)(Object.values(n),(e=>e.stop())),t()}}),[]),n},Qe=n(64873),Je=({container:e,...t})=>{let[n,r]=Le((()=>({width:0,height:0,...t})),[]);return(0,Qe.useIsomorphicLayoutEffect)((()=>{let t=(0,Qe.onResize)((({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})}),{container:e?.current||void 0});return()=>{(0,Qe.each)(Object.values(n),(e=>e.stop())),t()}}),[]),n},et=n(67294),tt=n(64873),nt={any:0,all:1};function rt(e,t){let[n,r]=(0,et.useState)(!1),o=(0,et.useRef)(),i=tt.is.fun(e)&&e,a=i?i():{},{to:s={},from:u={},...c}=a,l=i?t:e,[f,d]=Le((()=>({from:u,...c})),[]);return(0,tt.useIsomorphicLayoutEffect)((()=>{let e=o.current,{root:t,once:i,amount:a="any",...c}=l??{};if(!e||i&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,p=new IntersectionObserver((e=>{e.forEach((e=>{let t=f.get(e.target);if(e.isIntersecting!==!!t)if(e.isIntersecting){let t=(s&&d.start(s),r(!0),i?void 0:()=>{u&&d.start(u),r(!1)});tt.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}))}),{root:t&&t.current||void 0,threshold:"number"==typeof a||Array.isArray(a)?a:nt[a],...c});return p.observe(e),()=>p.unobserve(e)}),[l]),i?[o,f]:[o,n]}function ot({children:e,...t}){return e(Le(t))}var it=n(64873);function at({items:e,children:t,...n}){let r=Ue(e.length,n);return e.map(((e,n)=>{let o=t(e,n);return it.is.fun(o)?o(r[n]):o}))}function st({items:e,children:t,...n}){return $e(e,n)(t)}var ut=n(64873),ct=n(64873),lt=n(10130),ft=class extends te{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,ct.createInterpolator)(...t);let n=this._get(),r=(0,lt.getAnimatedType)(n);(0,lt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,ct.isEqual)(t,n)||((0,lt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&pt(this._active)&&ht(this)}_get(){let e=ct.is.arr(this.source)?this.source.map(ct.getFluidValue):(0,ct.toArray)((0,ct.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!pt(this._active)&&(this.idle=!1,(0,ct.each)((0,lt.getPayload)(this),(e=>{e.done=!1})),ct.Globals.skipAnimation?(ct.raf.batchedUpdates((()=>this.advance())),ht(this)):ct.frameLoop.start(this))}_attach(){let e=1;(0,ct.each)((0,ct.toArray)(this.source),(t=>{(0,ct.hasFluidValue)(t)&&(0,ct.addFluidObserver)(t,this),J(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){(0,ct.each)((0,ct.toArray)(this.source),(e=>{(0,ct.hasFluidValue)(e)&&(0,ct.removeFluidObserver)(e,this)})),this._active.clear(),ht(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,ct.toArray)(this.source).reduce(((e,t)=>Math.max(e,(J(t)?t.priority:0)+1)),0))}};function dt(e){return!1!==e.idle}function pt(e){return!e.size||Array.from(e).every(dt)}function ht(e){e.idle||(e.idle=!0,(0,ct.each)((0,lt.getPayload)(e),(e=>{e.done=!0})),(0,ct.callFluidObservers)(e,{type:"idle",parent:e}))}var vt=(e,...t)=>new ft(e,t),mt=(e,...t)=>((0,ut.deprecateInterpolate)(),new ft(e,t)),yt=n(64873);yt.Globals.assign({createStringInterpolator:yt.createStringInterpolator,to:(e,t)=>new ft(e,t)});var gt=yt.frameLoop.advance,bt=n(64873);
vendor: 14,366 bytes, line 163
163((e,t,n)=>{l(e,t,"default"),n&&l(n,t,"default")})(d,n(41315),e.exports)},3022:function(e,t,n){"use strict";var r,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},c={};u(c,{FluidValue:()=>Ie,Globals:()=>l,addFluidObserver:()=>Ne,callFluidObserver:()=>Me,callFluidObservers:()=>De,clamp:()=>ee,colorToRgba:()=>be,colors:()=>te,createInterpolator:()=>_e,createStringInterpolator:()=>Ye,defineHidden:()=>A,deprecateDirectCall:()=>tt,deprecateInterpolate:()=>Je,each:()=>M,eachProp:()=>D,easings:()=>Pe,flush:()=>L,flushCalls:()=>F,frameLoop:()=>Y,getFluidObservers:()=>Re,getFluidValue:()=>je,hasFluidValue:()=>Ae,hex3:()=>ce,hex4:()=>le,hex6:()=>fe,hex8:()=>de,hsl:()=>se,hsla:()=>ue,is:()=>j,isAnimatedString:()=>nt,isEqual:()=>R,isSSR:()=>Z,noop:()=>C,onResize:()=>ct,onScroll:()=>vt,once:()=>Xe,prefix:()=>Ke,raf:()=>d,removeFluidObserver:()=>Be,rgb:()=>ie,rgba:()=>ae,setFluidGetter:()=>Le,toArray:()=>I,useConstant:()=>yt,useForceUpdate:()=>xt,useIsomorphicLayoutEffect:()=>wt,useMemoOne:()=>St,useOnce:()=>Ot,usePrev:()=>Ct,useReducedMotion:()=>jt}),e.exports=(r=c,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))!s.call(e,u)&&u!==n&&o(e,u,{get:()=>t[u],enumerable:!(r=i(t,u))||r.enumerable});return e})(o({},"__esModule",{value:!0}),r));var l={};u(l,{assign:()=>W,colors:()=>z,createStringInterpolator:()=>N,skipAnimation:()=>V,to:()=>B,willAdvance:()=>U});var f=P(),d=e=>k(e,f),p=P();d.write=e=>k(e,p);var h=P();d.onStart=e=>k(e,h);var v=P();d.onFrame=e=>k(e,v);var m=P();d.onFinish=e=>k(e,m);var y=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=y.findIndex((e=>e.cancel==r));~e&&y.splice(e,1),w-=~e?1:0},o={time:n,handler:e,cancel:r};return y.splice(g(n),0,o),w+=1,S(),o};var g=e=>~(~y.findIndex((t=>t.time>e))||~y.length);d.cancel=e=>{h.delete(e),v.delete(e),m.delete(e),f.delete(e),p.delete(e)},d.sync=e=>{x=!0,d.batchedUpdates(e),x=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var b=typeof window<"u"?window.requestAnimationFrame:()=>{};d.use=e=>b=e,d.now=typeof performance<"u"?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O()};var _=-1,w=0,x=!1;function k(e,t){x?(t.delete(e),e(0)):(t.add(e),S())}function S(){_<0&&(_=0,"demand"!==d.frameLoop&&b(E))}function E(){~_&&(b(E),d.batchedUpdates(O))}function O(){let e=_;_=d.now();let t=g(_);t&&(T(y.splice(0,t),(e=>e.handler())),w-=t),w?(h.flush(),f.flush(e?Math.min(64,_-e):16.667),v.flush(),p.flush(),m.flush()):_=-1}function P(){let e=new Set,t=e;return{add(n){w+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(w-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,w-=t.size,T(t,(t=>t(n)&&e.add(t))),w+=e.size,t=e)}}}function T(e,t){e.forEach((e=>{try{t(e)}catch(n){d.catch(n)}}))}function C(){}var A=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function R(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var M=(e,t)=>e.forEach(t);function D(e,t,n){if(j.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var I=e=>j.und(e)?[]:j.arr(e)?e:[e];function L(e,t){if(e.size){let n=Array.from(e);e.clear(),M(n,t)}}var N,B,F=(e,...t)=>L(e,(e=>e(...t))),Z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),z=null,V=!1,U=C,W=e=>{e.to&&(B=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(z=e.colors),null!=e.skipAnimation&&(V=e.skipAnimation),e.createStringInterpolator&&(N=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(U=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},H=new Set,q=[],$=[],G=0,Y={get idle(){return!H.size&&!q.length},start(e){G>e.priority?(H.add(e),d.onStart(K)):(X(e),d(J))},advance:J,sort(e){if(G)d.onFrame((()=>Y.sort(e)));else{let t=q.indexOf(e);~t&&(q.splice(t,1),Q(e))}},clear(){q=[],H.clear()}};function K(){H.forEach(X),H.clear(),d(J)}function X(e){q.includes(e)||Q(e)}function Q(e){q.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(q,(t=>t.priority>e.priority)),0,e)}function J(e){let t=$;for(let n=0;n<q.length;n++){let r=q[n];G=r.priority,r.idle||(U(r),r.advance(e),r.idle||t.push(r))}return G=0,($=q).length=0,(q=t).length>0}var ee=(e,t,n)=>Math.min(Math.max(n,e),t),te={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ne="[-+]?\\d*\\.?\\d+",re=ne+"%";function oe(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ie=new RegExp("rgb"+oe(ne,ne,ne)),ae=new RegExp("rgba"+oe(ne,ne,ne,ne)),se=new RegExp("hsl"+oe(ne,re,re)),ue=new RegExp("hsla"+oe(ne,re,re,ne)),ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fe=/^#([0-9a-fA-F]{6})$/,de=/^#([0-9a-fA-F]{8})$/;function pe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function he(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=pe(o,r,e+1/3),a=pe(o,r,e),s=pe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function ve(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function me(e){return(parseFloat(e)%360+360)%360/360}function ye(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ge(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=fe.exec(e))?parseInt(t[1]+"ff",16)>>>0:z&&void 0!==z[e]?z[e]:(t=ie.exec(e))?(ve(t[1])<<24|ve(t[2])<<16|ve(t[3])<<8|255)>>>0:(t=ae.exec(e))?(ve(t[1])<<24|ve(t[2])<<16|ve(t[3])<<8|ye(t[4]))>>>0:(t=ce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=de.exec(e))?parseInt(t[1],16)>>>0:(t=le.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=se.exec(e))?(255|he(me(t[1]),ge(t[2]),ge(t[3])))>>>0:(t=ue.exec(e))?(he(me(t[1]),ge(t[2]),ge(t[3]))|ye(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var _e=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return _e({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return N(e);let r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,u){let c=u?u(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r,c)}(e,i[t],i[t+1],o[t],o[t+1],u,a,s,r.map)}};var we=1.70158,xe=1.525*we,ke=we+1,Se=2*Math.PI/3,Ee=2*Math.PI/4.5,Oe=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Pe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ke*e*e*e-we*e*e,easeOutBack:e=>1+ke*Math.pow(e-1,3)+we*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(xe+1)*e-xe)/2:(Math.pow(2*e-2,2)*((xe+1)*(2*e-2)+xe)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Se),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Se)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ee)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ee)/2+1,easeInBounce:e=>1-Oe(1-e),easeOutBounce:Oe,easeInOutBounce:e=>e<.5?(1-Oe(1-2*e))/2:(1+Oe(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return ee(0,1,o/e)}},Te=Symbol.for("FluidValue.get"),Ce=Symbol.for("FluidValue.observers"),Ae=e=>!(!e||!e[Te]),je=e=>e&&e[Te]?e[Te]():e,Re=e=>e[Ce]||null;function Me(e,t){e.eventObserved?e.eventObserved(t):e(t)}function De(e,t){let n=e[Ce];n&&n.forEach((e=>{Me(e,t)}))}var Ie=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Le(this,e)}},Le=(e,t)=>Ze(e,Te,t);function Ne(e,t){if(e[Te]){let n=e[Ce];n||Ze(e,Ce,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Be(e,t){let n=e[Ce];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[Ce]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Fe,Ze=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ze=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ue=new RegExp(`(${ze.source})(%|[a-z]+)`,"i"),We=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,He=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qe=e=>{let[t,n]=$e(e);if(!t||Z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&He.test(n)?qe(n):n||e},$e=e=>{let t=He.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},Ge=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Ye=e=>{Fe||(Fe=z?new RegExp(`(${Object.keys(z).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>je(e).replace(He,qe).replace(Ve,be).replace(Fe,be))),n=t.map((e=>e.match(ze).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>_e({...e,output:t})));return e=>{let n=!Ue.test(t[0])&&t.find((e=>Ue.test(e)))?.replace(ze,""),o=0;return t[0].replace(ze,(()=>`${r[o++](e)}${n||""}`)).replace(We,Ge)}},Ke="react-spring: ",Xe=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${Ke}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Qe=Xe(console.warn);function Je(){Qe(`${Ke}
163The "interpolate" function is deprecated in v9 (use "to" instead)`)}var et=Xe(console.warn);function tt(){et(`${Ke}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function nt(e){return j.str(e)&&("#"==e[0]||/\d/.test(e)||!Z()&&He.test(e)||e in(z||{}))}var rt,ot=new WeakMap,it=e=>e.forEach((({target:e,contentRect:t})=>ot.get(e)?.forEach((e=>e(t)))));var at,st=new Set,ut=e=>(st.add(e),at||(at=(()=>{let e=()=>{st.forEach((e=>e({width:window.innerWidth,height:window.innerHeight})))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})()),()=>{st.delete(e),!st.size&&at&&(at(),at=void 0)}),ct=(e,{container:t=document.documentElement}={})=>t===document.documentElement?ut(e):function(e,t){rt||typeof ResizeObserver<"u"&&(rt=new ResizeObserver(it));let n=ot.get(t);return n||(n=new Set,ot.set(t,n)),n.add(e),rt&&rt.observe(t),()=>{let n=ot.get(t);n&&(n.delete(e),!n.size&&rt&&rt.unobserve(t))}}(e,t),lt={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},ft=new WeakMap,dt=new WeakMap,pt=new WeakMap,ht=e=>e===document.documentElement?window:e,vt=(e,{container:t=document.documentElement}={})=>{let n=pt.get(t);n||(n=new Set,pt.set(t,n));let r=new class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=lt[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=((e,t,n)=>t-e===0?1:(n-e)/(t-e))(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}}(e,t);if(n.add(r),!ft.has(t)){let e=()=>(n?.forEach((e=>e.advance())),!0);ft.set(t,e);let r=ht(t);window.addEventListener("resize",e,{passive:!0}
163),t!==document.documentElement&&dt.set(t,ct(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let o=ft.get(t);return d(o),()=>{d.cancel(o);let e=pt.get(t);if(!e||(e.delete(r),e.size))return;let n=ft.get(t);ft.delete(t),n&&(ht(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),dt.get(t)?.())}},mt=n(67294);function yt(e){let t=(0,mt.useRef)(null);return null===t.current&&(t.current=e()),t.current}var gt=n(67294),bt=n(67294),_t=n(67294),wt=Z()?_t.useEffect:_t.useLayoutEffect;function xt(){let e=(0,gt.useState)()[1],t=(()=>{let e=(0,bt.useRef)(!1);return wt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var kt=n(67294);function St(e,t){let[n]=(0,kt.useState)((()=>({inputs:t,result:e()}))),r=(0,kt.useRef)(),o=r.current,i=o;return i?t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs)||(i={inputs:t,result:e()}):i=n,(0,kt.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}var Et=n(67294),Ot=e=>(0,Et.useEffect)(e,Pt),Pt=[],Tt=n(67294);function Ct(e){let t=(0,Tt.useRef)();return(0,Tt.useEffect)((()=>{t.current=e})),t.current}var At=n(67294),jt=()=>{let[e,t]=(0,At.useState)(null);return wt((()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),W({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),e}},19032:function(e){"use strict";var t,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(a,{Any:()=>s}),e.exports=(t=a,((e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))!i.call(e,u)&&u!==a&&n(e,u,{get:()=>t[u],enumerable:!(s=r(t,u))||s.enumerable});return e})(n({},"__esModule",{value:!0}),t));var s=class{}},65609:function(e,t,n){"use strict";var r,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))!s.call(e,u)&&u!==n&&o(e,u,{get:()=>t[u],enumerable:!(r=i(t,u))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>C,animated:()=>C}),e.exports=(r=c,u(o({},"__esModule",{value:!0}),r));var l=n(24158),f=n(73935),d=n(64873),p=n(10130),h=/^--/;function v(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||h.test(e)||y.hasOwnProperty(e)&&y[e]?(""+t).trim():t+"px"}var m={};var y={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,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},g=["Webkit","Ms","Moz","O"];y=Object.keys(y).reduce(((e,t)=>(g.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),y);var b=n(10130),_=n(64873),w=/^(matrix|translate|scale|rotate|skew)/,x=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>_.is.num(e)&&0!==e?e+t:e,E=(e,t)=>_.is.arr(e)?e.every((e=>E(e,t))):_.is.num(e)?e===t:parseFloat(e)===t,O=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>S(e,"px"))).join(",")})`,E(e,0)]))),(0,_.eachProp)(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(w.test(t)){if(delete r[t],_.is.und(e))return;let n=x.test(t)?"px":k.test(t)?"deg":"";o.push((0,_.toArray)(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${S(o,n)})`,E(o,0)]:e=>[`${t}(${e.map((e=>S(e,n))).join(",")})`,E(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new P(o,i)),super(r)}},P=class extends _.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,_.each)(this.inputs,((n,r)=>{let o=(0,_.getFluidValue)(n[0]),[i,a]=this.transforms[r](_.is.arr(o)?o:n.map(_.getFluidValue));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&(0,_.each)(this.inputs,(e=>(0,_.each)(e,(e=>(0,_.hasFluidValue)(e)&&(0,_.addFluidObserver)(e,this)))))}observerRemoved(e){0==e&&(0,_.each)(this.inputs,(e=>(0,_.each)(e,(e=>(0,_.hasFluidValue)(e)&&(0,_.removeFluidObserver)(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),(0,_.callFluidObservers)(this,e)}};
163((e,t,n)=>{u(e,t,"default"),n&&u(n,t,"default")})(c,n(24158),e.exports),l.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:d.createStringInterpolator,colors:d.colors});var T=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...u}=t,c=Object.values(u),l=Object.keys(u).map((t=>n||e.hasAttribute(t)?t:m[t]||(m[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let f in r)if(r.hasOwnProperty(f)){let t=v(f,r[f]);h.test(f)?e.style.setProperty(f,t):e.style[f]=t}l.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),C=T.animated},63083:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof o[r[t]]&&(e[e.length]=r[t]);return e}},30907:function(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:function(){return r}})},97326:function(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:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(83997);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:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(83997);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:function(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:function(){return r}})},75068:function(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)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return o}})},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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:function(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:function(){return r}})},86854:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(40181);function o(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,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}
163finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,r.Z)(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.")}()}},41451:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(30907);var o=n(40181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.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.")}()}},83997:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:function(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:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return 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}}},25816:function(e,t,n){"use strict";n.d(t,{Jn:function(){return L},qX:function(){return R},Xd:function(){return j},Mq:function(){return B},ZF:function(){return N},KN:function(){return F}});var r=n(8463),o=n(53333),i=n(74444);let a,s;const u=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,d=new WeakMap;let p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return c.get(e);if("objectStoreNames"===t)return e.objectStoreNames||l.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return m(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function h(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(y(this),t),m(u.get(this))}:function(...t){return m(e.apply(y(this),t))}:function(t,...n){const r=e.call(y(this),t,...n);return l.set(r,t.sort?t.sort():[t]),m(r)}}function v(e){return"function"===typeof e?h(e):(e instanceof IDBTransaction&&function(e){if(c.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));c.set(e,t)}(e),t=e,(a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,p):e);var t}function m(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(m(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&u.set(t,e)})).catch((()=>{})),d.set(t,e),t}(e);if(f.has(e))return f.get(e);const t=v(e);return t!==e&&(f.set(e,t),d.set(t,e)),t}const y=e=>d.get(e);const g=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],_=new Map;function w(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(_.get(t))return _.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!g.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;
163return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return _.set(t,i),i}p=(e=>({...e,get:(t,n,r)=>w(t,n)||e.get(t,n,r),has:(t,n)=>!!w(t,n)||e.has(t,n)}))(p);class x{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const k="@firebase/app",S="0.9.23",E=new o.Yd("@firebase/app"),O="[DEFAULT]",P={[k]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},T=new Map,C=new Map;function A(e,t){try{e.container.addComponent(t)}catch(n){E.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function j(e){const t=e.name;if(C.has(t))return E.debug(`There were multiple attempts to register component ${t}.`),!1;C.set(t,e);for(const n of T.values())A(n,e);return!0}function R(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const M={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
163d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},D=new i.LL("app","Firebase",M);class I{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.wA("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw D.create("app-deleted",{appName:this._name})}}const L="10.6.0";function N(e,t={}){let n=e;if("object"!==typeof t){t={name:t}}const o=Object.assign({name:O,automaticDataCollectionEnabled:!1},t),a=o.name;if("string"!==typeof a||!a)throw D.create("bad-app-name",{appName:String(a)});if(n||(n=(0,i.aH)()),!n)throw D.create("no-options");const s=T.get(a);if(s){if((0,i.vZ)(n,s.options)&&(0,i.vZ)(o,s.config))return s;throw D.create("duplicate-app",{appName:a})}const u=new r.H0(a);for(const r of C.values())u.addComponent(r);const c=new I(n,o,u);return T.set(a,c),c}function B(e="[DEFAULT]"){const t=T.get(e);if(!t&&e===O&&(0,i.aH)())return N();if(!t)throw D.create("no-app",{appName:e});return t}function F(e,t,n){var o;let i=null!==(o=P[e])&&void 0!==o?o:e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),s=t.match(/\s|\//);if(a||s){const e=[`Unable to register library "${i}" with version "${t}":`];return a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void E.warn(e.join(" "))}j(new r.wA(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}const Z="firebase-heartbeat-store";let z=null;function V(){return z||(z=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=m(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(m(a.result),e.oldVersion,e.newVersion,m(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(Z)}}).catch((e=>{throw D.create("idb-open",{originalErrorMessage:e.message})}))),z}async function U(e,t){try{const n=(await V()).transaction(Z,"readwrite"),r=n.objectStore(Z);await r.put(t,W(e)),await n.done}catch(n){if(n instanceof i.ZR)E.warn(n.message);else{const e=D.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});E.warn(e.message)}}}function W(e){return`${e.name}!${e.options.appId}`}class H{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new $(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e;const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=q();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==n&&!this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=q(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){const n=[];let r=e.slice();for(const o of e){const e=n.find((e=>e.agent===o.agent));if(e){if(e.dates.push(o.date),G(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),G(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),o=(0,i.L)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}}function q(){return(new Date).toISOString().substring(0,10)}class ${constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,i.hl)()&&(0,i.eu)().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{const t=await V();return await t.transaction(Z).objectStore(Z).get(W(e))}catch(t){if(t instanceof i.ZR)E.warn(t.message);else{const e=D.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});E.warn(e.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return U(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return U(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function G(e){return(0,i.L)(JSON.stringify({version:2,heartbeats:e})).length}var Y;Y="",j(new r.wA("platform-logger",(e=>new x(e)),"PRIVATE")),j(new r.wA("heartbeat",(e=>new H(e)),"PRIVATE")),F(k,S,Y),F(k,S,"esm2017"),F("fire-js","")},8463:function(e,t,n){"use strict";n.d(t,{H0:function(){return s},wA:function(){return o}});var r=n(74444);class o{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const i="[DEFAULT]";class a{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.BH;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:i})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(e="[DEFAULT]"){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e="[DEFAULT]"){return this.instances.has(e)}getOptions(e="[DEFAULT]"){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[o,i]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(o)&&i.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(e),this.onInitCallbacks.set(r,o);const i=this.instances.get(r);return i&&e(i,r),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const o of n)try{o(e,t)}catch(r){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===i?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(o){}var r;return n||null}normalizeInstanceIdentifier(e="[DEFAULT]"){return this.component?this.component.multipleInstances?e:i:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},53333:function(e,t,n){"use strict";n.d(t,{Yd:function(){return c},in:function(){return o}});const r=[];var o;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
163RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(o||(o={}));const i={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},a=o.INFO,s={[o.DEBUG]:"log",[o.VERBOSE]:"log",[o.INFO]:"info",[o.WARN]:"warn",[o.ERROR]:"error"},u=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),o=s[t];if(!o)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[o](`[${r}]  ${e.name}:`,...n)};class c{constructor(e){this.name=e,this._logLevel=a,this._logHandler=u,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in o))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?i[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,o.DEBUG,...e),this._logHandler(this,o.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,o.VERBOSE,...e),this._logHandler(this,o.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,o.INFO,...e),this._logHandler(this,o.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,o.WARN,...e),this._logHandler(this,o.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,o.ERROR,...e),this._logHandler(this,o.ERROR,...e)}}},46640:function(e,t,n){"use strict";n.d(t,{FJ:function(){return dr},JJ:function(){return br},UE:function(){return fr},V8:function(){return _r},ii:function(){return gr},jK:function(){return pr},ju:function(){return vr},kN:function(){return mr},tw:function(){return hr},z8:function(){return wr},zI:function(){return yr}});var r,o="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},i={},a=a||{},s=o||self;function u(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function c(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var l="closure_uid_"+(1e9*Math.random()>>>0),f=0;function d(e,t,n){return e.call.apply(e.bind,arguments)}function p(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function h(e,t,n){return(h=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?d:p).apply(null,arguments)}function v(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function m(e,t){function n(){}n.prototype=t.prototype,e.$=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.ac=function(e,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return t.prototype[n].apply(e,o)}}function y(){this.s=this.s,this.o=this.o}y.prototype.s=!1,y.prototype.sa=function(){var e;!this.s&&(this.s=!0,this.N(),0)&&(e=this,Object.prototype.hasOwnProperty.call(e,l)&&e[l]||(e[l]=++f))},y.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const g=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(let n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1};function b(e){const t=e.length;if(0<t){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function _(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(u(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let o=0;o<r;o++)e[n+o]=t[o]}else e.push(t)}}function w(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}w.prototype.h=function(){this.defaultPrevented=!0};var x=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{s.addEventListener("test",(()=>{}),t),s.removeEventListener("test",(()=>{}),t)}catch(n){}return e}();function k(e){return/^[\s\xa0]*$/.test(e)}function S(){var e=s.navigator;return e&&(e=e.userAgent)?e:""}function E(e){return-1!=S().indexOf(e)}function O(e){return O[" "](e),e}O[" "]=function(){};var P,T,C=E("Opera"),A=E("Trident")||E("MSIE"),j=E("Edge"),R=j||A,M=E("Gecko")&&!(-1!=S().toLowerCase().indexOf("webkit")&&!E("Edge"))&&!(E("Trident")||E("MSIE"))&&!E("Edge"),D=-1!=S().toLowerCase().indexOf("webkit")&&!E("Edge");function I(){var e=s.document;return e?e.documentMode:void 0}e:{var L="",N=function(){var e=S();return M?/rv:([^\);]+)(\)|;)/.exec(e):j?/Edge\/([\d\.]+)/.exec(e):A?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):D?/WebKit\/(\S+)/.exec(e):C?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(N&&(L=N?N[1]:""),A){var B=I();if(null!=B&&B>parseFloat(L)){P=String(B);break e}}P=L}if(s.document&&A){var F=I();T=F||(parseInt(P,10)||void 0)}else T=void 0;var Z=T;function z(e,t){if(w.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(M){e:{try{O(t.nodeName);var o=!0;break e}catch(i){}o=!1}o||(t=null)}}
vendor: 13,857 bytes, line 163
163else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:V[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&z.$.h.call(this)}}m(z,w);var V={2:"touch",3:"pen",4:"mouse"};z.prototype.h=function(){z.$.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var U="closure_listenable_"+(1e6*Math.random()|0),W=0;function H(e,t,n,r,o){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.la=o,this.key=++W,this.fa=this.ia=!1}function q(e){e.fa=!0,e.listener=null,e.proxy=null,e.src=null,e.la=null}function $(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function G(e){const t={};for(const n in e)t[n]=e[n];return t}const Y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function K(e,t){let n,r;for(let o=1;o<arguments.length;o++){for(n in r=arguments[o],r)e[n]=r[n];for(let t=0;t<Y.length;t++)n=Y[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function X(e){this.src=e,this.g={},this.h=0}function Q(e,t){var n=t.type;if(n in e.g){var r,o=e.g[n],i=g(o,t);(r=0<=i)&&Array.prototype.splice.call(o,i,1),r&&(q(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function J(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(!i.fa&&i.listener==t&&i.capture==!!n&&i.la==r)return o}return-1}X.prototype.add=function(e,t,n,r,o){var i=e.toString();(e=this.g[i])||(e=this.g[i]=[],this.h++);var a=J(e,t,r,o);return-1<a?(t=e[a],n||(t.ia=!1)):((t=new H(t,this.src,i,!!r,o)).ia=n,e.push(t)),t};var ee="closure_lm_"+(1e6*Math.random()|0),te={};function ne(e,t,n,r,o){if(r&&r.once)return oe(e,t,n,r,o);if(Array.isArray(t)){for(var i=0;i<t.length;i++)ne(e,t[i],n,r,o);return null}return n=fe(n),e&&e[U]?e.O(t,n,c(r)?!!r.capture:!!r,o):re(e,t,n,!1,r,o)}function re(e,t,n,r,o,i){if(!t)throw Error("Invalid event type");var a=c(o)?!!o.capture:!!o,s=ce(e);if(s||(e[ee]=s=new X(e)),(n=s.add(t,n,r,a,i)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=ue;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)x||(o=a),void 0===o&&(o=!1),e.addEventListener(t.toString(),r,o);else if(e.attachEvent)e.attachEvent(se(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function oe(e,t,n,r,o){if(Array.isArray(t)){for(var i=0;i<t.length;i++)oe(e,t[i],n,r,o);return null}return n=fe(n),e&&e[U]?e.P(t,n,c(r)?!!r.capture:!!r,o):re(e,t,n,!0,r,o)}function ie(e,t,n,r,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)ie(e,t[i],n,r,o);else r=c(r)?!!r.capture:!!r,n=fe(n),e&&e[U]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=J(i=e.g[t],n,r,o))&&(q(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete e.g[t],e.h--)))):e&&(e=ce(e))&&(t=e.g[t.toString()],e=-1,t&&(e=J(t,n,r,o)),(n=-1<e?t[e]:null)&&ae(n))}function ae(e){if("number"!==typeof e&&e&&!e.fa){var t=e.src;if(t&&t[U])Q(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(se(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=ce(t))?(Q(n,e),0==n.h&&(n.src=null,t[ee]=null)):q(e)}}}function se(e){return e in te?te[e]:te[e]="on"+e}function ue(e,t){if(e.fa)e=!0;else{t=new z(t,this);var n=e.listener,r=e.la||e.src;e.ia&&ae(e),e=n.call(r,t)}return e}function ce(e){return(e=e[ee])instanceof X?e:null}var le="__closure_events_fn_"+(1e9*Math.random()>>>0);function fe(e){return"function"===typeof e?e:(e[le]||(e[le]=function(t){return e.handleEvent(t)}),e[le])}function de(){y.call(this),this.i=new X(this),this.S=this,this.J=null}function pe(e,t){var n,r=e.J;if(r)for(n=[];r;r=r.J)n.push(r);if(e=e.S,r=t.type||t,"string"===typeof t)t=new w(t,e);else if(t instanceof w)t.target=t.target||e;else{var o=t;K(t=new w(r,e),o)}if(o=!0,n)for(var i=n.length-1;0<=i;i--){var a=t.g=n[i];o=he(a,r,!0,t)&&o}if(o=he(a=t.g=e,r,!0,t)&&o,o=he(a,r,!1,t)&&o,n)for(i=0;i<n.length;i++)o=he(a=t.g=n[i],r,!1,t)&&o}function he(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var o=!0,i=0;i<t.length;++i){var a=t[i];if(a&&!a.fa&&a.capture==n){var s=a.listener,u=a.la||a.src;a.ia&&Q(e.i,a),o=!1!==s.call(u,r)&&o}}return o&&!r.defaultPrevented}m(de,y),de.prototype[U]=!0,de.prototype.removeEventListener=function(e,t,n,r){ie(this,e,t,n,r)},de.prototype.N=function(){if(de.$.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)q(n[r]);delete t.g[e],t.h--}}this.J=null},de.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},de.prototype.P=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var ve=s.JSON.stringify;function me(){var e=ke;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var ye=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}((()=>new ge),(e=>e.reset()));class ge{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function be(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function _e(e){s.setTimeout((()=>{throw e}),0)}let we,xe=!1,ke=new class{constructor(){this.h=this.g=null}add(e,t){const n=ye.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},Se=()=>{const e=s.Promise.resolve(void 0);we=()=>{e.then(Ee)}};var Ee=()=>{for(var e;e=me();){try{e.h.call(e.g)}catch(n){_e(n)}var t=ye;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}xe=!1};function Oe(e,t){de.call(this),this.h=e||1,this.g=t||s,this.j=h(this.qb,this),this.l=Date.now()}function Pe(e){e.ga=!1,e.T&&(e.g.clearTimeout(e.T),e.T=null)}function Te(e,t,n){if("function"===typeof e)n&&(e=h(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=h(e.handleEvent,e)}return 2147483647<Number(t)?-1:s.setTimeout(e,t||0)}function Ce(e){e.g=Te((()=>{e.g=null,e.i&&(e.i=!1,Ce(e))}),e.j);const t=e.h;e.h=null,e.m.apply(null,t)}m(Oe,de),(r=Oe.prototype).ga=!1,r.T=null,r.qb=function(){if(this.ga){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-e):(this.T&&(this.g.clearTimeout(this.T),this.T=null),pe(this,"tick"),this.ga&&(Pe(this),this.start()))}},r.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},r.N=function(){Oe.$.N.call(this),Pe(this),delete this.g};class Ae extends y{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:Ce(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function je(e){y.call(this),this.h=e,this.g={}}m(je,y);var Re=[];function Me(e,t,n,r){Array.isArray(n)||(n&&(Re[0]=n.toString()),n=Re);for(var o=0;o<n.length;o++){var i=ne(t,n[o],r||e.handleEvent,!1,e.h||e);if(!i)break;e.g[i.key]=i}}function De(e){$(e.g,(function(e,t){this.g.hasOwnProperty(t)&&ae(e)}),e),e.g={}}function Ie(){this.g=!0}function Le(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var o=r[1];if(Array.isArray(o)&&!(1>o.length)){var i=o[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(var a=1;a<o.length;a++)o[a]=""}}}return ve(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}je.prototype.N=function(){je.$.N.call(this),De(this)},je.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Ie.prototype.Ea=function(){this.g=!1},Ie.prototype.info=function(){};var Ne={},Be=null;function Fe(){return Be=Be||new de}function Ze(e){w.call(this,Ne.Ta,e)}function ze(e){const t=Fe();pe(t,new Ze(t))}function Ve(e,t){w.call(this,Ne.STAT_EVENT,e),this.stat=t}function Ue(e){const t=Fe();pe(t,new Ve(t,e))}function We(e,t){w.call(this,Ne.Ua,e),this.size=t}function He(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return s.setTimeout((function(){e()}),t)}Ne.Ta="serverreachability",m(Ze,w),Ne.STAT_EVENT="statevent",m(Ve,w),Ne.Ua="timingevent",m(We,w);var qe={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},$e={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function Ge(){}function Ye(e){return e.h||(e.h=e.i())}function Ke(){}Ge.prototype.h=null;var Xe,Qe={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function Je(){w.call(this,"d")}function et(){w.call(this,"c")}function tt(){}function nt(e,t,n,r){this.l=e,this.j=t,this.m=n,this.W=r||1,this.U=new je(this),this.P=ot,e=R?125:void 0,this.V=new Oe(e),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new rt}function rt(){this.i=null,this.g="",this.h=!1}m(Je,w),m(et,w),m(tt,Ge),tt.prototype.g=function(){return new XMLHttpRequest},tt.prototype.i=function(){return{}},Xe=new tt;var ot=45e3,it={},at={};function st(e,t,n){e.L=1,e.v=Ot(wt(t)),e.s=n,e.S=!0,ut(e,null)}function ut(e,t){e.G=Date.now(),dt(e),e.A=wt(e.v);var n=e.A,r=e.W;Array.isArray(r)||(r=[String(r)]),Ft(n.i,"t",r),e.C=0,n=e.l.J,e.h=new rt,e.g=Fn(e.l,n?t:null,!e.s),0<e.O&&(e.M=new Ae(h(e.Pa,e,e.g),e.O)),Me(e.U,e.g,"readystatechange",e.nb),t=e.I?G(e.I):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ha(e.A,e.u,e.s,t)):(e.u="GET",e.g.ha(e.A,e.u,null,t)),ze(),function(e,t,n,r,o,i){e.info((function(){if(e.g)if(i)for(var a="",s=i.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var f=l.split("_");a=2<=f.length&&"type"==f[1]?a+(l+"=")+c+"&":a+(l+"=redacted&")}}else a=null;else a=i;return"XMLHTTP REQ ("+r+") [attempt "+o+"]: "+t+"\n"+n+"\n"+a}))}(e.j,e.u,e.A,e.m,e.W,e.s)}function ct(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.l.Ha)}function lt(e,t,n){let r,o=!0;for(;!e.J&&e.C<n.length;){if(r=ft(e,n),r==at){4==t&&(e.o=4,Ue(14),o=!1),Le(e.j,e.m,null,"[Incomplete Response]");break}if(r==it){e.o=4,Ue(15),Le(e.j,e.m,n,"[Invalid Chunk]"),o=!1;break}Le(e.j,e.m,r,null),yt(e,r)}ct(e)&&r!=at&&r!=it&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,Ue(16),o=!1),e.i=e.i&&o,o?0<n.length&&!e.ba&&(e.ba=!0,(t=e.l).g==e&&t.ca&&!t.M&&(t.l.info("Great, no buffering proxy detected. Bytes received: "+n.length),jn(t),t.M=!0,Ue(11))):(Le(e.j,e.m,n,"[Invalid Chunked Response]"),mt(e),vt(e))}function ft(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?at:(n=Number(t.substring(n,r)),isNaN(n)?it:(r+=1)+n>t.length?at:(t=t.slice(r,r+n),e.C=r+n,t))}function dt(e){e.Y=Date.now()+e.P,pt(e,e.P)}function pt(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=He(h(e.lb,e),t)}function ht(e){e.B&&(s.clearTimeout(e.B),e.B=null)}function vt(e){0==e.l.H||e.J||Dn(e.l,e)}function mt(e){ht(e);var t=e.M;t&&"function"==typeof t.sa&&t.sa(),e.M=null,Pe(e.V),De(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.sa())}function yt(e,t){try{var n=e.l;if(0!=n.H&&(n.g==e||Ht(n.i,e)))if(!e.K&&Ht(n.i,e)&&3==n.H){try{var r=n.Ja.g.parse(t)}catch(c){r=null}if(Array.isArray(r)&&3==r.length){var o=r;if(0==o[0]){e:if(!n.u){if(n.g){if(!(n.g.G+3e3<e.G))break e;Mn(n),kn(n)}An(n),Ue(18)}}else n.Fa=o[1],0<n.Fa-n.V&&37500>o[2]&&n.G&&0==n.A&&!n.v&&(n.v=He(h(n.ib,n),6e3));if(1>=Wt(n.i)&&n.oa){try{n.oa()}catch(c){}n.oa=void 0}}else Ln(n,11)}else if((e.K||n.g==e)&&Mn(n),!k(t))for(o=n.Ja.g.parse(t),t=0;t<o.length;t++){let c=o[t];if(n.V=c[0],c=c[1],2==n.H)if("c"==c[0]){n.K=c[1],n.pa=c[2];const t=c[3];null!=t&&(n.ra=t,n.l.info("VER="+n.ra));const o=c[4];null!=o&&(n.Ga=o,n.l.info("SVER="+n.Ga));const l=c[5];null!=l&&"number"===typeof l&&0<l&&(r=1.5*l,n.L=r,n.l.info("backChannelRequestTimeoutMs_="+r)),r=n;const f=e.g;if(f){const e=f.g?f.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var i=r.i;i.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(i.j=i.l,i.g=new Set,i.h&&(qt(i,i.h),i.h=null))}if(r.F){const e=f.g?f.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.Da=e,Et(r.I,r.F,e))}}n.H=3,n.h&&n.h.Ba(),n.ca&&(n.S=Date.now()-e.G,n.l.info("Handshake RTT: "+n.S+"ms"));var a=e;if((r=n).wa=Bn(r,r.J?r.pa:null,r.Y),a.K){$t(r.i,a);var s=a,u=r.L;u&&s.setTimeout(u),s.B&&(ht(s),dt(s)),r.g=a}else Cn(r);0<n.j.length&&En(n)}else"stop"!=c[0]&&"close"!=c[0]||Ln(n,7);else 3==n.H&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?Ln(n,7):xn(n):"noop"!=c[0]&&n.h&&n.h.Aa(c),n.A=0)}ze()}catch(c){}}function gt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(u(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.ta&&"function"==typeof e.ta)return e.ta();if(!e.Z||"function"!=typeof e.Z){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(u(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const r in e)t[n++]=r;return t}}}(e),r=function(e){if(e.Z&&"function"==typeof e.Z)return e.Z();if("undefined"!==typeof Map&&e instanceof Map||"undefined"!==typeof Set&&e instanceof Set)return Array.from(e.values());if("string"===typeof e)return e.split("");
163if(u(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),o=r.length,i=0;i<o;i++)t.call(void 0,r[i],n&&n[i],e)}(r=nt.prototype).setTimeout=function(e){this.P=e},r.nb=function(e){e=e.target;const t=this.M;t&&3==mn(e)?t.l():this.Pa(e)},r.Pa=function(e){try{if(e==this.g)e:{const f=mn(this.g);var t=this.g.Ia();this.g.da();if(!(3>f)&&(3!=f||R||this.g&&(this.h.h||this.g.ja()||yn(this.g)))){this.J||4!=f||7==t||ze(),ht(this);var n=this.g.da();this.ca=n;t:if(ct(this)){var r=yn(this.g);e="";var o=r.length,i=4==mn(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){mt(this),vt(this);var a="";break t}this.h.i=new s.TextDecoder}for(t=0;t<o;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:i&&t==o-1});r.splice(0,o),this.h.g+=e,this.C=0,a=this.h.g}else a=this.g.ja();if(this.i=200==n,function(e,t,n,r,o,i,a){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+o+"]: "+t+"\n"+n+"\n"+i+" "+a}))}(this.j,this.u,this.A,this.m,this.W,f,n),this.i){if(this.aa&&!this.K){t:{if(this.g){var u,c=this.g;if((u=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!k(u)){var l=u;break t}}l=null}if(!(n=l)){this.i=!1,this.o=3,Ue(12),mt(this),vt(this);break e}Le(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,yt(this,n)}this.S?(lt(this,f,a),R&&this.i&&3==f&&(Me(this.U,this.V,"tick",this.mb),this.V.start())):(Le(this.j,this.m,a,null),yt(this,a)),4==f&&mt(this),this.i&&!this.J&&(4==f?Dn(this.l,this):(this.i=!1,dt(this)))}else(function(e){const t={};e=(e.g&&2<=mn(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(k(e[r]))continue;var n=be(e[r]);const o=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const i=t[o]||[];t[o]=i,i.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,(function(e){return e.join(", ")}))})(this.g),400==n&&0<a.indexOf("Unknown SID")?(this.o=3,Ue(12)):(this.o=0,Ue(13)),mt(this),vt(this)}}}catch(f){}},r.mb=function(){if(this.g){var e=mn(this.g),t=this.g.ja();this.C<t.length&&(ht(this),lt(this,e,t),this.i&&4!=e&&dt(this))}},r.cancel=function(){this.J=!0,mt(this)},r.lb=function(){this.B=null;const e=Date.now();0<=e-this.Y?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.j,this.A),2!=this.L&&(ze(),Ue(17)),mt(this),this.o=2,vt(this)):pt(this,this.Y-e)};var bt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function _t(e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,e instanceof _t){this.h=e.h,xt(this,e.j),this.s=e.s,this.g=e.g,kt(this,e.m),this.l=e.l;var t=e.i,n=new It;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),St(this,n),this.o=e.o}else e&&(t=String(e).match(bt))?(this.h=!1,xt(this,t[1]||"",!0),this.s=Pt(t[2]||""),this.g=Pt(t[3]||"",!0),kt(this,t[4]),this.l=Pt(t[5]||"",!0),St(this,t[6]||"",!0),this.o=Pt(t[7]||"")):(this.h=!1,this.i=new It(null,this.h))}function wt(e){return new _t(e)}function xt(e,t,n){e.j=n?Pt(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function kt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function St(e,t,n){t instanceof It?(e.i=t,function(e,t){t&&!e.j&&(Lt(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Nt(this,t),Ft(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=Tt(t,Mt)),e.i=new It(t,e.h))}function Et(e,t,n){e.i.set(t,n)}function Ot(e){return Et(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Pt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Tt(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Ct),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Ct(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}_t.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Tt(t,At,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(Tt(t,At,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(Tt(n,"/"==n.charAt(0)?Rt:jt,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",Tt(n,Dt)),e.join("")};var At=/[#\/\?@]/g,jt=/[#\?:]/g,Rt=/[#\?]/g,Mt=/[#\?@]/g,Dt=/#/g;function It(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Lt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),o=null;if(0<=r){var i=e[n].substring(0,r);o=e[n].substring(r+1)}else i=e[n];
163t(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Nt(e,t){Lt(e),t=Zt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Bt(e,t){return Lt(e),t=Zt(e,t),e.g.has(t)}function Ft(e,t,n){Nt(e,t),0<n.length&&(e.i=null,e.g.set(Zt(e,t),b(n)),e.h+=n.length)}function Zt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(r=It.prototype).add=function(e,t){Lt(this),this.i=null,e=Zt(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},r.forEach=function(e,t){Lt(this),this.g.forEach((function(n,r){n.forEach((function(n){e.call(t,n,r,this)}),this)}),this)},r.ta=function(){Lt(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const o=e[r];for(let e=0;e<o.length;e++)n.push(t[r])}return n},r.Z=function(e){Lt(this);let t=[];if("string"===typeof e)Bt(this,e)&&(t=t.concat(this.g.get(Zt(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},r.set=function(e,t){return Lt(this),this.i=null,Bt(this,e=Zt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},r.get=function(e,t){return e&&0<(e=this.Z(e)).length?String(e[0]):t},r.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];const i=encodeURIComponent(String(r)),a=this.Z(r);for(r=0;r<a.length;r++){var o=i;""!==a[r]&&(o+="="+encodeURIComponent(String(a[r]))),e.push(o)}}return this.i=e.join("&")};function zt(e){this.l=e||Vt,s.PerformanceNavigationTiming?e=0<(e=s.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(s.g&&s.g.Ka&&s.g.Ka()&&s.g.Ka().dc),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Vt=10;function Ut(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Wt(e){return e.h?1:e.g?e.g.size:0}function Ht(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function qt(e,t){e.g?e.g.add(t):e.h=t}function $t(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function Gt(e){if(null!=e.h)return e.i.concat(e.h.F);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.F);return t}return b(e.i)}zt.prototype.cancel=function(){if(this.i=Gt(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var Yt;function Kt(){this.g=new class{stringify(e){return s.JSON.stringify(e,void 0)}parse(e){return s.JSON.parse(e,void 0)}}}function Xt(e,t,n){const r=n||"";try{gt(e,(function(e,n){let o=e;c(e)&&(o=ve(e)),t.push(r+n+"="+encodeURIComponent(o))}))}catch(o){throw t.push(r+"type="+encodeURIComponent("_badmap")),o}}function Qt(e,t,n,r,o){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,o(r)}catch(i){}}function Jt(e){this.l=e.ec||null,this.j=e.ob||!1}function en(e,t){de.call(this),this.F=e,this.u=t,this.m=void 0,this.readyState=tn,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}m(Jt,Ge),Jt.prototype.g=function(){return new en(this.l,this.j)},Jt.prototype.i=(Yt={},function(){return Yt}),m(en,de);var tn=0;function nn(e){e.j.read().then(e.Xa.bind(e)).catch(e.ka.bind(e))}function rn(e){e.readyState=4,e.l=null,e.j=null,e.A=null,on(e)}function on(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(r=en.prototype).open=function(e,t){if(this.readyState!=tn)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,on(this)},r.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.F||s).fetch(new Request(this.B,t)).then(this.$a.bind(this),this.ka.bind(this))},r.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,rn(this)),this.readyState=tn},r.$a=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,on(this)),this.g&&(this.readyState=3,on(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if("undefined"!==typeof s.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;nn(this)}else e.text().then(this.Za.bind(this),this.ka.bind(this))},r.Xa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?rn(this):on(this),3==this.readyState&&nn(this)}},r.Za=function(e){this.g&&(this.response=this.responseText=e,rn(this))},r.Ya=function(e){this.g&&(this.response=e,rn(this))},r.ka=function(){this.g&&rn(this)},r.setRequestHeader=function(e,t){this.v.append(e,t)},r.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},r.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(en.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var an=s.JSON.parse;function sn(e){de.call(this),this.headers=new Map,this.u=e||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=un,this.L=this.M=!1}m(sn,de);var un="",cn=/^https?$/i,ln=["POST","PUT"];function fn(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,dn(e),hn(e)}function dn(e){e.F||(e.F=!0,pe(e,"complete"),pe(e,"error"))}function pn(e){if(e.h&&"undefined"!=typeof a&&(!e.C[1]||4!=mn(e)||2!=e.da()))if(e.v&&4==mn(e))Te(e.La,0,e);else if(pe(e,"readystatechange"),4==mn(e)){e.h=!1;try{const a=e.da();e:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var r;if(r=0===a){var o=String(e.I).match(bt)[1]||null;!o&&s.self&&s.self.location&&(o=s.self.location.protocol.slice(0,-1)),r=!cn.test(o?o.toLowerCase():"")}n=r}if(n)pe(e,"complete"),pe(e,"success");else{e.m=6;try{var i=2<mn(e)?e.g.statusText:""}catch(u){i=""}e.j=i+" ["+e.da()+"]",dn(e)}}finally{hn(e)}}}function hn(e,t){if(e.g){vn(e);const r=e.g,o=e.C[0]?()=>{}:null;e.g=null,e.C=null,t||pe(e,"ready");try{r.onreadystatechange=o}catch(n){}}}
163function vn(e){e.g&&e.L&&(e.g.ontimeout=null),e.A&&(s.clearTimeout(e.A),e.A=null)}function mn(e){return e.g?e.g.readyState:0}function yn(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.K){case un:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(t){return null}}function gn(e){let t="";return $(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function bn(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=gn(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Et(e,t,n))}function _n(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function wn(e){this.Ga=0,this.j=[],this.l=new Ie,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=_n("failFast",!1,e),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=_n("baseRetryDelayMs",5e3,e),this.hb=_n("retryDelaySeedMs",1e4,e),this.eb=_n("forwardChannelMaxRetries",2,e),this.xa=_n("forwardChannelRequestTimeoutMs",2e4,e),this.va=e&&e.xmlHttpFactory||void 0,this.Ha=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.i=new zt(e&&e.concurrentRequestLimit),this.Ja=new Kt,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=e&&e.bc||!1,e&&e.Ea&&this.l.Ea(),e&&e.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&e&&e.detectBufferingProxy||!1,this.qa=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.qa=e.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function xn(e){if(Sn(e),3==e.H){var t=e.W++,n=wt(e.I);if(Et(n,"SID",e.K),Et(n,"RID",t),Et(n,"TYPE","terminate"),Pn(e,n),(t=new nt(e,e.l,t)).L=2,t.v=Ot(wt(n)),n=!1,s.navigator&&s.navigator.sendBeacon)try{n=s.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&s.Image&&((new Image).src=t.v,n=!0),n||(t.g=Fn(t.l,null),t.g.ha(t.v)),t.G=Date.now(),dt(t)}Nn(e)}function kn(e){e.g&&(jn(e),e.g.cancel(),e.g=null)}function Sn(e){kn(e),e.u&&(s.clearTimeout(e.u),e.u=null),Mn(e),e.i.cancel(),e.m&&("number"===typeof e.m&&s.clearTimeout(e.m),e.m=null)}function En(e){if(!Ut(e.i)&&!e.m){e.m=!0;var t=e.Na;we||Se(),xe||(we(),xe=!0),ke.add(t,e),e.C=0}}function On(e,t){var n;n=t?t.m:e.W++;const r=wt(e.I);Et(r,"SID",e.K),Et(r,"RID",n),Et(r,"AID",e.V),Pn(e,r),e.o&&e.s&&bn(r,e.o,e.s),n=new nt(e,e.l,n,e.C+1),null===e.o&&(n.I=e.s),t&&(e.j=t.F.concat(e.j)),t=Tn(e,n,1e3),n.setTimeout(Math.round(.5*e.xa)+Math.round(.5*e.xa*Math.random())),qt(e.i,n),st(n,r,t)}function Pn(e,t){e.na&&$(e.na,(function(e,n){Et(t,n,e)})),e.h&&gt({},(function(e,n){Et(t,n,e)}))}function Tn(e,t,n){n=Math.min(e.j.length,n);var r=e.h?h(e.h.Va,e.h,e):null;e:{var o=e.j;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=o[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let s=0;s<n;s++){let n=o[s].g;const u=o[s].map;if(n-=t,0>n)t=Math.max(0,o[s].g-100),a=!1;else try{Xt(u,e,"req"+n+"_")}catch(i){r&&r(u)}}if(a){r=e.join("&");break e}}}return e=e.j.splice(0,n),t.F=e,r}function Cn(e){if(!e.g&&!e.u){e.ba=1;var t=e.Ma;we||Se(),xe||(we(),xe=!0),ke.add(t,e),e.A=0}}function An(e){return!(e.g||e.u||3<=e.A)&&(e.ba++,e.u=He(h(e.Ma,e),In(e,e.A)),e.A++,!0)}function jn(e){null!=e.B&&(s.clearTimeout(e.B),e.B=null)}function Rn(e){e.g=new nt(e,e.l,"rpc",e.ba),null===e.o&&(e.g.I=e.s),e.g.O=0;var t=wt(e.wa);Et(t,"RID","rpc"),Et(t,"SID",e.K),Et(t,"AID",e.V),Et(t,"CI",e.G?"0":"1"),!e.G&&e.qa&&Et(t,"TO",e.qa),Et(t,"TYPE","xmlhttp"),Pn(e,t),e.o&&e.s&&bn(t,e.o,e.s),e.L&&e.g.setTimeout(e.L);var n=e.g;e=e.pa,n.L=1,n.v=Ot(wt(t)),n.s=null,n.S=!0,ut(n,e)}function Mn(e){null!=e.v&&(s.clearTimeout(e.v),e.v=null)}function Dn(e,t){var n=null;if(e.g==t){Mn(e),jn(e),e.g=null;var r=2}else{if(!Ht(e.i,t))return;n=t.F,$t(e.i,t),r=1}if(0!=e.H)if(t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.G;var o=e.C;pe(r=Fe(),new We(r,n)),En(e)}else Cn(e);else if(3==(o=t.o)||0==o&&0<t.ca||!(1==r&&function(e,t){return!(Wt(e.i)>=e.i.j-(e.m?1:0))&&(e.m?(e.j=t.F.concat(e.j),!0):!(1==e.H||2==e.H||e.C>=(e.cb?0:e.eb))&&(e.m=He(h(e.Na,e,t),In(e,e.C)),e.C++,!0))}(e,t)||2==r&&An(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),o){case 1:Ln(e,5);break;case 4:Ln(e,10);break;case 3:Ln(e,6);break;default:Ln(e,2)}}function In(e,t){let n=e.ab+Math.floor(Math.random()*e.hb);return e.isActive()||(n*=2),n*t}function Ln(e,t){if(e.l.info("Error code "+t),2==t){var n=null;e.h&&(n=null);var r=h(e.pb,e);n||(n=new _t("//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||xt(n,"https"),Ot(n)),function(e,t){const n=new Ie;if(s.Image){const r=new Image;r.onload=v(Qt,n,r,"TestLoadImage: loaded",!0,t),r.onerror=v(Qt,n,r,"TestLoadImage: error",!1,t),r.onabort=v(Qt,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=v(Qt,n,r,"TestLoadImage: timeout",!1,t),s.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else Ue(2);e.H=0,e.h&&e.h.za(t),Nn(e),Sn(e)}function Nn(e){if(e.H=0,e.ma=[],e.h){const t=Gt(e.i);0==t.length&&0==e.j.length||(_(e.ma,t),_(e.ma,e.j),e.i.i.length=0,b(e.j),e.j.length=0),e.h.ya()}}function Bn(e,t,n){var r=n instanceof _t?wt(n):new _t(n);if(""!=r.g)t&&(r.g=t+"."+r.g),kt(r,r.m);else{var o=s.location;r=o.protocol,t=t?t+"."+o.hostname:o.hostname,o=+o.port;var i=new _t(null);r&&xt(i,r),t&&(i.g=t),o&&kt(i,o),n&&(i.l=n),r=i}return n=e.F,t=e.Da,n&&t&&Et(r,n,t),Et(r,"VER",e.ra),Pn(e,r),r}function Fn(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Ha&&!e.va?new sn(new Jt({ob:!0})):new sn(e.va)).Oa(e.J),t}function Zn(){}function zn(){if(A&&!(10<=Number(Z)))throw Error("Environmental error: no available transport.")}function Vn(e,t){de.call(this),this.g=new wn(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.Ca&&(e?e["X-WebChannel-Client-Profile"]=t.Ca:e={"X-WebChannel-Client-Profile":t.Ca}),this.g.U=e,(e=t&&t.cc)&&!k(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!k(t)&&(this.g.F=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new Hn(this)}function Un(e){Je.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function Wn(){et.call(this),this.status=1}function Hn(e){this.g=e}function qn(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function $n(e,t,n){n||(n=0);var r=Array(16);if("string"===typeof t)for(var o=0;16>o;++o)r[o]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(o=0;16>o;++o)r[o]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],o=e.g[2];var i=e.g[3],a=t+(i^n&(o^i))+r[0]+3614090360&4294967295;a=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=n+(a<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[1]+3905402710&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[3]+3250441966&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^n&(o^i))+r[4]+4118548399&4294967295)<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[5]+1200080426&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[7]+4249261313&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^n&(o^i))+r[8]+1770035416&4294967295)<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[9]+2336552879&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[11]+2304563134&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^n&(o^i))+r[12]+1804603682&4294967295)<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[13]+4254626195&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[15]+1236535329&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^i&(n^o))+r[1]+4129170786&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[11]+643717713&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[0]+3921069994&4294967295)<<20&4294967295|a>>>12))+((a=t+(o^i&(n^o))+r[5]+3593408605&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[15]+3634488961&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[4]+3889429448&4294967295)<<20&4294967295|a>>>12))+((a=t+(o^i&(n^o))+r[9]+568446438&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[3]+4107603335&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[8]+1163531501&4294967295)<<20&4294967295|a>>>12))+((a=t+(o^i&(n^o))+r[13]+2850285829&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[7]+1735328473&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[12]+2368359562&4294967295)<<20&4294967295|a>>>12))+((a=t+(n^o^i)+r[5]+4294588738&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[8]+2272392833&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[14]+4259657740&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^o^i)+r[1]+2763975236&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[4]+1272893353&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[10]+3200236656&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^o^i)+r[13]+681279174&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[0]+3936430074&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[6]+76029189&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^o^i)+r[9]+3654602809&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[12]+3873151461&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[15]+530742520&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[2]+3299628645&4294967295)<<23&4294967295|a>>>9))+((a=t+(o^(n|~i))+r[0]+4096336452&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[7]+1126891415&4294967295)<<10&4294967295|a>>>22))+((a=o+(t^(i|~n))+r[14]+2878612391&4294967295)<<15&4294967295|a>>>17))+((a=n+(i^(o|~t))+r[5]+4237533241&4294967295)<<21&4294967295|a>>>11))+((a=t+(o^(n|~i))+r[12]+1700485571&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[3]+2399980690&4294967295)<<10&4294967295|a>>>22))+((a=o+(t^(i|~n))+r[10]+4293915773&4294967295)<<15&4294967295|a>>>17))+((a=n+(i^(o|~t))+r[1]+2240044497&4294967295)<<21&4294967295|a>>>11))+((a=t+(o^(n|~i))+r[8]+1873313359&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[15]+4264355552&4294967295)<<10&4294967295|a>>>22))+((a=o+(t^(i|~n))+r[6]+2734768916&4294967295)<<15&4294967295|a>>>17))+((a=n+(i^(o|~t))+r[13]+1309151649&4294967295)<<21&4294967295|a>>>
16311))+((i=(t=n+((a=t+(o^(n|~i))+r[4]+4149444226&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[11]+3174756917&4294967295)<<10&4294967295|a>>>22))^((o=i+((a=o+(t^(i|~n))+r[2]+718787259&4294967295)<<15&4294967295|a>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(o+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+o&4294967295,e.g[3]=e.g[3]+i&4294967295}function Gn(e,t){this.h=t;for(var n=[],r=!0,o=e.length-1;0<=o;o--){var i=0|e[o];r&&i==t||(n[o]=i,r=!1)}this.g=n}(r=sn.prototype).Oa=function(e){this.M=e},r.ha=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+e);t=t?t.toUpperCase():"GET",this.I=e,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():Xe.g(),this.C=this.u?Ye(this.u):Ye(Xe),this.g.onreadystatechange=h(this.La,this);try{this.G=!0,this.g.open(t,String(e),!0),this.G=!1}catch(i){return void fn(this,i)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var o in r)n.set(o,r[o]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find((e=>"content-type"==e.toLowerCase())),o=s.FormData&&e instanceof s.FormData,!(0<=g(ln,t))||r||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[a,s]of n)this.g.setRequestHeader(a,s);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{vn(this),0<this.B&&((this.L=function(e){return A&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=h(this.ua,this)):this.A=Te(this.ua,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(i){fn(this,i)}},r.ua=function(){"undefined"!=typeof a&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,pe(this,"timeout"),this.abort(8))},r.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,pe(this,"complete"),pe(this,"abort"),hn(this))},r.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),hn(this,!0)),sn.$.N.call(this)},r.La=function(){this.s||(this.G||this.v||this.l?pn(this):this.kb())},r.kb=function(){pn(this)},r.isActive=function(){return!!this.g},r.da=function(){try{return 2<mn(this)?this.g.status:-1}catch(Yt){return-1}},r.ja=function(){try{return this.g?this.g.responseText:""}catch(Yt){return""}},r.Wa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),an(t)}},r.Ia=function(){return this.m},r.Sa=function(){return"string"===typeof this.j?this.j:String(this.j)},(r=wn.prototype).ra=8,r.H=1,r.Na=function(e){if(this.m)if(this.m=null,1==this.H){if(!e){this.W=Math.floor(1e5*Math.random()),e=this.W++;const o=new nt(this,this.l,e);let i=this.s;if(this.U&&(i?(i=G(i),K(i,this.U)):i=this.U),null!==this.o||this.O||(o.I=i,i=null),this.P)e:{for(var t=0,n=0;n<this.j.length;n++){var r=this.j[n];if(void 0===(r="__data__"in r.map&&"string"===typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.j.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=Tn(this,o,t),Et(n=wt(this.I),"RID",e),Et(n,"CVER",22),this.F&&Et(n,"X-HTTP-Session-Id",this.F),Pn(this,n),i&&(this.O?t="headers="+encodeURIComponent(String(gn(i)))+"&"+t:this.o&&bn(n,this.o,i)),qt(this.i,o),this.bb&&Et(n,"TYPE","init"),this.P?(Et(n,"$req",t),Et(n,"SID","null"),o.aa=!0,st(o,n,null)):st(o,n,t),this.H=2}}else 3==this.H&&(e?On(this,e):0==this.j.length||Ut(this.i)||On(this))},r.Ma=function(){if(this.u=null,Rn(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var e=2*this.S;this.l.info("BP detection timer enabled: "+e),this.B=He(h(this.jb,this),e)}},r.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Ue(10),kn(this),Rn(this))},r.ib=function(){null!=this.v&&(this.v=null,kn(this),An(this),Ue(19))},r.pb=function(e){e?(this.l.info("Successfully pinged google.com"),Ue(2)):(this.l.info("Failed to ping google.com"),Ue(1))},r.isActive=function(){return!!this.h&&this.h.isActive(this)},(r=Zn.prototype).Ba=function(){},r.Aa=function(){},r.za=function(){},r.ya=function(){},r.isActive=function(){return!0},r.Va=function(){},zn.prototype.g=function(e,t){return new Vn(e,t)},m(Vn,de),Vn.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var e=this.g,t=this.l,n=this.h||void 0;Ue(0),e.Y=t,e.na=n||{},e.G=e.aa,e.I=Bn(e,null,e.Y),En(e)},Vn.prototype.close=function(){xn(this.g)},Vn.prototype.u=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=ve(e),e=n);t.j.push(new class{constructor(e,t){this.g=e,this.map=t}}(t.fb++,e)),3==t.H&&En(t)},Vn.prototype.N=function(){this.g.h=null,delete this.j,xn(this.g),delete this.g,Vn.$.N.call(this)},m(Un,Je),m(Wn,et),m(Hn,Zn),Hn.prototype.Ba=function(){pe(this.g,"a")},Hn.prototype.Aa=function(e){pe(this.g,new Un(e))},Hn.prototype.za=function(e){pe(this.g,new Wn)},Hn.prototype.ya=function(){pe(this.g,"b")},m(qn,(function(){this.blockSize=-1})),qn.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},qn.prototype.j=function(e,t){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=this.m,o=this.h,i=0;i<t;){if(0==o)for(;i<=n;)$n(this,e,i),i+=this.blockSize;if("string"===typeof e){for(;i<t;)if(r[o++]=e.charCodeAt(i++),o==this.blockSize){$n(this,r),o=0;break}}else for(;i<t;)if(r[o++]=e[i++],o==this.blockSize){$n(this,r),o=0;break}}this.h=o,this.i+=t},qn.prototype.l=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.i;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.j(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var Yn={};function Kn(e){return-128<=e&&128>e?function(e,t){var n=Yn;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(e){return new Gn([0|e],0>e?-1:0)})):new Gn([0|e],0>e?-1:0)}function Xn(e){if(isNaN(e)||!isFinite(e))return Jn;if(0>e)return or(Xn(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=Qn;return new Gn(t,0)}var Qn=4294967296,Jn=Kn(0),er=Kn(1),tr=Kn(16777216);function nr(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function rr(e){return-1==e.h}function or(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new Gn(n,~e.h).add(er)}function ir(e,t){return e.add(or(t))}function ar(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function sr(e,t){this.g=e,this.h=t}function ur(e,t){if(nr(t))throw Error("division by zero");if(nr(e))return new sr(Jn,Jn);if(rr(e))return t=ur(or(e),t),new sr(or(t.g),or(t.h));if(rr(t))return t=ur(e,or(t)),new sr(or(t.g),t.h);if(30<e.g.length){if(rr(e)||rr(t))throw Error("slowDivide_ only works with positive integers.");for(var n=er,r=t;0>=r.X(e);)n=cr(n),r=cr(r);var o=lr(n,1),i=lr(r,1);for(r=lr(r,2),n=lr(n,2);!nr(r);){var a=i.add(r);0>=a.X(e)&&(o=o.add(n),i=a),r=lr(r,1),n=lr(n,1)}return t=ir(e,o.R(t)),new sr(o,t)}for(o=Jn;0<=e.X(t);){for(n=Math.max(1,Math.floor(e.ea()/t.ea())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),a=(i=Xn(n)).R(t);rr(a)||0<a.X(e);)a=(i=Xn(n-=r)).R(t);nr(i)&&(i=er),o=o.add(i),e=ir(e,a)}return new sr(o,e)}function cr(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.D(r)<<1|e.D(r-1)>>>31;return new Gn(n,e.h)}function lr(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,o=[],i=0;i<r;i++)o[i]=0<t?e.D(i+n)>>>t|e.D(i+n+1)<<32-t:e.D(i+n);return new Gn(o,e.h)}(r=Gn.prototype).ea=function(){if(rr(this))return-or(this).ea();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.D(n);e+=(0<=r?r:Qn+r)*t,t*=Qn}return e},r.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(nr(this))return"0";if(rr(this))return"-"+or(this).toString(e);for(var t=Xn(Math.pow(e,6)),n=this,r="";;){var o=ur(n,t).g,i=((0<(n=ir(n,o.R(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(nr(n=o))return i+r;for(;6>i.length;)i="0"+i;r=i+r}},r.D=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},r.X=function(e){return rr(e=ir(this,e))?-1:nr(e)?0:1}
163,r.abs=function(){return rr(this)?or(this):this},r.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,o=0;o<=t;o++){var i=r+(65535&this.D(o))+(65535&e.D(o)),a=(i>>>16)+(this.D(o)>>>16)+(e.D(o)>>>16);r=a>>>16,i&=65535,a&=65535,n[o]=a<<16|i}return new Gn(n,-2147483648&n[n.length-1]?-1:0)},r.R=function(e){if(nr(this)||nr(e))return Jn;if(rr(this))return rr(e)?or(this).R(or(e)):or(or(this).R(e));if(rr(e))return or(this.R(or(e)));if(0>this.X(tr)&&0>e.X(tr))return Xn(this.ea()*e.ea());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var o=0;o<e.g.length;o++){var i=this.D(r)>>>16,a=65535&this.D(r),s=e.D(o)>>>16,u=65535&e.D(o);n[2*r+2*o]+=a*u,ar(n,2*r+2*o),n[2*r+2*o+1]+=i*u,ar(n,2*r+2*o+1),n[2*r+2*o+1]+=a*s,ar(n,2*r+2*o+1),n[2*r+2*o+2]+=i*s,ar(n,2*r+2*o+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new Gn(n,0)},r.gb=function(e){return ur(this,e).h},r.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)&e.D(r);return new Gn(n,this.h&e.h)},r.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)|e.D(r);return new Gn(n,this.h|e.h)},r.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)^e.D(r);return new Gn(n,this.h^e.h)},zn.prototype.createWebChannel=zn.prototype.g,Vn.prototype.send=Vn.prototype.u,Vn.prototype.open=Vn.prototype.m,Vn.prototype.close=Vn.prototype.close,qe.NO_ERROR=0,qe.TIMEOUT=8,qe.HTTP_ERROR=6,$e.COMPLETE="complete",Ke.EventType=Qe,Qe.OPEN="a",Qe.CLOSE="b",Qe.ERROR="c",Qe.MESSAGE="d",de.prototype.listen=de.prototype.O,sn.prototype.listenOnce=sn.prototype.P,sn.prototype.getLastError=sn.prototype.Sa,sn.prototype.getLastErrorCode=sn.prototype.Ia,sn.prototype.getStatus=sn.prototype.da,sn.prototype.getResponseJson=sn.prototype.Wa,sn.prototype.getResponseText=sn.prototype.ja,sn.prototype.send=sn.prototype.ha,sn.prototype.setWithCredentials=sn.prototype.Oa,qn.prototype.digest=qn.prototype.l,qn.prototype.reset=qn.prototype.reset,qn.prototype.update=qn.prototype.j,Gn.prototype.add=Gn.prototype.add,Gn.prototype.multiply=Gn.prototype.R,Gn.prototype.modulo=Gn.prototype.gb,Gn.prototype.compare=Gn.prototype.X,Gn.prototype.toNumber=Gn.prototype.ea,Gn.prototype.toString=Gn.prototype.toString,Gn.prototype.getBits=Gn.prototype.D,Gn.fromNumber=Xn,Gn.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return or(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=Xn(Math.pow(n,8)),o=Jn,i=0;i<t.length;i+=8){var a=Math.min(8,t.length-i),s=parseInt(t.substring(i,i+a),n);8>
163a?(a=Xn(Math.pow(n,a)),o=o.R(a).add(Xn(s))):o=(o=o.R(r)).add(Xn(s))}return o};var fr=i.createWebChannelTransport=function(){return new zn},dr=i.getStatEventTarget=function(){return Fe()},pr=i.ErrorCode=qe,hr=i.EventType=$e,vr=i.Event=Ne,mr=i.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},yr=i.FetchXmlHttpFactory=Jt,gr=i.WebChannel=Ke,br=i.XhrIo=sn,_r=i.Md5=qn,wr=i.Integer=Gn},20943:function(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:function(){return r}})},4111:function(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:function(){return r}})},47568:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},51438:function(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:function(){return r}})},52951:function(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)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},26626:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(82662),o=n(4111);function i(e,t){return!t||"object"!==((n=t)&&n.constructor===Symbol?"symbol":typeof n)&&"function"!==typeof t?(0,o.Z)(e):t;var n}function a(e){var t=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}}();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}},14924:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},45785:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(82662);function o(e,t,n){return o="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,r.Z)(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n||e):i.value}},o(e,t,n)}function i(e,t,n){return o(e,t,n)}},82662:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return r(e)}n.d(t,{Z:function(){return o}})},28668:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(44998);function o(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&&(0,r.Z)(e,t)}},82670:function(e,t,n){"use strict";function r(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})},13375:function(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:function(){return r}})},26042:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14924);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);
163"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){(0,r.Z)(e,t,n[t])}))}return e}},69396:function(e,t,n){"use strict";function r(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}n.d(t,{Z:function(){return r}})},44998:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){return r(e,t)}n.d(t,{Z:function(){return o}})},828:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(13375);var o=n(91566);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,r.Z)(e,t)||(0,o.Z)(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.")}()}},51351:function(e,t,n){"use strict";function r(e){throw e}n.d(t,{Z:function(){return r}})},29815:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(20943);var o=n(13375);var i=n(91566);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.")}()}},91566:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(20943);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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},25892:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(44998);function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function i(e,t,n){return i=o()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&(0,r.Z)(i,n.prototype),i},i.apply(null,arguments)}function a(e,t,n){return i.apply(null,arguments)}var s=n(82662);function u(e){var t="function"===typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,(0,s.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,r.Z)(o,e)},u(e)}function c(e){return u(e)}},48318:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,o,i=0,a=0,s=0,u=0,c=0,l=0,f="object"===typeof performance&&performance.now?performance:Date,d="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function p(){return c||(d(h),c=f.now()+l)}function h(){c=0}function v(){this._call=this._time=this._next=null}function m(){c=(u=f.now())+l,i=a=0;try{!function(){p(),++i;for(var e,t=r;t;)(e=c-t._time)>=0&&t._call.call(void 0,e),t=t._next;--i}()}finally{i=0,function(){var e,t,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,g(i)}(),c=0}}function y(){var e=f.now(),t=e-u;t>1e3&&(l-=t,u=e)}
163function g(e){i||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(m,e-f.now()-l)),s&&(s=clearInterval(s))):(s||(u=f.now(),s=setInterval(y,1e3)),i=1,d(m)))}function b(e,t,n){var r=new v,o=t;return null==t?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(e,t,n){t=+t,n=null==n?p():+n,r._restart((function i(a){a+=o,r._restart(i,o+=t,n),e(a)}),t,n)},r.restart(e,t,n),r)}v.prototype=function(e,t,n){var r=new v;return r.restart(e,t,n),r}.prototype={constructor:v,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,g()},stop:function(){this._call&&(this._call=null,this._time=1/0,g())}}},98887:function(e,t,n){"use strict";n.d(t,{IH:function(){return Ve}});var r=n(25816),o=n(53333),i=n(74444),a=n(8463);let s,u;const c=new WeakMap,l=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakMap;let h={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return l.get(e);if("objectStoreNames"===t)return e.objectStoreNames||f.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return y(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function v(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(u||(u=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(g(this),t),y(c.get(this))}:function(...t){return y(e.apply(g(this),t))}:function(t,...n){const r=e.call(g(this),t,...n);return f.set(r,t.sort?t.sort():[t]),y(r)}}function m(e){return"function"===typeof e?v(e):(e instanceof IDBTransaction&&function(e){if(l.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));l.set(e,t)}(e),t=e,(s||(s=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,h):e);var t}function y(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(y(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&c.set(t,e)})).catch((()=>{})),p.set(t,e),t}(e);if(d.has(e))return d.get(e);const t=m(e);return t!==e&&(d.set(e,t),p.set(t,e)),t}const g=e=>p.get(e);const b=["get","getKey","getAll","getAllKeys","count"],_=["put","add","delete","clear"],w=new Map;function x(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(w.get(t))return w.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=_.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!b.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return w.set(t,i),i}h=(e=>({...e,get:(t,n,r)=>x(t,n)||e.get(t,n,r),has:(t,n)=>!!x(t,n)||e.has(t,n)}))(h);const k="@firebase/installations",S="0.6.4",E=1e4,O="w:0.6.4",P="FIS_v2",T=36e5,C={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},A=new i.LL("installations","Installations",C);function j(e){return e instanceof i.ZR&&e.code.includes("request-failed")}function R({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}
163function M(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function D(e,t){const n=(await t.json()).error;return A.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function I({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function L(e,{refreshToken:t}){const n=I(e);return n.append("Authorization",function(e){return`FIS_v2 ${e}`}(t)),n}async function N(e){const t=await e();return t.status>=500&&t.status<600?e():t}function B(e){return new Promise((t=>{setTimeout(t,e)}))}const F=/^[cdef][\w-]{21}$/;function Z(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return F.test(t)?t:""}catch(e){return""}}function z(e){return`${e.appName}!${e.appId}`}const V=new Map;function U(e,t){const n=z(e);W(n,t),function(e,t){const n=q();n&&n.postMessage({key:e,fid:t});$()}(n,t)}function W(e,t){const n=V.get(e);if(n)for(const r of n)r(t)}let H=null;function q(){return!H&&"BroadcastChannel"in self&&(H=new BroadcastChannel("[Firebase] FID Change"),H.onmessage=e=>{W(e.data.key,e.data.fid)}),H}function $(){0===V.size&&H&&(H.close(),H=null)}const G="firebase-installations-store";let Y=null;function K(){return Y||(Y=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=y(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(y(a.result),e.oldVersion,e.newVersion,y(a.transaction))})),n&&a.addEventListener("blocked",(()=>n())),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),s}("firebase-installations-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(G)}})),Y}async function X(e,t){const n=z(e),r=(await K()).transaction(G,"readwrite"),o=r.objectStore(G),i=await o.get(n);return await o.put(t,n),await r.done,i&&i.fid===t.fid||U(e,t.fid),t}async function Q(e){const t=z(e),n=(await K()).transaction(G,"readwrite");await n.objectStore(G).delete(t),await n.done}async function J(e,t){const n=z(e),r=(await K()).transaction(G,"readwrite"),o=r.objectStore(G),i=await o.get(n),a=t(i);return void 0===a?await o.delete(n):await o.put(a,n),await r.done,!a||i&&i.fid===a.fid||U(e,a.fid),a}async function ee(e){let t;const n=await J(e.appConfig,(n=>{const r=function(e){return re(e||{fid:Z(),registrationStatus:0})}(n),o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){return{installationEntry:t,registrationPromise:Promise.reject(A.create("app-offline"))}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=R(e),o=I(e),i=t.getImmediate({optional:!0});if(i){const e=await i.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}const a={fid:n,authVersion:P,appId:e.appId,sdkVersion:O},s={method:"POST",headers:o,body:JSON.stringify(a)},u=await N((()=>fetch(r,s)));if(u.ok){const e=await u.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:M(e.authToken)}}throw await D("Create Installation",u)}(e,t);return X(e.appConfig,n)}catch(n){throw j(n)&&409===n.customData.serverCode?await Q(e.appConfig):await X(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:te(e)}:{installationEntry:t}}(e,r);return t=o.registrationPromise,o.installationEntry}));return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function te(e){let t=await ne(e.appConfig);for(;1===t.registrationStatus;)await B(100),t=await ne(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await ee(e);return n||t}return t}function ne(e){return J(e,(e=>{if(!e)throw A.create("installation-not-found");return re(e)}))}function re(e){return 1===(t=e).registrationStatus&&t.registrationTime+E<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function oe({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${R(e)}/${t}/authTokens:generate`}(e,n),o=L(e,n),i=t.getImmediate({optional:!0});if(i){const e=await i.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}const a={installation:{sdkVersion:O,appId:e.appId}},s={method:"POST",headers:o,body:JSON.stringify(a)},u=await N((()=>fetch(r,s)));if(u.ok){return M(await u.json())}throw await D("Generate Auth Token",u)}async function ie(e,t=!1){let n;const r=await J(e.appConfig,(r=>{if(!se(r))throw A.create("not-registered");const o=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){const t=Date.now();
163return t<e.creationTime||e.creationTime+e.expiresIn<t+T}(e)}(o))return r;if(1===o.requestStatus)return n=async function(e,t){let n=await ae(e.appConfig);for(;1===n.authToken.requestStatus;)await B(100),n=await ae(e.appConfig);const r=n.authToken;return 0===r.requestStatus?ie(e,t):r}(e,t),r;{if(!navigator.onLine)throw A.create("app-offline");const t=function(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=async function(e,t){try{const n=await oe(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await X(e.appConfig,r),n}catch(n){if(!j(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await X(e.appConfig,n)}else await Q(e.appConfig);throw n}}(e,t),t}}));return n?await n:r.authToken}function ae(e){return J(e,(e=>{if(!se(e))throw A.create("not-registered");const t=e.authToken;return 1===(n=t).requestStatus&&n.requestTime+E<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var n}))}function se(e){return void 0!==e&&2===e.registrationStatus}async function ue(e,t=!1){const n=e;await async function(e){const{registrationPromise:t}=await ee(e);t&&await t}(n);return(await ie(n,t)).token}function ce(e){return A.create("missing-app-config-values",{valueName:e})}const le="installations",fe=e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw ce("App Configuration");if(!e.name)throw ce("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw ce(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:(0,r.qX)(t,"heartbeat"),_delete:()=>Promise.resolve()}},de=e=>{const t=e.getProvider("app").getImmediate(),n=(0,r.qX)(t,le).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await ee(t);return r?r.catch(console.error):ie(t).catch(console.error),n.fid}(n),getToken:e=>ue(n,e)}};(0,r.Xd)(new a.wA(le,fe,"PUBLIC")),(0,r.Xd)(new a.wA("installations-internal",de,"PRIVATE")),(0,r.KN)(k,S),(0,r.KN)(k,S,"esm2017");const pe="analytics",he="https://www.googletagmanager.com/gtag/js",ve=new o.Yd("@firebase/analytics"),me={"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
163d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},ye=new i.LL("analytics","Analytics",me);function ge(e){if(!e.startsWith(he)){const t=ye.create("invalid-gtag-resource",{gtagURL:e});return ve.warn(t.message),""}return e}function be(e){return Promise.all(e.map((e=>e.catch((e=>e)))))}function _e(e,t){const n=function(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}("firebase-js-sdk-policy",{createScriptURL:ge}),r=document.createElement("script"),o=`${he}?l=${e}&id=${t}`;r.src=n?null===n||void 0===n?void 0:n.createScriptURL(o):o,r.async=!0,document.head.appendChild(r)}function we(e,t,n,r){return async function(o,...i){try{if("event"===o){const[r,o]=i;await async function(e,t,n,r,o){try{let i=[];if(o&&o.send_to){let e=o.send_to;Array.isArray(e)||(e=[e]);const r=await be(n);for(const n of e){const e=r.find((e=>e.measurementId===n)),o=e&&t[e.appId];if(!o){i=[];break}i.push(o)}}0===i.length&&(i=Object.values(t)),await Promise.all(i),e("event",r,o||{})}catch(i){ve.error(i)}}(e,t,n,r,o)}else if("config"===o){const[o,a]=i;await async function(e,t,n,r,o,i){const a=r[o];try{if(a)await t[a];else{const e=(await be(n)).find((e=>e.measurementId===o));e&&await t[e.appId]}}catch(s){ve.error(s)}e("config",o,i)}(e,t,n,r,o,a)}else if("consent"===o){const[t]=i;e("consent","update",t)}else if("get"===o){const[t,n,r]=i;e("get",t,n,r)}else if("set"===o){const[t]=i;e("set",t)}else e(o,...i)}catch(a){ve.error(a)}}}const xe=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function ke(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function Se(e,t=xe,n){const{appId:r,apiKey:o,measurementId:i}=e.options;if(!r)throw ye.create("no-app-id");if(!o){if(i)return{measurementId:i,appId:r};throw ye.create("no-api-key")}const a=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new Oe;return setTimeout((async()=>{s.abort()}),void 0!==n?n:6e4),Ee({appId:r,apiKey:o,measurementId:i},a,s,t)}async function Ee(e,{throttleEndTimeMillis:t,backoffCount:n},r,o=xe){var a;const{appId:s,measurementId:u}=e;try{await function(e,t){return new Promise(((n,r)=>{const o=Math.max(t-Date.now(),0),i=setTimeout(n,o);e.addEventListener((()=>{clearTimeout(i),r(ye.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}(r,t)}catch(c){if(u)return ve.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${u} provided in the "measurementId" field in the local Firebase config. [${null===c||void 0===c?void 0:c.message}]`),{appId:s,measurementId:u};throw c}try{const t=await async function(e){var t;const{appId:n,apiKey:r}=e,o={method:"GET",headers:ke(r)},i="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),a=await fetch(i,o);if(200!==a.status&&304!==a.status){let e="";try{const n=await a.json();(null===(t=n.error)||void 0===t?void 0:t.message)&&(e=n.error.message)}catch(s){}throw ye.create("config-fetch-failed",{httpStatus:a.status,responseMessage:e})}return a.json()}(e);return o.deleteThrottleMetadata(s),t}catch(c){const t=c;if(!function(e){if(!(e instanceof i.ZR)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(t)){if(o.deleteThrottleMetadata(s),u)return ve.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${u} provided in the "measurementId" field in the local Firebase config. [${null===t||void 0===t?void 0:t.message}]`),{appId:s,measurementId:u};throw c}const l=503===Number(null===(a=null===t||void 0===t?void 0:t.customData)||void 0===a?void 0:a.httpStatus)?(0,i.$s)(n,o.intervalMillis,30):(0,i.$s)(n,o.intervalMillis),f={throttleEndTimeMillis:Date.now()+l,backoffCount:n+1};return o.setThrottleMetadata(s,f),ve.debug(`Calling attemptFetch again in ${l} millis`),Ee(e,f,r,o)}}class Oe{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}
163abort(){this.listeners.forEach((e=>e()))}}let Pe,Te;function Ce(e){Te=e}function Ae(e){Pe=e}async function je(e,t,n,r,o,a,s){var u;const c=Se(e);c.then((t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&ve.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)})).catch((e=>ve.error(e))),t.push(c);const l=async function(){if(!(0,i.hl)())return ve.warn(ye.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await(0,i.eu)()}catch(e){return ve.warn(ye.create("indexeddb-unavailable",{errorInfo:null===e||void 0===e?void 0:e.toString()}).message),!1}return!0}().then((e=>e?r.getId():void 0)),[f,d]=await Promise.all([c,l]);(function(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(he)&&n.src.includes(e))return n;return null})(a)||_e(a,f.measurementId),Te&&(o("consent","default",Te),Ce(void 0)),o("js",new Date);const p=null!==(u=null===s||void 0===s?void 0:s.config)&&void 0!==u?u:{};return p.origin="firebase",p.update=!0,null!=d&&(p.firebase_id=d),o("config",f.measurementId,p),Pe&&(o("set",Pe),Ae(void 0)),f.measurementId}class Re{constructor(e){this.app=e}_delete(){return delete Me[this.app.options.appId],Promise.resolve()}}let Me={},De=[];const Ie={};let Le,Ne,Be="dataLayer",Fe="gtag",Ze=!1;function ze(e,t,n){!function(){const e=[];if((0,i.ru)()&&e.push("This is a browser extension environment."),(0,i.zI)()||e.push("Cookies are not available."),e.length>0){const t=e.map(((e,t)=>`(${t+1}) ${e}`)).join(" "),n=ye.create("invalid-analytics-context",{errorInfo:t});ve.warn(n.message)}}();const r=e.options.appId;if(!r)throw ye.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw ye.create("no-api-key");ve.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Me[r])throw ye.create("already-exists",{id:r});if(!Ze){!function(e){let t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(Be);const{wrappedGtag:e,gtagCore:t}=function(e,t,n,r,o){let i=function(...e){window[r].push(arguments)};return window[o]&&"function"===typeof window[o]&&(i=window[o]),window[o]=we(i,e,t,n),{gtagCore:i,wrappedGtag:window[o]}}(Me,De,Ie,Be,Fe);Ne=e,Le=t,Ze=!0}Me[r]=je(e,De,Ie,t,Le,Be,n);return new Re(e)}function Ve(e=(0,r.Mq)()){e=(0,i.m9)(e);const t=(0,r.qX)(e,pe);return t.isInitialized()?t.getImmediate():function(e,t={}){const n=(0,r.qX)(e,pe);if(n.isInitialized()){const e=n.getImmediate();
163if((0,i.vZ)(t,n.getOptions()))return e;throw ye.create("already-initialized")}return n.initialize({options:t})}(e)}function Ue(e,t,n,r){e=(0,i.m9)(e),async function(e,t,n,r,o){if(o&&o.global)e("event",n,r);else{const o=await t;e("event",n,Object.assign(Object.assign({},r),{send_to:o}))}}(Ne,Me[e.app.options.appId],t,n,r).catch((e=>ve.error(e)))}const We="@firebase/analytics",He="0.10.0";(0,r.Xd)(new a.wA(pe,((e,{options:t})=>ze(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t)),"PUBLIC")),(0,r.Xd)(new a.wA("analytics-internal",(function(e){try{const t=e.getProvider(pe).getImmediate();return{logEvent:(e,n,r)=>Ue(t,e,n,r)}}catch(t){throw ye.create("interop-component-reg-failed",{reason:t})}}),"PRIVATE")),(0,r.KN)(We,He),(0,r.KN)(We,He,"esm2017")},83977:function(e,t,n){"use strict";n.d(t,{ZF:function(){return r.ZF}});var r=n(25816);(0,r.KN)("firebase","10.6.0","app")},39828:function(e,t,n){"use strict";n.d(t,{ET:function(){return r.ET},IO:function(){return r.IO},JU:function(){return r.JU},PL:function(){return r.PL},ad:function(){return r.ad},ar:function(){return r.ar},cf:function(){return r.cf},hJ:function(){return r.hJ},r7:function(){return r.r7}});var r=n(19)},21190:function(e,t,n){"use strict";n.d(t,{M:function(){return y}});var r=n(97582),o=n(67294),i=n(49304),a=n(89073),s=n(58868);function u(){var e=(0,o.useRef)(!1);return(0,s.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var c=n(240),l=n(96681),f=n(76316),d=function(e){var t=e.children,n=e.initial,i=e.isPresent,a=e.onExitComplete,s=e.custom,u=e.presenceAffectsLayout,d=(0,l.h)(p),h=(0,f.M)(),v=(0,o.useMemo)((function(){return{id:h,initial:n,isPresent:i,custom:s,onExitComplete:function(e){var t,n;d.set(e,!0);try{for(var o=(0,r.__values)(d.values()),i=o.next();!i.done;i=o.next()){if(!i.value)return}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}null===a||void 0===a||a()},register:function(e){return d.set(e,!1),function(){return d.delete(e)}}}}),u?void 0:[i]);return(0,o.useMemo)((function(){d.forEach((function(e,t){return d.set(t,!1)}))}),[i]),o.useEffect((function(){!i&&!d.size&&(null===a||void 0===a||a())}),[i]),o.createElement(c.O.Provider,{value:v},t)};function p(){return new Map}var h=n(25364),v=n(65411),m=function(e){return e.key||""};var y=function(e){var t=e.children,n=e.custom,c=e.initial,l=void 0===c||c,f=e.onExitComplete,p=e.exitBeforeEnter,y=e.presenceAffectsLayout,g=void 0===y||y,b=(0,r.__read)(function(){var e=u(),t=(0,r.__read)((0,o.useState)(0),2),n=t[0],i=t[1],s=(0,o.useCallback)((function(){e.current&&i(n+1)}),[n]);return[(0,o.useCallback)((function(){return a.ZP.postRender(s)}),[s]),n]}(),1),_=b[0],w=(0,o.useContext)(h.p).forceRender;w&&(_=w);var x=u(),k=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),S=k,E=new Set,O=(0,o.useRef)(S),P=(0,o.useRef)(new Map).current,T=(0,o.useRef)(!0);if((0,s.L)((function(){T.current=!1,function(e,t){e.forEach((function(e){var n=m(e);t.set(n,e)}))}(k,P),O.current=S})),(0,v.z)((function(){T.current=!0,P.clear(),E.clear()})),T.current)return o.createElement(o.Fragment,null,S.map((function(e){return o.createElement(d,{key:m(e),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:g},e)})));S=(0,r.__spreadArray)([],(0,r.__read)(S),!1);for(var C=O.current.map(m),A=k.map(m),j=C.length,R=0;R<j;R++){var M=C[R];-1===A.indexOf(M)&&E.add(M)}return p&&E.size&&(S=[]),E.forEach((function(e){if(-1===A.indexOf(e)){var t=P.get(e);if(t){var r=C.indexOf(e);S.splice(r,0,o.createElement(d,{key:m(t),isPresent:!1,onExitComplete:function(){P.delete(e),E.delete(e);var t=O.current.findIndex((function(t){return t.key===e}));if(O.current.splice(t,1),!E.size){if(O.current=k,!1===x.current)return;_(),f&&f()}},custom:n,presenceAffectsLayout:g},t))}}})),S=S.map((function(e){var t=e.key;return E.has(t)?e:o.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:g},e)})),"production"!==i.O&&p&&S.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),o.createElement(o.Fragment,null,E.size?S:S.map((function(e){return(0,o.cloneElement)(e)})))}},15947:function(e,t,n){"use strict";n.d(t,{hO:function(){return s},oO:function(){return a}});var r=n(67294),o=n(240),i=n(76316);function a(){var e=(0,r.useContext)(o.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,a=e.register,s=(0,i.M)();(0,r.useEffect)((function(){return a(s)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(s)}]:[!0]}function s(){return null===(e=(0,r.useContext)(o.O))||e.isPresent;var e}},25364:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var r=(0,n(67294).createContext)({})},240:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(67294).createContext)(null)},75814:function(e,t,n){"use strict";n.d(t,{E:function(){return _a}});var r=n(97582),o=n(67294),i=n(49304),a=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},s={measureLayout:a(["layout","layoutId","drag"]),animation:a(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:a(["exit"]),drag:a(["drag","dragControls"]),focus:a(["whileFocus"]),hover:a(["whileHover","onHoverStart","onHoverEnd"]),tap:a(["whileTap","onTap","onTapStart","onTapCancel"]),pan:a(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:a(["whileInView","onViewportEnter","onViewportLeave"])};var u=(0,o.createContext)({strict:!1}),c=Object.keys(s),l=c.length;var f=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),d=(0,o.createContext)({});var p=n(240),h=n(58868),v=n(11741),m={current:null},y=!1;function g(){return!y&&function(){if(y=!0,v.j)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return m.current=e.matches};e.addListener(t),t()}else m.current=!1}(),(0,r.__read)((0,o.useState)(m.current),1)[0]}function b(e,t,n,r){var i=(0,o.useContext)(u),a=(0,o.useContext)(d).visualElement,s=(0,o.useContext)(p.O),c=function(){var e=g(),t=(0,o.useContext)(f).reducedMotion;return"never"!==t&&("always"===t||e)}(),l=(0,o.useRef)(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceId:null===s||void 0===s?void 0:s.id,blockInitialAnimation:!1===(null===s||void 0===s?void 0:s.initial),shouldReduceMotion:c}));var v=l.current;return(0,h.L)((function(){null===v||void 0===v||v.syncRender()})),(0,o.useEffect)((function(){var e;null===(e=null===v||void 0===v?void 0:v.animationState)||void 0===e||e.animateChanges()})),(0,h.L)((function(){return function(){return null===v||void 0===v?void 0:v.notifyUnmount()}}),[]),v}function _(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function w(e){return Array.isArray(e)}function x(e){return"string"===typeof e||w(e)}function k(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,o)),"string"===typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,o)),t}function S(e,t,n){var r=e.getProps();return k(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function E(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||x(e.initial)||x(e.animate)||x(e.whileHover)||x(e.whileDrag)||x(e.whileTap)||x(e.whileFocus)||x(e.exit)}function O(e){return Boolean(E(e)||e.variants)}function P(e){var t=function(e,t){if(E(e)){var n=e.initial,r=e.animate;return{initial:!1===n||x(n)?n:void 0,animate:x(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(d)),n=t.initial,r=t.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}
163),[T(n),T(r)])}function T(e){return Array.isArray(e)?e.join(" "):e}var C=n(96681),A={hasAnimatedSinceResize:!0,hasEverUpdated:!1},j=1;var R=n(25364),M=(0,o.createContext)({});var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(o.Component);function I(e){var t=e.preloadedFeatures,n=e.createVisualElement,a=e.projectionNodeConstructor,p=e.useRender,h=e.useVisualState,m=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?s.projectionNodeConstructor=e[t]:s[t].Component=e[t])}(t),(0,o.forwardRef)((function(e,y){var g=function(e){var t,n=e.layoutId,r=null===(t=(0,o.useContext)(R.p))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=(0,r.__assign)((0,r.__assign)({},e),{layoutId:g});var w=(0,o.useContext)(f),x=null,k=P(e),S=w.isStatic?void 0:(0,C.h)((function(){if(A.hasEverUpdated)return j++})),E=h(e,w.isStatic);return!w.isStatic&&v.j&&(k.visualElement=b(m,E,(0,r.__assign)((0,r.__assign)({},w),e),n),function(e,t,n,r){var i,a=t.layoutId,s=t.layout,u=t.drag,c=t.dragConstraints,l=t.layoutScroll,f=(0,o.useContext)(M);r&&n&&!(null===n||void 0===n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||c&&_(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"===typeof s?s:"both",initialPromotionConfig:f,layoutScroll:l}))}(S,e,k.visualElement,a||s.projectionNodeConstructor),x=function(e,t,n){var a=[],f=(0,o.useContext)(u);if(!t)return null;"production"!==i.O&&n&&f.strict;for(var d=0;d<l;d++){var p=c[d],h=s[p],v=h.isEnabled,m=h.Component;v(e)&&m&&a.push(o.createElement(m,(0,r.__assign)({key:p},e,{visualElement:t})))}return a}(e,k.visualElement,t)),o.createElement(D,{visualElement:k.visualElement,props:(0,r.__assign)((0,r.__assign)({},w),e)},x,o.createElement(d.Provider,{value:k},p(m,e,S,function(e,t,n){return(0,o.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):_(n)&&(n.current=r))}),[t])}(E,k.visualElement,y),E,w.isStatic,k.visualElement)))}))}function L(e){function t(t,n){return void 0===n&&(n={}),I(e(t,n))}if("undefined"===typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var N=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function B(e){return"string"===typeof e&&!e.includes("-")&&!!(N.indexOf(e)>-1||/[A-Z]/.test(e))}var F={};var Z=["","X","Y","Z"],z=["transformPerspective","x","y","z"];function V(e,t){return z.indexOf(e)-z.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Z.forEach((function(t){return z.push(e+t)}))}));var U=new Set(z);function W(e){return U.has(e)}var H=new Set(["originX","originY","originZ"]);function q(e){return H.has(e)}function $(e,t){var n=t.layout,r=t.layoutId;return W(e)||q(e)||(n||void 0!==r)&&(!!F[e]||"opacity"===e)}var G=function(e){return Boolean(null!==e&&"object"===typeof e&&e.getVelocity)},Y={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function K(e){return e.startsWith("--")}var X=function(e,t){return t&&"number"===typeof e?t.transform(e):e};const Q=(e,t)=>n=>Math.max(Math.min(n,t),e),J=e=>e%1?Number(e.toFixed(5)):e,ee=/(-)?([\d]*\.?[\d])+/g,te=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ne=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function re(e){return"string"===typeof e}const oe=e=>({test:t=>re(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ie=oe("deg"),ae=oe("%"),se=oe("px"),ue=oe("vh"),ce=oe("vw"),le=Object.assign(Object.assign({},ae),{parse:e=>ae.parse(e)/100,transform:e=>ae.transform(100*e)}),fe={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},de=Object.assign(Object.assign({},fe),{transform:Q(0,1)}),pe=Object.assign(Object.assign({},fe),{default:1});var he=(0,r.__assign)((0,r.__assign)({},fe),{transform:Math.round}),ve={borderWidth:se,borderTopWidth:se,borderRightWidth:se,borderBottomWidth:se,borderLeftWidth:se,borderRadius:se,radiu
163s:se,borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomRightRadius:se,borderBottomLeftRadius:se,width:se,maxWidth:se,height:se,maxHeight:se,size:se,top:se,right:se,bottom:se,left:se,padding:se,paddingTop:se,paddingRight:se,paddingBottom:se,paddingLeft:se,margin:se,marginTop:se,marginRight:se,marginBottom:se,marginLeft:se,rotate:ie,rotateX:ie,rotateY:ie,rotateZ:ie,scale:pe,scaleX:pe,scaleY:pe,scaleZ:pe,skew:ie,skewX:ie,skewY:ie,distance:se,translateX:se,translateY:se,translateZ:se,x:se,y:se,z:se,perspective:se,transformPerspective:se,opacity:de,originX:le,originY:le,originZ:se,zIndex:he,fillOpacity:de,strokeOpacity:de,numOctaves:he};function me(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,u=e.transformKeys,c=e.transformOrigin;u.length=0;var l=!1,f=!1,d=!0;for(var p in t){var h=t[p];if(K(p))a[p]=h;else{var v=ve[p],m=X(h,v);if(W(p)){if(l=!0,s[p]=m,u.push(p),!d)continue;h!==(null!==(o=v.default)&&void 0!==o?o:0)&&(d=!1)}else q(p)?(c[p]=m,f=!0):i[p]=m}}l?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";i.sort(V);for(var f=!1,d=i.length,p=0;p<d;p++){var h=i[p];l+="".concat(Y[h]||h,"(").concat(o[h],") "),"z"===h&&(f=!0)}return!f&&s?l+="translateZ(0)":l=l.trim(),r?l=r(o,n?"":l):c&&n&&(l="none"),l}(e,n,d,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),f&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(c))}var ye=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ge(e,t,n){for(var r in t)G(t[r])||$(r,n)||(e[r]=t[r])}function be(e,t,n){var i={};return ge(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};me(e,t,{enableHardwareAcceleration:!n},i);var o=e.vars,a=e.style;return(0,r.__assign)((0,r.__assign)({},o),a)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function _e(e,t,n){var r={},o=be(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var we=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function xe(e){return we.has(e)}var ke,Se=function(e){return!xe(e)};try{(ke=require("@emotion/is-prop-valid").default)&&(Se=function(e){return e.startsWith("on")?!xe(e):ke(e)})}catch(wa){}function Ee(e,t,n){return"string"===typeof e?e:se.transform(t+n*e)}var Oe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pe={offset:"strokeDashoffset",array:"strokeDasharray"};function Te(e,t,n,o){var i=t.attrX,a=t.attrY,s=t.originX,u=t.originY,c=t.pathLength,l=t.pathSpacing,f=void 0===l?1:l,d=t.pathOffset,p=void 0===d?0:d;me(e,(0,r.__rest)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o),e.attrs=e.style,e.style={};var h=e.attrs,v=e.style,m=e.dimensions;h.transform&&(m&&(v.transform=h.transform),delete h.transform),m&&(void 0!==s||void 0!==u||v.transform)&&(v.transformOrigin=function(e,t,n){var r=Ee(t,e.x,e.width),o=Ee(n,e.y,e.height);return"".concat(r," ").concat(o)}(m,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==i&&(h.x=i),void 0!==a&&(h.y=a),void 0!==c&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?Oe:Pe;e[i.offset]=se.transform(-r);var a=se.transform(t),s=se.transform(n);e[i.array]="".concat(a," ").concat(s)}(h,c,f,p,!1)}var Ce=function(){return(0,r.__assign)((0,r.__assign)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ae(e,t){var n=(0,o.useMemo)((function(){var n=Ce();return Te(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.__assign)((0,r.__assign)({},n.attrs),{style:(0,r.__assign)({},n.style)})}),[t]);if(e.style){var i={};ge(i,e.style,e),n.style=(0,r.__assign)((0,r.__assign)({},i),n.style)}return n}function je(e){void 0===e&&(e=!1);return function(t,n,i,a,s,u){var c=s.latestValues,l=(B(t)?Ae:_e)(n,c,u),f=function(e,t,n){var r={};for(var o in e)(Se(o)||!0===n&&xe(o)||!t&&!xe(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"===typeof t,e),d=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},f),l),{ref:a});return i&&(d["data-projection-id"]=i),(0,o.createElement)(t,d)}}var Re=/([a-z])([A-Z])/g,Me=function(e){return e.replace(Re,"$1-$2").toLowerCase()};function De(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var Ie=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Le(e,t,n,r){for(var o in De(e,t,void 0,r),t.attrs)e.setAttribute(Ie.has(o)?o:Me(o),t.attrs[o])}function Ne(e){var t=e.style,n={};for(var r in t)(G(t[r])||$(r,e))&&(n[r]=t[r]);return n}function Be(e){var t=Ne(e);for(var n in e){if(G(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Fe(e){return"object"===typeof e&&"function"===typeof e.start}var Ze=function(e){return Array.isArray(e)},ze=function(e){return Ze(e)?e[e.length-1]||0:e};function Ve(e){var t,n=G(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}function Ue(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:He(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var We=function(e){return function(t,n){var r=(0,o.useContext)(d),i=(0,o.useContext)(p.O);
163return n?Ue(e,t,r,i):(0,C.h)((function(){return Ue(e,t,r,i)}))}};function He(e,t,n,o){var i={},a=!1===(null===n||void 0===n?void 0:n.initial),s=o(e);for(var u in s)i[u]=Ve(s[u]);var c=e.initial,l=e.animate,f=E(e),d=O(e);t&&d&&!f&&!1!==e.inherit&&(null!==c&&void 0!==c||(c=t.initial),null!==l&&void 0!==l||(l=t.animate));var p=a||!1===c,h=p?l:c;h&&"boolean"!==typeof h&&!Fe(h)&&(Array.isArray(h)?h:[h]).forEach((function(t){var n=k(e,t);if(n){var o=n.transitionEnd;n.transition;var a=(0,r.__rest)(n,["transitionEnd","transition"]);for(var s in a){var u=a[s];if(Array.isArray(u))u=u[p?u.length-1:0];null!==u&&(i[s]=u)}for(var s in o)i[s]=o[s]}}));return i}var qe,$e={useVisualState:We({scrapeMotionValuesFromProps:Be,createRenderState:Ce,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}Te(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Le(t,r)}})},Ge={useVisualState:We({scrapeMotionValuesFromProps:Ne,createRenderState:ye})};function Ye(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ke(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Ye(o,t,n,r)}),[e,t,n,r])}function Xe(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Qe(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(qe||(qe={}));var Je={pageX:0,pageY:0};function et(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Je;return{x:n[t+"X"],y:n[t+"Y"]}}function tt(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function nt(e,t){return void 0===t&&(t="page"),{point:Qe(e)?et(e,t):tt(e,t)}}var rt=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,nt(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},ot={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},it={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function at(e){return v.j&&null===window.onpointerdown?e:v.j&&null===window.ontouchstart?it[e]:v.j&&null===window.onmousedown?ot[e]:e}function st(e,t,n,r){return Ye(e,at(t),rt(n,"pointerdown"===t),r)}function ut(e,t,n,r){return Ke(e,at(t),n&&rt(n,"pointerdown"===t),r)}function ct(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var lt=ct("dragHorizontal"),ft=ct("dragVertical");function dt(e){var t=!1;if("y"===e)t=ft();else if("x"===e)t=lt();else{var n=lt(),r=ft();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function pt(){var e=dt(!0);return!e||(e(),!1)}function ht(e,t,n){return function(r,o){var i;Xe(r)&&!pt()&&(null===(i=e.animationState)||void 0===i||i.setActive(qe.Hover,t),null===n||void 0===n||n(r,o))}}var vt=function(e,t){return!!t&&(e===t||vt(e,t.parentElement))},mt=n(65411);const yt=(e,t)=>n=>t(e(n)),gt=(...e)=>e.reduce(yt);var bt=new Set;var _t=new WeakMap,wt=new WeakMap,xt=function(e){var t;null===(t=_t.get(e.target))||void 0===t||t(e)},kt=function(e){e.forEach(xt)};function St(e,t,n){var o=function(e){var t=e.root,n=(0,r.__rest)(e,["root"]),o=t||document;wt.has(o)||wt.set(o,{});var i=wt.get(o),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(kt,(0,r.__assign)({root:t},n))),i[a]}(t);return _t.set(e,n),o.observe(e),function(){_t.delete(e),o.unobserve(e)}}var Et={some:0,all:1};function Ot(e,t,n,r){var i=r.root,a=r.margin,s=r.amount,u=void 0===s?"some":s,c=r.once;(0,o.useEffect)((function(){if(e){var r={root:null===i||void 0===i?void 0:i.current,rootMargin:a,threshold:"number"===typeof u?u:Et[u]};return St(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!c||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(qe.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null===a||void 0===a||a(e)}}))}}),[e,i,a,u])}function Pt(e,t,n,r){var a=r.fallback,s=void 0===a||a;(0,o.useEffect)((function(){var r,o;e&&s&&("production"!==i.O&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||bt.has(r)||(console.warn(r),o&&console.warn(o),bt.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null===r||void 0===r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(qe.InView,!0)})))}),[e])}var Tt=function(e){return function(t){return e(t),null}},Ct={inView:Tt((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,a=e.viewport,s=void 0===a?{}:a,u=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||r||i);
163s.once&&u.current.hasEnteredView&&(c=!1),("undefined"===typeof IntersectionObserver?Pt:Ot)(c,u.current,t,s)})),tap:Tt((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(!1),c=(0,o.useRef)(null),l={passive:!(n||t||r||v)};function f(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function d(){var e;return f(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(qe.Tap,!1),!pt()}function p(e,n){d()&&(vt(a.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function h(e,t){d()&&(null===r||void 0===r||r(e,t))}function v(e,t){var r;f(),u.current||(u.current=!0,c.current=gt(st(window,"pointerup",p,l),st(window,"pointercancel",h,l)),null===(r=a.animationState)||void 0===r||r.setActive(qe.Tap,!0),null===n||void 0===n||n(e,t))}ut(a,"pointerdown",s?v:void 0,l),(0,mt.z)(f)})),focus:Tt((function(e){var t=e.whileFocus,n=e.visualElement;Ke(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(qe.Focus,!0)}:void 0),Ke(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(qe.Focus,!1)}:void 0)})),hover:Tt((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;ut(o,"pointerenter",t||r?ht(o,!0,t):void 0,{passive:!t}),ut(o,"pointerleave",n||r?ht(o,!1,n):void 0,{passive:!n})}))},At=n(15947);function jt(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Rt=(e,t,n)=>Math.min(Math.max(n,e),t),Mt=.001;function Dt({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Rt(.05,1,a),e=Rt(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=It(t,a),u=Math.exp(-o);return Mt-i/s*u},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,u=Math.exp(-r),c=It(Math.pow(t,2),a);return(-o(t)+Mt>0?-1:1)*((i-s)*u)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let o=1;o<12;o++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}function It(e,t){return e*Math.sqrt(1-t*t)}const Lt=["duration","bounce"],Nt=["stiffness","damping","mass"];function Bt(e,t){return t.some((t=>void 0!==e[t]))}function Ft(e){var{from:t=0,to:n=1,restSpeed:o=2,restDelta:i}=e,a=(0,r.__rest)(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:l,velocity:f,duration:d,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Bt(e,Nt)&&Bt(e,Lt)){const n=Dt(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),h=Zt,v=Zt;function m(){const e=f?-f/1e3:0,r=n-t,o=c/(2*Math.sqrt(u*l)),a=Math.sqrt(u/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){const t=It(a,o);h=i=>{const s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},v=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(o*o-1);h=i=>{const s=Math.exp(-o*a*i),u=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(u)+t*r*Math.cosh(u))/t}}}return m(),{next:e=>{const t=h(e);if(p)s.done=e>=d;else{const r=1e3*v(e),a=Math.abs(r)<=o,u=Math.abs(n-t)<=i;s.done=a&&u}return s.value=s.done?n:t,s},flipTarget:()=>{f=-f,[t,n]=[n,t],m()}}}Ft.needsInterpolation=(e,t)=>"string"===typeof e||"string"===typeof t;const Zt=e=>0,zt=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Vt=(e,t,n)=>-n*e+n*t+e,Ut=(e,t)=>n=>Boolean(re(n)&&ne.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Wt=(e,t,n)=>r=>{if(!re(r))return r;const[o,i,a,s]=r.match(ee);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ht=Q(0,255),qt=Object.assign(Object.assign({},fe),{transform:e=>Math.round(Ht(e))}),$t={test:Ut("rgb","red"),parse:Wt("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qt.transform(e)+", "+qt.transform(t)+", "+qt.transform(n)+", "+J(de.transform(r))+")"};const Gt={test:Ut("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
vendor: 6,178 bytes, line 163
163a:o?parseInt(o,16)/255:1}},transform:$t.transform},Yt={test:Ut("hsl","hue"),parse:Wt("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ae.transform(J(t))+", "+ae.transform(J(n))+", "+J(de.transform(r))+")"};function Kt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Kt(s,r,e+1/3),i=Kt(s,r,e),a=Kt(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const Qt=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Jt=[Gt,$t,Yt],en=e=>Jt.find((t=>t.test(e))),tn=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,nn=(e,t)=>{let n=en(e),r=en(t);tn(e),tn(t);let o=n.parse(e),i=r.parse(t);n===Yt&&(o=Xt(o),n=$t),r===Yt&&(i=Xt(i),r=$t);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Qt(o[t],i[t],e));return a.alpha=Vt(o.alpha,i.alpha,e),n.transform(a)}},rn={test:e=>$t.test(e)||Gt.test(e)||Yt.test(e),parse:e=>$t.test(e)?$t.parse(e):Yt.test(e)?Yt.parse(e):Gt.parse(e),transform:e=>re(e)?e:e.hasOwnProperty("red")?$t.transform(e):Yt.transform(e)},on="${c}",an="${n}";function sn(e){"number"===typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(te);r&&(n=r.length,e=e.replace(te,on),t.push(...r.map(rn.parse)));const o=e.match(ee);return o&&(e=e.replace(ee,an),t.push(...o.map(fe.parse))),{values:t,numColors:n,tokenised:e}}function un(e){return sn(e).values}function cn(e){const{values:t,numColors:n,tokenised:r}=sn(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?on:an,r<n?rn.transform(e[r]):J(e[r]));return t}}const ln=e=>"number"===typeof e?0:e;const fn={test:function(e){var t,n,r,o;return isNaN(e)&&re(e)&&(null!==(n=null===(t=e.match(ee))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(te))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:un,createTransformer:cn,getAnimatableNone:function(e){const t=un(e);return cn(e)(t.map(ln))}},dn=e=>"number"===typeof e;function pn(e,t){return dn(e)?n=>Vt(e,t,n):rn.test(e)?nn(e,t):yn(e,t)}const hn=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>pn(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},vn=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=pn(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function mn(e){const t=fn.parse(e),n=t.length;let r=0,o=0,i=0;for(let a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const yn=(e,t)=>{const n=fn.createTransformer(t),r=mn(e),o=mn(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?gt(hn(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},gn=(e,t)=>n=>Vt(e,t,n);function bn(e,t,n){const r=[],o=n||("number"===typeof(i=e[0])?gn:"string"===typeof i?rn.test(i)?nn:yn:Array.isArray(i)?hn:"object"===typeof i?vn:void 0);var i;const a=e.length-1;for(let s=0;s<a;s++){let n=o(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]:t;n=gt(e,n)}r.push(n)}return r}function _n(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=bn(t,r,o),s=2===i?function([e,t],[n]){return r=>n(zt(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=zt(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(Rt(e[0],e[i-1],t)):s}const wn=e=>t=>1-e(1-t),xn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kn=e=>t=>t*t*((e+1)*t-e),Sn=e=>e,En=(On=2,e=>Math.pow(e,On));var On;const Pn=wn(En),Tn=xn(En),Cn=e=>1-Math.sin(Math.acos(e)),An=wn(Cn),jn=xn(An),Rn=kn(1.525),Mn=wn(Rn),Dn=xn(Rn),In=(e=>{const t=kn(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),Ln=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Nn=wn(Ln);function Bn(e,t){return e.map((()=>t||Tn)).splice(0,e.length-1)}function Fn({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function u(){return _n(s,a,{ease:Array.isArray(n)?n:Bn(a,n)})}let c=u();return{next:e=>(i.value=c(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),c=u()}}}const Zn={keyframes:Fn,spring:Ft,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const u=t+s,c=void 0===i?u:i(u);return c!==u&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};const zn=1/60*1e3,Vn="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),Un="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Vn())),zn);let Wn=!0,Hn=!1,qn=!1;const $n={delta:0,timestamp:0},Gn=["read","update","preRender","render","postRender"],Yn=Gn.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const u=s&&o,c=u?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:u=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(u),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(u))}}};return s}((()=>Hn=!0)),e)),{}),Kn=Gn.reduce(((e,t)=>{const n=Yn[t];return e[t]=(e,t=!1,r=!1)=>(Hn||er(),n.schedule(e,t,r)),e}),{}),Xn=Gn.reduce(((e,t)=>(e[t]=Yn[t].cancel,e)),{}),Qn=(Gn.reduce(((e,t)=>(e[t]=()=>Yn[t].process($n),e)),{}),e=>Yn[e].process($n)),Jn=e=>{Hn=!1,$n.delta=Wn?zn:Math.max(Math.min(e-$n.timestamp,40),1),$n.timestamp=e,qn=!0,Gn.forEac
163h(Qn),qn=!1,Hn&&(Wn=!1,Un(Jn))},er=()=>{Hn=!0,Wn=!0,qn||Un(Jn)};var tr=Kn;function nr(e,t,n=0){return e-t-n}const rr=e=>{const t=({delta:t})=>e(t);return{start:()=>tr.update(t,!0),stop:()=>Xn.update(t)}};function or(e){var t,n,{from:o,autoplay:i=!0,driver:a=rr,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:l=0,onPlay:f,onStop:d,onComplete:p,onRepeat:h,onUpdate:v}=e,m=(0,r.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,g,b,{to:_}=m,w=0,x=m.duration,k=!1,S=!0;const E=function(e){if(Array.isArray(e.to))return Fn;if(Zn[e.type])return Zn[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Fn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ft:Fn}(m);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,o,_))&&(b=_n([0,100],[o,_],{clamp:!1}),o=0,_=100);const O=E(Object.assign(Object.assign({},m),{from:o,to:_}));function P(){w++,"reverse"===c?(S=w%2===0,s=function(e,t,n=0,r=!0){return r?nr(t+-e,t,n):t-(e-t)+n}(s,x,l,S)):(s=nr(s,x,l),"mirror"===c&&O.flipTarget()),k=!1,h&&h()}function T(e){if(S||(e=-e),s+=e,!k){const e=O.next(Math.max(0,s));g=e.value,b&&(g=b(g)),k=S?e.done:s<=0}null===v||void 0===v||v(g),k&&(0===w&&(null!==x&&void 0!==x||(x=s)),w<u?function(e,t,n,r){return r?e>=t+n:e<=-n}(s,x,l,S)&&P():(y.stop(),p&&p()))}return i&&(null===f||void 0===f||f(),y=a(T),y.start()),{stop:()=>{null===d||void 0===d||d(),y.stop()}}}function ir(e,t){return t?e*(1e3/t):0}function ar({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:f,onComplete:d,onStop:p}){let h;function v(e){return void 0!==n&&e<n||void 0!==r&&e>r}function m(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function y(e){null===h||void 0===h||h.stop(),h=or(Object.assign(Object.assign({},e),{driver:l,onUpdate:t=>{var n;null===f||void 0===f||f(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:d,onStop:p}))}function g(e){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},e))}if(v(e))g({from:e,velocity:t,to:m(e)});else{let r=o*t+e;"undefined"!==typeof c&&(r=c(r));const a=m(r),s=a===n?-1:1;let l,f;const d=e=>{l=f,f=e,t=ir(e-l,$n.delta),(1===s&&e>a||-1===s&&e<a)&&g({from:e,to:a,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:u,modifyTarget:c,onUpdate:v(r)?d:void 0})}return{stop:()=>null===h||void 0===h?void 0:h.stop()}}var sr=function(e){return 1e3*e};const ur=(e,t)=>1-3*t+3*e,cr=(e,t)=>3*t-6*e,lr=e=>3*e,fr=(e,t,n)=>((ur(t,n)*e+cr(t,n))*e+lr(t))*e,dr=(e,t,n)=>3*ur(t,n)*e*e+2*cr(t,n)*e+lr(t);const pr=.1;function hr(e,t,n,r){if(e===t&&n===r)return Sn;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=fr(a*pr,e,n);function i(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=pr;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*pr,s=dr(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=dr(t,n,r);if(0===o)return t;t-=(fr(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=fr(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+pr,e,n)}return e=>0===e||1===e?e:fr(i(e),t,r)}var vr={linear:Sn,easeIn:En,easeInOut:Tn,easeOut:Pn,circIn:Cn,circInOut:jn,circOut:An,backIn:Rn,backInOut:Dn,backOut:Mn,anticipate:In,bounceIn:Nn,bounceInOut:e=>e<.5?.5*(1-Ln(1-2*e)):.5*Ln(2*e-1)+.5,bounceOut:Ln},mr=function(e){if(Array.isArray(e)){e.length;var t=(0,r.__read)(e,4);return hr(t[0],t[1],t[2],t[3])}return"string"===typeof e?("Invalid easing type '".concat(e,"'"),vr[e]):e},yr=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!fn.test(t)||t.startsWith("url(")))},gr=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},br=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},_r=function(){return{type:"keyframes",ease:"linear",duration:.3}},wr=function(e){return{type:"keyframes",duration:.8,values:e}},xr={x:gr,y:gr,z:gr,rotate:gr,rotateX:gr,rotateY:gr,rotateZ:gr,scaleX:br,scaleY:br,scale:br,opacity:_r,backgroundColor:_r,color:_r,default:br};const kr=new Set(["brightness","contrast","saturate","opacity"]);function Sr(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ee)||[];if(!r)return e;const o=n.replace(r,"");let i=kr.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Er=/([a-z-]*)\(.*?\)/g,Or=Object.assign(Object.assign({},fn),{getAnimatableNone:e=>{const t=e.match(Er);return t?t.map(Sr).join(" "):e}});var Pr=(0,r.__assign)((0,r.__assign)({},ve),{color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:Or,WebkitFilter:Or}
163),Tr=function(e){return Pr[e]};function Cr(e,t){var n,r=Tr(e);return r!==Or&&(r=fn),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Ar=!1;function jr(e){var t=e.ease,n=e.times,o=e.yoyo,i=e.flip,a=e.loop,s=(0,r.__rest)(e,["ease","times","yoyo","flip","loop"]),u=(0,r.__assign)({},s);return n&&(u.offset=n),s.duration&&(u.duration=sr(s.duration)),s.repeatDelay&&(u.repeatDelay=sr(s.repeatDelay)),t&&(u.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(mr):mr(t)),"tween"===s.type&&(u.type="keyframes"),(o||a||i)&&(!0,o?u.repeatType="reverse":a?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=a||o||i||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function Rr(e,t,n){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.__spreadArray)([],(0,r.__read)(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,r.__rest)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.__assign)((0,r.__assign)({},e),function(e,t){var n;return n=Ze(t)?wr:xr[e]||xr.default,(0,r.__assign)({to:t},n(t))}(n,t.to))),(0,r.__assign)((0,r.__assign)({},t),jr(e))}function Mr(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Dr(e){return"number"===typeof e?0:Cr("",e)}function Ir(e,t){return e[t]||e.default||e}function Lr(e,t,n,o){return void 0===o&&(o={}),Ar&&(o={type:!1}),t.start((function(i){var a,s,u=function(e,t,n,o,i){var a,s=Ir(o,e),u=null!==(a=s.from)&&void 0!==a?a:t.get(),c=yr(e,n);"none"===u&&c&&"string"===typeof n?u=Cr(e,n):Mr(u)&&"string"===typeof n?u=Dr(n):!Array.isArray(n)&&Mr(n)&&"string"===typeof u&&(n=Dr(u));var l=yr(e,u);return"You are trying to animate ".concat(e,' from "').concat(u,'" to "').concat(n,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(n," via the `style` property."),l&&c&&!1!==s.type?function(){var o={from:u,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?ar((0,r.__assign)((0,r.__assign)({},o),s)):or((0,r.__assign)((0,r.__assign)({},Rr(s,o,e)),{onUpdate:function(e){var t;o.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;o.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e,r,o=ze(n);return t.set(o),i(),null===(e=null===s||void 0===s?void 0:s.onUpdate)||void 0===e||e.call(s,o),null===(r=null===s||void 0===s?void 0:s.onComplete)||void 0===r||r.call(s),{stop:function(){}}}}(e,t,n,o,i),c=function(e,t){var n,r;return null!==(r=null!==(n=(Ir(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(o,e),l=function(){return s=u()};return c?a=window.setTimeout(l,sr(c)):l(),function(){clearTimeout(a),null===s||void 0===s||s.stop()}}))}var Nr=function(e){return/^0[^.\s]+$/.test(e)},Br=n(89073);function Fr(e,t){-1===e.indexOf(t)&&e.push(t)}function Zr(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var zr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Fr(this.subscriptions,e),function(){return Zr(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Vr=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new zr,this.velocityUpdateSubscribers=new zr,this.renderSubscribers=new zr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=(0,Br.$B)(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,Br.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Br.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?ir(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ur(e){return new Vr(e)}var Wr=function(e){return function(t){return t.test(e)}},Hr=[fe,se,ae,ie,ce,ue,{test:function(e){return"auto"===e},parse:function(e){return e}}],qr=function(e){return Hr.find(Wr(e))},$r=(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(Hr),!1),[rn,fn],!1),Gr=function(e){return $r.find(Wr(e))};function Yr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ur(n))}function Kr(e,t){var n=S(e,t),o=n?e.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var s=(0,r.__rest)(o,["transitionEnd","transition"]);for(var u in s=(0,r.__assign)((0,r.__assign)({},s),a)){Yr(e,u,ze(s[u]))}}function Xr(e,t){if(t)return(t[e]||t.default||t).from}function Qr(e,t,n){var o;void 0===n&&(n={});var i=S(e,t,n.custom),a=(i||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=i?function(){return Jr(e,i,n)}:function(){return Promise.resolve()},c=(null===(o=e.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=s.delayChildren,a=void 0===i?0:i,u=s.staggerChildren,c=s.staggerDirection;return function(e,t,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],u=(e.variantChildren.size-1)*o,c=1===i?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),u-e*o};
163return Array.from(e.variantChildren).sort(eo).forEach((function(e,o){s.push(Qr(e,t,(0,r.__assign)((0,r.__assign)({},a),{delay:n+c(o)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+o,u,c,n)}:function(){return Promise.resolve()},l=s.when;if(l){var f=(0,r.__read)("beforeChildren"===l?[u,c]:[c,u],2),d=f[0],p=f[1];return d().then(p)}return Promise.all([u(),c(n.delay)])}function Jr(e,t,n){var o,i=void 0===n?{}:n,a=i.delay,s=void 0===a?0:a,u=i.transitionOverride,c=i.type,l=e.makeTargetAnimatable(t),f=l.transition,d=void 0===f?e.getDefaultTransition():f,p=l.transitionEnd,h=(0,r.__rest)(l,["transition","transitionEnd"]);u&&(d=u);var v=[],m=c&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[c]);for(var y in h){var g=e.getValue(y),b=h[y];if(!(!g||void 0===b||m&&to(m,y))){var _=(0,r.__assign)({delay:s},d);e.shouldReduceMotion&&W(y)&&(_=(0,r.__assign)((0,r.__assign)({},_),{type:!1,delay:0}));var w=Lr(y,g,b,_);v.push(w)}}return Promise.all(v).then((function(){p&&Kr(e,p)}))}function eo(e,t){return e.sortNodePosition(t)}function to(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var no=[qe.Animate,qe.InView,qe.Focus,qe.Hover,qe.Tap,qe.Drag,qe.Exit],ro=(0,r.__spreadArray)([],(0,r.__read)(no),!1).reverse(),oo=no.length;function io(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return Qr(e,t,n)}));r=Promise.all(o)}else if("string"===typeof t)r=Qr(e,t,n);else{var i="function"===typeof t?S(e,t,n.custom):t;r=Jr(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function ao(e){var t=io(e),n=function(){var e;return(e={})[qe.Animate]=so(!0),e[qe.InView]=so(),e[qe.Hover]=so(),e[qe.Tap]=so(),e[qe.Drag]=so(),e[qe.Focus]=so(),e[qe.Exit]=so(),e}(),o={},i=!0,a=function(t,n){var o=S(e,n);if(o){o.transition;var i=o.transitionEnd,a=(0,r.__rest)(o,["transition","transitionEnd"]);t=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),a),i)}return t};function s(s,u){for(var c,l=e.getProps(),f=e.getVariantContext(!0)||{},d=[],p=new Set,h={},v=1/0,m=function(t){var o=ro[t],m=n[o],y=null!==(c=l[o])&&void 0!==c?c:f[o],g=x(y),b=o===u?m.isActive:null;!1===b&&(v=t);var _=y===f[o]&&y!==l[o]&&g;if(_&&i&&e.manuallyAnimateOnMount&&(_=!1),m.protectedKeys=(0,r.__assign)({},h),!m.isActive&&null===b||!y&&!m.prevProp||Fe(y)||"boolean"===typeof y)return"continue";var k=function(e,t){if("string"===typeof t)return t!==e;if(w(t))return!jt(t,e);return!1}(m.prevProp,y),S=k||o===u&&m.isActive&&!_&&g||t>v&&g,E=Array.isArray(y)?y:[y],O=E.reduce(a,{});!1===b&&(O={});var P=m.prevResolvedValues,T=void 0===P?{}:P,C=(0,r.__assign)((0,r.__assign)({},T),O),A=function(e){S=!0,p.delete(e),m.needsAnimating[e]=!0};for(var j in C){var R=O[j],M=T[j];h.hasOwnProperty(j)||(R!==M?Ze(R)&&Ze(M)?!jt(R,M)||k?A(j):m.protectedKeys[j]=!0:void 0!==R?A(j):p.add(j):void 0!==R&&p.has(j)?A(j):m.protectedKeys[j]=!0)}m.prevProp=y,m.prevResolvedValues=O,m.isActive&&(h=(0,r.__assign)((0,r.__assign)({},h),O)),i&&e.blockInitialAnimation&&(S=!1),S&&!_&&d.push.apply(d,(0,r.__spreadArray)([],(0,r.__read)(E.map((function(e){return{animation:e,options:(0,r.__assign)({type:o},s)}}))),!1))},y=0;y<oo;y++)m(y);if(o=(0,r.__assign)({},h),p.size){var g={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var b=Boolean(d.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,r,o){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var a=s(o,t);for(var u in n)n[u].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function so(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var uo={animation:Tt((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=ao(t)),Fe(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Tt((function(e){var t=e.custom,n=e.visualElement,i=(0,r.__read)((0,At.oO)(),2),a=i[0],s=i[1],u=(0,o.useContext)(p.O);(0,o.useEffect)((function(){var e,r;n.isPresent=a;var o=null===(e=n.animationState)||void 0===e?void 0:e.setActive(qe.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===o||void 0===o||o.then(s))}),[a])}))};const co=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),lo=e=>co(e)&&e.hasOwnProperty("z"),fo=(e,t)=>Math.abs(e-t);function po(e,t){if(dn(e)&&dn(t))return fo(e,t);if(co(e)&&co(t)){const n=fo(e.x,t.x),r=fo(e.y,t.y),o=lo(e)&&lo(t)?fo(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var ho=function(){function e(e,t,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=yo(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,n=po(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=(0,Br.$B)().timestamp;o.history.push((0,r.__assign)((0,r.__assign)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,c=s.onMove;t||(u&&u(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),c&&c(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=vo(t,o.transformPagePoint),Xe(e)&&0===e.buttons?o.handlePointerUp(e,t):Br.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=yo(vo(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,a),i&&i(e,a)},!(Qe(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=vo(nt(e),this.transformPagePoint),s=a.point,u=(0,Br.$B)().timestamp;this.history=[(0,r.__assign)((0,r.__assign)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,yo(a,this.history)),this.removeListeners=gt(st(window,"pointermove",this.handlePointerMove),st(window,"pointerup",this.handlePointerUp),st(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Br.qY.update(this.updatePoint)},e}();function vo(e,t){return t?{point:t(e.point)}:e}function mo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yo(e,t){var n=e.point;return{point:n,delta:mo(n,bo(t)),offset:mo(n,go(t)),velocity:_o(t,.1)}}function go(e){return e[0]}function bo(e){return e[e.length-1]}function _o(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=bo(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>sr(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function wo(e){return e.max-e.min}
163function xo(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),po(e,t)<n}function ko(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Vt(t.min,t.max,e.origin),e.scale=wo(n)/wo(t),(xo(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Vt(n.min,n.max,e.origin)-e.originPoint,(xo(e.translate)||isNaN(e.translate))&&(e.translate=0)}function So(e,t,n,r){ko(e.x,t.x,n.x,null===r||void 0===r?void 0:r.originX),ko(e.y,t.y,n.y,null===r||void 0===r?void 0:r.originY)}function Eo(e,t,n){e.min=n.min+t.min,e.max=e.min+wo(t)}function Oo(e,t,n){e.min=t.min-n.min,e.max=e.min+wo(t)}function Po(e,t,n){Oo(e.x,t.x,n.x),Oo(e.y,t.y,n.y)}function To(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Co(e,t){var n,o=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(o=(n=(0,r.__read)([i,o],2))[0],i=n[1]),{min:o,max:i}}var Ao=.35;function jo(e,t,n){return{min:Ro(e,t),max:Ro(e,n)}}function Ro(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Mo(e){return[e("x"),e("y")]}function Do(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Io(e){return void 0===e||1===e}function Lo(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Io(t)||!Io(n)||!Io(r)}function No(e){return Lo(e)||Bo(e.x)||Bo(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Bo(e){return e&&"0%"!==e}
163function Fo(e,t,n){return n+t*(e-n)}function Zo(e,t,n,r,o){return void 0!==o&&(e=Fo(e,o,r)),Fo(e,n,r)+t}function zo(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Zo(e.min,t,n,r,o),e.max=Zo(e.max,t,n,r,o)}function Vo(e,t){var n=t.x,r=t.y;zo(e.x,n.translate,n.scale,n.originPoint),zo(e.y,r.translate,r.scale,r.originPoint)}function Uo(e,t){e.min=e.min+t,e.max=e.max+t}function Wo(e,t,n){var o=(0,r.__read)(n,3),i=o[0],a=o[1],s=o[2],u=void 0!==t[s]?t[s]:.5,c=Vt(e.min,e.max,u);zo(e,t[i],t[a],c,t.scale)}var Ho=["x","scaleX","originX"],qo=["y","scaleY","originY"];function $o(e,t){Wo(e.x,t,Ho),Wo(e.y,t,qo)}function Go(e,t){return Do(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Yo=new WeakMap,Ko=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new ho(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(nt(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=dt(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Mo((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ae.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];if(i)o=wo(i)*(parseFloat(o)/100)}n.originPoint[e]=o})),null===s||void 0===s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(qe.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var u=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===a||void 0===a||a(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null===s||void 0===s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null===o||void 0===o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(qe.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Xo(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?Vt(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Vt(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&_(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:To(e.x,r,i),y:To(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Ao),!1===e?e=0:!0===e&&(e=Ao),{x:jo(e,"left","right"),y:jo(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Mo((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!_(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Go(e,n),o=t.scroll;return o&&(Uo(r.x,o.x),Uo(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Co(e.x,t.x),y:Co(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Do(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,c=n.onDragTransitionEnd,l=this.constraints||{},f=Mo((function(n){var c;if(Xo(n,o,t.currentDirection)){var f=null!==(c=null===l||void 0===l?void 0:l[n])&&void 0!==c?c:{};u&&(f={min:0,max:0});var d=a?200:1e6,p=a?40:1e7,h=(0,r.__assign)((0,r.__assign)({type:"inertia",velocity:i?e[n]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),f);return t.startAxisValueAnimation(n,h)}}));return Promise.all(f).then(c)},e.prototype.startAxisValueAnimation=function(e,t){return Lr(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Mo((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Mo((function(n){if(Xo(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-Vt(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(_(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Mo((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=wo(e),o=wo(t);return o>r?n=zt(t.min,t.max-r,e.min):r>o&&(n=zt(e.min,e.max-o,t.min)),Rt(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),Mo((function(e){if(Xo(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(Vt(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Yo.set(this.visualElement,this);var n=st(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){_(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=Ye(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Mo((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,o=e.dragDirectionLock,i=void 0!==o&&o,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,f=void 0===l?Ao:l,d=e.dragMomentum,p=void 0===d||d;return(0,r.__assign)((0,r.__assign)({},e),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:f,dragMomentum:p})},e}();function Xo(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Qo={pan:Tt((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(null),c=(0,o.useContext)(f).transformPagePoint,l={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(l)}
163)),ut(a,"pointerdown",s&&function(e){u.current=new ho(e,l,{transformPagePoint:c})}),(0,mt.z)((function(){return u.current&&u.current.end()}))})),drag:Tt((function(e){var t=e.dragControls,n=e.visualElement,r=(0,C.h)((function(){return new Ko(n)}));(0,o.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},Jo=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var ei=function(e){var t=e.treeType,n=void 0===t?"":t,o=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,f=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,h=e.props,v=e.presenceId,m=e.blockInitialAnimation,y=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var b,_,w=!1,k=y.latestValues,S=y.renderState,P=function(){var e=Jo.map((function(){return new zr})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Jo.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+Jo[t]]=function(t){return e.add(t)},n["notify"+Jo[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,r.__spreadArray)([],(0,r.__read)(t),!1))}})),n}(),T=new Map,C=new Map,A={},j=(0,r.__assign)({},k);function R(){b&&w&&(M(),u(b,S,h.style,z.projection))}function M(){o(z,S,k,t,h)}function D(){P.notifyUpdate(k)}function I(e,t){var n=t.onChange((function(t){k[e]=t,h.onUpdate&&Br.ZP.update(D,!1,!0)})),r=t.onRenderRequest(z.scheduleRender);C.set(e,(function(){n(),r()}))}var L=d(h);for(var N in L){var B=L[N];void 0!==k[N]&&G(B)&&B.set(k[N],!1)}var F=E(h),Z=O(h),z=(0,r.__assign)((0,r.__assign)({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:v,shouldReduceMotion:g,variantChildren:Z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(b)},mount:function(e){w=!0,b=z.current=e,z.projection&&z.projection.mount(e),Z&&p&&!F&&(_=null===p||void 0===p?void 0:p.addVariantChild(z)),T.forEach((function(e,t){return I(t,e)})),null===p||void 0===p||p.children.add(z),z.setProps(h)},unmount:function(){var e;null===(e=z.projection)||void 0===e||e.unmount(),Br.qY.update(D),Br.qY.render(R),C.forEach((function(e){return e()})),null===_||void 0===_||_(),null===p||void 0===p||p.children.delete(z),P.clearAllListeners(),b=void 0,w=!1},addVariantChild:function(e){var t,n=z.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&n===e.treeType?f(z.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return Z?z:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return b},getStaticValue:function(e){return k[e]},setStaticValue:function(e,t){return k[e]=t},getLatestValues:function(){return k},setVisibility:function(e){z.isVisible!==e&&(z.isVisible=e,z.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(z,e,h,t)},measureViewportBox:function(){return s(b,h)},addValue:function(e,t){z.hasValue(e)&&z.removeValue(e),T.set(e,t),k[e]=t.get(),I(e,t)},removeValue:function(e){var t;T.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete k[e],l(e,S)},hasValue:function(e){return T.has(e)},getValue:function(e,t){var n=T.get(e);return void 0===n&&void 0!==t&&(n=Ur(t),z.addValue(e,n)),n},forEachValue:function(e){return T.forEach(e)},readValue:function(e){var n;return null!==(n=k[e])&&void 0!==n?n:c(b,e,t)},setBaseTarget:function(e,t){j[e]=t},getBaseTarget:function(e){if(i){var t=i(h,e);if(void 0!==t&&!G(t))return t}return j[e]}},P),{build:function(){return M(),S},scheduleRender:function(){Br.ZP.render(R,!1,!0)},syncRender:R,setProps:function(e){(e.transformTemplate||h.transformTemplate)&&z.scheduleRender(),h=e,P.updatePropListeners(e),A=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(G(i))e.addValue(o,i);else if(G(a))e.addValue(o,Ur(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Ur(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(z,d(h),A)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===p||void 0===p?void 0:p.getVariantContext();if(!F){var t=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var n={},r=0;r<ni;r++){var o=ti[r],i=h[o];(x(i)||!1===i)&&(n[o]=i)}return n}});return z}},ti=(0,r.__spreadArray)(["initial"],(0,r.__read)(no),!1),ni=ti.length;function ri(e){return"string"===typeof e&&e.startsWith("var(--")}var oi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ii(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var o=(0,r.__read)(function(e){var t=oi.exec(e);if(!t)return[,];var n=(0,r.__read)(t,3);return[n[1],n[2]]}(e),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():ri(a)?ii(a,t,n+1):a}}var ai,si=new Set(["width","height","top","left","right","bottom","x","y"]),ui=function(e){return si.has(e)},ci=function(e,t){e.set(t,!1),e.set(t)},li=function(e){return e===fe||e===se};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ai||(ai={}));var fi=function(e,t){return parseFloat(e.split(", ")[t])},di=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return fi(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?fi(a[1],e):0}},pi=new Set(["x","y","z"]),hi=z.filter((function(e){return!pi.has(e)}));var vi={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:di(4,13),y:di(5,14)},mi=function(e,t,n,o){void 0===n&&(n={}),void 0===o&&(o={}),t=(0,r.__assign)({},t),o=(0,r.__assign)({},o);var i=Object.keys(t).filter(ui),a=[],s=!1,u=[];
163if(i.forEach((function(r){var i=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],f=qr(l),d=t[r];if(Ze(d)){var p=d.length,h=null===d[0]?1:0;l=d[h],f=qr(l);for(var v=h;v<p;v++)c?qr(d[v]):(c=qr(d[v]))===f||li(f)&&li(c)}else c=qr(d);if(f!==c)if(li(f)&&li(c)){var m=i.get();"string"===typeof m&&i.set(parseFloat(m)),"string"===typeof d?t[r]=parseFloat(d):Array.isArray(d)&&c===se&&(t[r]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===d)?0===l?i.set(c.transform(l)):t[r]=f.transform(d):(s||(a=function(e){var t=[];return hi.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),u.push(r),o[r]=void 0!==o[r]?o[r]:t[r],ci(i,d))}})),u.length){var c=u.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=vi[e](r,i)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);ci(r,s[n]),e[n]=vi[n](u,i)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.__read)(t,2),o=n[0],i=n[1];e.getValue(o).set(i)})),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:l,transitionEnd:o}}return{target:t,transitionEnd:o}};function yi(e,t,n,r){return function(e){return Object.keys(e).some(ui)}(t)?mi(e,t,n,r):{target:t,transitionEnd:r}}var gi=function(e,t,n,o){var i=function(e,t,n){var o,i=(0,r.__rest)(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.__assign)({},n)),e.forEachValue((function(e){var t=e.get();if(ri(t)){var n=ii(t,a);n&&e.set(n)}})),i){var u=i[s];if(ri(u)){var c=ii(u,a);c&&(i[s]=c,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(e,t,o);return yi(e,t=i.target,n,o=i.transitionEnd)};var bi={treeType:"dom",readValueFromInstance:function(e,t){if(W(t)){var n=Tr(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(K(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Go(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=t.transition,s=t.transitionEnd,u=(0,r.__rest)(t,["transition","transitionEnd"]),c=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=Xr(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(u,a||{},e);if(i&&(s&&(s=i(s)),u&&(u=i(u)),c&&(c=i(c))),o){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var c=0;c<u;c++){var l=s[c],f=t[l],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(o=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==o?o:t[l]),void 0!==d&&null!==d&&("string"===typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Nr(d))?d=parseFloat(d):!Gr(d)&&fn.test(f)&&(d=Cr(l,f)),e.addValue(l,Ur(d)),null!==(i=(a=n)[l])&&void 0!==i||(a[l]=d),e.setBaseTarget(l,d))}}(e,u,c);var l=gi(e,u,c,s);s=l.transitionEnd,u=l.target}return(0,r.__assign)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:Ne,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),me(t,n,r,o.transformTemplate)},render:De},_i=ei(bi),wi=ei((0,r.__assign)((0,r.__assign)({},bi),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return W(t)?(null===(n=Tr(t))||void 0===n?void 0:n.default)||0:(t=Ie.has(t)?t:Me(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Be,build:function(e,t,n,r,o){Te(t,n,r,o.transformTemplate)},render:Le})),xi=function(e,t){return B(e)?wi(t,{enableHardwareAcceleration:!1}):_i(t,{enableHardwareAcceleration:!0})};function ki(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Si={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!se.test(e))return e;e=parseFloat(e)}var n=ki(e,t.target.x),r=ki(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Ei="_$css",Oi={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(oi,(function(e){return a.push(e),Ei})));var s=fn.parse(e);if(s.length>5)return o;var u=fn.createTransformer(e),c="number"!==typeof s[0]?1:0,l=r.x.scale*n.x,f=r.y.scale*n.y;s[0+c]/=l,s[1+c]/=f;var d=Vt(l,f,.5);"number"===typeof s[2+c]&&(s[2+c]/=d),"number"===typeof s[3+c]&&
163(s[3+c]/=d);var p=u(s);if(i){var h=0;p=p.replace(Ei,(function(){var e=a[h];return h++,e}))}return p}},Pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=o.projection;e=Ti,Object.assign(F,e),u&&((null===i||void 0===i?void 0:i.group)&&i.group.add(u),(null===a||void 0===a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){t.safeToRemove()})),u.setOptions((0,r.__assign)((0,r.__assign)({},u.options),{onExitComplete:function(){return t.safeToRemove()}}))),A.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Br.ZP.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(o),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null===e||void 0===e||e()},t.prototype.render=function(){return null},t}(o.Component);var Ti={borderRadius:(0,r.__assign)((0,r.__assign)({},Si),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Si,borderTopRightRadius:Si,borderBottomLeftRadius:Si,borderBottomRightRadius:Si,boxShadow:Oi},Ci={measureLayout:function(e){var t=(0,r.__read)((0,At.oO)(),2),n=t[0],i=t[1],a=(0,o.useContext)(R.p);return o.createElement(Pi,(0,r.__assign)({},e,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(M),isPresent:n,safeToRemove:i}))}};var Ai=["TopLeft","TopRight","BottomLeft","BottomRight"],ji=Ai.length,Ri=function(e){return"string"===typeof e?parseFloat(e):e},Mi=function(e){return"number"===typeof e||se.test(e)};function Di(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Ii=Ni(0,.5,An),Li=Ni(.5,.95,Sn);function Ni(e,t,n){return function(r){return r<e?0:r>t?1:n(zt(e,t,r))}}function Bi(e,t){e.min=t.min,e.max=t.max}function Fi(e,t){Bi(e.x,t.x),Bi(e.y,t.y)}function Zi(e,t,n,r,o){return e=Fo(e-=t,1/n,r),void 0!==o&&(e=Fo(e,1/o,r)),e}function zi(e,t,n,o,i){var a=(0,r.__read)(n,3),s=a[0],u=a[1],c=a[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),ae.test(t)&&(t=parseFloat(t),t=Vt(a.min,a.max,t/100)-a.min),"number"===typeof t){var s=Vt(i.min,i.max,r);e===i&&(s-=t),e.min=Zi(e.min,t,n,s,o),e.max=Zi(e.max,t,n,s,o)}}(e,t[s],t[u],t[c],t.scale,o,i)}var Vi=["x","scaleX","originX"],Ui=["y","scaleY","originY"];function Wi(e,t,n,r){zi(e.x,t,Vi,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),zi(e.y,t,Ui,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function Hi(e){return 0===e.translate&&1===e.scale}function qi(e){return Hi(e.x)&&Hi(e.y)}function $i(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Gi=function(){function e(){this.members=[]}return e.prototype.add=function(e){Fr(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Zr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEac
163h((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Yi(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}var c=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(c,", ").concat(l,")"))?"none":i}var Ki=function(e,t){return e.depth-t.depth},Xi=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Fr(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Zr(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ki),this.isDirty=!1,this.children.forEach(e)},e}();function Qi(e){var t=e.attachResizeListener,n=e.defaultParent,o=e.measureScroll,i=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,o){var i=this;void 0===t&&(t={}),void 0===o&&(o=null===n||void 0===n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(ia),i.nodes.forEach(aa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=o?o.root||o:this,this.path=o?(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xi)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new zr),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.eventHandlers.get(e);null===o||void 0===o||o.notify.apply(o,(0,r.__spreadArray)([],(0,r.__read)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var o,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,s=a.layoutId,u=a.layout,c=a.visualElement;if(c&&!c.getInstance()&&c.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(u||s)&&(this.isLayoutDirty=!0),t){var l,f=function(){return i.root.updateBlockedByResize=!1};t(e,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(f,250),A.hasAnimatedSinceResize&&(A.hasAnimatedSinceResize=!1,i.nodes.forEach(oa))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&c&&(s||u)&&this.addEventListener("didUpdate",(function(e){var t,n,o,a,s,u=e.delta,l=e.hasLayoutChanged,f=e.hasRelativeTargetChanged,d=e.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var p=null!==(n=null!==(t=i.options.transition)&&void 0!==t?t:c.getDefaultTransition())&&void 0!==n?n:da,h=c.getProps(),v=h.onLayoutAnimationStart,m=h.onLayoutAnimationComplete,y=!i.targetLayout||!$i(i.targetLayout,d)||f,g=!l&&f;if((null===(o=i.resumeFrom)||void 0===o?void 0:o.instance)||g||l&&(y||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(u,g);var b=(0,r.__assign)((0,r.__assign)({},Ir(p,"layout")),{onPlay:v,onComplete:m});c.shouldReduceMotion&&(b.delay=0,b.type=!1),i.startAnimation(b)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(s=(a=i.options).onExitComplete)||void 0===s||s.call(a));i.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Br.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}
163,e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sa))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===c||void 0===c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(na);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(pa),this.potentialNodes.clear()),this.nodes.forEach(ra),this.nodes.forEach(Ji),this.nodes.forEach(ea),this.clearAllSnapshots(),Br.iW.update(),Br.iW.preRender(),Br.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(ta),this.sharedNodes.forEach(ua)},e.prototype.scheduleUpdateProjection=function(){Br.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Br.ZP.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));va(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var n=this.measure();va(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null===r||void 0===r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=o(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!qi(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null===r||void 0===r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||No(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Uo(t.x,n.x),Uo(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Fi(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options,a=r.isScrollRoot;if(r!==this.root&&o&&i.layoutScroll){if(a){Fi(t,e);var s=this.root.scroll;s&&(Uo(t.x,-s.x),Uo(t.y,-s.y))}Uo(t.x,o.x),Uo(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Fi(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&$o(n,{x:-o.scroll.x,y:-o.scroll.y}),No(o.latestValues)&&$o(n,o.latestValues)}return No(this.latestValues)&&$o(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Fi(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&No(o.latestValues)){Lo(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Fi(i,o.measure()),Wi(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return No(this.latestValues)&&Wi(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Po(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Fi(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,Eo(t.x,n.x,r.x),Eo(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Fi(this.target,this.layout.actual),Vo(this.target,this.targetDelta)):Fi(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Po(this.relativeTargetOrigin,this.target,this.relativeParent.target),Fi(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!No(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Fi(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,u;t.x=t.y=1;for(var c=0;c<a;c++)u=(s=n[c]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&$o(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Vo(e,u)),r&&No(s.latestValues)&&$o(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;So(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Yi(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,o=this;void 0===t&&(t=!1);var i=this.snapshot,a=(null===i||void 0===i?void 0:i.latestValues)||{},s=(0,r.__assign)({},this.latestValues),u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c={x:{min:0,max:0},y:{min:0,max:0}}
163,l=null===i||void 0===i?void 0:i.isShared,f=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(l&&!f&&!0===this.options.crossfade&&!this.path.some(fa));this.animationProgress=0,this.mixTargetDelta=function(t){var n,r=t/1e3;ca(u.x,e.x,r),ca(u.y,e.y,r),o.setTargetDelta(u),o.relativeTarget&&o.relativeTargetOrigin&&o.layout&&(null===(n=o.relativeParent)||void 0===n?void 0:n.layout)&&(Po(c,o.layout.actual,o.relativeParent.layout.actual),function(e,t,n,r){la(e.x,t.x,n.x,r),la(e.y,t.y,n.y,r)}(o.relativeTarget,o.relativeTargetOrigin,c,r)),l&&(o.animationValues=s,function(e,t,n,r,o,i){var a,s,u,c;o?(e.opacity=Vt(0,null!==(a=n.opacity)&&void 0!==a?a:1,Ii(r)),e.opacityExit=Vt(null!==(s=t.opacity)&&void 0!==s?s:1,0,Li(r))):i&&(e.opacity=Vt(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var l=0;l<ji;l++){var f="border".concat(Ai[l],"Radius"),d=Di(t,f),p=Di(n,f);void 0===d&&void 0===p||(d||(d=0),p||(p=0),0===d||0===p||Mi(d)===Mi(p)?(e[f]=Math.max(Vt(Ri(d),Ri(p),r),0),(ae.test(p)||ae.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||n.rotate)&&(e.rotate=Vt(t.rotate||0,n.rotate||0,r))}(s,a,o.latestValues,r,d,f)),o.root.scheduleUpdateProjection(),o.scheduleRender(),o.animationProgress=r},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,o=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Br.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Br.ZP.update((function(){A.hasAnimatedSinceResize=!0,o.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=G(e)?e:Ur(e);return Lr("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,(0,r.__assign)((0,r.__assign)({},e),{onUpdate:function(t){var n;o.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),o.completeAnimation()}})),o.resumingFrom&&(o.resumingFrom.currentAnimation=o.currentAnimation),o.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(Fi(t,n),$o(t,o),So(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gi),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Z.length;r++){var o="rotate"+Z[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null===e||void 0===e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Ve(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var l={};return this.options.layoutId&&(l.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,l.pointerEvents=Ve(e.pointerEvents)||""),this.hasProjected&&!No(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1),l}var f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Yi(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(o=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=c===this?null!==(i=f.o
163pacity)&&void 0!==i?i:"":null!==(a=f.opacityExit)&&void 0!==a?a:0,F)if(void 0!==f[v]){var m=F[v],y=m.correct,g=m.applyTo,b=y(f[v],c);if(g)for(var _=g.length,w=0;w<_;w++)s[g[w]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=c===this?Ve(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(na),this.root.sharedNodes.clear()},e}()}function Ji(e){e.updateLayout()}function ea(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;"size"===e.options.animationType?Mo((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=wo(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Mo((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=wo(s[e]);t.max=t.min+n}));var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};So(c,s,i.layout);var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?So(l,e.applyTransform(u,!0),i.measured):So(l,s,i.layout);var f=!qi(c),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,v=p.layout;if(h&&v){var m={x:{min:0,max:0},y:{min:0,max:0}};Po(m,i.layout,h.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};Po(y,s,v.actual),$i(m,y)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:l,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function ta(e){e.clearSnapshot()}function na(e){e.clearMeasurements()}function ra(e){var t=e.options.visualElement;(null===t||void 0===t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function oa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ia(e){e.resolveTargetDelta()}function aa(e){e.calcProjection()}function sa(e){e.resetRotation()}function ua(e){e.removeLeadSnapshot()}function ca(e,t,n){e.translate=Vt(t.translate,0,n),e.scale=Vt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function la(e,t,n,r){e.min=Vt(t.min,n.min,r),e.max=Vt(t.max,n.max,r)}function fa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var da={duration:.45,ease:[.4,0,.1,1]};function pa(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function ha(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function va(e){ha(e.x),ha(e.y)}var ma=Qi({attachResizeListener:function(e,t){return Ye(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ya={current:void 0},ga=Qi({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ya.current){var e=new ma(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ya.current=e}return ya.current},resetTransform:function(e,t){e.style.transform=null!==t&&void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),ba=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},uo),Ct),Qo),Ci),_a=L((function(e,t){return function(e,t,n,o,i){var a=t.forwardMotionProps,s=void 0!==a&&a,u=B(e)?$e:Ge;return(0,r.__assign)((0,r.__assign)({},u),{preloadedFeatures:n,useRender:je(s),createVisualElement:o,projectionNodeConstructor:i,Component:e})}(e,t,ba,xi,ga)}))},11741:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r="undefined"!==typeof document},49304:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(83454),o=("undefined"===typeof r||r.env,"production")},96681:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(67294);function o(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},76316:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(96681),o=0,i=function(){return o++},a=function(){return(0,r.h)(i)}},58868:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});
163var r=n(67294),o=n(11741).j?r.useLayoutEffect:r.useEffect},65411:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294);function o(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},89073:function(e,t,n){"use strict";n.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return g}});const r=1/60*1e3,o="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(o())),r);let a=!0,s=!1,u=!1;const c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],f=l.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const u=s&&o,c=u?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:u=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(u),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(u))}}};return s}((()=>s=!0)),e)),{}),d=l.reduce(((e,t)=>{const n=f[t];return e[t]=(e,t=!1,r=!1)=>(s||y(),n.schedule(e,t,r)),e}),{}),p=l.reduce(((e,t)=>(e[t]=f[t].cancel,e)),{}),h=l.reduce(((e,t)=>(e[t]=()=>f[t].process(c),e)),{}),v=e=>f[e].process(c),m=e=>{s=!1,c.delta=a?r:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(v),u=!1,s&&(a=!1,i(m))},y=()=>{s=!0,a=!0,u||i(m)},g=()=>c;var b=d},90111:function(e,t,n){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{P:function(){return o}})},53416:function(e,t,n){"use strict";n.d(t,{x0:function(){return r}});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")},53920:function(e,t,n){"use strict";n.d(t,{io:function(){return Se}});var r={};n.r(r),n.d(r,{Decoder:function(){return me},Encoder:function(){return he},PacketType:function(){return pe},protocol:function(){return de}});const o=Object.create(null);o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const i=Object.create(null);Object.keys(o).forEach((e=>{i[o[e]]=e}));const a={type:"error",data:"parser error"},s="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),u="function"===typeof ArrayBuffer,c=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,l=({type:e,data:t},n,r)=>s&&t instanceof Blob?n?r(t):f(t,r):u&&(t instanceof ArrayBuffer||c(t))?n?r(t):f(new Blob([t]),r):r(o[e]+(t||"")),f=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function d(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let p;const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let Oe=0;Oe<h.length;Oe++)v[h.charCodeAt(Oe)]=Oe;const m="function"===typeof ArrayBuffer,y=(e,t)=>{if("string"!==typeof e)return{type:"message",data:b(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:g(e.substring(1),t)};return i[n]?e.length>1?{type:i[n],data:e.substring(1)}:{type:i[n]}:a},g=(e,t)=>{if(m){const n=(e=>{let t,n,r,o,i,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),l=new Uint8Array(c);for(t=0;t<s;t+=4)n=v[e.charCodeAt(t)],r=v[e.charCodeAt(t+1)],o=v[e.charCodeAt(t+2)],i=v[e.charCodeAt(t+3)],l[u++]=n<<2|r>>4,l[u++]=(15&r)<<4|o>>2,l[u++]=(3&o)<<6|63&i;return c})(e);return b(n,t)}return{base64:!0,data:e}},b=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,_=String.fromCharCode(30);function w(){return new TransformStream({transform(e,t){!function(e,t){s&&e.data instanceof Blob?e.data.arrayBuffer().then(d).then(t):u&&(e.data instanceof ArrayBuffer||c(e.data))?t(d(e.data)):l(e,!1,(e=>{p||(p=new TextEncoder),t(p.encode(e))}))}(e,(n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!==typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)}))}})}let x;function k(e){return e.reduce(((e,t)=>e+t.length),0)}function S(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function E(e){if(e)return function(e){for(var t in E.prototype)e[t]=E.prototype[t];return e}(e)}E.prototype.on=E.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},E.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},E.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},E.prototype.emitReserved=E.prototype.emit,E.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},E.prototype.hasListeners=function(e){return!!this.listeners(e).length};const O="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function P(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const T=O.setTimeout,C=O.clearTimeout;function A(e,t){t.useNativeTimers?(e.setTimeoutFn=T.bind(O),e.clearTimeoutFn=C.bind(O)):(e.setTimeoutFn=O.setTimeout.bind(O),e.clearTimeoutFn=O.clearTimeout.bind(O))}
163class j extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class R extends E{constructor(e){super(),this.writable=!1,A(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new j(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=y(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const M="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),D={};let I,L=0,N=0;function B(e){let t="";do{t=M[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function F(){const e=B(+new Date);return e!==I?(L=0,I=e):e+"."+B(L++)}for(;N<64;N++)D[M[N]]=N;let Z=!1;try{Z="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Ee){}const z=Z;function V(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||z))return new XMLHttpRequest}catch(n){}if(!t)try{return new(O[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function U(){}const W=null!=new V({xdomain:!1}).responseType;
163class H extends E{constructor(e,t){super(),A(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=P(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new V(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((()=>{this.onError(r)}),0)}"undefined"!==typeof document&&(this.index=H.requestsCount++,H.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=U,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete H.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(H.requestsCount=0,H.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",q);else if("function"===typeof addEventListener){addEventListener("onpagehide"in O?"pagehide":"unload",q,!1)}function q(){for(let e in H.requests)H.requests.hasOwnProperty(e)&&H.requests[e].abort()}const $="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),G=O.WebSocket||O.MozWebSocket;n(48764).lW;const Y="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const K={websocket:class extends R{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=Y?{}:P(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Y?new G(e,t,n):t?new G(e,t):new G(e)}catch(Ee){return this.emitReserved("error",Ee)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;l(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(t){}r&&$((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=F()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!G}},webtransport:class extends R{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){x||(x=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(s,u){for(n.push(s);;){if(0===r){if(k(n)<1)break;const e=S(n,1);i=128===(128&e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(k(n)<2)break;const e=S(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(k(n)<8)break;const e=S(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){u.enqueue(a);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(k(n)<o)break;const e=S(n,o);u.enqueue(y(i?e:x.decode(e),t)),r=0}if(0===o||o>e){u.enqueue(a);break}}}})}
163(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=w();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const o=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),o())})).catch((e=>{}))};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this.writer.write(n).then((()=>{r&&$((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends R{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=W&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(_),r=[];for(let o=0;o<n.length;o++){const e=y(n[o],t);if(r.push(e),"error"===e.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach(((e,i)=>{l(e,!1,(e=>{r[i]=e,++o===n&&t(r.join(_))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=F()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new H(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},X=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Q=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function J(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=X.exec(e||""),i={},a=14;for(;a--;)i[Q[a]]=o[a]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}class ee extends E{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=J(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=J(t.host).host),A(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let e=n[r].split("=");
163t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new K[e](n)}open(){let e;if(this.opts.rememberUpgrade&&ee.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),n=!1;ee.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ee.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function o(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function u(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s
163),this.off("upgrading",u)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",ee.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"===typeof(t=r)?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){ee.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}ee.protocol=4;ee.protocol;const te="function"===typeof ArrayBuffer,ne=Object.prototype.toString,re="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===ne.call(Blob),oe="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===ne.call(File);function ie(e){return te&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||re&&e instanceof Blob||oe&&e instanceof File}function ae(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(ae(e[t]))return!0;return!1}if(ie(e))return!0;
vendor: 4,487 bytes, line 163
163if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return ae(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ae(e[n]))return!0;return!1}function se(e){const t=[],n=e.data,r=e;return r.data=ue(n,t),r.attachments=t.length,{packet:r,buffers:t}}function ue(e,t){if(!e)return e;if(ie(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=ue(e[r],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ue(e[r],t));return n}return e}function ce(e,t){return e.data=le(e.data,t),delete e.attachments,e}function le(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=le(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=le(e[n],t));return e}const fe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],de=5;var pe;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(pe||(pe={}));class he{constructor(e){this.replacer=e}encode(e){return e.type!==pe.EVENT&&e.type!==pe.ACK||!ae(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===pe.EVENT?pe.BINARY_EVENT:pe.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==pe.BINARY_EVENT&&e.type!==pe.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=se(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function ve(e){return"[object Object]"===Object.prototype.toString.call(e)}class me extends E{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===pe.BINARY_EVENT;n||t.type===pe.BINARY_ACK?(t.type=n?pe.EVENT:pe.ACK,this.reconstructor=new ye(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!ie(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===pe[n.type])throw new Error("unknown packet type "+n.type);if(n.type===pe.BINARY_EVENT||n.type===pe.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!me.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case pe.CONNECT:return ve(t);case pe.DISCONNECT:return void 0===t;case pe.CONNECT_ERROR:return"string"===typeof t||ve(t);case pe.EVENT:case pe.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===fe.indexOf(t[0]));case pe.ACK:case pe.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ye{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=ce(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ge(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const be=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});
163class _e extends E{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[ge(e,"open",this.onopen.bind(this)),ge(e,"packet",this.onpacket.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(be.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:pe.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"===typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,o)=>{t.push(((e,t)=>n?e?o(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:pe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case pe.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case pe.EVENT:case pe.BINARY_EVENT:this.onevent(e);break;case pe.ACK:case pe.BINARY_ACK:this.onack(e);break;case pe.DISCONNECT:this.ondisconnect();break;case pe.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;
vendor: 5,736 bytes, line 163
163return function(...r){n||(n=!0,t.packet({type:pe.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:pe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function we(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}we.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},we.prototype.reset=function(){this.attempts=0},we.prototype.setMin=function(e){this.ms=e},we.prototype.setMax=function(e){this.max=e},we.prototype.setJitter=function(e){this.jitter=e};class xe extends E{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,A(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new we({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||r;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ee(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=ge(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=ge(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(ge(e,"ping",this.onping.bind(this)),ge(e,"data",this.ondata.bind(this)),ge(e,"error",this.onerror.bind(this)),ge(e,"close",this.onclose.bind(this)),ge(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){$((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new _e(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;
163n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ke={};function Se(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=J(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=ke[o]&&i in ke[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new xe(r,t):(ke[o]||(ke[o]=new xe(r,t)),s=ke[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(Se,{Manager:xe,Socket:_e,io:Se,connect:Se})},38776:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r="Invariant failed";function o(e,t){if(!e)throw new Error(r)}},1730:function(e){"use strict";e.exports=JSON.parse('{"name":"twilio-video","title":"Twilio Video","description":"Twilio Video JavaScript Library","version":"2.28.1","homepage":"https://twilio.com","author":"Mark Andrus Roberts <[email protected]>","contributors":["Ryan Rowland <[email protected]>","Manjesh Malavalli <[email protected]>","Makarand Patwardhan <[email protected]>"],"keywords":["twilio","webrtc","library","javascript","video","rooms"],"repository":{"type":"git","url":"https://github.com/twilio/twilio-video.js.git"},"devDependencies":{"@babel/core":"^7.14.2","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.14.2","@babel/preset-typescript":"^7.13.0","@types/express":"^4.11.0","@types/node":"^8.5.1","@types/selenium-webdriver":"^3.0.8","@types/ws":"^3.2.1","@typescript-eslint/eslint-plugin":"^4.13.0","@typescript-eslint/parser":"^4.0.0","babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^17.0.0","cheerio":"^0.22.0","cors":"^2.8.5","electron":"^17.2.0","envify":"^4.0.0","eslint":"^6.2.1","eslint-config-standard":"^14.0.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^9.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","express":"^4.16.2","glob":"^7.1.7","ink-docstrap":"^1.3.2","inquirer":"^7.0.0","is-docker":"^2.0.0","jsdoc":"^3.5.5","jsdoc-babel":"^0.5.0","json-loader":"^0.5.7","karma":"6.4.1","karma-browserify":"^8.0.0","karma-chrome-launcher":"^2.0.0","karma-edgium-launcher":"^4.0.0-0","karma-electron":"^6.1.0","karma-firefox-launcher":"^1.3.0","karma-htmlfile-reporter":"^0.3.8","karma-junit-reporter":"^1.2.0","karma-mocha":"^1.3.0","karma-safari-launcher":"^1.0.0","karma-spec-reporter":"0.0.32","karma-typescript":"^5.5.1","karma-typescript-es6-transform":"^5.5.1","mocha":"^3.2.0","mock-require":"^3.0.3","ncp":"^2.0.0","no
163de-http-server":"^8.1.2","npm-run-all":"^4.0.2","nyc":"^15.1.0","requirejs":"^2.3.3","rimraf":"^2.6.1","simple-git":"^1.126.0","sinon":"^4.0.1","ts-node":"4.0.1","tslint":"5.8.0","twilio":"^3.49.0","twilio-release-tool":"^1.0.2","typescript":"4.2.2","uglify-js":"^2.8.22","vinyl-fs":"^2.4.4","vinyl-source-stream":"^1.1.0","watchify":"^3.11.1","webrtc-adapter":"^7.7.1"},"engines":{"node":">=0.12"},"license":"BSD-3-Clause","main":"./es5/index.js","types":"./tsdef/index.d.ts","scripts":{"lint:js":"eslint ./lib ./test/*.js ./docker/**/*.js ./test/framework/*.js ./test/lib/*.js ./test/integration/** ./test/unit/** ","lint:ts":"eslint ./tsdef/*.ts ./lib/**/*.ts","lint":"npm-run-all lint:js lint:ts","printVersion":"node --version && npm --version","test:unit":"npm-run-all printVersion build:es5 && nyc --report-dir=./coverage --include=lib/**/* --reporter=html --reporter=lcov --reporter=text mocha -r ts-node/register ./test/unit/*","test:unit:quick":"nyc --report-dir=./coverage --include=lib/**/* --reporter=html --reporter=lcov mocha -r ts-node/register","test:serversiderender":"mocha ./test/serversiderender/index.js","test:integration:adapter":"node ./scripts/karma.js karma/integration.adapter.conf.js","test:integration":"npm run build:es5 && node ./scripts/karma.js karma/integration.conf.js","test:umd:install":"npm install [email protected]","test:umd":"mocha ./test/umd/index.js","test:crossbrowser:build:clean":"rimraf ./test/crossbrowser/lib ./test/crossbrowser/src/browser/index.js","test:crossbrowser:build:lint":"cd ./test/crossbrowser && tslint --project tsconfig.json","test:crossbrowser:build:tsc":"cd ./test/crossbrowser && tsc","test:crossbrowser:build:browser":"cd ./test/crossbrowser && browserify lib/crossbrowser/src/browser/index.js > src/browser/index.js","test:crossbrowser:build":"npm-run-all test:crossbrowser:build:*","test:crossbrowser:test":"cd ./test/crossbrowser && mocha --compilers ts:ts-node/register test/integration/spec/**/*.ts","test:crossbrowser":"npm-run-all test:crossbrowser:*","test:sdkdriver:build:clean":"rimraf ./test/lib/sdkdriver/lib ./test/lib/sdkdriver/test/integration/browser/index.js","test:sdkdriver:build:lint":"cd ./test/lib/sdkdriver && tslint --project tsconfig.json","test:sdkdriver:build:tsc":"cd ./test/lib/sdkdriver && tsc --rootDir src","test:sdkdriver:build":"npm-run-all test:sdkdriver:build:*","test:sdkdriver:test:unit":"cd ./test/lib/sdkdriver && mocha --compilers ts:ts-node/register test/unit/spec/**/*.ts","test:sdkdriver:test:integration:browser":"cd ./test/lib/sdkdriver/test/integration && browserify browser/browser.js > browser/index.js","test:sdkdriver:test:integration:run":"cd ./test/lib/sdkdriver && mocha --compilers ts:ts-node/register test/integration/spec/**/*.ts","test:sdkdriver:test:integration":"npm-run-all test:sdkdriver:test:integration:*","test:sdkdriver:test":"npm-run-all test:sdkdriver:test:*","test:sdkdriver":"npm-run-all test:sdkdriver:*","test:framework:angular:install":"cd ./test/framework/twilio-video-angular && rimraf ./node_modules package-lock.json && npm install","test:framework:angular:run":"mocha ./test/framework/twilio-video-angular.js","test:framework:angular":"npm-run-all test:framework:angular:*","test:framework:no-framework:run":"mocha ./test/framework/twilio-video-no-framework.js","test:framework:no-framework":"npm-run-all test:framework:no-framework:*","test:framework:react:install":"cd ./test/framework/twilio-video-react && rimraf ./node_modules package-lock.json && npm install","test:framework:react:test":"node ./scripts/framework.js twilio-video-react","test:framework:react:build":"cd ./test/framework/twilio-video-react && npm run build","test:framework:react:run":"mocha ./test/framework/twilio-video-react.js","test:framework:react":"npm-run-all test:framework:react:*","test:framework:install":"npm install chromedriver && npm install selenium-webdriver && npm install geckodriver && npm install puppeteer","test:framework":"npm-run-all test:framework:install test:framework:no-framework test:framework:react","test":"npm-run-all test:unit test:integration","build:es5":"rimraf ./es5 && mkdir -p es5 && tsc tsdef/twil
163io-video-tests.ts --noEmit --lib es2018,dom && tsc","build:js":"node ./scripts/build.js ./src/twilio-video.js ./LICENSE.md ./dist/twilio-video.js","build:min.js":"uglifyjs ./dist/twilio-video.js -o ./dist/twilio-video.min.js --comments \\"/^! twilio-video.js/\\" -b beautify=false,ascii_only=true","build":"npm-run-all clean lint docs test:unit test:integration build:es5 build:js build:min.js test:umd","build:quick":"npm-run-all clean lint docs build:es5 build:js build:min.js","docs":"node ./scripts/docs.js ./dist/docs","watch":"tsc -w","clean":"rimraf ./coverage ./es5 ./dist"},"dependencies":{"events":"^3.3.0","util":"^0.12.4","ws":"^7.4.6","xmlhttprequest":"^1.8.0"},"browser":{"ws":"./src/ws.js","xmlhttprequest":"./src/xmlhttprequest.js"}}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.