/*! For license information please see 2.4eb4f33a.chunk.js.LICENSE.txt */ (this.webpackJsonpserver=this.webpackJsonpserver||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(52)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){e.exports=n(61)},function(e,t,n){e.exports=n(57)()},,function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(53)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var u=e[o](a),l=u.value}catch(s){return void n(s)}u.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function u(e){r(a,i,o,u,l,"next",e)}function l(e){r(a,i,o,u,l,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return i}))},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}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},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,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function D(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,i=t.mapStateToPropsFactories,o=void 0===i?R:i,a=t.mapDispatchToPropsFactories,u=void 0===a?M:a,l=t.mergePropsFactories,s=void 0===l?A:l,c=t.selectorFactory,p=void 0===c?L:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,c=void 0===l||l,h=a.areStatesEqual,v=void 0===h?D:h,m=a.areOwnPropsEqual,g=void 0===m?T:m,y=a.areStatePropsEqual,b=void 0===y?T:y,w=a.areMergedPropsEqual,k=void 0===w?T:w,x=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=z(e,o,"mapStateToProps"),S=z(t,u,"mapDispatchToProps"),E=z(n,s,"mergeProps");return r(p,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:S,initMergeProps:E,pure:c,areStatesEqual:v,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:k},x))}}var W=B();var U,$=n(6);U=$.unstable_batchedUpdates,a=U},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})(e)}n.d(t,"a",(function(){return r}))},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,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}e.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function d(){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 p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var s=l.length,c=m(l,s);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return h(this,e,!0)},u.prototype.rawListeners=function(e){return h(this,e,!1)},u.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";e.exports=n(59)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25);function i(e,t){if(e){if("string"===typeof e)return Object(r.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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(14),i=n(2),o=n(93),a=n(1),u=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,l=e.step,s=void 0===l?5:l,c=Object(i.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function d(e,t){var r=u.indexOf(t);return r===u.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[u[r+1]]?n[u[r+1]]:t)-s/100).concat(o,")")}return Object(a.a)({keys:u,values:n,up:f,down:function(e){var t=u.indexOf(e)+1,r=n[u[t]];return t===u.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-s/100).concat(o,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}function s(e,t,n){var i;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var c=n(94),f={black:"#000",white:"#fff"},d={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"},p={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"},h={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"},v={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"},m={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"},g={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"};function b(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 w(e){if(e.type)return e;if("#"===e.charAt(0))return w(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(Object(c.a)(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function k(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 x(e){var t="hsl"===(e=w(e)).type?w(function(e){var t=(e=w(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(u+="a",l.push(t[3])),k({type:u,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 _(e,t){if(e=w(e),t=b(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 k(e)}function S(e,t){if(e=w(e),t=b(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 k(e)}var E={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:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},T={text:{primary:f.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:d[800],default:"#303030"},action:{active:f.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 O(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=S(e.main,i):"dark"===t&&(e.dark=_(e.main,o)))}function C(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,u=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,l=e.error,s=void 0===l?{light:v[300],main:v[500],dark:v[700]}:l,b=e.warning,w=void 0===b?{light:m[300],main:m[500],dark:m[700]}:b,k=e.info,_=void 0===k?{light:g[300],main:g[500],dark:g[700]}:k,S=e.success,C=void 0===S?{light:y[300],main:y[500],dark:y[700]}:S,j=e.type,P=void 0===j?"light":j,M=e.contrastThreshold,R=void 0===M?3:M,N=e.tonalOffset,A=void 0===N?.2:N,F=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function I(e){return function(e,t){var n=x(e),r=x(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,T.text.primary)>=R?T.text.primary:E.text.primary}var L=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=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(c.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(c.a)(5,JSON.stringify(e.main)));return O(e,"light",n,A),O(e,"dark",r,A),e.contrastText||(e.contrastText=I(e.main)),e},z={dark:T,light:E};return Object(o.a)(Object(a.a)({common:f,type:P,primary:L(n),secondary:L(u,"A400","A200","A700"),error:L(s),warning:L(w),info:L(_),success:L(C),grey:d,contrastThreshold:R,getContrastText:I,augmentColor:L,tonalOffset:A},z[P]),F)}function j(e){return Math.round(1e5*e)/1e5}var P={textTransform:"uppercase"};function M(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,u=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,l=n.fontSize,s=void 0===l?14:l,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,g=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,k=n.pxToRem,x=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=s/14,S=k||function(e){return"".concat(e/b*_,"rem")},E=function(e,t,n,r,i){return Object(a.a)({fontFamily:u,fontWeight:e,fontSize:S(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===u?{letterSpacing:"".concat(j(r/t),"em")}:{},i,w)},T={h1:E(f,96,1.167,-1.5),h2:E(f,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(v,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(v,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(v,14,1.75,.4,P),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,P)};return Object(o.a)(Object(a.a)({htmlFontSize:b,pxToRem:S,round:j,fontFamily:u,fontSize:s,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:g},T),x,{clone:!1})}function R(){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(",")}var N=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},F=n(21),I=(n(20),n(13));n(4);var L=function(e,t){return t?Object(o.a)(e,t,{clone:!1}):e},z={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(z[e],"px)")}};var B={m:"margin",p:"padding"},W={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},U={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$=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(!U[e])return[e];e=U[e]}var t=e.split(""),n=Object(F.a)(t,2),r=n[0],i=n[1],o=B[r],a=W[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),V=["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 q(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function K(e){var t=q(e.theme);return Object.keys(e).map((function(n){if(-1===V.indexOf(n))return null;var r=H($(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||D;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===Object(I.a)(t)){var i=e.theme.breakpoints||D;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(L,{})}K.propTypes={},K.filterProps=V;function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=q({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?J.standard:n,o=t.easing,a=void 0===o?G.easeInOut:o,u=t.delay,l=void 0===u?0:u;Object(i.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:Y(r)," ").concat(a," ").concat("string"===typeof l?l:Y(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Z=n(34);var ee=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,u=e.palette,c=void 0===u?{}:u,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),v=C(c),m=l(n),g=Q(f),y=Object(o.a)({breakpoints:m,direction:"ltr",mixins:s(m,g,a),overrides:{},palette:v,props:{},shadows:N,typography:M(v,p),spacing:g,shape:A,transitions:X,zIndex:Z.a},h),b=arguments.length,w=new Array(b>1?b-1:0),k=1;ke.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"']/g,Q=RegExp(H.source),G=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+|\s+$/g,oe=/^\s+/,ae=/\s+$/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="["+_e+"]",Ee="["+xe+"]",Te="\\d+",Oe="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ce="[^\\ud800-\\udfff"+_e+Te+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",je="\\ud83c[\\udffb-\\udfff]",Pe="[^\\ud800-\\udfff]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ae="(?:"+Oe+"|"+Ce+")",Fe="(?:"+Ne+"|"+Ce+")",Ie="(?:"+Ee+"|"+je+")?",Le="[\\ufe0e\\ufe0f]?"+Ie+"(?:\\u200d(?:"+[Pe,Me,Re].join("|")+")[\\ufe0e\\ufe0f]?"+Ie+")*",ze="(?:"+["[\\u2700-\\u27bf]",Me,Re].join("|")+")"+Le,De="(?:"+[Pe+Ee+"?",Ee,Me,Re,"[\\ud800-\\udfff]"].join("|")+")",Be=RegExp("['\u2019]","g"),We=RegExp(Ee,"g"),Ue=RegExp(je+"(?="+je+")|"+De+Le,"g"),$e=RegExp([Ne+"?"+Oe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Se,Ne,"$"].join("|")+")",Fe+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Se,Ne+Ae,"$"].join("|")+")",Ne+"?"+Ae+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ne+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,ze].join("|"),"g"),Ve=RegExp("[\\u200d\\ud800-\\udfff"+xe+"\\ufe0e\\ufe0f]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,He=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Qe={};Qe[N]=Qe[A]=Qe[F]=Qe[I]=Qe[L]=Qe[D]=Qe[B]=Qe[W]=Qe[U]=!0,Qe[m]=Qe[g]=Qe[M]=Qe[y]=Qe[R]=Qe[b]=Qe[w]=Qe[k]=Qe[_]=Qe[S]=Qe[E]=Qe[T]=Qe[O]=Qe[C]=Qe[P]=!1;var Ge={};Ge[m]=Ge[g]=Ge[M]=Ge[R]=Ge[y]=Ge[b]=Ge[N]=Ge[A]=Ge[F]=Ge[I]=Ge[L]=Ge[_]=Ge[S]=Ge[E]=Ge[T]=Ge[O]=Ge[C]=Ge[j]=Ge[D]=Ge[B]=Ge[W]=Ge[U]=!0,Ge[w]=Ge[k]=Ge[P]=!1;var Je={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ye=parseFloat,Xe=parseInt,Ze="object"==typeof z&&z&&z.Object===Object&&z,et="object"==typeof self&&self&&self.Object===Object&&self,tt=Ze||et||Function("return this")(),nt=o&&!o.nodeType&&o,rt=nt&&i&&!i.nodeType&&i,it=rt&&rt.exports===nt,ot=it&&Ze.process,at=function(){try{return rt&&rt.require&&rt.require("util").types||ot&&ot.binding&&ot.binding("util")}catch(i){}}(),ut=at&&at.isArrayBuffer,lt=at&&at.isDate,st=at&&at.isMap,ct=at&&at.isRegExp,ft=at&&at.isSet,dt=at&&at.isTypedArray;function pt(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)}function ht(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function wt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Ut(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var $t=At({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Vt=At({"&":"&","<":"<",">":">",'"':""","'":"'"});function qt(e){return"\\"+Je[e]}function Ht(e){return Ve.test(e)}function Kt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Qt(e,t){return function(n){return e(t(n))}}function Gt(e,t){for(var n=-1,i=e.length,o=0,a=[];++n",""":'"',"'":"'"}),en=function i(o){var z,xe=(o=null==o?tt:en.defaults(tt.Object(),o,en.pick(tt,He))).Array,_e=o.Date,Se=o.Error,Ee=o.Function,Te=o.Math,Oe=o.Object,Ce=o.RegExp,je=o.String,Pe=o.TypeError,Me=xe.prototype,Re=Ee.prototype,Ne=Oe.prototype,Ae=o["__core-js_shared__"],Fe=Re.toString,Ie=Ne.hasOwnProperty,Le=0,ze=(z=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",De=Ne.toString,Ue=Fe.call(Oe),Ve=tt._,Je=Ce("^"+Fe.call(Ie).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=it?o.Buffer:e,et=o.Symbol,nt=o.Uint8Array,rt=Ze?Ze.allocUnsafe:e,ot=Qt(Oe.getPrototypeOf,Oe),at=Oe.create,Tt=Ne.propertyIsEnumerable,At=Me.splice,tn=et?et.isConcatSpreadable:e,nn=et?et.iterator:e,rn=et?et.toStringTag:e,on=function(){try{var e=lo(Oe,"defineProperty");return e({},"",{}),e}catch(e){}}(),an=o.clearTimeout!==tt.clearTimeout&&o.clearTimeout,un=_e&&_e.now!==tt.Date.now&&_e.now,ln=o.setTimeout!==tt.setTimeout&&o.setTimeout,sn=Te.ceil,cn=Te.floor,fn=Oe.getOwnPropertySymbols,dn=Ze?Ze.isBuffer:e,pn=o.isFinite,hn=Me.join,vn=Qt(Oe.keys,Oe),mn=Te.max,gn=Te.min,yn=_e.now,bn=o.parseInt,wn=Te.random,kn=Me.reverse,xn=lo(o,"DataView"),_n=lo(o,"Map"),Sn=lo(o,"Promise"),En=lo(o,"Set"),Tn=lo(o,"WeakMap"),On=lo(Oe,"create"),Cn=Tn&&new Tn,jn={},Pn=Fo(xn),Mn=Fo(_n),Rn=Fo(Sn),Nn=Fo(En),An=Fo(Tn),Fn=et?et.prototype:e,In=Fn?Fn.valueOf:e,Ln=Fn?Fn.toString:e;function zn(e){if(Xa(e)&&!Wa(e)&&!(e instanceof Un)){if(e instanceof Wn)return e;if(Ie.call(e,"__wrapped__"))return Io(e)}return new Wn(e)}var Dn=function(){function t(){}return function(n){if(!Ya(n))return{};if(at)return at(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Bn(){}function Wn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n?t:n)),t}function ar(t,n,r,i,o,a){var u,l=1&n,s=2&n,c=4&n;if(r&&(u=o?r(t,i,o,a):r(t)),u!==e)return u;if(!Ya(t))return t;var f=Wa(t);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Ti(t,u)}else{var d=fo(t),p=d==k||d==x;if(qa(t))return wi(t,l);if(d==E||d==m||p&&!o){if(u=s||p?{}:ho(t),!l)return s?function(e,t){return Oi(e,co(e),t)}(t,function(e,t){return e&&Oi(t,ju(t),e)}(u,t)):function(e,t){return Oi(e,so(e),t)}(t,nr(u,t))}else{if(!Ge[d])return o?t:{};u=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case M:return ki(e);case y:case b:return new a(+e);case R:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case A:case F:case I:case L:case D:case B:case W:case U:return xi(e,n);case _:return new a;case S:case C:return new a(e);case T:return(o=new(i=e).constructor(i.source,pe.exec(i))).lastIndex=i.lastIndex,o;case O:return new a;case j:return r=e,In?Oe(In.call(r)):{}}}(t,d,l)}}a||(a=new Kn);var h=a.get(t);if(h)return h;a.set(t,u),ru(t)?t.forEach((function(e){u.add(ar(e,n,r,e,t,a))})):Za(t)&&t.forEach((function(e,i){u.set(i,ar(e,n,r,i,t,a))}));var v=f?e:(c?s?to:eo:s?ju:Cu)(t);return vt(v||t,(function(e,i){v&&(e=t[i=e]),Zn(u,i,ar(e,n,r,i,t,a))})),u}function ur(t,n,r){var i=r.length;if(null==t)return!i;for(t=Oe(t);i--;){var o=r[i],a=n[o],u=t[o];if(u===e&&!(o in t)||!a(u))return!1}return!0}function lr(n,r,i){if("function"!=typeof n)throw new Pe(t);return Co((function(){n.apply(e,i)}),r)}function sr(e,t,n,r){var i=-1,o=bt,a=!0,u=e.length,l=[],s=t.length;if(!u)return l;n&&(t=kt(t,zt(n))),r?(o=wt,a=!1):t.length>=200&&(o=Bt,a=!1,t=new Hn(t));e:for(;++i-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(_n||Vn),string:new $n}},qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ao(this,e).get(e)},qn.prototype.has=function(e){return ao(this,e).has(e)},qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,n),this},Hn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var cr=Pi(yr),fr=Pi(br,!0);function dr(e,t){var n=!0;return cr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(t,n,r){for(var i=-1,o=t.length;++i0&&n(u)?t>1?vr(u,t-1,n,r,i):xt(i,u):r||(i[i.length]=u)}return i}var mr=Mi(),gr=Mi(!0);function yr(e,t){return e&&mr(e,t,Cu)}function br(e,t){return e&&gr(e,t,Cu)}function wr(e,t){return yt(t,(function(t){return Qa(e[t])}))}function kr(t,n){for(var r=0,i=(n=mi(n,t)).length;null!=t&&rt}function Er(e,t){return null!=e&&Ie.call(e,t)}function Tr(e,t){return null!=e&&t in Oe(e)}function Or(t,n,r){for(var i=r?wt:bt,o=t[0].length,a=t.length,u=a,l=xe(a),s=1/0,c=[];u--;){var f=t[u];u&&n&&(f=kt(f,zt(n))),s=gn(f.length,s),l[u]=!r&&(n||o>=120&&f.length>=120)?new Hn(u&&f):e}f=t[0];var d=-1,p=l[0];e:for(;++d=u?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)u!==e&&At.call(u,l,1),At.call(e,l,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?At.call(e,i,1):li(e,i)}}return e}function qr(e,t){return e+cn(wn()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=cn(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return jo(So(e,t,el),e+"")}function Qr(e){return Gn(Lu(e))}function Gr(e,t){var n=Lu(e);return Ro(n,or(t,0,n.length))}function Jr(t,n,r,i){if(!Ya(t))return t;for(var o=-1,a=(n=mi(n,t)).length,u=a-1,l=t;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=xe(i);++r>>1,a=e[o];null!==a&&!ou(a)&&(n?a<=t:a=200){var s=t?null:Hi(e);if(s)return Jt(s);a=!1,i=Bt,l=new Hn}else l=t?[]:u;e:for(;++r=i?t:ei(t,n,r)}var bi=an||function(e){return tt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=rt?rt(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new nt(t).set(new nt(e)),t}function xi(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _i(t,n){if(t!==n){var r=t!==e,i=null===t,o=t==t,a=ou(t),u=n!==e,l=null===n,s=n==n,c=ou(n);if(!l&&!c&&!a&&t>n||a&&u&&s&&!l&&!c||i&&u&&s||!r&&s||!o)return 1;if(!i&&!a&&!c&&t1?r[o-1]:e,u=o>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,u&&go(r[0],r[1],u)&&(a=o<3?e:a,o=1),n=Oe(n);++i-1?o[a?n[u]:u]:e}}function Ii(n){return Zi((function(r){var i=r.length,o=i,a=Wn.prototype.thru;for(n&&r.reverse();o--;){var u=r[o];if("function"!=typeof u)throw new Pe(t);if(a&&!l&&"wrapper"==ro(u))var l=new Wn([],!0)}for(o=l?o:i;++o1&&b.reverse(),d&&cl))return!1;var c=a.get(t);if(c&&a.get(n))return c==n;var f=-1,d=!0,p=2&r?new Hn:e;for(a.set(t,n),a.set(n,t);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vt(v,(function(n){var r="_."+n[0];t&n[1]&&!bt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(se):[]}(r),n)))}function Mo(t){var n=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ro(t,n){var r=-1,i=t.length,o=i-1;for(n=n===e?i:n;++r1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,na(t,r)}));function sa(e){var t=zn(e);return t.__chain__=!0,t}function ca(e,t){return t(e)}var fa=Zi((function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,o=function(e){return ir(e,t)};return!(n>1||this.__actions__.length)&&i instanceof Un&&mo(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:ca,args:[o],thisArg:e}),new Wn(i,this.__chain__).thru((function(t){return n&&!t.length&&t.push(e),t}))):this.thru(o)})),da=Ci((function(e,t,n){Ie.call(e,n)?++e[n]:rr(e,n,1)})),pa=Fi(Bo),ha=Fi(Wo);function va(e,t){return(Wa(e)?vt:cr)(e,oo(t,3))}function ma(e,t){return(Wa(e)?mt:fr)(e,oo(t,3))}var ga=Ci((function(e,t,n){Ie.call(e,n)?e[n].push(t):rr(e,n,[t])})),ya=Kr((function(e,t,n){var r=-1,i="function"==typeof t,o=$a(e)?xe(e.length):[];return cr(e,(function(e){o[++r]=i?pt(t,e,n):Cr(e,t,n)})),o})),ba=Ci((function(e,t,n){rr(e,n,t)}));function wa(e,t){return(Wa(e)?kt:Ir)(e,oo(t,3))}var ka=Ci((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xa=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&go(e,t[0],t[1])?t=[]:n>2&&go(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,vr(t,1),[])})),_a=un||function(){return tt.Date.now()};function Sa(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Qi(t,s,e,e,e,e,n)}function Ea(n,r){var i;if("function"!=typeof r)throw new Pe(t);return n=fu(n),function(){return--n>0&&(i=r.apply(this,arguments)),n<=1&&(r=e),i}}var Ta=Kr((function(e,t,n){var r=1;if(n.length){var i=Gt(n,io(Ta));r|=u}return Qi(e,r,t,n,i)})),Oa=Kr((function(e,t,n){var r=3;if(n.length){var i=Gt(n,io(Oa));r|=u}return Qi(t,r,e,n,i)}));function Ca(n,r,i){var o,a,u,l,s,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof n)throw new Pe(t);function v(t){var r=o,i=a;return o=a=e,f=t,l=n.apply(i,r)}function m(t){var n=t-c;return c===e||n>=r||n<0||p&&t-f>=u}function g(){var e=_a();if(m(e))return y(e);s=Co(g,function(e){var t=r-(e-c);return p?gn(t,u-(e-f)):t}(e))}function y(t){return s=e,h&&o?v(t):(o=a=e,l)}function b(){var t=_a(),n=m(t);if(o=arguments,a=this,c=t,n){if(s===e)return function(e){return f=e,s=Co(g,r),d?v(e):l}(c);if(p)return bi(s),s=Co(g,r),v(c)}return s===e&&(s=Co(g,r)),l}return r=pu(r)||0,Ya(i)&&(d=!!i.leading,u=(p="maxWait"in i)?mn(pu(i.maxWait)||0,r):u,h="trailing"in i?!!i.trailing:h),b.cancel=function(){s!==e&&bi(s),f=0,o=c=a=s=e},b.flush=function(){return s===e?l:y(_a())},b}var ja=Kr((function(e,t){return lr(e,1,t)})),Pa=Kr((function(e,t,n){return lr(e,pu(t)||0,n)}));function Ma(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Pe(t);var r=function t(){var r=arguments,i=n?n.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return t.cache=o.set(i,a)||o,a};return r.cache=new(Ma.Cache||qn),r}function Ra(e){if("function"!=typeof e)throw new Pe(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=qn;var Na=gi((function(e,t){var n=(t=1==t.length&&Wa(t[0])?kt(t[0],zt(oo())):kt(vr(t,1),zt(oo()))).length;return Kr((function(r){for(var i=-1,o=gn(r.length,n);++i=t})),Ba=jr(function(){return arguments}())?jr:function(e){return Xa(e)&&Ie.call(e,"callee")&&!Tt.call(e,"callee")},Wa=xe.isArray,Ua=ut?zt(ut):function(e){return Xa(e)&&_r(e)==M};function $a(e){return null!=e&&Ja(e.length)&&!Qa(e)}function Va(e){return Xa(e)&&$a(e)}var qa=dn||pl,Ha=lt?zt(lt):function(e){return Xa(e)&&_r(e)==b};function Ka(e){if(!Xa(e))return!1;var t=_r(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!tu(e)}function Qa(e){if(!Ya(e))return!1;var t=_r(e);return t==k||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ga(e){return"number"==typeof e&&e==fu(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Ya(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xa(e){return null!=e&&"object"==typeof e}var Za=st?zt(st):function(e){return Xa(e)&&fo(e)==_};function eu(e){return"number"==typeof e||Xa(e)&&_r(e)==S}function tu(e){if(!Xa(e)||_r(e)!=E)return!1;var t=ot(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Fe.call(n)==Ue}var nu=ct?zt(ct):function(e){return Xa(e)&&_r(e)==T},ru=ft?zt(ft):function(e){return Xa(e)&&fo(e)==O};function iu(e){return"string"==typeof e||!Wa(e)&&Xa(e)&&_r(e)==C}function ou(e){return"symbol"==typeof e||Xa(e)&&_r(e)==j}var au=dt?zt(dt):function(e){return Xa(e)&&Ja(e.length)&&!!Qe[_r(e)]},uu=$i(Fr),lu=$i((function(e,t){return e<=t}));function su(e){if(!e)return[];if($a(e))return iu(e)?Xt(e):Ti(e);if(nn&&e[nn])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nn]());var t=fo(e);return(t==_?Kt:t==O?Jt:Lu)(e)}function cu(e){return e?(e=pu(e))===f||e===-f?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fu(e){var t=cu(e),n=t%1;return t==t?n?t-n:t:0}function du(e){return e?or(fu(e),0,h):0}function pu(e){if("number"==typeof e)return e;if(ou(e))return p;if(Ya(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ya(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=ve.test(e);return n||ge.test(e)?Xe(e.slice(2),n?2:8):he.test(e)?p:+e}function hu(e){return Oi(e,ju(e))}function vu(e){return null==e?"":ai(e)}var mu=ji((function(e,t){if(ko(t)||$a(t))Oi(t,Cu(t),e);else for(var n in t)Ie.call(t,n)&&Zn(e,n,t[n])})),gu=ji((function(e,t){Oi(t,ju(t),e)})),yu=ji((function(e,t,n,r){Oi(t,ju(t),e,r)})),bu=ji((function(e,t,n,r){Oi(t,Cu(t),e,r)})),wu=Zi(ir),ku=Kr((function(t,n){t=Oe(t);var r=-1,i=n.length,o=i>2?n[2]:e;for(o&&go(n[0],n[1],o)&&(i=1);++r1),t})),Oi(e,to(e),n),r&&(n=ar(n,7,Yi));for(var i=t.length;i--;)li(n,t[i]);return n})),Nu=Zi((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Su(e,n)}))}(e,t)}));function Au(e,t){if(null==e)return{};var n=kt(to(e),(function(e){return[e]}));return t=oo(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Fu=Ki(Cu),Iu=Ki(ju);function Lu(e){return null==e?[]:Dt(e,Cu(e))}var zu=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Du(t):t)}));function Du(e){return Ku(vu(e).toLowerCase())}function Bu(e){return(e=vu(e))&&e.replace(be,$t).replace(We,"")}var Wu=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Uu=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$u=Ri("toLowerCase"),Vu=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qu=Ni((function(e,t,n){return e+(n?" ":"")+Ku(t)})),Hu=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ku=Ri("toUpperCase");function Qu(t,n,r){return t=vu(t),(n=r?e:n)===e?function(e){return qe.test(e)}(t)?function(e){return e.match($e)||[]}(t):function(e){return e.match(ce)||[]}(t):t.match(n)||[]}var Gu=Kr((function(t,n){try{return pt(t,e,n)}catch(t){return Ka(t)?t:new Se(t)}})),Ju=Zi((function(e,t){return vt(t,(function(t){t=Ao(t),rr(e,t,Ta(e[t],e))})),e}));function Yu(e){return function(){return e}}var Xu=Ii(),Zu=Ii(!0);function el(e){return e}function tl(e){return Nr("function"==typeof e?e:ar(e,1))}var nl=Kr((function(e,t){return function(n){return Cr(n,e,t)}})),rl=Kr((function(e,t){return function(n){return Cr(e,n,t)}}));function il(e,t,n){var r=Cu(t),i=wr(t,r);null!=n||Ya(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,Cu(t)));var o=!(Ya(n)&&"chain"in n&&!n.chain),a=Qa(e);return vt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,xt([this.value()],arguments))})})),e}function ol(){}var al=Bi(kt),ul=Bi(gt),ll=Bi(Et);function sl(e){return yo(e)?Nt(Ao(e)):function(e){return function(t){return kr(t,e)}}(e)}var cl=Ui(),fl=Ui(!0);function dl(){return[]}function pl(){return!1}var hl,vl=Di((function(e,t){return e+t}),0),ml=qi("ceil"),gl=Di((function(e,t){return e/t}),1),yl=qi("floor"),bl=Di((function(e,t){return e*t}),1),wl=qi("round"),kl=Di((function(e,t){return e-t}),0);return zn.after=function(e,n){if("function"!=typeof n)throw new Pe(t);return e=fu(e),function(){if(--e<1)return n.apply(this,arguments)}},zn.ary=Sa,zn.assign=mu,zn.assignIn=gu,zn.assignInWith=yu,zn.assignWith=bu,zn.at=wu,zn.before=Ea,zn.bind=Ta,zn.bindAll=Ju,zn.bindKey=Oa,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},zn.chain=sa,zn.chunk=function(t,n,r){n=(r?go(t,n,r):n===e)?1:mn(fu(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,u=xe(sn(i/n));oo?0:o+r),(i=i===e||i>o?o:fu(i))<0&&(i+=o),i=r>i?0:du(i);r>>0)?(t=vu(t))&&("string"==typeof n||null!=n&&!nu(n))&&!(n=ai(n))&&Ht(t)?yi(Xt(t),0,r):t.split(n,r):[]},zn.spread=function(e,n){if("function"!=typeof e)throw new Pe(t);return n=null==n?0:mn(fu(n),0),Kr((function(t){var r=t[n],i=yi(t,0,n);return r&&xt(i,r),pt(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},zn.take=function(t,n,r){return t&&t.length?ei(t,0,(n=r||n===e?1:fu(n))<0?0:n):[]},zn.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?ei(t,(n=i-(n=r||n===e?1:fu(n)))<0?0:n,i):[]},zn.takeRightWhile=function(e,t){return e&&e.length?ci(e,oo(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?ci(e,oo(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,n,r){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(t);return Ya(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ca(e,n,{leading:i,maxWait:n,trailing:o})},zn.thru=ca,zn.toArray=su,zn.toPairs=Fu,zn.toPairsIn=Iu,zn.toPath=function(e){return Wa(e)?kt(e,Ao):ou(e)?[e]:Ti(No(vu(e)))},zn.toPlainObject=hu,zn.transform=function(e,t,n){var r=Wa(e),i=r||qa(e)||au(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ya(e)&&Qa(o)?Dn(ot(e)):{}}return(i?vt:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Sa(e,1)},zn.union=Xo,zn.unionBy=Zo,zn.unionWith=ea,zn.uniq=function(e){return e&&e.length?ui(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ui(e,oo(t,2)):[]},zn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?ui(t,e,n):[]},zn.unset=function(e,t){return null==e||li(e,t)},zn.unzip=ta,zn.unzipWith=na,zn.update=function(e,t,n){return null==e?e:si(e,t,vi(n))},zn.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:si(t,n,vi(r),i)},zn.values=Lu,zn.valuesIn=function(e){return null==e?[]:Dt(e,ju(e))},zn.without=ra,zn.words=Qu,zn.wrap=function(e,t){return Aa(vi(t),e)},zn.xor=ia,zn.xorBy=oa,zn.xorWith=aa,zn.zip=ua,zn.zipObject=function(e,t){return pi(e||[],t||[],Zn)},zn.zipObjectDeep=function(e,t){return pi(e||[],t||[],Jr)},zn.zipWith=la,zn.entries=Fu,zn.entriesIn=Iu,zn.extend=gu,zn.extendWith=yu,il(zn,zn),zn.add=vl,zn.attempt=Gu,zn.camelCase=zu,zn.capitalize=Du,zn.ceil=ml,zn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=pu(r))==r?r:0),n!==e&&(n=(n=pu(n))==n?n:0),or(pu(t),n,r)},zn.clone=function(e){return ar(e,4)},zn.cloneDeep=function(e){return ar(e,5)},zn.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:e)},zn.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:e)},zn.conformsTo=function(e,t){return null==t||ur(e,t,Cu(t))},zn.deburr=Bu,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=gl,zn.endsWith=function(t,n,r){t=vu(t),n=ai(n);var i=t.length,o=r=r===e?i:or(fu(r),0,i);return(r-=n.length)>=0&&t.slice(r,o)==n},zn.eq=La,zn.escape=function(e){return(e=vu(e))&&G.test(e)?e.replace(K,Vt):e},zn.escapeRegExp=function(e){return(e=vu(e))&&re.test(e)?e.replace(ne,"\\$&"):e},zn.every=function(t,n,r){var i=Wa(t)?gt:dr;return r&&go(t,n,r)&&(n=e),i(t,oo(n,3))},zn.find=pa,zn.findIndex=Bo,zn.findKey=function(e,t){return Ot(e,oo(t,3),yr)},zn.findLast=ha,zn.findLastIndex=Wo,zn.findLastKey=function(e,t){return Ot(e,oo(t,3),br)},zn.floor=yl,zn.forEach=va,zn.forEachRight=ma,zn.forIn=function(e,t){return null==e?e:mr(e,oo(t,3),ju)},zn.forInRight=function(e,t){return null==e?e:gr(e,oo(t,3),ju)},zn.forOwn=function(e,t){return e&&yr(e,oo(t,3))},zn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},zn.get=_u,zn.gt=za,zn.gte=Da,zn.has=function(e,t){return null!=e&&po(e,t,Er)},zn.hasIn=Su,zn.head=$o,zn.identity=el,zn.includes=function(e,t,n,r){e=$a(e)?e:Lu(e),n=n&&!r?fu(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),iu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&jt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fu(n);return i<0&&(i=mn(r+i,0)),jt(e,t,i)},zn.inRange=function(t,n,r){return n=cu(n),r===e?(r=n,n=0):r=cu(r),function(e,t,n){return e>=gn(t,n)&&e=-d&&e<=d},zn.isSet=ru,zn.isString=iu,zn.isSymbol=ou,zn.isTypedArray=au,zn.isUndefined=function(t){return t===e},zn.isWeakMap=function(e){return Xa(e)&&fo(e)==P},zn.isWeakSet=function(e){return Xa(e)&&"[object WeakSet]"==_r(e)},zn.join=function(e,t){return null==e?"":hn.call(e,t)},zn.kebabCase=Wu,zn.last=Ko,zn.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==e&&(o=(o=fu(r))<0?mn(i+o,0):gn(o,i-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,o):Ct(t,Mt,o,!0)},zn.lowerCase=Uu,zn.lowerFirst=$u,zn.lt=uu,zn.lte=lu,zn.max=function(t){return t&&t.length?pr(t,el,Sr):e},zn.maxBy=function(t,n){return t&&t.length?pr(t,oo(n,2),Sr):e},zn.mean=function(e){return Rt(e,el)},zn.meanBy=function(e,t){return Rt(e,oo(t,2))},zn.min=function(t){return t&&t.length?pr(t,el,Fr):e},zn.minBy=function(t,n){return t&&t.length?pr(t,oo(n,2),Fr):e},zn.stubArray=dl,zn.stubFalse=pl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=bl,zn.nth=function(t,n){return t&&t.length?Br(t,fu(n)):e},zn.noConflict=function(){return tt._===this&&(tt._=Ve),this},zn.noop=ol,zn.now=_a,zn.pad=function(e,t,n){e=vu(e);var r=(t=fu(t))?Yt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(cn(i),n)+e+Wi(sn(i),n)},zn.padEnd=function(e,t,n){e=vu(e);var r=(t=fu(t))?Yt(e):0;return t&&rn){var i=t;t=n,n=i}if(r||t%1||n%1){var o=wn();return gn(t+o*(n-t+Ye("1e-"+((o+"").length-1))),n)}return qr(t,n)},zn.reduce=function(e,t,n){var r=Wa(e)?_t:Ft,i=arguments.length<3;return r(e,oo(t,4),n,i,cr)},zn.reduceRight=function(e,t,n){var r=Wa(e)?St:Ft,i=arguments.length<3;return r(e,oo(t,4),n,i,fr)},zn.repeat=function(t,n,r){return n=(r?go(t,n,r):n===e)?1:fu(n),Hr(vu(t),n)},zn.replace=function(){var e=arguments,t=vu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(t,n,r){var i=-1,o=(n=mi(n,t)).length;for(o||(o=1,t=e);++id)return[];var n=h,r=gn(e,h);t=oo(t),e-=h;for(var i=Lt(r,t);++n=a)return t;var l=r-Yt(i);if(l<1)return i;var s=u?yi(u,0,l).join(""):t.slice(0,l);if(o===e)return s+i;if(u&&(l+=s.length-l),nu(o)){if(t.slice(l).search(o)){var c,f=s;for(o.global||(o=Ce(o.source,vu(pe.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;s=s.slice(0,d===e?l:d)}}else if(t.indexOf(ai(o),l)!=l){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+i},zn.unescape=function(e){return(e=vu(e))&&Q.test(e)?e.replace(H,Zt):e},zn.uniqueId=function(e){var t=++Le;return vu(e)+t},zn.upperCase=Hu,zn.upperFirst=Ku,zn.each=va,zn.eachRight=ma,zn.first=$o,il(zn,(hl={},yr(zn,(function(e,t){Ie.call(zn.prototype,t)||(hl[t]=e)})),hl),{chain:!1}),zn.VERSION="4.17.15",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),vt(["drop","take"],(function(t,n){Un.prototype[t]=function(r){r=r===e?1:mn(fu(r),0);var i=this.__filtered__&&!n?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=gn(r,i.__takeCount__):i.__views__.push({size:gn(r,h),type:t+(i.__dir__<0?"Right":"")}),i},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),vt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),vt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),vt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(el)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Cr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Ra(oo(e)))},Un.prototype.slice=function(t,n){t=fu(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Un(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=fu(n))<0?r.dropRight(-n):r.take(n-t)),r)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(h)},yr(Un.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=zn[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(zn.prototype[n]=function(){var n=this.__wrapped__,u=i?[1]:arguments,l=n instanceof Un,s=u[0],c=l||Wa(n),f=function(e){var t=o.apply(zn,xt([e],u));return i&&d?t[0]:t};c&&r&&"function"==typeof s&&1!=s.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=l&&!p;if(!a&&c){n=v?n:new Un(this);var m=t.apply(n,u);return m.__actions__.push({func:ca,args:[f],thisArg:e}),new Wn(m,d)}return h&&v?t.apply(this,u):(m=this.thru(f),h?i?m.value()[0]:m.value():m)})})),vt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Wa(i)?i:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Ie.call(jn,r)||(jn[r]=[]),jn[r].push({name:t,func:n})}})),jn[Li(e,2).name]=[{name:"wrapper",func:e}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},zn.prototype.plant=function(t){for(var n,r=this;r instanceof Bn;){var i=Io(r);i.__index__=0,i.__values__=e,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n},zn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Un){var n=t;return this.__actions__.length&&(n=new Un(this)),(n=n.reverse()).__actions__.push({func:ca,args:[Yo],thisArg:e}),new Wn(n,this.__chain__)}return this.thru(Yo)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,nn&&(zn.prototype[nn]=function(){return this}),zn}();rt?((rt.exports=en)._=en,nt._=en):tt._=en}.call(z),r.exports),B=D.orderBy,W=D.filter,U="new",$="loading",V="loaded",q="joining-meeting",H="joined-meeting",K="left-meeting",Q="error",G="loading",J="load-attempt-failed",Y="loaded",X="joining-meeting",Z="track-started",ee="track-stopped",te="fullscreen",ne="exited-fullscreen",re="error",ie="iframe-call-message",oe="start-camera",ae="join-meeting",ue="local-screen-start",le="app-msg",se="register-input-handler",ce="daily-custom-track",fe={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},de={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},pe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},he={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ve={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},me=function(){function e(){Object(h.a)(this,e)}return Object(v.a)(e,null,[{key:"getFirstMatch",value:function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""}},{key:"getSecondMatch",value:function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""}},{key:"matchAndReturnConst",value:function(e,t,n){if(e.test(t))return n}},{key:"getWindowsVersionName",value:function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}},{key:"getMacOSVersionName",value:function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}},{key:"getAndroidVersionName",value:function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0}},{key:"getVersionPrecision",value:function(e){return e.split(".").length}},{key:"compareVersions",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),u=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(u=a-Math.min(i,o)),a-=1;a>=u;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===u)return 0;a-=1}else if(l[0][a]1?i-1:0),a=1;a=3},describe:function(){return{type:pe.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:pe.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:pe.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:pe.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:pe.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:pe.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:pe.tv}}}],ke=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:ve.Blink};var t=me.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ve.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:ve.Trident},n=me.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:ve.Presto},n=me.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:ve.Gecko},n=me.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:ve.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:ve.WebKit},n=me.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],xe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(h.a)(this,e),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==n&&this.parse()}return Object(v.a)(e,[{key:"getUA",value:function(){return this._ua}},{key:"test",value:function(e){return e.test(this._ua)}},{key:"parseBrowser",value:function(){var e=this;this.parsedResult.browser={};var t=me.find(ye,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}},{key:"getBrowser",value:function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}},{key:"getBrowserName",value:function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}},{key:"getBrowserVersion",value:function(){return this.getBrowser().version}},{key:"getOS",value:function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}},{key:"parseOS",value:function(){var e=this;this.parsedResult.os={};var t=me.find(be,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}},{key:"getOSName",value:function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""}},{key:"getOSVersion",value:function(){return this.getOS().version}},{key:"getPlatform",value:function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}},{key:"getPlatformType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getPlatform(),n=t.type;return e?String(n).toLowerCase()||"":n||""}},{key:"parsePlatform",value:function(){var e=this;this.parsedResult.platform={};var t=me.find(we,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}},{key:"getEngine",value:function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}},{key:"getEngineName",value:function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}},{key:"parseEngine",value:function(){var e=this;this.parsedResult.engine={};var t=me.find(ke,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}},{key:"parse",value:function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}},{key:"getResult",value:function(){return me.assign({},this.parsedResult)}},{key:"satisfies",value:function(e){var t=this,n={},r=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),u=me.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(n[u]);if(void 0!==l)return l}var s=me.find(a,(function(e){return t.isPlatform(e)}));if(s){var c=this.satisfies(n[s]);if(void 0!==c)return c}}if(o>0){var f=Object.keys(i),d=me.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==d)return this.compareVersion(i[d])}}},{key:"isBrowser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=me.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n}},{key:"compareVersion",value:function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(me.compareVersions(i,n,r))>-1}},{key:"isOS",value:function(e){return this.getOSName(!0)===String(e).toLowerCase()}},{key:"isPlatform",value:function(e){return this.getPlatformType(!0)===String(e).toLowerCase()}},{key:"isEngine",value:function(e){return this.getEngineName(!0)===String(e).toLowerCase()}},{key:"is",value:function(e){return this.isBrowser(e)||this.isOS(e)||this.isPlatform(e)}},{key:"some",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.some((function(t){return e.is(t)}))}}]),e}(),_e=function(){function e(){Object(h.a)(this,e)}return Object(v.a)(e,null,[{key:"getParser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)throw new Error("UserAgent should be a string");return new xe(e,t)}},{key:"parse",value:function(e){return new xe(e).getResult()}},{key:"BROWSER_MAP",get:function(){return de}},{key:"ENGINE_MAP",get:function(){return ve}},{key:"OS_MAP",get:function(){return he}},{key:"PLATFORMS_MAP",get:function(){return pe}}]),e}();function Se(){return"undefined"!=typeof navigator&&navigator.product&&"ReactNative"===navigator.product}function Ee(){if(Se())return{supported:!0,mobile:!0,name:"React Native",version:null,supportsScreenShare:!1,supportsSfu:!0};var e=_e.getParser(window.navigator.userAgent),t=e.getBrowser(),n=_e.parse(window.navigator.userAgent),r=e.satisfies({electron:">=6",chromium:">=61",chrome:">=61",firefox:">=63",opera:">=61",safari:">=12",edge:">=18",iOS:{chromium:"<0",chrome:"<0",firefox:"<0",opera:"<0",safari:">=12",edge:"<0"}}),i=!!(r&&navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia&&function(e){return e.satisfies({electron:">=6",chromium:">=75",chrome:">=75",firefox:">=67",opera:">=61",safari:">=13.0.1",edge:">=79"})}(e)),o=!(!r||e.satisfies({edge:"<=18"}));return{supported:r,mobile:"mobile"===n.platform.type,name:t.name,version:t.version,supportsScreenShare:i,supportsSfu:o}}function Te(){throw new Error("Method must be implemented in subclass")}function Oe(e){var t=e?new URL(e).origin:null;return!t||t.match(/https:\/\/[^.]+\.daily\.co/)?Ee().supportsSfu?"https://c.daily.co/static/call-machine-object-bundle.js":"https://c.daily.co/static/call-machine-object-nosfu-bundle.js":(t||(console.warn("No baseUrl provided for call object bundle. Defaulting to production CDN..."),t="https://c.daily.co"),Ee().supportsSfu?"".concat(t,"/static/call-machine-object-bundle.js"):"".concat(t,"/static/call-machine-object-nosfu-bundle.js"))}var Ce=function(){function e(){Object(h.a)(this,e)}return Object(v.a)(e,[{key:"addListenerForMessagesFromCallMachine",value:function(e,t,n){Te()}},{key:"addListenerForMessagesFromDailyJs",value:function(e,t,n){Te()}},{key:"sendMessageToCallMachine",value:function(e,t,n,r){Te()}},{key:"sendMessageToDailyJs",value:function(e,t,n){Te()}},{key:"removeListener",value:function(e){Te()}}]),e}(),je=function(e){Object(p.a)(n,e);var t=Object(d.a)(n);function n(){var e;return Object(h.a)(this,n),(e=t.call(this))._wrappedListeners={},e._messageCallbacks={},e}return Object(v.a)(n,[{key:"addListenerForMessagesFromCallMachine",value:function(e,t,n){var r=this,i=function(i){if(i.data&&"iframe-call-message"===i.data.what&&(!i.data.callFrameId||i.data.callFrameId===t)&&(!i.data.from||"module"!==i.data.from)){var o=i.data;if(delete o.from,o.callbackStamp&&r._messageCallbacks[o.callbackStamp]){var a=o.callbackStamp;r._messageCallbacks[a].call(n,o),delete r._messageCallbacks[a]}delete o.what,delete o.callbackStamp,e.call(n,o)}};this._wrappedListeners[e]=i,window.addEventListener("message",i)}},{key:"addListenerForMessagesFromDailyJs",value:function(e,t,n){var r=function(r){if(!(!r.data||r.data.what!==ie||!r.data.action||r.data.from&&"module"!==r.data.from||r.data.callFrameId&&t&&r.data.callFrameId!==t)){var i=r.data;e.call(n,i)}};this._wrappedListeners[e]=r,window.addEventListener("message",r)}},{key:"sendMessageToCallMachine",value:function(e,t,n,r){var i=Object(f.a)({},e);if(i.what=ie,i.from="module",i.callFrameId=r,t){var o=Date.now();this._messageCallbacks[o]=t,i.callbackStamp=o}(n?n.contentWindow:window).postMessage(i,"*")}},{key:"sendMessageToDailyJs",value:function(e,t,n){e.what=ie,e.callFrameId=n,e.from="embedded",(t?window:window.parent).postMessage(e,"*")}},{key:"removeListener",value:function(e){var t=this._wrappedListeners[e];t&&(window.removeEventListener("message",t),delete this._wrappedListeners[e])}}]),n}(Ce);e.callMachineToDailyJsEmitter=e.callMachineToDailyJsEmitter||new m.EventEmitter,e.dailyJsToCallMachineEmitter=e.dailyJsToCallMachineEmitter||new m.EventEmitter;var Pe=function(t){Object(p.a)(r,t);var n=Object(d.a)(r);function r(){var e;return Object(h.a)(this,r),(e=n.call(this))._wrappedListeners={},e._messageCallbacks={},e}return Object(v.a)(r,[{key:"addListenerForMessagesFromCallMachine",value:function(t,n,r){this._addListener(t,e.callMachineToDailyJsEmitter,r,"received call machine message")}},{key:"addListenerForMessagesFromDailyJs",value:function(t,n,r){this._addListener(t,e.dailyJsToCallMachineEmitter,r,"received daily-js message")}},{key:"sendMessageToCallMachine",value:function(t,n){this._sendMessage(t,e.dailyJsToCallMachineEmitter,"sending message to call machine",n)}},{key:"sendMessageToDailyJs",value:function(t){this._sendMessage(t,e.callMachineToDailyJsEmitter,"sending message to daily-js")}},{key:"removeListener",value:function(t){var n=this._wrappedListeners[t];n&&(e.callMachineToDailyJsEmitter.removeListener("message",n),e.dailyJsToCallMachineEmitter.removeListener("message",n),delete this._wrappedListeners[t])}},{key:"_addListener",value:function(e,t,n,r){var i=this,o=function(t){if(t.callbackStamp&&i._messageCallbacks[t.callbackStamp]){var r=t.callbackStamp;i._messageCallbacks[r].call(n,t),delete i._messageCallbacks[r]}e.call(n,t)};this._wrappedListeners[e]=o,t.addListener("message",o)}},{key:"_sendMessage",value:function(e,t,n,r){if(r){var i=Date.now();this._messageCallbacks[i]=r,e.callbackStamp=i}t.emit("message",e)}}]),r}(Ce),Me=function(){function e(){Object(h.a)(this,e),this._currentLoad=null}return Object(v.a)(e,[{key:"load",value:function(e,t,n,r){if(this.loaded)return window._dailyCallObjectSetup(t),void n(!0);!function(e){window._dailyConfig||(window._dailyConfig={}),window._dailyConfig.callFrameId=e}(t),this._currentLoad&&this._currentLoad.cancel(),this._currentLoad=new Re(e,t,(function(){n(!1)}),r),this._currentLoad.start()}},{key:"cancel",value:function(){this._currentLoad&&this._currentLoad.cancel()}},{key:"loaded",get:function(){return this._currentLoad&&this._currentLoad.succeeded}}]),e}(),Re=function(){function e(t,n,r,i){Object(h.a)(this,e),this._attemptsRemaining=3,this._currentAttempt=null,this._meetingOrBaseUrl=t,this._callFrameId=n,this._successCallback=r,this._failureCallback=i}return Object(v.a)(e,[{key:"start",value:function(){var e=this;if(!this._currentAttempt){this._currentAttempt=new Ae(this._meetingOrBaseUrl,this._callFrameId,this._successCallback,(function t(n){e._currentAttempt.cancelled||(e._attemptsRemaining--,e._failureCallback(n,e._attemptsRemaining>0),e._attemptsRemaining<=0||setTimeout((function(){e._currentAttempt.cancelled||(e._currentAttempt=new Ae(e._meetingOrBaseUrl,e._callFrameId,e._successCallback,t),e._currentAttempt.start())}),3e3))})),this._currentAttempt.start()}}},{key:"cancel",value:function(){this._currentAttempt&&this._currentAttempt.cancel()}},{key:"cancelled",get:function(){return this._currentAttempt&&this._currentAttempt.cancelled}},{key:"succeeded",get:function(){return this._currentAttempt&&this._currentAttempt.succeeded}}]),e}(),Ne=function(e){Object(p.a)(n,e);var t=Object(d.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return n}(Object(c.a)(Error)),Ae=function(){function e(t,n,r,i){Object(h.a)(this,e),this.cancelled=!1,this.succeeded=!1,this._networkTimedOut=!1,this._networkTimeout=null,this._iosCache="undefined"!=typeof iOSCallObjectBundleCache&&iOSCallObjectBundleCache,this._refetchHeaders=null,this._meetingOrBaseUrl=t,this._callFrameId=n,this._successCallback=r,this._failureCallback=i}return Object(v.a)(e,[{key:"start",value:function(){var e=Object(s.a)(l.a.mark((function e(){var t;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Oe(this._meetingOrBaseUrl),e.next=3,this._tryLoadFromIOSCache(t);case 3:if(e.t0=!e.sent,!e.t0){e.next=6;break}this._loadFromNetwork(t);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"cancel",value:function(){clearTimeout(this._networkTimeout),this.cancelled=!0}},{key:"_tryLoadFromIOSCache",value:function(){var e=Object(s.a)(l.a.mark((function e(t){var n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._iosCache){e.next=2;break}return e.abrupt("return",!1);case 2:return e.prev=2,e.next=5,this._iosCache.get(t);case 5:return n=e.sent,e.abrupt("return",!!this.cancelled||!!n&&(n.code?(Function('"use strict";'+n.code)(),this.succeeded=!0,this._successCallback(),!0):(this._refetchHeaders=n.refetchHeaders,!1)));case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,this,[[2,9]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_loadFromNetwork",value:function(){var e=Object(s.a)(l.a.mark((function e(t){var n,r,i,o=this;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._networkTimeout=setTimeout((function(){o._networkTimedOut=!0,o._failureCallback("Timed out (>".concat(2e4," ms) when loading call object bundle ").concat(t))}),2e4),e.prev=1,n=this._refetchHeaders?{headers:this._refetchHeaders}:{},e.next=5,fetch(t,n);case 5:if(r=e.sent,clearTimeout(this._networkTimeout),!this.cancelled&&!this._networkTimedOut){e.next=8;break}throw new Ne;case 8:return e.next=10,this._getBundleCodeFromResponse(t,r);case 10:if(i=e.sent,!this.cancelled){e.next=13;break}throw new Ne;case 13:Function('"use strict";'+i)(),this._iosCache&&this._iosCache.set(t,i,r.headers),this.succeeded=!0,this._successCallback(),e.next=21;break;case 16:if(e.prev=16,e.t0=e.catch(1),clearTimeout(this._networkTimeout),!(e.t0 instanceof Ne||this.cancelled||this._networkTimedOut)){e.next=20;break}return e.abrupt("return");case 20:this._failureCallback("Failed to load call object bundle ".concat(t,": ").concat(e.t0));case 21:case"end":return e.stop()}}),e,this,[[1,16]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_getBundleCodeFromResponse",value:function(){var e=Object(s.a)(l.a.mark((function e(t,n){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.ok){e.next=4;break}return e.next=3,n.text();case 3:return e.abrupt("return",e.sent);case 4:if(!this._iosCache||304!==n.status){e.next=8;break}return e.next=7,this._iosCache.renew(t,n.headers);case 7:return e.abrupt("return",e.sent.code);case 8:throw new Error("Received ".concat(n.status," response"));case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),Fe=function(e,t,n){return Ie(e,e.local,t,n)},Ie=function(e,t,n,r){return!!t&&(!(t.public.subscribedTracks&&!t.public.subscribedTracks.ALL)||!!t.public.subscribedTracks[n]&&(void 0!==t.public.subscribedTracks[n].ALL?t.public.subscribedTracks[n].ALL:t.public.subscribedTracks[n][r]))},Le={url:{validate:function(e){return"string"==typeof e},help:"url should be a string"},baseUrl:{validate:function(e){return"string"==typeof e},help:"baseUrl should be a string"},token:{validate:function(e){return"string"==typeof e},help:"token should be a string",queryString:"t"},dailyConfig:{validate:function(e){return window._dailyConfig||(window._dailyConfig={}),window._dailyConfig.experimentalGetUserMediaConstraintsModify=e.experimentalGetUserMediaConstraintsModify,delete e.experimentalGetUserMediaConstraintsModify,!0}},lang:{validate:function(e){return["de","en-us","en","fi","fr","nl","pt","pl"].includes(e)},help:"language not supported. Options are: de, en-us, en, fi, fr, nl, pt, pl"},userName:!0,showLeaveButton:!0,showFullscreenButton:!0,iframeStyle:!0,customLayout:!0,cssFile:!0,cssText:!0,bodyClass:!0,videoSource:{validate:function(e,t){return t._preloadCache.videoDeviceId=e,!0}},audioSource:{validate:function(e,t){return t._preloadCache.audioDeviceId=e,!0}},subscribeToTracksAutomatically:{validate:function(e,t){return t._preloadCache.subscribeToTracksAutomatically=e,!0}},layout:{validate:function(e){return"custom-v1"===e||"browser"===e||"none"===e},help:'layout may only be set to "custom-v1"',queryString:"layout"},emb:{queryString:"emb"},embHref:{queryString:"embHref"}},ze={styles:{validate:function(e){for(var t in e)if("cam"!==t&&"screen"!==t)return!1;if(e.cam)for(var t in e.cam)if("div"!==t&&"video"!==t)return!1;if(e.screen)for(var t in e.screen)if("div"!==t&&"video"!==t)return!1;return!0},help:"styles format should be a subset of: { cam: {div: {}, video: {}}, screen: {div: {}, video: {}} }"},setSubscribedTracks:{validate:function(e,t,n){if(t._preloadCache.subscribeToTracksAutomatically)return!1;if(n.local)return!1;if([!0,!1,"avatar"].includes(e))return!0;for(var r in e)if("audio"!==r&&"video"!==r&&"screenVideo"!==r)return!1;return!0},help:"setSubscribedTracks cannot be used on the local participant, cannot be used when setSubscribeToTracksAutomatically is enabled, and should be of the form: true | 'avatar' | false | { [audio: true|false], [video: true|false], [screenVideo: true|false] }"},setAudio:!0,setVideo:!0,eject:!0},De=function(e){Object(p.a)(n,e);var t=Object(d.a)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(h.a)(this,n),(r=t.call(this))._iframe=e,r._callObjectMode="none"===i.layout&&!r._iframe,r._preloadCache={subscribeToTracksAutomatically:!0,audioDeviceId:null,videoDeviceId:null,outputDeviceId:null},r._callObjectMode&&(window._dailyPreloadCache=r._preloadCache),r.validateProperties(i),r.properties=Object(f.a)({},i),r._callObjectLoader=r._callObjectMode?new Me:null,r._meetingState=U,r._participants={},r._inputEventsOn={},r._network={threshold:"good",quality:100},r._activeSpeaker={},r._activeSpeakerMode=!1,r._callFrameId=Date.now()+Math.random().toString(),r._messageChannel=Se()?new Pe:new je,r._iframe&&(r._iframe.requestFullscreen?r._iframe.addEventListener("fullscreenchange",(function(e){document.fullscreenElement===r._iframe?(r.emit(te),r.sendMessageToCallMachine({action:te})):(r.emit(ne),r.sendMessageToCallMachine({action:ne}))})):r._iframe.webkitRequestFullscreen&&r._iframe.addEventListener("webkitfullscreenchange",(function(e){document.webkitFullscreenElement===r._iframe?(r.emit(te),r.sendMessageToCallMachine({action:te})):(r.emit(ne),r.sendMessageToCallMachine({action:ne}))}))),r._messageChannel.addListenerForMessagesFromCallMachine(r.handleMessageFromCallMachine,r._callFrameId,Object(a.a)(r)),r}return Object(v.a)(n,null,[{key:"supportedBrowser",value:function(){return Ee()}},{key:"createCallObject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.layout="none",new n(null,e)}},{key:"wrap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(We(),!e||!e.contentWindow||"string"!=typeof e.src)throw new Error("DailyIframe::Wrap needs an iframe-like first argument");return t.layout||(t.customLayout?t.layout="custom-v1":t.layout="browser"),new n(e,t)}},{key:"createFrame",value:function(e,t){var r,i;We(),e&&t?(r=e,i=t):e&&e.append?(r=e,i={}):(r=document.body,i=e||{});var o=i.iframeStyle;o||(o=r===document.body?{position:"fixed",border:"1px solid black",backgroundColor:"white",width:"375px",height:"450px",right:"1em",bottom:"1em"}:{border:0,width:"100%",height:"100%"});var a=document.createElement("iframe");window.navigator&&window.navigator.userAgent.match(/Chrome\/61\./)?a.allow="microphone, camera":a.allow="microphone; camera; autoplay; display-capture",a.style.visibility="hidden",r.appendChild(a),a.style.visibility=null,Object.keys(o).forEach((function(e){return a.style[e]=o[e]})),i.layout||(i.customLayout?i.layout="custom-v1":i.layout="browser");try{return new n(a,i)}catch(e){throw r.removeChild(a),e}}},{key:"createTransparentFrame",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};We();var t=document.createElement("iframe");return t.allow="microphone; camera; autoplay",t.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 0;\n pointer-events: none;\n ",document.body.appendChild(t),e.layout||(e.layout="custom-v1"),n.wrap(t,e)}}]),Object(v.a)(n,[{key:"destroy",value:function(){var e=Object(s.a)(l.a.mark((function e(){var t,n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=[H,$].includes(this._meetingState),!e.t0){e.next=5;break}return e.next=5,this.leave();case 5:e.next=9;break;case 7:e.prev=7,e.t1=e.catch(0);case 9:(t=this._iframe)&&(n=t.parentElement)&&n.removeChild(t),this._messageChannel.removeListener(this.handleMessageFromCallMachine);case 12:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"loadCss",value:function(e){var t=e.bodyClass,n=e.cssFile,r=e.cssText;return We(),this.sendMessageToCallMachine({action:"load-css",cssFile:this.absoluteUrl(n),bodyClass:t,cssText:r}),this}},{key:"iframe",value:function(){return We(),this._iframe}},{key:"meetingState",value:function(){return this._meetingState}},{key:"participants",value:function(){return this._participants}},{key:"updateParticipant",value:function(e,t){if(We(),this._participants.local&&this._participants.local.session_id===e&&(e="local"),e&&t&&this._participants[e]){for(var n in t){if(!ze[n])throw new Error("unrecognized updateParticipant property ".concat(n));if(ze[n].validate&&!ze[n].validate(t[n],this,this._participants[e]))throw new Error(ze[n].help)}this.sendMessageToCallMachine({action:"update-participant",id:e,properties:t})}return this}},{key:"updateParticipants",value:function(e){for(var t in We(),e)this.updateParticipant(t,e[t]);return this}},{key:"localAudio",value:function(){return We(),this._participants.local?this._participants.local.audio:null}},{key:"localVideo",value:function(){return We(),this._participants.local?this._participants.local.video:null}},{key:"setLocalAudio",value:function(e){return this.sendMessageToCallMachine({action:"local-audio",state:e}),this}},{key:"setLocalVideo",value:function(e){return this.sendMessageToCallMachine({action:"local-video",state:e}),this}},{key:"setBandwidth",value:function(e){var t=e.kbs,n=e.trackConstraints;return We(),this.sendMessageToCallMachine({action:"set-bandwidth",kbs:t,trackConstraints:n}),this}},{key:"setDailyLang",value:function(e){return We(),this.sendMessageToCallMachine({action:"set-daily-lang",lang:e}),this}},{key:"startCamera",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(){var n=Object(s.a)(l.a.mark((function n(r,i){return l.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.needsLoad()){n.next=9;break}return n.prev=1,n.next=4,e.load(t);case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(1),i(n.t0);case 9:e.sendMessageToCallMachine({action:oe,properties:Be(e.properties)},(function(e){delete e.action,delete e.callbackStamp,r(e)}));case 10:case"end":return n.stop()}}),n,null,[[1,6]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"cycleCamera",value:function(){var e=this;return We(),new Promise((function(t,n){e.sendMessageToCallMachine({action:"cycle-camera"},(function(e){t({device:e.device})}))}))}},{key:"cycleMic",value:function(){var e=this;return We(),new Promise((function(t,n){e.sendMessageToCallMachine({action:"cycle-mic"},(function(e){t({device:e.device})}))}))}},{key:"setInputDevices",value:function(e){var t=e.audioDeviceId,n=e.videoDeviceId,r=e.audioSource,i=e.videoSource;return We(),void 0!==r&&(t=r),void 0!==i&&(n=i),t&&(this._preloadCache.audioDeviceId=t),n&&(this._preloadCache.videoDeviceId=n),this._callObjectMode&&this._meetingState!==H||(t instanceof MediaStreamTrack&&(t=ce),n instanceof MediaStreamTrack&&(n=ce),this.sendMessageToCallMachine({action:"set-input-devices",audioDeviceId:t,videoDeviceId:n})),this}},{key:"setOutputDevice",value:function(e){var t=e.outputDeviceId;return We(),t&&(this._preloadCache.outputDeviceId=t),this._callObjectMode&&this._meetingState!==H||this.sendMessageToCallMachine({action:"set-output-device",outputDeviceId:t}),this}},{key:"getInputDevices",value:function(){var e=this;return We(),this._callObjectMode&&this._meetingState!==H?{camera:{deviceId:this._preloadCache.videoDeviceId},mic:{deviceId:this._preloadCache.audioDeviceId},speaker:{deviceId:this._preloadCache.outputDeviceId}}:new Promise((function(t,n){e.sendMessageToCallMachine({action:"get-input-devices"},(function(e){delete e.action,delete e.callbackStamp,t(e)}))}))}},{key:"load",value:function(){var e=Object(s.a)(l.a.mark((function e(t){var n=this;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.needsLoad()){e.next=6;break}if(t&&(this.validateProperties(t),this.properties=Object(f.a)({},this.properties,{},t)),this._callObjectMode||this.properties.url){e.next=3;break}throw new Error("can't load iframe meeting because url property isn't set");case 3:this._meetingState=$;try{this.emit(G,{action:G})}catch(t){console.log("could not emit 'loading'")}return e.abrupt("return",this._callObjectMode?new Promise((function(e,t){n._callObjectLoader.cancel(),n._callObjectLoader.load(n.properties.url||n.properties.baseUrl,n._callFrameId,(function(t){n._meetingState=V,t&&n.emit(Y,{action:Y}),e()}),(function(e,r){n.emit(J,{action:J,errorMsg:e}),r||(n._meetingState=Q,n.emit(re,{action:re,errorMsg:e}),t(e))}))})):(this._iframe.src=this.assembleMeetingUrl(),new Promise((function(e,t){n._loadedCallback=function(){for(var t in n._meetingState=V,(n.properties.cssFile||n.properties.cssText)&&n.loadCss(n.properties),n._inputEventsOn)n.sendMessageToCallMachine({action:se,on:t});e()}}))));case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"join",value:function(){var e=Object(s.a)(l.a.mark((function e(){var t,n,r,i,o=this,a=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:{},n=!1,!this.needsLoad()){e.next=13;break}return e.prev=3,e.next=6,this.load(t);case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",Promise.reject(e.t0));case 11:e.next=24;break;case 13:if(n=!(!this.properties.cssFile&&!this.properties.cssText),!t.url){e.next=23;break}if(!this._callObjectMode){e.next=21;break}if(r=Oe(t.url),i=Oe(this.properties.url||this.properties.baseUrl),r===i){e.next=18;break}return e.abrupt("return",(console.error("error: in call object mode, can't change the daily.co call url after load() to one with a different bundle url (".concat(i," -> ").concat(r,")")),Promise.reject()));case 18:this.properties.url=t.url,e.next=23;break;case 21:if(!t.url||t.url===this.properties.url){e.next=23;break}return e.abrupt("return",(console.error("error: in iframe mode, can't change the daily.co call url after load() (".concat(this.properties.url," -> ").concat(t.url,")")),Promise.reject()));case 23:this.validateProperties(t),this.properties=Object(f.a)({},this.properties,{},t);case 24:if(this._meetingState===H||this._meetingState===q){e.next=28;break}this._meetingState=q;try{this.emit(X,{action:X})}catch(t){console.log("could not emit 'joining-meeting'")}return e.abrupt("return",(this.sendMessageToCallMachine({action:ae,properties:Be(this.properties),preloadCache:Be(this._preloadCache)}),new Promise((function(e,t){o._joinedCallback=function(t){if(o._meetingState=H,t)for(var r in t){o.fixupParticipant(t[r]);var i=t[r].local?"local":t[r].session_id;o.matchParticipantTracks(i,t[r]),o._participants[r]=Object(f.a)({},t[r])}n&&o.loadCss(o.properties),e(t)}}))));case 28:console.warn("already joined meeting, call leave() before joining again");case 29:case"end":return e.stop()}}),e,this,[[3,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"leave",value:function(){var e=Object(s.a)(l.a.mark((function e(){var t=this;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=function(){t._iframe,t._meetingState=K,t._participants={},t._activeSpeakerMode=!1,t._preloadCache;try{t.emit(K,{action:K})}catch(e){console.log("could not emit 'left-meeting'")}e()};t._callObjectLoader&&!t._callObjectLoader.loaded?(t._callObjectLoader.cancel(),r()):t.sendMessageToCallMachine({action:"leave-meeting"},r)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"startScreenShare",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};We(),e.mediaStream&&(this._preloadCache.screenMediaStream=e.mediaStream,e.mediaStream=ce),this.sendMessageToCallMachine({action:ue,captureOptions:e})}},{key:"stopScreenShare",value:function(){We(),this.sendMessageToCallMachine({action:"local-screen-stop"})}},{key:"startRecording",value:function(){We(),this.sendMessageToCallMachine({action:"local-recording-start"})}},{key:"stopRecording",value:function(){We(),this.sendMessageToCallMachine({action:"local-recording-stop"})}},{key:"startLiveStreaming",value:function(e){var t=e.rtmpUrl,n=e.width,r=void 0===n?1920:n,i=e.height,o=void 0===i?1080:i,a=e.backgroundColor,u=void 0===a?"0xff000000":a;We(),this.sendMessageToCallMachine({action:"daily-method-start-live-streaming",rtmpUrl:t,width:r,height:o,backgroundColor:u})}},{key:"stopLiveStreaming",value:function(){We(),this.sendMessageToCallMachine({action:"daily-method-stop-live-streaming"})}},{key:"getNetworkStats",value:function(){var e=this;return We(),this._meetingState!==H?{stats:{latest:{}}}:new Promise((function(t,n){e.sendMessageToCallMachine({action:"get-calc-stats"},(function(n){t(Object(f.a)({stats:n.stats},e._network))}))}))}},{key:"getActiveSpeaker",value:function(){return We(),this._activeSpeaker}},{key:"setActiveSpeakerMode",value:function(e){return We(),this.sendMessageToCallMachine({action:"set-active-speaker-mode",enabled:e}),this}},{key:"activeSpeakerMode",value:function(){return We(),this._activeSpeakerMode}},{key:"subscribeToTracksAutomatically",value:function(){return We(),this._preloadCache.subscribeToTracksAutomatically}},{key:"setSubscribeToTracksAutomatically",value:function(e){if(We(),this._meetingState!==H)throw new Error("setSubscribeToTracksAutomatically() is only allowed while in a meeting");return this._preloadCache.subscribeToTracksAutomatically=e,this.sendMessageToCallMachine({action:"daily-method-subscribe-to-tracks-automatically",enabled:e}),this}},{key:"enumerateDevices",value:function(){var e=Object(s.a)(l.a.mark((function e(){var t=this;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(We(),!this._callObjectMode){e.next=5;break}return e.next=3,navigator.mediaDevices.enumerateDevices();case 3:return e.t0=e.sent.map((function(e){return JSON.parse(JSON.stringify(e))})),e.abrupt("return",{devices:e.t0});case 5:return e.abrupt("return",new Promise((function(e,n){t.sendMessageToCallMachine({action:"enumerate-devices"},(function(t){e({devices:t.devices})}))})));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sendAppMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*";if(We(),JSON.stringify(e).length>4096)throw new Error("Message data too large. Max size is 4096");return this.sendMessageToCallMachine({action:le,data:e,to:t}),this}},{key:"addFakeParticipant",value:function(e){return We(),this.sendMessageToCallMachine(Object(f.a)({action:"add-fake-participant"},e)),this}},{key:"setShowNamesMode",value:function(e){return We(),e&&"always"!==e&&"never"!==e?(console.error('setShowNamesMode argument should be "always", "never", or false'),this):(this.sendMessageToCallMachine({action:"set-show-names",mode:e}),this)}},{key:"detectAllFaces",value:function(){var e=this;return We(),new Promise((function(t,n){e.sendMessageToCallMachine({action:"detect-all-faces"},(function(e){delete e.action,delete e.callbackStamp,t(e)}))}))}},{key:"requestFullscreen",value:function(){var e=Object(s.a)(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(We(),!this._iframe||document.fullscreenElement){e.next=14;break}return e.prev=1,e.next=4,this._iframe.requestFullscreen;case 4:if(!e.sent){e.next=8;break}this._iframe.requestFullscreen(),e.next=9;break;case 8:this._iframe.webkitRequestFullscreen();case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.log("could not make video call fullscreen",e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));return function(){return e.apply(this,arguments)}}()},{key:"exitFullscreen",value:function(){We(),document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen()}},{key:"room",value:function(){var e=Object(s.a)(l.a.mark((function e(){var t=this;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._meetingState!==H?this.properties.url?{roomUrlPendingJoin:this.properties.url}:null:new Promise((function(e,n){t.sendMessageToCallMachine({action:"lib-room-info"},(function(t){delete t.action,delete t.callbackStamp,e(t)}))})));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"geo",value:function(){var e=Object(s.a)(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(s.a)(l.a.mark((function e(t,n){var r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"https://gs.daily.co/_ks_/x-swsl/:",e.next=4,fetch("https://gs.daily.co/_ks_/x-swsl/:");case 4:return r=e.sent,e.t0=t,e.next=8,r.json();case 8:e.t1=e.sent.geo,e.t2={current:e.t1},(0,e.t0)(e.t2),e.next=16;break;case 13:e.prev=13,e.t3=e.catch(0),console.error("geo lookup failed",e.t3),t({current:""});case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"setNetworkTopology",value:function(){var e=Object(s.a)(l.a.mark((function e(t){var n=this;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(We(),new Promise(function(){var e=Object(s.a)(l.a.mark((function e(r,i){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.sendMessageToCallMachine({action:"set-network-topology",opts:t},(function(e){e.error?i({error:e.error}):r({workerId:e.workerId})}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"setPlayNewParticipantSound",value:function(e){if(We(),"number"!=typeof e&&!0!==e&&!1!==e)throw new Error("argument to setShouldPlayNewParticipantSound should be true, false, or a number, but is ".concat(e));this.sendMessageToCallMachine({action:"daily-method-set-play-ding",arg:e})}},{key:"on",value:function(e,t){return this._inputEventsOn[e]={},this.sendMessageToCallMachine({action:se,on:e}),g.a.prototype.on.call(this,e,t)}},{key:"once",value:function(e,t){return this._inputEventsOn[e]={},this.sendMessageToCallMachine({action:se,on:e}),g.a.prototype.once.call(this,e,t)}},{key:"off",value:function(e,t){return delete this._inputEventsOn[e],this.sendMessageToCallMachine({action:se,off:e}),g.a.prototype.off.call(this,e,t)}},{key:"validateProperties",value:function(e){for(var t in e){if(!Le[t])throw new Error("unrecognized property '".concat(t,"'"));if(Le[t].validate&&!Le[t].validate(e[t],this))throw new Error("property '".concat(t,"': ").concat(Le[t].help))}}},{key:"assembleMeetingUrl",value:function(){var e=Object(f.a)({},this.properties,{emb:this._callFrameId,embHref:encodeURIComponent(window.location.href)}),t=e.url.match(/\?/)?"&":"?";return e.url+t+Object.keys(Le).filter((function(t){return Le[t].queryString&&void 0!==e[t]})).map((function(t){return"".concat(Le[t].queryString,"=").concat(e[t])})).join("&")}},{key:"needsLoad",value:function(){return[U,$,K,Q].includes(this._meetingState)}},{key:"sendMessageToCallMachine",value:function(e,t){this._messageChannel.sendMessageToCallMachine(e,t,this._iframe,this._callFrameId)}},{key:"handleMessageFromCallMachine",value:function(e){switch(e.action){case Y:this._loadedCallback&&(this._loadedCallback(),this._loadedCallback=null);try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}break;case"joined-meeting":this._joinedCallback&&(this._joinedCallback(e.participants),this._joinedCallback=null);try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}break;case"participant-joined":case"participant-updated":if(this._meetingState===K)return;if(this.fixupParticipant(e),e.participant&&e.participant.session_id){var t=e.participant.local?"local":e.participant.session_id;this.matchParticipantTracks(t,e.participant);try{this.maybeEventTrackStopped(this._participants[t],e.participant,"audioTrack"),this.maybeEventTrackStopped(this._participants[t],e.participant,"videoTrack"),this.maybeEventTrackStopped(this._participants[t],e.participant,"screenVideoTrack"),this.maybeEventTrackStopped(this._participants[t],e.participant,"screenAudioTrack"),this.maybeEventTrackStarted(this._participants[t],e.participant,"audioTrack"),this.maybeEventTrackStarted(this._participants[t],e.participant,"videoTrack"),this.maybeEventTrackStarted(this._participants[t],e.participant,"screenVideoTrack"),this.maybeEventTrackStarted(this._participants[t],e.participant,"screenAudioTrack")}catch(e){console.error("track events error",e)}if(!this.compareEqualForParticipantUpdateEvent(e.participant,this._participants[t])){this._participants[t]=Object(f.a)({},e.participant);try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}}}break;case"participant-left":if(this.fixupParticipant(e),e.participant&&e.participant.session_id){var n=this._participants[e.participant.session_id];n&&(this.maybeEventTrackStopped(n,null,"audioTrack"),this.maybeEventTrackStopped(n,null,"videoTrack"),this.maybeEventTrackStopped(n,null,"screenVideoTrack"),this.maybeEventTrackStopped(n,null,"screenAudioTrack")),delete this._participants[e.participant.session_id];try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}}break;case re:this._iframe&&(this._iframe.src=""),this._meetingState=Q;try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}break;case"left-meeting":this._meetingState!==Q&&(this._meetingState=K);try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}break;case"input-event":var r=this._participants[e.session_id];r||(r=e.session_id===this._participants.local.session_id?this._participants.local:{});try{this.emit(e.event.type,{action:e.event.type,event:e.event,participant:Object(f.a)({},r)})}catch(o){console.log("could not emit",e)}break;case"network-quality-change":var i=e.threshold,a=e.quality;if(i!==this._network.threshold||a!==this._network.quality){this._network.quality=a,this._network.threshold=i;try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}}break;case"active-speaker-change":var u=e.activeSpeaker;if(this._activeSpeaker.peerId!==u.peerId){this._activeSpeaker.peerId=u.peerId;try{this.emit(e.action,{action:e.action,activeSpeaker:this._activeSpeaker})}catch(o){console.log("could not emit",e)}}break;case"active-speaker-mode-change":var l=e.enabled;if(this._activeSpeakerMode!==l){this._activeSpeakerMode=l;try{this.emit(e.action,{action:e.action,enabled:this._activeSpeakerMode})}catch(o){console.log("could not emit",e)}}break;case"recording-started":case"recording-stopped":case"recording-stats":case"recording-error":case"recording-upload-completed":case"started-camera":case"camera-error":case"app-message":case"local-screen-share-started":case"local-screen-share-stopped":case"network-connection":case"recording-data":case"live-streaming-started":case"live-streaming-stopped":case"live-streaming-error":try{this.emit(e.action,e)}catch(o){console.log("could not emit",e)}break;case"request-fullscreen":this.requestFullscreen();break;case"request-exit-fullscreen":this.exitFullscreen()}}},{key:"fixupParticipant",value:function(e){var t=e.participant?e.participant:e;t.id&&(t.owner=!!t.owner,t.session_id=t.id,t.user_name=t.name,t.joined_at=t.joinedAt,delete t.id,delete t.name,delete t.joinedAt)}},{key:"matchParticipantTracks",value:function(e,t){if(this._callObjectMode){var n=store.getState();if("local"!==e){var r=!0;try{var i=n.participants[t.session_id];i&&i.public&&i.public.rtcType&&"peer-to-peer"===i.public.rtcType.impl&&i.private&&!["connected","completed"].includes(i.private.peeringState)&&(r=!1)}catch(e){console.error(e)}if(!r)return t.audio=!1,t.audioTrack=!1,t.video=!1,t.videoTrack=!1,t.screen=!1,void(t.screenTrack=!1);try{var o=n.streams,a=this._participants[t.session_id];if(t.audio&&Fe(n,t.session_id,"cam-audio")){var u=B(W(o,(function(e){return e.participantId===t.session_id&&"cam"===e.type&&e.pendingTrack&&"audio"===e.pendingTrack.kind})),"starttime","desc");u&&u[0]&&u[0].pendingTrack&&(a&&a.audioTrack&&a.audioTrack.id===u[0].pendingTrack.id?t.audioTrack=u[0].pendingTrack:u[0].pendingTrack.muted||(t.audioTrack=u[0].pendingTrack)),t.audioTrack||(t.audio=!1)}if(t.video&&Fe(n,t.session_id,"cam-video")){var l=B(W(o,(function(e){return e.participantId===t.session_id&&"cam"===e.type&&e.pendingTrack&&"video"===e.pendingTrack.kind})),"starttime","desc");l&&l[0]&&l[0].pendingTrack&&(a&&a.videoTrack&&a.videoTrack.id===l[0].pendingTrack.id?t.videoTrack=l[0].pendingTrack:l[0].pendingTrack.muted||(t.videoTrack=l[0].pendingTrack)),t.videoTrack||(t.video=!1)}if(t.screen&&Fe(n,t.session_id,"screen-audio")){var s=B(W(o,(function(e){return e.participantId===t.session_id&&"screen"===e.type&&e.pendingTrack&&"audio"===e.pendingTrack.kind})),"starttime","desc");s&&s[0]&&s[0].pendingTrack&&(a&&a.screenAudioTrack&&a.screenAudioTrack.id===s[0].pendingTrack.id?t.screenAudioTrack=s[0].pendingTrack:s[0].pendingTrack.muted||(t.screenAudioTrack=s[0].pendingTrack))}if(t.screen&&Fe(n,t.session_id,"screen-video")){var c=B(W(o,(function(e){return e.participantId===t.session_id&&"screen"===e.type&&e.pendingTrack&&"video"===e.pendingTrack.kind})),"starttime","desc");c&&c[0]&&c[0].pendingTrack&&(a&&a.screenVideoTrack&&a.screenVideoTrack.id===c[0].pendingTrack.id?t.screenVideoTrack=c[0].pendingTrack:c[0].pendingTrack.muted||(t.screenVideoTrack=c[0].pendingTrack))}t.screenVideoTrack||t.screenAudioTrack||(t.screen=!1)}catch(e){console.error("unexpected error matching up tracks",e)}}else{if(t.audio)try{t.audioTrack=n.local.streams.cam.stream.getAudioTracks()[0],t.audioTrack||(t.audio=!1)}catch(e){}if(t.video)try{t.videoTrack=n.local.streams.cam.stream.getVideoTracks()[0],t.videoTrack||(t.video=!1)}catch(e){}if(t.screen)try{t.screenVideoTrack=n.local.streams.screen.stream.getVideoTracks()[0],t.screenAudioTrack=n.local.streams.screen.stream.getAudioTracks()[0],t.screenVideoTrack||t.screenAudioTrack||(t.screen=!1)}catch(e){}}}}},{key:"maybeEventTrackStopped",value:function(e,t,n){if(e&&(e[n]&&"ended"===e[n].readyState||e[n]&&(!t||!t[n])||e[n]&&e[n].id!==t[n].id))try{this.emit(ee,{action:ee,track:e[n],participant:t})}catch(e){console.log("could not emit",e)}}},{key:"maybeEventTrackStarted",value:function(e,t,n){if(t[n]&&(!e||!e[n])||t[n]&&"ended"===e[n].readyState||t[n]&&t[n].id!==e[n].id)try{this.emit(Z,{action:Z,track:t[n],participant:t})}catch(e){console.log("could not emit",e)}}},{key:"compareEqualForParticipantUpdateEvent",value:function(e,t){return!!L(e,t)&&(!e.videoTrack||!t.videoTrack||e.videoTrack.id===t.videoTrack.id&&e.videoTrack.muted===t.videoTrack.muted&&e.videoTrack.enabled===t.videoTrack.enabled)&&(!e.audioTrack||!t.audioTrack||e.audioTrack.id===t.audioTrack.id&&e.audioTrack.muted===t.audioTrack.muted&&e.audioTrack.enabled===t.audioTrack.enabled)}},{key:"absoluteUrl",value:function(e){if(void 0!==e){var t=document.createElement("a");return t.href=e,t.href}}},{key:"sayHello",value:function(){var e="hello, world.";return console.log(e),e}}]),n}(g.a);function Be(e){var t={};for(var n in e)e[n]instanceof MediaStreamTrack?t[n]=ce:"dailyConfig"===n?(e[n].modifyLocalSdpHook&&(window._dailyConfig&&(window._dailyConfig.modifyLocalSdpHook=e[n].modifyLocalSdpHook),delete e[n].modifyLocalSdpHook),e[n].modifyRemoteSdpHook&&(window._dailyConfig&&(window._dailyConfig.modifyRemoteSdpHook=e[n].modifyRemoteSdpHook),delete e[n].modifyRemoteSdpHook),t[n]=e[n]):t[n]=e[n];return t}function We(){if(Se())throw new Error("This daily-js method is not currently supported in React Native")}t.a=De}).call(this,n(42))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(17);function i(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,u=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(u)throw o}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(28),i=n(18);var o=n(36);function a(e,t,n){return(a=Object(o.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Object(i.a)(o,n.prototype),o}).apply(null,arguments)}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,Object(r.a)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Object(i.a)(o,e)})(e)}},,,,,,function(e,t,n){"use strict";var r=n(41),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nP.length&&P.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,i){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+A(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s